summaryrefslogtreecommitdiffstats
path: root/libc/sysdeps/linux/common/poll.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/poll.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/poll.c')
-rw-r--r--libc/sysdeps/linux/common/poll.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/libc/sysdeps/linux/common/poll.c b/libc/sysdeps/linux/common/poll.c
index f021e0269..c957f1edf 100644
--- a/libc/sysdeps/linux/common/poll.c
+++ b/libc/sysdeps/linux/common/poll.c
@@ -18,13 +18,14 @@
02111-1307 USA. */
#define getdtablesize __getdtablesize
+#define select __select
#include "syscalls.h"
#include <sys/poll.h>
#ifdef __NR_poll
-
-_syscall3(int, poll, struct pollfd *, fds,
+#define __NR___poll __NR_poll
+attribute_hidden _syscall3(int, __poll, struct pollfd *, fds,
unsigned long int, nfds, int, timeout);
#else
@@ -44,7 +45,7 @@ _syscall3(int, poll, struct pollfd *, fds,
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 attribute_hidden __poll(struct pollfd *fds, nfds_t nfds, int timeout)
{
static int max_fd_size;
struct timeval tv;
@@ -203,4 +204,4 @@ int poll(struct pollfd *fds, nfds_t nfds, int timeout)
}
#endif
-
+strong_alias(__poll,poll)