From b4a09d83d1568672b94fe91b678194409983b824 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 23 Aug 2006 23:25:34 +0000 Subject: psm updates: add __libc symbols for signal cancellation --- libc/sysdeps/linux/common/poll.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'libc/sysdeps/linux/common/poll.c') 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 -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) -- cgit v1.2.3