1*07e8492eSkamil /* $NetBSD: ppoll.c,v 1.1 2020/07/17 15:34:17 kamil Exp $ */
2*07e8492eSkamil
3*07e8492eSkamil /*-
4*07e8492eSkamil * Copyright (c) 2020 The NetBSD Foundation, Inc.
5*07e8492eSkamil * All rights reserved.
6*07e8492eSkamil *
7*07e8492eSkamil * This code is derived from software contributed to The NetBSD Foundation
8*07e8492eSkamil * by Apurva Nandan.
9*07e8492eSkamil *
10*07e8492eSkamil * Redistribution and use in source and binary forms, with or without
11*07e8492eSkamil * modification, are permitted provided that the following conditions
12*07e8492eSkamil * are met:
13*07e8492eSkamil * 1. Redistributions of source code must retain the above copyright
14*07e8492eSkamil * notice, this list of conditions and the following disclaimer.
15*07e8492eSkamil * 2. Redistributions in binary form must reproduce the above copyright
16*07e8492eSkamil * notice, this list of conditions and the following disclaimer in the
17*07e8492eSkamil * documentation and/or other materials provided with the distribution.
18*07e8492eSkamil *
19*07e8492eSkamil * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
20*07e8492eSkamil * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
21*07e8492eSkamil * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22*07e8492eSkamil * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
23*07e8492eSkamil * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24*07e8492eSkamil * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25*07e8492eSkamil * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26*07e8492eSkamil * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27*07e8492eSkamil * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28*07e8492eSkamil * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29*07e8492eSkamil * POSSIBILITY OF SUCH DAMAGE.
30*07e8492eSkamil */
31*07e8492eSkamil
32*07e8492eSkamil #include <sys/cdefs.h>
33*07e8492eSkamil __RCSID("$NetBSD: ppoll.c,v 1.1 2020/07/17 15:34:17 kamil Exp $");
34*07e8492eSkamil
35*07e8492eSkamil #include "namespace.h"
36*07e8492eSkamil #include <sys/poll.h>
37*07e8492eSkamil #include <sys/time.h>
38*07e8492eSkamil
39*07e8492eSkamil int
ppoll(struct pollfd * restrict fds,nfds_t nfds,const struct timespec * restrict timeout_ts,const sigset_t * restrict sigmask)40*07e8492eSkamil ppoll(struct pollfd * restrict fds, nfds_t nfds,
41*07e8492eSkamil const struct timespec * restrict timeout_ts,
42*07e8492eSkamil const sigset_t * restrict sigmask)
43*07e8492eSkamil {
44*07e8492eSkamil
45*07e8492eSkamil return pollts(fds, nfds, timeout_ts, sigmask);
46*07e8492eSkamil }
47