summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/syscalls.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-01-28 11:06:03 +0000
committerEric Andersen <andersen@codepoet.org>2003-01-28 11:06:03 +0000
commit1e78eb0bd44caf57a234c49ff9b5193a977b6ad3 (patch)
tree5f48d2c9aeedfe8c04d989230427204f10f7e0ba /libc/sysdeps/linux/common/syscalls.c
parent46de710e624b2e578d9adf3bf44de5513867fba3 (diff)
Fix scandir64 to not free the wrong pieces of memory (which could
and did cause segfaults) by adjusting the working scandir.c to the the 64 thing. Fix up potential for mismatches between the libc and kernel dirent structures, which could also cause ugly problems. -Erik
Diffstat (limited to 'libc/sysdeps/linux/common/syscalls.c')
-rw-r--r--libc/sysdeps/linux/common/syscalls.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/libc/sysdeps/linux/common/syscalls.c b/libc/sysdeps/linux/common/syscalls.c
index 620ee96e7..2e047f129 100644
--- a/libc/sysdeps/linux/common/syscalls.c
+++ b/libc/sysdeps/linux/common/syscalls.c
@@ -1226,11 +1226,7 @@ _syscall1(int, setfsgid, gid_t, gid);
//See llseek.c
//#define __NR_getdents 141
-#ifdef L_getdents
-#include <unistd.h>
-#include <dirent.h>
-_syscall3(int, getdents, int, fd, char *, dirp, size_t, count);
-#endif
+// See getdents.c
//#define __NR__newselect 142
#ifdef L__newselect
@@ -1766,13 +1762,7 @@ _syscall2(int, pivot_root, const char *, new_root, const char *, put_old);
//#define __NR_madvise1 219 /* delete when C lib stub is removed */
//#define __NR_getdents64 220
-#ifdef L_getdents64
-#ifdef __UCLIBC_HAS_LFS__
-#include <unistd.h>
-#include <dirent.h>
-_syscall3(int, getdents64, int, fd, char *, dirp, size_t, count);
-#endif /* __UCLIBC_HAS_LFS__ */
-#endif
+// See getdents64.c
//#define __NR_fcntl64 221
#ifdef L__fcntl64