diff options
author | asomers <asomers@FreeBSD.org> | 2017-08-25 14:28:36 +0000 |
---|---|---|
committer | asomers <asomers@FreeBSD.org> | 2017-08-25 14:28:36 +0000 |
commit | 89d5259a54bf3542aa2cb422a7a3c59e66851679 (patch) | |
tree | d19db2c30f398645e7786ef4b849fdc9737cb550 | |
parent | b285c9879f6c66a279ba6b2f88df46e9d3d5c683 (diff) | |
download | FreeBSD-src-89d5259a54bf3542aa2cb422a7a3c59e66851679.zip FreeBSD-src-89d5259a54bf3542aa2cb422a7a3c59e66851679.tar.gz |
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
-rw-r--r-- | share/man/man4/aio.4 | 20 | ||||
-rw-r--r-- | usr.bin/stdbuf/stdbuf.c | 2 |
2 files changed, 19 insertions, 3 deletions
diff --git a/share/man/man4/aio.4 b/share/man/man4/aio.4 index 048561d..0ea7284 100644 --- a/share/man/man4/aio.4 +++ b/share/man/man4/aio.4 @@ -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 an operation completes. 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 diff --git a/usr.bin/stdbuf/stdbuf.c b/usr.bin/stdbuf/stdbuf.c index 4346cc8..c05a44d 100644 --- a/usr.bin/stdbuf/stdbuf.c +++ b/usr.bin/stdbuf/stdbuf.c @@ -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); } |