]> git.ipfire.org Git - thirdparty/glibc.git/blame - sysdeps/mach/hurd/pselect.c
Update copyright notices with scripts/update-copyrights
[thirdparty/glibc.git] / sysdeps / mach / hurd / pselect.c
CommitLineData
0d3eb016 1/* pselect for Hurd.
d4697bc9 2 Copyright (C) 1998-2014 Free Software Foundation, Inc.
0d3eb016
RM
3 This file is part of the GNU C Library.
4
5 The GNU C Library is free software; you can redistribute it and/or
41bdb6e2
AJ
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
0d3eb016
RM
9
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
41bdb6e2 13 Lesser General Public License for more details.
0d3eb016 14
41bdb6e2 15 You should have received a copy of the GNU Lesser General Public
59ba27a6
PE
16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
0d3eb016
RM
18
19#include <errno.h>
20#include <signal.h>
21#include <sys/time.h>
22#include <sys/select.h>
23#include <hurd.h>
24#include <hurd/fd.h>
25
26/* Check the first NFDS descriptors each in READFDS (if not NULL) for read
27 readiness, in WRITEFDS (if not NULL) for write readiness, and in EXCEPTFDS
28 (if not NULL) for exceptional conditions. If TIMEOUT is not NULL, time out
29 after waiting the interval specified therein. Additionally set the sigmask
30 SIGMASK for this call. Returns the number of ready descriptors, or -1 for
31 errors. */
32int
33__pselect (nfds, readfds, writefds, exceptfds, timeout, sigmask)
34 int nfds;
35 fd_set *readfds;
36 fd_set *writefds;
37 fd_set *exceptfds;
38 const struct timespec *timeout;
39 const sigset_t *sigmask;
40{
41 return _hurd_select (nfds, NULL,
42 readfds, writefds, exceptfds, timeout, sigmask);
43}
44weak_alias (__pselect, pselect)