diff options
| -rw-r--r-- | man7/pipe.7 | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/man7/pipe.7 b/man7/pipe.7 index 9977acc3bc..b6a300742a 100644 --- a/man7/pipe.7 +++ b/man7/pipe.7 @@ -143,6 +143,21 @@ operations. See .BR fcntl (2) for more information. + +The following +.BR ioctl (2) +operation, which can be applied to a file descriptor +that refers to either end of a pipe, +places a count of the number of unread bytes in the pipe in the +.I int +buffer pointed to by the final argument of the call: + + ioctl(fd, FIONREAD, &nbytes); + +The +.B FIONREAD +operation is not specified in any standard, +but is provided on many implementations. .\" .SS PIPE_BUF POSIX.1 says that |
