From 79a09cdaaec661c701080108a73f93d5ca71a006 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Mon, 30 Oct 2000 08:25:20 +0000 Subject: First pass at fixing readdir by adding a getdents wrapper... --- libc/sysdeps/linux/common/syscalls.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'libc/sysdeps/linux/common/syscalls.c') 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 #include -_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 - _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, -- cgit v1.2.3