summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2000-10-26 09:23:38 +0000
committerEric Andersen <andersen@codepoet.org>2000-10-26 09:23:38 +0000
commit7dafd3b5205e8679f0c327f80c1f2dd6787e7d5e (patch)
tree1b6e18c80ac35f6f2abae879e8b8f369e4eef4eb /libc/sysdeps/linux/common
parentd3992e48d793dbc847ada37fc24df5ddac2f7c66 (diff)
Add in a fork test. Fix select so it works.
Diffstat (limited to 'libc/sysdeps/linux/common')
-rw-r--r--libc/sysdeps/linux/common/syscalls.c16
1 files changed, 11 insertions, 5 deletions
diff --git a/libc/sysdeps/linux/common/syscalls.c b/libc/sysdeps/linux/common/syscalls.c
index c1b119336..ea8ef0186 100644
--- a/libc/sysdeps/linux/common/syscalls.c
+++ b/libc/sysdeps/linux/common/syscalls.c
@@ -515,11 +515,6 @@ _syscall2(int,setgroups,size_t,size,const gid_t *,list);
#endif
//#define __NR_select 82
-#ifdef L_select
-#include <unistd.h>
-_syscall5(int,select,int, n, fd_set *,readfds, fd_set *,writefds,
- fd_set *,exceptfds, struct timeval *,timeout);
-#endif
//#define __NR_symlink 83
#ifdef L_symlink
@@ -840,6 +835,17 @@ SYSCALL__ (getdents, 3)
#endif
//#define __NR__newselect 142
+#ifdef L__newselect
+#include <unistd.h>
+_syscall5(int,_newselect,int, n, fd_set *,readfds, fd_set *,writefds,
+ fd_set *,exceptfds, struct timeval *,timeout);
+
+int select(int n, fd_set *readfds, fd_set *writefds, fd_set *exceptfds,
+ struct timeval *timeout)
+{
+ return(_newselect(n, readfds, writefds, exceptfds, timeout));
+}
+#endif
//#define __NR_flock 143
#ifdef L_flock