Back to index

glibc  2.9
pselect.c
Go to the documentation of this file.
00001 /* pselect for Hurd.
00002    Copyright (C) 1998 Free Software Foundation, Inc.
00003    This file is part of the GNU C Library.
00004 
00005    The GNU C Library is free software; you can redistribute it and/or
00006    modify it under the terms of the GNU Lesser General Public
00007    License as published by the Free Software Foundation; either
00008    version 2.1 of the License, or (at your option) any later version.
00009 
00010    The GNU C Library is distributed in the hope that it will be useful,
00011    but WITHOUT ANY WARRANTY; without even the implied warranty of
00012    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013    Lesser General Public License for more details.
00014 
00015    You should have received a copy of the GNU Lesser General Public
00016    License along with the GNU C Library; if not, write to the Free
00017    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
00018    02111-1307 USA.  */
00019 
00020 #include <errno.h>
00021 #include <signal.h>
00022 #include <sys/time.h>
00023 #include <sys/select.h>
00024 #include <hurd.h>
00025 #include <hurd/fd.h>
00026 
00027 /* Check the first NFDS descriptors each in READFDS (if not NULL) for read
00028    readiness, in WRITEFDS (if not NULL) for write readiness, and in EXCEPTFDS
00029    (if not NULL) for exceptional conditions.  If TIMEOUT is not NULL, time out
00030    after waiting the interval specified therein.  Additionally set the sigmask
00031    SIGMASK for this call.  Returns the number of ready descriptors, or -1 for
00032    errors.  */
00033 int
00034 __pselect (nfds, readfds, writefds, exceptfds, timeout, sigmask)
00035      int nfds;
00036      fd_set *readfds;
00037      fd_set *writefds;
00038      fd_set *exceptfds;
00039      const struct timespec *timeout;
00040      const sigset_t *sigmask;
00041 {
00042   return _hurd_select (nfds, NULL,
00043                      readfds, writefds, exceptfds, timeout, sigmask);
00044 }
00045 weak_alias (__pselect, pselect)