diff options
| author | Ulrich Drepper <drepper@redhat.com> | 2004-03-23 23:31:47 +0000 |
|---|---|---|
| committer | Ulrich Drepper <drepper@redhat.com> | 2004-03-23 23:31:47 +0000 |
| commit | 240d71125afb33eb78f38686e450a4f600fa73c9 (patch) | |
| tree | 9c05aea63e500c10d106be036a5702f93d65eab6 | |
| parent | a01905d02002a321119b7fbbdd03ce8139d5a399 (diff) | |
| download | glibc-240d71125afb33eb78f38686e450a4f600fa73c9.tar.xz glibc-240d71125afb33eb78f38686e450a4f600fa73c9.zip | |
(__NR_pread, __NR_pwrite): Define to __NR_p{read,write}64 if not defined.
| -rw-r--r-- | sysdeps/unix/sysv/linux/alpha/sysdep.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/alpha/sysdep.h b/sysdeps/unix/sysv/linux/alpha/sysdep.h index 3c0988abd3..c3de78f4bb 100644 --- a/sysdeps/unix/sysv/linux/alpha/sysdep.h +++ b/sysdeps/unix/sysv/linux/alpha/sysdep.h @@ -1,4 +1,4 @@ -/* Copyright (C) 1992, 1993, 1995, 1996, 1997, 2002, 2003 +/* Copyright (C) 1992, 1993, 1995, 1996, 1997, 2002, 2003, 2004 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper, <drepper@gnu.ai.mit.edu>, August 1995. @@ -65,6 +65,16 @@ # define __NR_semtimedop 423 #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 + /* * In order to get the hidden arguments for rt_sigaction set up * properly, we need to call the assembly version. This shouldn't |
