summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/syscalls.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-04-09 15:28:18 +0000
committerEric Andersen <andersen@codepoet.org>2002-04-09 15:28:18 +0000
commite1ac9ac84eccf18468fed3b5920178f77028d6cf (patch)
treef82ef66ec7363aa59108dc4a209dd44883f3d737 /libc/sysdeps/linux/common/syscalls.c
parentbc0bc39645ace0f6b4182c641295e31d58b9eba7 (diff)
Remove from syscalls.c, leave just ftruncate64.c and truncate64.c
which have implementations that works... -Erik
Diffstat (limited to 'libc/sysdeps/linux/common/syscalls.c')
-rw-r--r--libc/sysdeps/linux/common/syscalls.c28
1 files changed, 2 insertions, 26 deletions
diff --git a/libc/sysdeps/linux/common/syscalls.c b/libc/sysdeps/linux/common/syscalls.c
index 9c416fe2f..2f2d9fd59 100644
--- a/libc/sysdeps/linux/common/syscalls.c
+++ b/libc/sysdeps/linux/common/syscalls.c
@@ -1465,34 +1465,10 @@ int getrlimit (__rlimit_resource_t resource, struct rlimit *rlimits)
//#define __NR_truncate64 193
-#ifdef L_truncate64
-#ifdef __UCLIBC_HAVE_LFS__
-#include <bits/wordsize.h>
-/* Using _syscall2 to pass 64-bit arguments generally only works on 64-bit
- * systems, so we only implement truncate64/ftruncate64 in that case. Ports
- * for processors with shorter word-lengths should define their own custom
- * versions instead. */
-#if __WORDSIZE >= 64
-#include <unistd.h>
-_syscall2(int, truncate64, const char *, path, __off64_t, length);
-#endif /* __WORDSIZE >= 64 */
-#endif /* __UCLIBC_HAVE_LFS__ */
-#endif
+//See libc/sysdeps/linux/common/truncate64.c
//#define __NR_ftruncate64 194
-#ifdef L_ftruncate64
-#ifdef __UCLIBC_HAVE_LFS__
-#include <bits/wordsize.h>
-/* Using _syscall2 to pass 64-bit arguments generally only works on 64-bit
- * systems, so we only implement truncate64/ftruncate64 in that case. Ports
- * for processors with shorter word-lengths should define their own custom
- * versions instead. */
-#if __WORDSIZE >= 64
-#include <unistd.h>
-_syscall2(int, ftruncate64, int, fd, __off64_t, length);
-#endif /* __WORDSIZE >= 64 */
-#endif /* __UCLIBC_HAVE_LFS__ */
-#endif
+//See libc/sysdeps/linux/common/ftruncate64.c
//#define __NR_stat64 195