From 1c120cb8e7eddf810ae3e997eebd689506c98307 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Fri, 22 Nov 2002 01:27:01 +0000 Subject: [PATCH] * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_exit_group): Add it. From Ian Wienand . * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_pread): Define to __NR_pread64 if not defined. (__NR_pwrite): Define to __NR_pwrite64 if not defined. From Ian Wienand . --- ChangeLog | 10 ++++++++++ sysdeps/unix/sysv/linux/ia64/sysdep.h | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/ChangeLog b/ChangeLog index 70e2456b3e..3d4b35d557 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2002-11-21 Roland McGrath + + * sysdeps/unix/sysv/linux/ia64/syscalls.list (s_exit_group): Add it. + From Ian Wienand . + + * sysdeps/unix/sysv/linux/ia64/sysdep.h (__NR_pread): Define to + __NR_pread64 if not defined. + (__NR_pwrite): Define to __NR_pwrite64 if not defined. + From Ian Wienand . + 2002-11-21 Ulrich Drepper * elf/Makefile (tests): Don't run test-arrayX tests for now. diff --git a/sysdeps/unix/sysv/linux/ia64/sysdep.h b/sysdeps/unix/sysv/linux/ia64/sysdep.h index 17f537d475..57f7a7a40b 100644 --- a/sysdeps/unix/sysv/linux/ia64/sysdep.h +++ b/sysdeps/unix/sysv/linux/ia64/sysdep.h @@ -32,6 +32,16 @@ # define SYS_ify(syscall_name) __NR_/**/syscall_name #endif +/* 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 + #ifdef __ASSEMBLER__ #undef CALL_MCOUNT -- 2.43.5