Add pollts() prototype to <poll.h>, and update manual page synopsis for
pollts() header use.
This commit is contained in:
parent
184b9fccec
commit
6fe0a614b5
@ -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.
|
.\" Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||||
.\" All rights reserved.
|
.\" All rights reserved.
|
||||||
@ -34,21 +34,23 @@
|
|||||||
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||||
.\" POSSIBILITY OF SUCH DAMAGE.
|
.\" POSSIBILITY OF SUCH DAMAGE.
|
||||||
.\"
|
.\"
|
||||||
.Dd February 28, 2005
|
.Dd March 10, 2005
|
||||||
.Dt POLL 2
|
.Dt POLL 2
|
||||||
.Os
|
.Os
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
.Nm poll
|
.Nm poll, pollts
|
||||||
.Nd synchronous I/O multiplexing
|
.Nd synchronous I/O multiplexing
|
||||||
.Sh LIBRARY
|
.Sh LIBRARY
|
||||||
.Lb libc
|
.Lb libc
|
||||||
.Sh SYNOPSIS
|
.Sh SYNOPSIS
|
||||||
.In sys/types.h
|
|
||||||
.In poll.h
|
.In poll.h
|
||||||
.Ft int
|
.Ft int
|
||||||
.Fn poll "struct pollfd *fds" "nfds_t nfds" "int timeout"
|
.Fn poll "struct pollfd *fds" "nfds_t nfds" "int timeout"
|
||||||
|
.In poll.h
|
||||||
|
.In signal.h
|
||||||
|
.In time.h
|
||||||
.Ft int
|
.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
|
.Sh DESCRIPTION
|
||||||
.Fn poll
|
.Fn poll
|
||||||
and
|
and
|
||||||
@ -234,8 +236,12 @@ The specified time limit is negative.
|
|||||||
.Sh HISTORY
|
.Sh HISTORY
|
||||||
The
|
The
|
||||||
.Fn poll
|
.Fn poll
|
||||||
function call appeared in
|
function appeared in
|
||||||
.At V.3 .
|
.At V.3 .
|
||||||
|
The
|
||||||
|
.Fn pollts
|
||||||
|
function first appeared in
|
||||||
|
.Nx 3.0
|
||||||
.Sh BUGS
|
.Sh BUGS
|
||||||
The distinction between some of the fields in the
|
The distinction between some of the fields in the
|
||||||
.Fa events
|
.Fa events
|
||||||
|
@ -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.
|
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||||
@ -89,6 +89,16 @@ __BEGIN_DECLS
|
|||||||
int poll(struct pollfd *, nfds_t, int);
|
int poll(struct pollfd *, nfds_t, int);
|
||||||
__END_DECLS
|
__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 /* _KERNEL */
|
||||||
|
|
||||||
#endif /* !_SYS_POLL_H_ */
|
#endif /* !_SYS_POLL_H_ */
|
||||||
|
Loading…
Reference in New Issue
Block a user