root / linux-user / cris / syscall_nr.h @ e69b4065
History | View | Annotate | Download (9.5 kB)
1 | e69b4065 | ths | /*
|
---|---|---|---|
2 | e69b4065 | ths | * This file contains the system call numbers, and stub macros for libc.
|
3 | e69b4065 | ths | */
|
4 | e69b4065 | ths | |
5 | e69b4065 | ths | #define TARGET_NR_restart_syscall 0 |
6 | e69b4065 | ths | #define TARGET_NR_exit 1 |
7 | e69b4065 | ths | #define TARGET_NR_fork 2 |
8 | e69b4065 | ths | #define TARGET_NR_read 3 |
9 | e69b4065 | ths | #define TARGET_NR_write 4 |
10 | e69b4065 | ths | #define TARGET_NR_open 5 |
11 | e69b4065 | ths | #define TARGET_NR_close 6 |
12 | e69b4065 | ths | #define TARGET_NR_waitpid 7 |
13 | e69b4065 | ths | #define TARGET_NR_creat 8 |
14 | e69b4065 | ths | #define TARGET_NR_link 9 |
15 | e69b4065 | ths | #define TARGET_NR_unlink 10 |
16 | e69b4065 | ths | #define TARGET_NR_execve 11 |
17 | e69b4065 | ths | #define TARGET_NR_chdir 12 |
18 | e69b4065 | ths | #define TARGET_NR_time 13 |
19 | e69b4065 | ths | #define TARGET_NR_mknod 14 |
20 | e69b4065 | ths | #define TARGET_NR_chmod 15 |
21 | e69b4065 | ths | #define TARGET_NR_lchown 16 |
22 | e69b4065 | ths | #define TARGET_NR_break 17 |
23 | e69b4065 | ths | #define TARGET_NR_oldstat 18 |
24 | e69b4065 | ths | #define TARGET_NR_lseek 19 |
25 | e69b4065 | ths | #define TARGET_NR_getpid 20 |
26 | e69b4065 | ths | #define TARGET_NR_mount 21 |
27 | e69b4065 | ths | #define TARGET_NR_umount 22 |
28 | e69b4065 | ths | #define TARGET_NR_setuid 23 |
29 | e69b4065 | ths | #define TARGET_NR_getuid 24 |
30 | e69b4065 | ths | #define TARGET_NR_stime 25 |
31 | e69b4065 | ths | #define TARGET_NR_ptrace 26 |
32 | e69b4065 | ths | #define TARGET_NR_alarm 27 |
33 | e69b4065 | ths | #define TARGET_NR_oldfstat 28 |
34 | e69b4065 | ths | #define TARGET_NR_pause 29 |
35 | e69b4065 | ths | #define TARGET_NR_utime 30 |
36 | e69b4065 | ths | #define TARGET_NR_stty 31 |
37 | e69b4065 | ths | #define TARGET_NR_gtty 32 |
38 | e69b4065 | ths | #define TARGET_NR_access 33 |
39 | e69b4065 | ths | #define TARGET_NR_nice 34 |
40 | e69b4065 | ths | #define TARGET_NR_ftime 35 |
41 | e69b4065 | ths | #define TARGET_NR_sync 36 |
42 | e69b4065 | ths | #define TARGET_NR_kill 37 |
43 | e69b4065 | ths | #define TARGET_NR_rename 38 |
44 | e69b4065 | ths | #define TARGET_NR_mkdir 39 |
45 | e69b4065 | ths | #define TARGET_NR_rmdir 40 |
46 | e69b4065 | ths | #define TARGET_NR_dup 41 |
47 | e69b4065 | ths | #define TARGET_NR_pipe 42 |
48 | e69b4065 | ths | #define TARGET_NR_times 43 |
49 | e69b4065 | ths | #define TARGET_NR_prof 44 |
50 | e69b4065 | ths | #define TARGET_NR_brk 45 |
51 | e69b4065 | ths | #define TARGET_NR_setgid 46 |
52 | e69b4065 | ths | #define TARGET_NR_getgid 47 |
53 | e69b4065 | ths | #define TARGET_NR_signal 48 |
54 | e69b4065 | ths | #define TARGET_NR_geteuid 49 |
55 | e69b4065 | ths | #define TARGET_NR_getegid 50 |
56 | e69b4065 | ths | #define TARGET_NR_acct 51 |
57 | e69b4065 | ths | #define TARGET_NR_umount2 52 |
58 | e69b4065 | ths | #define TARGET_NR_lock 53 |
59 | e69b4065 | ths | #define TARGET_NR_ioctl 54 |
60 | e69b4065 | ths | #define TARGET_NR_fcntl 55 |
61 | e69b4065 | ths | #define TARGET_NR_mpx 56 |
62 | e69b4065 | ths | #define TARGET_NR_setpgid 57 |
63 | e69b4065 | ths | #define TARGET_NR_ulimit 58 |
64 | e69b4065 | ths | #define TARGET_NR_oldolduname 59 |
65 | e69b4065 | ths | #define TARGET_NR_umask 60 |
66 | e69b4065 | ths | #define TARGET_NR_chroot 61 |
67 | e69b4065 | ths | #define TARGET_NR_ustat 62 |
68 | e69b4065 | ths | #define TARGET_NR_dup2 63 |
69 | e69b4065 | ths | #define TARGET_NR_getppid 64 |
70 | e69b4065 | ths | #define TARGET_NR_getpgrp 65 |
71 | e69b4065 | ths | #define TARGET_NR_setsid 66 |
72 | e69b4065 | ths | #define TARGET_NR_sigaction 67 |
73 | e69b4065 | ths | #define TARGET_NR_sgetmask 68 |
74 | e69b4065 | ths | #define TARGET_NR_ssetmask 69 |
75 | e69b4065 | ths | #define TARGET_NR_setreuid 70 |
76 | e69b4065 | ths | #define TARGET_NR_setregid 71 |
77 | e69b4065 | ths | #define TARGET_NR_sigsuspend 72 |
78 | e69b4065 | ths | #define TARGET_NR_sigpending 73 |
79 | e69b4065 | ths | #define TARGET_NR_sethostname 74 |
80 | e69b4065 | ths | #define TARGET_NR_setrlimit 75 |
81 | e69b4065 | ths | #define TARGET_NR_getrlimit 76 |
82 | e69b4065 | ths | #define TARGET_NR_getrusage 77 |
83 | e69b4065 | ths | #define TARGET_NR_gettimeofday 78 |
84 | e69b4065 | ths | #define TARGET_NR_settimeofday 79 |
85 | e69b4065 | ths | #define TARGET_NR_getgroups 80 |
86 | e69b4065 | ths | #define TARGET_NR_setgroups 81 |
87 | e69b4065 | ths | #define TARGET_NR_select 82 |
88 | e69b4065 | ths | #define TARGET_NR_symlink 83 |
89 | e69b4065 | ths | #define TARGET_NR_oldlstat 84 |
90 | e69b4065 | ths | #define TARGET_NR_readlink 85 |
91 | e69b4065 | ths | #define TARGET_NR_uselib 86 |
92 | e69b4065 | ths | #define TARGET_NR_swapon 87 |
93 | e69b4065 | ths | #define TARGET_NR_reboot 88 |
94 | e69b4065 | ths | #define TARGET_NR_readdir 89 |
95 | e69b4065 | ths | #define TARGET_NR_mmap 90 |
96 | e69b4065 | ths | #define TARGET_NR_munmap 91 |
97 | e69b4065 | ths | #define TARGET_NR_truncate 92 |
98 | e69b4065 | ths | #define TARGET_NR_ftruncate 93 |
99 | e69b4065 | ths | #define TARGET_NR_fchmod 94 |
100 | e69b4065 | ths | #define TARGET_NR_fchown 95 |
101 | e69b4065 | ths | #define TARGET_NR_getpriority 96 |
102 | e69b4065 | ths | #define TARGET_NR_setpriority 97 |
103 | e69b4065 | ths | #define TARGET_NR_profil 98 |
104 | e69b4065 | ths | #define TARGET_NR_statfs 99 |
105 | e69b4065 | ths | #define TARGET_NR_fstatfs 100 |
106 | e69b4065 | ths | #define TARGET_NR_ioperm 101 |
107 | e69b4065 | ths | #define TARGET_NR_socketcall 102 |
108 | e69b4065 | ths | #define TARGET_NR_syslog 103 |
109 | e69b4065 | ths | #define TARGET_NR_setitimer 104 |
110 | e69b4065 | ths | #define TARGET_NR_getitimer 105 |
111 | e69b4065 | ths | #define TARGET_NR_stat 106 |
112 | e69b4065 | ths | #define TARGET_NR_lstat 107 |
113 | e69b4065 | ths | #define TARGET_NR_fstat 108 |
114 | e69b4065 | ths | #define TARGET_NR_olduname 109 |
115 | e69b4065 | ths | #define TARGET_NR_iopl 110 |
116 | e69b4065 | ths | #define TARGET_NR_vhangup 111 |
117 | e69b4065 | ths | #define TARGET_NR_idle 112 |
118 | e69b4065 | ths | #define TARGET_NR_vm86 113 |
119 | e69b4065 | ths | #define TARGET_NR_wait4 114 |
120 | e69b4065 | ths | #define TARGET_NR_swapoff 115 |
121 | e69b4065 | ths | #define TARGET_NR_sysinfo 116 |
122 | e69b4065 | ths | #define TARGET_NR_ipc 117 |
123 | e69b4065 | ths | #define TARGET_NR_fsync 118 |
124 | e69b4065 | ths | #define TARGET_NR_sigreturn 119 |
125 | e69b4065 | ths | #define TARGET_NR_clone 120 |
126 | e69b4065 | ths | #define TARGET_NR_setdomainname 121 |
127 | e69b4065 | ths | #define TARGET_NR_uname 122 |
128 | e69b4065 | ths | #define TARGET_NR_modify_ldt 123 |
129 | e69b4065 | ths | #define TARGET_NR_adjtimex 124 |
130 | e69b4065 | ths | #define TARGET_NR_mprotect 125 |
131 | e69b4065 | ths | #define TARGET_NR_sigprocmask 126 |
132 | e69b4065 | ths | #define TARGET_NR_create_module 127 |
133 | e69b4065 | ths | #define TARGET_NR_init_module 128 |
134 | e69b4065 | ths | #define TARGET_NR_delete_module 129 |
135 | e69b4065 | ths | #define TARGET_NR_get_kernel_syms 130 |
136 | e69b4065 | ths | #define TARGET_NR_quotactl 131 |
137 | e69b4065 | ths | #define TARGET_NR_getpgid 132 |
138 | e69b4065 | ths | #define TARGET_NR_fchdir 133 |
139 | e69b4065 | ths | #define TARGET_NR_bdflush 134 |
140 | e69b4065 | ths | #define TARGET_NR_sysfs 135 |
141 | e69b4065 | ths | #define TARGET_NR_personality 136 |
142 | e69b4065 | ths | #define TARGET_NR_afs_syscall 137 /* Syscall for Andrew File System */ |
143 | e69b4065 | ths | #define TARGET_NR_setfsuid 138 |
144 | e69b4065 | ths | #define TARGET_NR_setfsgid 139 |
145 | e69b4065 | ths | #define TARGET_NR__llseek 140 |
146 | e69b4065 | ths | #define TARGET_NR_getdents 141 |
147 | e69b4065 | ths | #define TARGET_NR__newselect 142 |
148 | e69b4065 | ths | #define TARGET_NR_flock 143 |
149 | e69b4065 | ths | #define TARGET_NR_msync 144 |
150 | e69b4065 | ths | #define TARGET_NR_readv 145 |
151 | e69b4065 | ths | #define TARGET_NR_writev 146 |
152 | e69b4065 | ths | #define TARGET_NR_getsid 147 |
153 | e69b4065 | ths | #define TARGET_NR_fdatasync 148 |
154 | e69b4065 | ths | #define TARGET_NR__sysctl 149 |
155 | e69b4065 | ths | #define TARGET_NR_mlock 150 |
156 | e69b4065 | ths | #define TARGET_NR_munlock 151 |
157 | e69b4065 | ths | #define TARGET_NR_mlockall 152 |
158 | e69b4065 | ths | #define TARGET_NR_munlockall 153 |
159 | e69b4065 | ths | #define TARGET_NR_sched_setparam 154 |
160 | e69b4065 | ths | #define TARGET_NR_sched_getparam 155 |
161 | e69b4065 | ths | #define TARGET_NR_sched_setscheduler 156 |
162 | e69b4065 | ths | #define TARGET_NR_sched_getscheduler 157 |
163 | e69b4065 | ths | #define TARGET_NR_sched_yield 158 |
164 | e69b4065 | ths | #define TARGET_NR_sched_get_priority_max 159 |
165 | e69b4065 | ths | #define TARGET_NR_sched_get_priority_min 160 |
166 | e69b4065 | ths | #define TARGET_NR_sched_rr_get_interval 161 |
167 | e69b4065 | ths | #define TARGET_NR_nanosleep 162 |
168 | e69b4065 | ths | #define TARGET_NR_mremap 163 |
169 | e69b4065 | ths | #define TARGET_NR_setresuid 164 |
170 | e69b4065 | ths | #define TARGET_NR_getresuid 165 |
171 | e69b4065 | ths | |
172 | e69b4065 | ths | #define TARGET_NR_query_module 167 |
173 | e69b4065 | ths | #define TARGET_NR_poll 168 |
174 | e69b4065 | ths | #define TARGET_NR_nfsservctl 169 |
175 | e69b4065 | ths | #define TARGET_NR_setresgid 170 |
176 | e69b4065 | ths | #define TARGET_NR_getresgid 171 |
177 | e69b4065 | ths | #define TARGET_NR_prctl 172 |
178 | e69b4065 | ths | #define TARGET_NR_rt_sigreturn 173 |
179 | e69b4065 | ths | #define TARGET_NR_rt_sigaction 174 |
180 | e69b4065 | ths | #define TARGET_NR_rt_sigprocmask 175 |
181 | e69b4065 | ths | #define TARGET_NR_rt_sigpending 176 |
182 | e69b4065 | ths | #define TARGET_NR_rt_sigtimedwait 177 |
183 | e69b4065 | ths | #define TARGET_NR_rt_sigqueueinfo 178 |
184 | e69b4065 | ths | #define TARGET_NR_rt_sigsuspend 179 |
185 | e69b4065 | ths | #define TARGET_NR_pread64 180 |
186 | e69b4065 | ths | #define TARGET_NR_pwrite64 181 |
187 | e69b4065 | ths | #define TARGET_NR_chown 182 |
188 | e69b4065 | ths | #define TARGET_NR_getcwd 183 |
189 | e69b4065 | ths | #define TARGET_NR_capget 184 |
190 | e69b4065 | ths | #define TARGET_NR_capset 185 |
191 | e69b4065 | ths | #define TARGET_NR_sigaltstack 186 |
192 | e69b4065 | ths | #define TARGET_NR_sendfile 187 |
193 | e69b4065 | ths | #define TARGET_NR_getpmsg 188 /* some people actually want streams */ |
194 | e69b4065 | ths | #define TARGET_NR_putpmsg 189 /* some people actually want streams */ |
195 | e69b4065 | ths | #define TARGET_NR_vfork 190 |
196 | e69b4065 | ths | #define TARGET_NR_ugetrlimit 191 /* SuS compliant getrlimit */ |
197 | e69b4065 | ths | #define TARGET_NR_mmap2 192 |
198 | e69b4065 | ths | #define TARGET_NR_truncate64 193 |
199 | e69b4065 | ths | #define TARGET_NR_ftruncate64 194 |
200 | e69b4065 | ths | #define TARGET_NR_stat64 195 |
201 | e69b4065 | ths | #define TARGET_NR_lstat64 196 |
202 | e69b4065 | ths | #define TARGET_NR_fstat64 197 |
203 | e69b4065 | ths | #define TARGET_NR_lchown32 198 |
204 | e69b4065 | ths | #define TARGET_NR_getuid32 199 |
205 | e69b4065 | ths | #define TARGET_NR_getgid32 200 |
206 | e69b4065 | ths | #define TARGET_NR_geteuid32 201 |
207 | e69b4065 | ths | #define TARGET_NR_getegid32 202 |
208 | e69b4065 | ths | #define TARGET_NR_setreuid32 203 |
209 | e69b4065 | ths | #define TARGET_NR_setregid32 204 |
210 | e69b4065 | ths | #define TARGET_NR_getgroups32 205 |
211 | e69b4065 | ths | #define TARGET_NR_setgroups32 206 |
212 | e69b4065 | ths | #define TARGET_NR_fchown32 207 |
213 | e69b4065 | ths | #define TARGET_NR_setresuid32 208 |
214 | e69b4065 | ths | #define TARGET_NR_getresuid32 209 |
215 | e69b4065 | ths | #define TARGET_NR_setresgid32 210 |
216 | e69b4065 | ths | #define TARGET_NR_getresgid32 211 |
217 | e69b4065 | ths | #define TARGET_NR_chown32 212 |
218 | e69b4065 | ths | #define TARGET_NR_setuid32 213 |
219 | e69b4065 | ths | #define TARGET_NR_setgid32 214 |
220 | e69b4065 | ths | #define TARGET_NR_setfsuid32 215 |
221 | e69b4065 | ths | #define TARGET_NR_setfsgid32 216 |
222 | e69b4065 | ths | #define TARGET_NR_pivot_root 217 |
223 | e69b4065 | ths | #define TARGET_NR_mincore 218 |
224 | e69b4065 | ths | #define TARGET_NR_madvise 219 |
225 | e69b4065 | ths | #define TARGET_NR_getdents64 220 |
226 | e69b4065 | ths | #define TARGET_NR_fcntl64 221 |
227 | e69b4065 | ths | /* 223 is unused */
|
228 | e69b4065 | ths | #define TARGET_NR_gettid 224 |
229 | e69b4065 | ths | #define TARGET_NR_readahead 225 |
230 | e69b4065 | ths | #define TARGET_NR_setxattr 226 |
231 | e69b4065 | ths | #define TARGET_NR_lsetxattr 227 |
232 | e69b4065 | ths | #define TARGET_NR_fsetxattr 228 |
233 | e69b4065 | ths | #define TARGET_NR_getxattr 229 |
234 | e69b4065 | ths | #define TARGET_NR_lgetxattr 230 |
235 | e69b4065 | ths | #define TARGET_NR_fgetxattr 231 |
236 | e69b4065 | ths | #define TARGET_NR_listxattr 232 |
237 | e69b4065 | ths | #define TARGET_NR_llistxattr 233 |
238 | e69b4065 | ths | #define TARGET_NR_flistxattr 234 |
239 | e69b4065 | ths | #define TARGET_NR_removexattr 235 |
240 | e69b4065 | ths | #define TARGET_NR_lremovexattr 236 |
241 | e69b4065 | ths | #define TARGET_NR_fremovexattr 237 |
242 | e69b4065 | ths | #define TARGET_NR_tkill 238 |
243 | e69b4065 | ths | #define TARGET_NR_sendfile64 239 |
244 | e69b4065 | ths | #define TARGET_NR_futex 240 |
245 | e69b4065 | ths | #define TARGET_NR_sched_setaffinity 241 |
246 | e69b4065 | ths | #define TARGET_NR_sched_getaffinity 242 |
247 | e69b4065 | ths | #define TARGET_NR_set_thread_area 243 |
248 | e69b4065 | ths | #define TARGET_NR_get_thread_area 244 |
249 | e69b4065 | ths | #define TARGET_NR_io_setup 245 |
250 | e69b4065 | ths | #define TARGET_NR_io_destroy 246 |
251 | e69b4065 | ths | #define TARGET_NR_io_getevents 247 |
252 | e69b4065 | ths | #define TARGET_NR_io_submit 248 |
253 | e69b4065 | ths | #define TARGET_NR_io_cancel 249 |
254 | e69b4065 | ths | #define TARGET_NR_fadvise64 250 |
255 | e69b4065 | ths | #define TARGET_NR_exit_group 252 |
256 | e69b4065 | ths | #define TARGET_NR_lookup_dcookie 253 |
257 | e69b4065 | ths | #define TARGET_NR_epoll_create 254 |
258 | e69b4065 | ths | #define TARGET_NR_epoll_ctl 255 |
259 | e69b4065 | ths | #define TARGET_NR_epoll_wait 256 |
260 | e69b4065 | ths | #define TARGET_NR_remap_file_pages 257 |
261 | e69b4065 | ths | #define TARGET_NR_set_tid_address 258 |
262 | e69b4065 | ths | #define TARGET_NR_timer_create 259 |
263 | e69b4065 | ths | #define TARGET_NR_timer_settime (TARGET_NR_timer_create+1) |
264 | e69b4065 | ths | #define TARGET_NR_timer_gettime (TARGET_NR_timer_create+2) |
265 | e69b4065 | ths | #define TARGET_NR_timer_getoverrun (TARGET_NR_timer_create+3) |
266 | e69b4065 | ths | #define TARGET_NR_timer_delete (TARGET_NR_timer_create+4) |
267 | e69b4065 | ths | #define TARGET_NR_clock_settime (TARGET_NR_timer_create+5) |
268 | e69b4065 | ths | #define TARGET_NR_clock_gettime (TARGET_NR_timer_create+6) |
269 | e69b4065 | ths | #define TARGET_NR_clock_getres (TARGET_NR_timer_create+7) |
270 | e69b4065 | ths | #define TARGET_NR_clock_nanosleep (TARGET_NR_timer_create+8) |
271 | e69b4065 | ths | #define TARGET_NR_statfs64 268 |
272 | e69b4065 | ths | #define TARGET_NR_fstatfs64 269 |
273 | e69b4065 | ths | #define TARGET_NR_tgkill 270 |
274 | e69b4065 | ths | #define TARGET_NR_utimes 271 |
275 | e69b4065 | ths | #define TARGET_NR_fadvise64_64 272 |
276 | e69b4065 | ths | #define TARGET_NR_vserver 273 |
277 | e69b4065 | ths | #define TARGET_NR_mbind 274 |
278 | e69b4065 | ths | #define TARGET_NR_get_mempolicy 275 |
279 | e69b4065 | ths | #define TARGET_NR_set_mempolicy 276 |
280 | e69b4065 | ths | #define TARGET_NR_mq_open 277 |
281 | e69b4065 | ths | #define TARGET_NR_mq_unlink (TARGET_NR_mq_open+1) |
282 | e69b4065 | ths | #define TARGET_NR_mq_timedsend (TARGET_NR_mq_open+2) |
283 | e69b4065 | ths | #define TARGET_NR_mq_timedreceive (TARGET_NR_mq_open+3) |
284 | e69b4065 | ths | #define TARGET_NR_mq_notify (TARGET_NR_mq_open+4) |
285 | e69b4065 | ths | #define TARGET_NR_mq_getsetattr (TARGET_NR_mq_open+5) |
286 | e69b4065 | ths | #define TARGET_NR_kexec_load 283 |
287 | e69b4065 | ths | #define TARGET_NR_waitid 284 |
288 | e69b4065 | ths | /* #define TARGET_NR_sys_setaltroot 285 */
|
289 | e69b4065 | ths | #define TARGET_NR_add_key 286 |
290 | e69b4065 | ths | #define TARGET_NR_request_key 287 |
291 | e69b4065 | ths | #define TARGET_NR_keyctl 288 |