ppoll.c revision 1.1
11.1Skamil/* $NetBSD: ppoll.c,v 1.1 2020/07/17 15:34:17 kamil Exp $ */ 21.1Skamil 31.1Skamil/*- 41.1Skamil * Copyright (c) 2020 The NetBSD Foundation, Inc. 51.1Skamil * All rights reserved. 61.1Skamil * 71.1Skamil * This code is derived from software contributed to The NetBSD Foundation 81.1Skamil * by Apurva Nandan. 91.1Skamil * 101.1Skamil * Redistribution and use in source and binary forms, with or without 111.1Skamil * modification, are permitted provided that the following conditions 121.1Skamil * are met: 131.1Skamil * 1. Redistributions of source code must retain the above copyright 141.1Skamil * notice, this list of conditions and the following disclaimer. 151.1Skamil * 2. Redistributions in binary form must reproduce the above copyright 161.1Skamil * notice, this list of conditions and the following disclaimer in the 171.1Skamil * documentation and/or other materials provided with the distribution. 181.1Skamil * 191.1Skamil * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 201.1Skamil * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 211.1Skamil * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 221.1Skamil * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 231.1Skamil * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 241.1Skamil * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 251.1Skamil * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 261.1Skamil * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 271.1Skamil * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 281.1Skamil * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 291.1Skamil * POSSIBILITY OF SUCH DAMAGE. 301.1Skamil */ 311.1Skamil 321.1Skamil#include <sys/cdefs.h> 331.1Skamil__RCSID("$NetBSD: ppoll.c,v 1.1 2020/07/17 15:34:17 kamil Exp $"); 341.1Skamil 351.1Skamil#include "namespace.h" 361.1Skamil#include <sys/poll.h> 371.1Skamil#include <sys/time.h> 381.1Skamil 391.1Skamilint 401.1Skamilppoll(struct pollfd * restrict fds, nfds_t nfds, 411.1Skamil const struct timespec * restrict timeout_ts, 421.1Skamil const sigset_t * restrict sigmask) 431.1Skamil{ 441.1Skamil 451.1Skamil return pollts(fds, nfds, timeout_ts, sigmask); 461.1Skamil} 47