svn commit: r322889 - in stable/11: share/man/man4 usr.bin/stdbuf

Alan Somers asomers at FreeBSD.org
Fri Aug 25 14:28:37 UTC 2017


Author: asomers
Date: Fri Aug 25 14:28:36 2017
New Revision: 322889
URL: https://svnweb.freebsd.org/changeset/base/322889

Log:
  MFC r320807:
  
  stdbuf(1): Add buffer definition "B" to the usage message
  
  This option has been missing from the usage message ever since the program
  was first imported.
  
  Submitted by:	shivansh
  Reviewed by:	asomers
  Sponsored by:	Google, Inc (GSoC 2017)
  Differential Revision:	https://reviews.freebsd.org/D11529

Modified:
  stable/11/share/man/man4/aio.4
  stable/11/usr.bin/stdbuf/stdbuf.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/share/man/man4/aio.4
==============================================================================
--- stable/11/share/man/man4/aio.4	Fri Aug 25 12:28:34 2017	(r322888)
+++ stable/11/share/man/man4/aio.4	Fri Aug 25 14:28:36 2017	(r322889)
@@ -27,7 +27,7 @@
 .\"
 .\" $FreeBSD$
 .\"
-.Dd July 21, 2016
+.Dd June 22, 2017
 .Dt AIO 4
 .Os
 .Sh NAME
@@ -161,11 +161,27 @@ field which can be used to request notification when a
 For
 .Dv SIGEV_KEVENT
 notifications,
-the posted kevent will contain:
+the
+.Va sigevent
+.Ap
+s
+.Va sigev_notify_kqueue
+field should contain the descriptor of the kqueue that the event should be attached
+to, its
+.Va sigev_notify_kevent_flags
+field may contain
+.Dv EV_ONESHOT ,
+.Dv EV_CLEAR , and/or
+.Dv EV_DISPATCH , and its
+.Va sigev_notify
+field should be set to
+.Dv SIGEV_KEVENT .
+The posted kevent will contain:
 .Bl -column ".Va filter"
 .It Sy Member Ta Sy Value
 .It Va ident Ta asynchronous I/O control buffer pointer
 .It Va filter Ta Dv EVFILT_AIO
+.It Va flags Ta Dv EV_EOF
 .It Va udata Ta
 value stored in
 .Va aio_sigevent.sigev_value

Modified: stable/11/usr.bin/stdbuf/stdbuf.c
==============================================================================
--- stable/11/usr.bin/stdbuf/stdbuf.c	Fri Aug 25 12:28:34 2017	(r322888)
+++ stable/11/usr.bin/stdbuf/stdbuf.c	Fri Aug 25 14:28:36 2017	(r322889)
@@ -40,7 +40,7 @@ static void
 usage(int s)
 {
 
-	fprintf(stderr, "Usage: %s [-e 0|L|<sz>] [-i 0|L|<sz>] [-o 0|L|<sz>] "
+	fprintf(stderr, "Usage: %s [-e 0|L|B|<sz>] [-i 0|L|B|<sz>] [-o 0|L|B|<sz>] "
 	    "<cmd> [args ...]\n", __progname);
 	exit(s);
 }


More information about the svn-src-all mailing list