aboutsummaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-09-28 04:15:00 +0000
committerRoland McGrath <roland@gnu.org>2002-09-28 04:15:00 +0000
commit3899afcb760906f8d343a3e50728fa31f338fe20 (patch)
tree970accff798fc81452a4b6da0f50d2f0f2ec4365 /sysdeps
parent6546c95f673aa8456f82a71b82d687950dd2e3b0 (diff)
downloadglibc-3899afcb760906f8d343a3e50728fa31f338fe20.tar
glibc-3899afcb760906f8d343a3e50728fa31f338fe20.tar.gz
glibc-3899afcb760906f8d343a3e50728fa31f338fe20.tar.bz2
glibc-3899afcb760906f8d343a3e50728fa31f338fe20.zip
2002-09-27 Roland McGrath <roland@redhat.com>
* sysdeps/unix/sysv/linux/x86_64/sysdep.h (__NR_pread, __NR_pwrite): Define these to __NR_pread64, __NR_pwrite64 if not defined.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/unix/sysv/linux/x86_64/sysdep.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/x86_64/sysdep.h b/sysdeps/unix/sysv/linux/x86_64/sysdep.h
index 33d82c2a81..eda905fdb5 100644
--- a/sysdeps/unix/sysv/linux/x86_64/sysdep.h
+++ b/sysdeps/unix/sysv/linux/x86_64/sysdep.h
@@ -31,6 +31,16 @@
#undef SYS_ify
#define SYS_ify(syscall_name) __NR_##syscall_name
+/* This is a kludge to make syscalls.list find these under the names
+ pread and pwrite, since some kernel headers define those names
+ and some define the *64 names for the same system calls. */
+#if !defined __NR_pread && defined __NR_pread64
+# define __NR_pread __NR_pread64
+#endif
+#if !defined __NR_pwrite && defined __NR_pwrite64
+# define __NR_pwrite __NR_pwrite64
+#endif
+
/* ELF-like local names start with `.L'. */
#undef L
#define L(name) .L##name