summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/syscalls.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2000-10-30 08:25:20 +0000
committerEric Andersen <andersen@codepoet.org>2000-10-30 08:25:20 +0000
commit79a09cdaaec661c701080108a73f93d5ca71a006 (patch)
tree72e22a39992bab1c0eaebbecf1a52ea06da47c44 /libc/sysdeps/linux/common/syscalls.c
parent31a8f5cb0e06061181d4a6ed8b154abec561f981 (diff)
First pass at fixing readdir by adding a getdents wrapper...
Diffstat (limited to 'libc/sysdeps/linux/common/syscalls.c')
-rw-r--r--libc/sysdeps/linux/common/syscalls.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/libc/sysdeps/linux/common/syscalls.c b/libc/sysdeps/linux/common/syscalls.c
index f83932458..c7d4343be 100644
--- a/libc/sysdeps/linux/common/syscalls.c
+++ b/libc/sysdeps/linux/common/syscalls.c
@@ -867,7 +867,7 @@ SYSCALL__(setfsuid, 1)
#endif
//#define __NR__llseek 140
#ifdef L__llseek
- _syscall5(int, _llseek, int, fd, off_t, hoff, off_t, loff, loff_t *, res,
+_syscall5(int, _llseek, int, fd, off_t, hoff, off_t, loff, loff_t *, res,
int, whence);
loff_t llseek(int fd, loff_t offset, int whence)
@@ -883,16 +883,17 @@ loff_t llseek(int fd, loff_t offset, int whence)
#endif
//#define __NR_getdents 141
-#ifdef L_getdents
+#ifdef L__getdents
+#define __NR__getdents __NR_getdents
#include <unistd.h>
#include <dirent.h>
-_syscall3(int, getdents, unsigned int, fd, struct dirent *, dirp, unsigned int, count);
+_syscall3(int, _getdents, int, fd, char *, dirp, size_t, count);
#endif
//#define __NR__newselect 142
#ifdef L__newselect
#include <unistd.h>
- _syscall5(int, _newselect, int, n, fd_set *, readfds, fd_set *, writefds,
+_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,