Commit 60baed36 authored by Anton Blanchard's avatar Anton Blanchard Committed by Linus Torvalds

[PATCH] ppc64: avoid 32bit only syscalls in unistd.h

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: default avatarAnton Blanchard <anton@samba.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent e92ae95f
...@@ -202,19 +202,19 @@ ...@@ -202,19 +202,19 @@
#define __NR_vfork 189 #define __NR_vfork 189
#define __NR_ugetrlimit 190 /* SuS compliant getrlimit */ #define __NR_ugetrlimit 190 /* SuS compliant getrlimit */
#define __NR_readahead 191 #define __NR_readahead 191
#define __NR_mmap2 192 /* #define __NR_mmap2 192 32bit only */
#define __NR_truncate64 193 /* #define __NR_truncate64 193 32bit only */
#define __NR_ftruncate64 194 /* #define __NR_ftruncate64 194 32bit only */
#define __NR_stat64 195 /* #define __NR_stat64 195 32bit only */
#define __NR_lstat64 196 /* #define __NR_lstat64 196 32bit only */
#define __NR_fstat64 197 /* #define __NR_fstat64 197 32bit only */
#define __NR_pciconfig_read 198 #define __NR_pciconfig_read 198
#define __NR_pciconfig_write 199 #define __NR_pciconfig_write 199
#define __NR_pciconfig_iobase 200 #define __NR_pciconfig_iobase 200
#define __NR_multiplexer 201 #define __NR_multiplexer 201
#define __NR_getdents64 202 #define __NR_getdents64 202
#define __NR_pivot_root 203 #define __NR_pivot_root 203
#define __NR_fcntl64 204 /* #define __NR_fcntl64 204 32bit only */
#define __NR_madvise 205 #define __NR_madvise 205
#define __NR_mincore 206 #define __NR_mincore 206
#define __NR_gettid 207 #define __NR_gettid 207
...@@ -236,7 +236,7 @@ ...@@ -236,7 +236,7 @@
#define __NR_sched_getaffinity 223 #define __NR_sched_getaffinity 223
/* 224 currently unused */ /* 224 currently unused */
#define __NR_tuxcall 225 #define __NR_tuxcall 225
#define __NR_sendfile64 226 /* #define __NR_sendfile64 226 32bit only */
#define __NR_io_setup 227 #define __NR_io_setup 227
#define __NR_io_destroy 228 #define __NR_io_destroy 228
#define __NR_io_getevents 229 #define __NR_io_getevents 229
...@@ -264,7 +264,7 @@ ...@@ -264,7 +264,7 @@
#define __NR_utimes 251 #define __NR_utimes 251
#define __NR_statfs64 252 #define __NR_statfs64 252
#define __NR_fstatfs64 253 #define __NR_fstatfs64 253
#define __NR_fadvise64_64 254 /* #define __NR_fadvise64_64 254 32bit only */
#define __NR_rtas 255 #define __NR_rtas 255
/* Number 256 is reserved for sys_debug_setcontext */ /* Number 256 is reserved for sys_debug_setcontext */
/* Number 257 is reserved for vserver */ /* Number 257 is reserved for vserver */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment