summaryrefslogtreecommitdiffstats
path: root/libc/sysdeps/linux/common/select.c
diff options
context:
space:
mode:
author"Steven J. Hill" <sjhill@realitydiluted.com>2005-12-10 18:15:33 +0000
committer"Steven J. Hill" <sjhill@realitydiluted.com>2005-12-10 18:15:33 +0000
commit76924b4458605d292202ab87be64853dba1c0a70 (patch)
tree995ac0717ba38e2c74a832b1f9d7c4e0c94ce513 /libc/sysdeps/linux/common/select.c
parentec92d6fe7624b49e266c5e57e7d12c4512dd290b (diff)
downloaduClibc-alpine-76924b4458605d292202ab87be64853dba1c0a70.tar.bz2
uClibc-alpine-76924b4458605d292202ab87be64853dba1c0a70.tar.xz
Finish up changes for sigaction and NPTL.
Diffstat (limited to 'libc/sysdeps/linux/common/select.c')
-rw-r--r--libc/sysdeps/linux/common/select.c19
1 files changed, 5 insertions, 14 deletions
diff --git a/libc/sysdeps/linux/common/select.c b/libc/sysdeps/linux/common/select.c
index 2c35c32fc..36f88229a 100644
--- a/libc/sysdeps/linux/common/select.c
+++ b/libc/sysdeps/linux/common/select.c
@@ -11,19 +11,10 @@
#include <unistd.h>
#ifdef __NR__newselect
-
-extern int _newselect(int n, fd_set * readfds, fd_set * writefds,
- fd_set * exceptfds, struct timeval *timeout);
-_syscall5(int, _newselect, int, n, fd_set *, readfds, fd_set *, writefds,
- fd_set *, exceptfds, struct timeval *, timeout);
-weak_alias(_newselect, select);
-
+#define __NR___select __NR__newselect
#else
-
-//Used as a fallback if _newselect isn't available...
-extern int select(int n, fd_set * readfds, fd_set * writefds,
- fd_set * exceptfds, struct timeval *timeout);
-_syscall5(int, select, int, n, fd_set *, readfds, fd_set *, writefds,
- fd_set *, exceptfds, struct timeval *, timeout);
-
+#define __NR___select __NR_select
#endif
+attribute_hidden _syscall5(int, __select, int, n, fd_set *, readfds, fd_set *, writefds,
+ fd_set *, exceptfds, struct timeval *, timeout);
+strong_alias(__select,select)