summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2005-12-09 15:43:30 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2005-12-09 15:43:30 +0000
commit4f16d2e03a6cc2415a0eefcf50410d1943319543 (patch)
tree8d3132396738369409812b09668e5f39b3459096 /libc/sysdeps/linux
parent06f8a796e2d4d88cfd89b21a2b7b195c3612ba81 (diff)
Implement hidden poll, switch user to hidden *printf/*scanf/poll
Diffstat (limited to 'libc/sysdeps/linux')
-rw-r--r--libc/sysdeps/linux/arm/ioperm.c2
-rw-r--r--libc/sysdeps/linux/common/poll.c8
2 files changed, 6 insertions, 4 deletions
diff --git a/libc/sysdeps/linux/arm/ioperm.c b/libc/sysdeps/linux/arm/ioperm.c
index 15162f916..837de8adf 100644
--- a/libc/sysdeps/linux/arm/ioperm.c
+++ b/libc/sysdeps/linux/arm/ioperm.c
@@ -35,6 +35,8 @@
#define readlink __readlink
#define mmap __mmap
+#define sscanf __sscanf
+#define fscanf __fscanf
#include <errno.h>
#include <fcntl.h>
diff --git a/libc/sysdeps/linux/common/poll.c b/libc/sysdeps/linux/common/poll.c
index bbe30eed7..c957f1edf 100644
--- a/libc/sysdeps/linux/common/poll.c
+++ b/libc/sysdeps/linux/common/poll.c
@@ -24,8 +24,8 @@
#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
@@ -45,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;
@@ -204,4 +204,4 @@ int poll(struct pollfd *fds, nfds_t nfds, int timeout)
}
#endif
-
+strong_alias(__poll,poll)