Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src Add pollts() prototype to <poll.h>, and update manual page s...



details:   https://anonhg.NetBSD.org/src/rev/7e14ea6c2e24
branches:  trunk
changeset: 574707:7e14ea6c2e24
user:      kleink <kleink%NetBSD.org@localhost>
date:      Thu Mar 10 00:29:37 2005 +0000

description:
Add pollts() prototype to <poll.h>, and update manual page synopsis for
pollts() header use.

diffstat:

 lib/libc/sys/poll.2 |  18 ++++++++++++------
 sys/sys/poll.h      |  12 +++++++++++-
 2 files changed, 23 insertions(+), 7 deletions(-)

diffs (77 lines):

diff -r 60bf530d2894 -r 7e14ea6c2e24 lib/libc/sys/poll.2
--- a/lib/libc/sys/poll.2       Thu Mar 10 00:25:45 2005 +0000
+++ b/lib/libc/sys/poll.2       Thu Mar 10 00:29:37 2005 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: poll.2,v 1.20 2005/02/28 10:42:10 wiz Exp $
+.\"    $NetBSD: poll.2,v 1.21 2005/03/10 00:29:37 kleink Exp $
 .\"
 .\" Copyright (c) 1998 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -34,21 +34,23 @@
 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 .\" POSSIBILITY OF SUCH DAMAGE.
 .\"
-.Dd February 28, 2005
+.Dd March 10, 2005
 .Dt POLL 2
 .Os
 .Sh NAME
-.Nm poll
+.Nm poll, pollts
 .Nd synchronous I/O multiplexing
 .Sh LIBRARY
 .Lb libc
 .Sh SYNOPSIS
-.In sys/types.h
 .In poll.h
 .Ft int
 .Fn poll "struct pollfd *fds" "nfds_t nfds" "int timeout"
+.In poll.h
+.In signal.h
+.In time.h
 .Ft int
-.Fn pollts "struct pollfd *fds" "nfds_t nfds" "const struct timespec *ts" "const sigset_t *sigmask"
+.Fn pollts "struct pollfd * restrict fds" "nfds_t nfds" "const struct timespec * restrict ts" "const sigset_t * restrict sigmask"
 .Sh DESCRIPTION
 .Fn poll
 and
@@ -234,8 +236,12 @@
 .Sh HISTORY
 The
 .Fn poll
-function call appeared in
+function appeared in
 .At V.3 .
+The 
+.Fn pollts
+function first appeared in
+.Nx 3.0
 .Sh BUGS
 The distinction between some of the fields in the
 .Fa events
diff -r 60bf530d2894 -r 7e14ea6c2e24 sys/sys/poll.h
--- a/sys/sys/poll.h    Thu Mar 10 00:25:45 2005 +0000
+++ b/sys/sys/poll.h    Thu Mar 10 00:29:37 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: poll.h,v 1.9 2005/02/25 19:56:07 matt Exp $    */
+/*     $NetBSD: poll.h,v 1.10 2005/03/10 00:29:37 kleink Exp $ */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -89,6 +89,16 @@
 int    poll(struct pollfd *, nfds_t, int);
 __END_DECLS
 
+#ifdef _NETBSD_SOURCE
+#include <sys/sigtypes.h>      /* for sigset_t */
+struct timespec;
+
+__BEGIN_DECLS
+int    pollts(struct pollfd * __restrict, nfds_t,
+           const struct timespec * __restrict, const sigset_t * __restrict);
+__END_DECLS
+#endif /* _NETBSD_SOURCE */
+
 #endif /* _KERNEL */
 
 #endif /* !_SYS_POLL_H_ */



Home | Main Index | Thread Index | Old Index