From 96b91643c34a145a2e565247ca7594c1f77fb011 Mon Sep 17 00:00:00 2001 From: Manuel Novoa III Date: Mon, 25 Jun 2001 20:26:29 +0000 Subject: Remove simulated d_type support for getdents and the dirent struct, and use the straight getdents syscall instead of the wrapper (which leaked memory). --- libc/sysdeps/linux/common/syscalls.c | 5 ++--- 1 file changed, 2 insertions(+), 3 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 e0aa4a91e..0b82f4973 100644 --- a/libc/sysdeps/linux/common/syscalls.c +++ b/libc/sysdeps/linux/common/syscalls.c @@ -984,11 +984,10 @@ loff_t llseek(int fd, loff_t offset, int whence) #endif //#define __NR_getdents 141 -#ifdef L__getdents -#define __NR__getdents __NR_getdents +#ifdef L_getdents #include #include -_syscall3(int, _getdents, int, fd, char *, dirp, size_t, count); +_syscall3(int, getdents, int, fd, char *, dirp, size_t, count); #endif //#define __NR__newselect 142 -- cgit v1.2.3