From: Ulrich Drepper Date: Thu, 19 Jan 2006 07:50:20 +0000 (+0000) Subject: (__pselect): No need to enable async cancellation here. This is done in select. X-Git-Tag: upstream/2.20~8861 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b59b200e947db4de77d49a7dd43e09240c1dcbc6;p=platform%2Fupstream%2Flinaro-glibc.git (__pselect): No need to enable async cancellation here. This is done in select. --- diff --git a/misc/pselect.c b/misc/pselect.c index 43b371c..04e8a77 100644 --- a/misc/pselect.c +++ b/misc/pselect.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1996,1997,1998,2001,2002,2003 Free Software Foundation, Inc. +/* Copyright (C) 1996-1998,2001,2002,2003,2006 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper , 1996. @@ -22,7 +22,7 @@ #include /* For NULL. */ #include #include -#include + /* Check the first NFDS descriptors each in READFDS (if not NULL) for read readiness, in WRITEFDS (if not NULL) for write readiness, and in EXCEPTFDS @@ -31,8 +31,8 @@ SIGMASK for this call. Returns the number of ready descriptors, or -1 for errors. */ static int -do_pselect (int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, - const struct timespec *timeout, const sigset_t *sigmask) +__pselect (int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, + const struct timespec *timeout, const sigset_t *sigmask) { struct timeval tval; int retval; @@ -61,28 +61,5 @@ do_pselect (int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, return retval; } - - -int -__pselect (nfds, readfds, writefds, exceptfds, timeout, sigmask) - int nfds; - fd_set *readfds; - fd_set *writefds; - fd_set *exceptfds; - const struct timespec *timeout; - const sigset_t *sigmask; -{ - if (SINGLE_THREAD_P) - return do_pselect (nfds, readfds, writefds, exceptfds, timeout, sigmask); - - int oldtype = LIBC_CANCEL_ASYNC (); - - int result = do_pselect (nfds, readfds, writefds, exceptfds, timeout, - sigmask); - - LIBC_CANCEL_RESET (oldtype); - - return result; -} weak_alias (__pselect, pselect) strong_alias (__pselect, __libc_pselect)