summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/poll.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/poll.c
parentaabaf1b78632327a9549b6901074565f4c54d95b (diff)
psm updates: add __libc symbols for signal cancellation
Diffstat (limited to 'libc/sysdeps/linux/common/poll.c')
-rw-r--r--libc/sysdeps/linux/common/poll.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/libc/sysdeps/linux/common/poll.c b/libc/sysdeps/linux/common/poll.c
index 00fd70816..2512dc4da 100644
--- a/libc/sysdeps/linux/common/poll.c
+++ b/libc/sysdeps/linux/common/poll.c
@@ -20,10 +20,11 @@
#include "syscalls.h"
#include <sys/poll.h>
-libc_hidden_proto(poll)
+extern __typeof(poll) __libc_poll;
#ifdef __NR_poll
-_syscall3(int, poll, struct pollfd *, fds,
+# define __NR___libc_poll __NR_poll
+_syscall3(int, __libc_poll, struct pollfd *, fds,
unsigned long int, nfds, int, timeout);
#else
@@ -48,7 +49,7 @@ libc_hidden_proto(select)
Returns the number of file descriptors with events, zero if timed out,
or -1 for errors. */
-int poll(struct pollfd *fds, nfds_t nfds, int timeout)
+int __libc_poll(struct pollfd *fds, nfds_t nfds, int timeout)
{
static int max_fd_size;
struct timeval tv;
@@ -207,4 +208,6 @@ int poll(struct pollfd *fds, nfds_t nfds, int timeout)
}
#endif
-libc_hidden_def(poll)
+libc_hidden_proto(poll)
+weak_alias(__libc_poll,poll)
+libc_hidden_weak(poll)