git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git]
/
include
/
asm-i386
/
unistd.h
diff --git
a/include/asm-i386/unistd.h
b/include/asm-i386/unistd.h
index
94fff76
..
dc81a55
100644
(file)
--- a/
include/asm-i386/unistd.h
+++ b/
include/asm-i386/unistd.h
@@
-288,7
+288,7
@@
#define __NR_mq_timedreceive (__NR_mq_open+3)
#define __NR_mq_notify (__NR_mq_open+4)
#define __NR_mq_getsetattr (__NR_mq_open+5)
#define __NR_mq_timedreceive (__NR_mq_open+3)
#define __NR_mq_notify (__NR_mq_open+4)
#define __NR_mq_getsetattr (__NR_mq_open+5)
-#define __NR_
kexec_load
283
+#define __NR_
sys_kexec_load
283
#define __NR_waitid 284
/* #define __NR_sys_setaltroot 285 */
#define __NR_add_key 286
#define __NR_waitid 284
/* #define __NR_sys_setaltroot 285 */
#define __NR_add_key 286
@@
-316,16
+316,9
@@
#define __NR_pselect6 308
#define __NR_ppoll 309
#define __NR_unshare 310
#define __NR_pselect6 308
#define __NR_ppoll 309
#define __NR_unshare 310
-#define __NR_set_robust_list 311
-#define __NR_get_robust_list 312
-#define __NR_splice 313
-#define __NR_sync_file_range 314
-#define __NR_tee 315
-#define __NR_vmsplice 316
-#define NR_syscalls 31
7
+#define NR_syscalls 31
1
-#ifndef __KERNEL_SYSCALLS_NO_ERRNO__
/*
* user-visible error numbers are in the range -1 - -128: see
* <asm-i386/errno.h>
/*
* user-visible error numbers are in the range -1 - -128: see
* <asm-i386/errno.h>
@@
-339,10
+332,6
@@
do { \
return (type) (res); \
} while (0)
return (type) (res); \
} while (0)
-#else
-# define __syscall_return(type, res) return (type) (res)
-#endif
-
/* XXX - _foo needs to be __foo, while __NR_bar could be _NR_bar. */
#define _syscall0(type,name) \
type name(void) \
/* XXX - _foo needs to be __foo, while __NR_bar could be _NR_bar. */
#define _syscall0(type,name) \
type name(void) \
@@
-358,9
+347,9
@@
__syscall_return(type,__res); \
type name(type1 arg1) \
{ \
long __res; \
type name(type1 arg1) \
{ \
long __res; \
-__asm__ volatile ("
push %%ebx ; movl %2,%%ebx ; int $0x80 ; pop %%ebx
" \
+__asm__ volatile ("
int $0x80
" \
: "=a" (__res) \
: "=a" (__res) \
- : "0" (__NR_##name),"
ri
" ((long)(arg1)) : "memory"); \
+ : "0" (__NR_##name),"
b
" ((long)(arg1)) : "memory"); \
__syscall_return(type,__res); \
}
__syscall_return(type,__res); \
}
@@
-368,10
+357,9
@@
__syscall_return(type,__res); \
type name(type1 arg1,type2 arg2) \
{ \
long __res; \
type name(type1 arg1,type2 arg2) \
{ \
long __res; \
-__asm__ volatile ("
push %%ebx ; movl %2,%%ebx ; int $0x80 ; pop %%ebx
" \
+__asm__ volatile ("
int $0x80
" \
: "=a" (__res) \
: "=a" (__res) \
- : "0" (__NR_##name),"ri" ((long)(arg1)),"c" ((long)(arg2)) \
- : "memory"); \
+ : "0" (__NR_##name),"b" ((long)(arg1)),"c" ((long)(arg2)) : "memory"); \
__syscall_return(type,__res); \
}
__syscall_return(type,__res); \
}
@@
-379,9
+367,9
@@
__syscall_return(type,__res); \
type name(type1 arg1,type2 arg2,type3 arg3) \
{ \
long __res; \
type name(type1 arg1,type2 arg2,type3 arg3) \
{ \
long __res; \
-__asm__ volatile ("
push %%ebx ; movl %2,%%ebx ; int $0x80 ; pop %%ebx
" \
+__asm__ volatile ("
int $0x80
" \
: "=a" (__res) \
: "=a" (__res) \
- : "0" (__NR_##name),"
ri
" ((long)(arg1)),"c" ((long)(arg2)), \
+ : "0" (__NR_##name),"
b
" ((long)(arg1)),"c" ((long)(arg2)), \
"d" ((long)(arg3)) : "memory"); \
__syscall_return(type,__res); \
}
"d" ((long)(arg3)) : "memory"); \
__syscall_return(type,__res); \
}
@@
-390,9
+378,9
@@
__syscall_return(type,__res); \
type name (type1 arg1, type2 arg2, type3 arg3, type4 arg4) \
{ \
long __res; \
type name (type1 arg1, type2 arg2, type3 arg3, type4 arg4) \
{ \
long __res; \
-__asm__ volatile ("
push %%ebx ; movl %2,%%ebx ; int $0x80 ; pop %%ebx
" \
+__asm__ volatile ("
int $0x80
" \
: "=a" (__res) \
: "=a" (__res) \
- : "0" (__NR_##name),"
ri
" ((long)(arg1)),"c" ((long)(arg2)), \
+ : "0" (__NR_##name),"
b
" ((long)(arg1)),"c" ((long)(arg2)), \
"d" ((long)(arg3)),"S" ((long)(arg4)) : "memory"); \
__syscall_return(type,__res); \
}
"d" ((long)(arg3)),"S" ((long)(arg4)) : "memory"); \
__syscall_return(type,__res); \
}
@@
-402,12
+390,10
@@
__syscall_return(type,__res); \
type name (type1 arg1,type2 arg2,type3 arg3,type4 arg4,type5 arg5) \
{ \
long __res; \
type name (type1 arg1,type2 arg2,type3 arg3,type4 arg4,type5 arg5) \
{ \
long __res; \
-__asm__ volatile ("push %%ebx ; movl %2,%%ebx ; movl %1,%%eax ; " \
- "int $0x80 ; pop %%ebx" \
+__asm__ volatile ("int $0x80" \
: "=a" (__res) \
: "=a" (__res) \
- : "i" (__NR_##name),"ri" ((long)(arg1)),"c" ((long)(arg2)), \
- "d" ((long)(arg3)),"S" ((long)(arg4)),"D" ((long)(arg5)) \
- : "memory"); \
+ : "0" (__NR_##name),"b" ((long)(arg1)),"c" ((long)(arg2)), \
+ "d" ((long)(arg3)),"S" ((long)(arg4)),"D" ((long)(arg5)) : "memory"); \
__syscall_return(type,__res); \
}
__syscall_return(type,__res); \
}
@@
-416,14
+402,11
@@
__syscall_return(type,__res); \
type name (type1 arg1,type2 arg2,type3 arg3,type4 arg4,type5 arg5,type6 arg6) \
{ \
long __res; \
type name (type1 arg1,type2 arg2,type3 arg3,type4 arg4,type5 arg5,type6 arg6) \
{ \
long __res; \
- struct { long __a1; long __a6; } __s = { (long)arg1, (long)arg6 }; \
-__asm__ volatile ("push %%ebp ; push %%ebx ; movl 4(%2),%%ebp ; " \
- "movl 0(%2),%%ebx ; movl %1,%%eax ; int $0x80 ; " \
- "pop %%ebx ; pop %%ebp" \
+__asm__ volatile ("push %%ebp ; movl %%eax,%%ebp ; movl %1,%%eax ; int $0x80 ; pop %%ebp" \
: "=a" (__res) \
: "=a" (__res) \
- : "i" (__NR_##name),"
0" ((long)(&__s
)),"c" ((long)(arg2)), \
- "d" ((long)(arg3)),"S" ((long)(arg4)),"D" ((long)(arg5)) \
- : "memory"); \
+ : "i" (__NR_##name),"
b" ((long)(arg1
)),"c" ((long)(arg2)), \
+ "d" ((long)(arg3)),"S" ((long)(arg4)),"D" ((long)(arg5))
,
\
+
"0" ((long)(arg6))
: "memory"); \
__syscall_return(type,__res); \
}
__syscall_return(type,__res); \
}