Back to index

glibc  2.9
pselect.c
Go to the documentation of this file.
00001 #include <sys/select.h>
00002 
00003 extern int __call_pselect6 (int nfds, fd_set *readfds, fd_set *writefds,
00004                          fd_set *exceptfds, const struct timespec *timeout,
00005                          void *data) attribute_hidden;
00006 
00007 
00008 #define CALL_PSELECT6(nfds, readfds, writefds, exceptfds, timeout, data) \
00009   ({ int r = __call_pselect6 (nfds, readfds, writefds, exceptfds, timeout,    \
00010                            data);                                    \
00011      if (r < 0 && r > -4096)                                                \
00012        {                                                             \
00013         __set_errno (-r);                                            \
00014         r = -1;                                                      \
00015        }                                                             \
00016      r; })
00017 
00018 #include "../pselect.c"