[PATCH] ppc64: avoid 32bit only syscalls in unistd.h
Anton Blanchard
anton at samba.org
Sun Nov 14 15:13:40 EST 2004
Steve Munroe points out that ppc64 glibc builds stubs for a number
of 32bit only syscalls. While none of them exist in the kernel syscall
table, their existence in unistd.h means glibc still tries to use them
then falls back onto the 64bit safe versions.
Signed-off-by: Anton Blanchard <anton at samba.org>
===== include/asm-ppc64/unistd.h 1.35 vs edited =====
--- 1.35/include/asm-ppc64/unistd.h 2004-10-22 19:27:40 +10:00
+++ edited/include/asm-ppc64/unistd.h 2004-11-12 05:25:02 +11:00
@@ -202,19 +202,19 @@
#define __NR_vfork 189
#define __NR_ugetrlimit 190 /* SuS compliant getrlimit */
#define __NR_readahead 191
-#define __NR_mmap2 192
-#define __NR_truncate64 193
-#define __NR_ftruncate64 194
-#define __NR_stat64 195
-#define __NR_lstat64 196
-#define __NR_fstat64 197
+/* #define __NR_mmap2 192 32bit only */
+/* #define __NR_truncate64 193 32bit only */
+/* #define __NR_ftruncate64 194 32bit only */
+/* #define __NR_stat64 195 32bit only */
+/* #define __NR_lstat64 196 32bit only */
+/* #define __NR_fstat64 197 32bit only */
#define __NR_pciconfig_read 198
#define __NR_pciconfig_write 199
#define __NR_pciconfig_iobase 200
#define __NR_multiplexer 201
#define __NR_getdents64 202
#define __NR_pivot_root 203
-#define __NR_fcntl64 204
+/* #define __NR_fcntl64 204 32bit only */
#define __NR_madvise 205
#define __NR_mincore 206
#define __NR_gettid 207
@@ -236,7 +236,7 @@
#define __NR_sched_getaffinity 223
/* 224 currently unused */
#define __NR_tuxcall 225
-#define __NR_sendfile64 226
+/* #define __NR_sendfile64 226 32bit only */
#define __NR_io_setup 227
#define __NR_io_destroy 228
#define __NR_io_getevents 229
@@ -264,7 +264,7 @@
#define __NR_utimes 251
#define __NR_statfs64 252
#define __NR_fstatfs64 253
-#define __NR_fadvise64_64 254
+/* #define __NR_fadvise64_64 254 32bit only */
#define __NR_rtas 255
/* Number 256 is reserved for sys_debug_setcontext */
/* Number 257 is reserved for vserver */
More information about the Linuxppc64-dev
mailing list