summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2003-12-10 23:10:09 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2003-12-10 23:10:09 +0000
commit9849b95b62baf47b0874dde016fa181099f0e83a (patch)
treecbfb1c4c6bef6edbe89acc66826317268191e9d4 /lib/libc
parentf301ba466dfb185b024d95455d2755fff9a5b775 (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.28
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