blob: 51a454cb9616ac6237e5306e1471ec6a835f6ecf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
--- src/syscall.h
+++ src/syscall.h
@@ -1,6 +1,7 @@
#ifndef AIO_SYSCALL
#define AIO_SYSCALL
+#include <errno.h>
#include <asm/unistd.h>
#undef __syscall_return
#ifndef __powerpc__
@@ -19,25 +20,50 @@
#ifndef __NR_io_setup
#ifdef __s390__
#define __NR_io_setup 243
-#define __NR_io_destroy 244
-#define __NR_io_getevents 245
-#define __NR_io_submit 246
-#define __NR_io_cancel 247
#endif
#ifdef __i386__
#define __NR_io_setup 245
-#define __NR_io_destroy 246
-#define __NR_io_getevents 247
-#define __NR_io_submit 248
-#define __NR_io_cancel 249
#endif
#ifdef __x86_64__
#define __NR_io_setup 206
-#define __NR_io_destroy 207
-#define __NR_io_getevents 208
-#define __NR_io_submit 209
-#define __NR_io_cancel 210
#endif
+#ifdef __alpha__
+#define __NR_io_setup 398
+#endif
+#ifdef __hppa__
+#define __NR_io_setup 215
+#endif
+#ifdef __sh__
+#define __NR_io_setup 245
+#endif
+#ifdef __arm__
+#define __NR_io_setup 0x900000+243
+#endif
+#ifdef __ia64__
+#define __NR_io_setup 1238
+#endif
+#ifdef __m68k__
+#define __NR_io_setup 241
+#endif
+#ifdef __mips__
+#define __NR_io_setup 4000+241
+#endif
+#ifdef __powerpc__
+#define __NR_io_setup 227
+#endif
+#ifdef __sparc__
+#define __NR_io_setup 268
+#define __NR_io_destroy 269
+#define __NR_io_submit 270
+#define __NR_io_cancel 271
+#define __NR_io_getevents 272
+#else
+/* only sparc doesnt have this order */
+#define __NR_io_destroy __NR_io_setup + 1
+#define __NR_io_getevents __NR_io_setup + 2
+#define __NR_io_submit __NR_io_setup + 3
+#define __NR_io_cancel __NR_io_setup + 4
+#endif
#endif
#define __NR_sys_io_setup __NR_io_setup
|