summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/select.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-08-23 23:25:34 +0000
committerMike Frysinger <vapier@gentoo.org>2006-08-23 23:25:34 +0000
commitb4a09d83d1568672b94fe91b678194409983b824 (patch)
tree89e0bc03c51c7158e5222801600935456ac328d6 /libc/sysdeps/linux/common/select.c
parentaabaf1b78632327a9549b6901074565f4c54d95b (diff)
psm updates: add __libc symbols for signal cancellation
Diffstat (limited to 'libc/sysdeps/linux/common/select.c')
-rw-r--r--libc/sysdeps/linux/common/select.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/libc/sysdeps/linux/common/select.c b/libc/sysdeps/linux/common/select.c
index 9a50d198a..db038107a 100644
--- a/libc/sysdeps/linux/common/select.c
+++ b/libc/sysdeps/linux/common/select.c
@@ -10,12 +10,15 @@
#include "syscalls.h"
#include <sys/select.h>
-libc_hidden_proto(select)
+extern __typeof(select) __libc_select;
#ifdef __NR__newselect
-# undef __NR_select
-# define __NR_select __NR__newselect
+# define __NR___libc_select __NR__newselect
+#else
+# define __NR___libc_select __NR_select
#endif
-_syscall5(int, select, int, n, fd_set *, readfds, fd_set *, writefds,
+_syscall5(int, __libc_select, int, n, fd_set *, readfds, fd_set *, writefds,
fd_set *, exceptfds, struct timeval *, timeout);
-libc_hidden_def(select)
+libc_hidden_proto(select)
+weak_alias(__libc_select,select)
+libc_hidden_weak(select)