diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2003-12-10 23:10:09 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2003-12-10 23:10:09 +0000 |
commit | 9849b95b62baf47b0874dde016fa181099f0e83a (patch) | |
tree | cbfb1c4c6bef6edbe89acc66826317268191e9d4 /lib/libc | |
parent | f301ba466dfb185b024d95455d2755fff9a5b775 (diff) |
Add an nfds_t type as per POSIX and also add pollfd_t like Solaris has.
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/sys/poll.2 | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/sys/poll.2 b/lib/libc/sys/poll.2 index 7d6271a5c54..b9aae0a427d 100644 --- a/lib/libc/sys/poll.2 +++ b/lib/libc/sys/poll.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: poll.2,v 1.17 2003/09/23 16:53:34 millert Exp $ +.\" $OpenBSD: poll.2,v 1.18 2003/12/10 23:10:08 millert Exp $ .\" .\" Copyright (c) 1994 Jason R. Thorpe .\" All rights reserved. @@ -37,7 +37,7 @@ .Sh SYNOPSIS .Fd #include <poll.h> .Ft int -.Fn poll "struct pollfd *fds" "int nfds" "int timeout" +.Fn poll "struct pollfd *fds" "nfds_t nfds" "int timeout" .Sh DESCRIPTION .Fn poll provides a mechanism for multiplexing I/O across a set of file @@ -87,7 +87,7 @@ and members are bitmasks of conditions to monitor and conditions found, respectively. .It Fa nfds -The number of +An unsigned integer specifying the number of .Fa pollfd structures in the array. .It Fa timeout @@ -224,7 +224,7 @@ points outside the process's allocated address space. caught a signal during the polling process. .It Bq Er EINVAL .Fa nfds -was either a negative number or greater than the number of available +was greater than the number of available file descriptors. .It Bq Er EINVAL The timeout passed to |