Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Aug 2017 14:28:36 +0000 (UTC)
From:      Alan Somers <asomers@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r322889 - in stable/11: share/man/man4 usr.bin/stdbuf
Message-ID:  <201708251428.v7PESao7010919@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201708251428.v7PESao7010919>