Browse Source

poll.c: do not inline syscall

While there, remove libc_hidden_protos

Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger 13 năm trước cách đây
mục cha
commit
6b3453a651
1 tập tin đã thay đổi với 2 bổ sung7 xóa
  1. 2 7
      libc/sysdeps/linux/common/poll.c

+ 2 - 7
libc/sysdeps/linux/common/poll.c

@@ -27,13 +27,11 @@
 #define SINGLE_THREAD_P 1
 #endif
 
-libc_hidden_proto(poll)
-
 #if defined __ASSUME_POLL_SYSCALL && defined __NR_poll
 
 #define __NR___syscall_poll __NR_poll
-static inline _syscall3(int, __syscall_poll, struct pollfd *, fds,
-			unsigned long int, nfds, int, timeout);
+static _syscall3(int, __syscall_poll, struct pollfd *, fds,
+		 unsigned long int, nfds, int, timeout);
 
 int poll(struct pollfd *fds, nfds_t nfds, int timeout)
 {
@@ -57,9 +55,6 @@ int poll(struct pollfd *fds, nfds_t nfds, int timeout)
 #include <sys/param.h>
 #include <unistd.h>
 
-libc_hidden_proto(getdtablesize)
-libc_hidden_proto(select)
-
 /* uClinux 2.0 doesn't have poll, emulate it using select */
 
 /* Poll the file descriptors described by the NFDS structures starting at