This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
kernels appended "64" to __NR_pread and __NR_pwrite
- From: "Poburinnaia, Nina" <nina dot poburinnaia at intel dot com>
- To: <gcc-help at gcc dot gnu dot org>
- Date: Tue, 1 Mar 2005 15:40:33 +0300
- Subject: kernels appended "64" to __NR_pread and __NR_pwrite
GCC team,
Could you please inform: did the kernels (2.6.x) append "64" to
__NR_pread and __NR_pwrite on Linux ia32? Is the adding "64" a planned
change? Or maybe a temporal change? Or maybe a bug and it will be fixed?
Thank you very much.
Details:
On machine Linux version 2.6.5-7.111.5lxset2-smp (gcc version 3.3.3
(SuSE Linux)) i686:
> cat /usr/include/bits/syscall.h |grep _pread
#define SYS_pread64 __NR_pread64
> cat /usr/include/bits/syscall.h |grep _pwrite
#define SYS_pwrite64 __NR_pwrite64
On machine Linux version 2.4.21-9.0.1.ELsmp (gcc version 3.2.3 20030502
(Red Hat Linux 3.2.3-26)) i686:
$ cat /usr/include/bits/syscall.h |grep _pread
#define SYS_pread __NR_pread
$ cat /usr/include/bits/syscall.h |grep _pwrite
#define SYS_pwrite __NR_pwrite