summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-02-26 02:51:03 +0000
committerEric Andersen <andersen@codepoet.org>2002-02-26 02:51:03 +0000
commit6793e73e905d85566c87a667f360c6fa3bd2bee0 (patch)
tree12058ab6c5627071aebb315e110a5ecd596403e6 /libc
parent3a99d545cefcbae415bda25e18317014049e1b9a (diff)
Enable pread/pwrite
Diffstat (limited to 'libc')
-rw-r--r--libc/sysdeps/linux/common/syscalls.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/libc/sysdeps/linux/common/syscalls.c b/libc/sysdeps/linux/common/syscalls.c
index 6ec1eb11f..bfb7c6771 100644
--- a/libc/sysdeps/linux/common/syscalls.c
+++ b/libc/sysdeps/linux/common/syscalls.c
@@ -1328,11 +1328,6 @@ int sigsuspend (const sigset_t *mask)
#endif
//#define __NR_pread 180
-#if 0
-/* If you enable these, be sure to also enable the cancelable version
- * in uClibc/libpthread/linuxthreads/wrapsyscall.c so this can be
- * overriden.
- */
#ifdef L___libc_pread
#define _XOPEN_SOURCE 500
#include <unistd.h>
@@ -1340,10 +1335,8 @@ int sigsuspend (const sigset_t *mask)
_syscall4(ssize_t, __libc_pread, int, fd, void *, buf, size_t, count, off_t, offset);
weak_alias (__libc_pread, pread)
#endif
-#endif
//#define __NR_pwrite 181
-#if 0
#ifdef L___libc_pwrite
#define _XOPEN_SOURCE 500
#include <unistd.h>
@@ -1351,7 +1344,6 @@ weak_alias (__libc_pread, pread)
_syscall4(ssize_t, __libc_pwrite, int, fd, const void *, buf, size_t, count, off_t, offset);
weak_alias (__libc_pwrite, pwrite)
#endif
-#endif
//#define __NR_chown 182
#ifdef L_chown