Annotation of src/sys/compat/linux/arch/m68k/linux_syscall.h, Revision 1.14.4.2
1.1 itohy 1: /* $NetBSD$ */
2:
3: /*
4: * System call numbers.
5: *
6: * DO NOT EDIT-- this file is automatically generated.
1.14.4.2! he 7: * created from NetBSD: syscalls.master,v 1.14.4.2 2001/05/01 08:56:18 he Exp
1.1 itohy 8: */
9:
10: /* syscall: "syscall" ret: "int" args: */
11: #define LINUX_SYS_syscall 0
12:
13: /* syscall: "exit" ret: "int" args: "int" */
14: #define LINUX_SYS_exit 1
15:
16: /* syscall: "fork" ret: "int" args: */
17: #define LINUX_SYS_fork 2
18:
19: /* syscall: "read" ret: "int" args: "int" "char *" "u_int" */
20: #define LINUX_SYS_read 3
21:
22: /* syscall: "write" ret: "int" args: "int" "char *" "u_int" */
23: #define LINUX_SYS_write 4
24:
1.2 itohy 25: /* syscall: "open" ret: "int" args: "const char *" "int" "int" */
1.1 itohy 26: #define LINUX_SYS_open 5
27:
28: /* syscall: "close" ret: "int" args: "int" */
29: #define LINUX_SYS_close 6
30:
31: /* syscall: "waitpid" ret: "int" args: "int" "int *" "int" */
32: #define LINUX_SYS_waitpid 7
33:
1.2 itohy 34: /* syscall: "creat" ret: "int" args: "const char *" "int" */
1.1 itohy 35: #define LINUX_SYS_creat 8
36:
1.2 itohy 37: /* syscall: "link" ret: "int" args: "const char *" "const char *" */
1.1 itohy 38: #define LINUX_SYS_link 9
39:
1.2 itohy 40: /* syscall: "unlink" ret: "int" args: "const char *" */
1.1 itohy 41: #define LINUX_SYS_unlink 10
42:
1.2 itohy 43: /* syscall: "execve" ret: "int" args: "const char *" "char **" "char **" */
1.1 itohy 44: #define LINUX_SYS_execve 11
45:
1.2 itohy 46: /* syscall: "chdir" ret: "int" args: "const char *" */
1.1 itohy 47: #define LINUX_SYS_chdir 12
48:
49: /* syscall: "time" ret: "int" args: "linux_time_t *" */
50: #define LINUX_SYS_time 13
51:
1.2 itohy 52: /* syscall: "mknod" ret: "int" args: "const char *" "int" "int" */
1.1 itohy 53: #define LINUX_SYS_mknod 14
54:
1.2 itohy 55: /* syscall: "chmod" ret: "int" args: "const char *" "int" */
1.1 itohy 56: #define LINUX_SYS_chmod 15
57:
1.2 itohy 58: /* syscall: "chown" ret: "int" args: "const char *" "int" "int" */
1.1 itohy 59: #define LINUX_SYS_chown 16
60:
61: /* 17 is obsolete break */
62: /* 18 is obsolete ostat */
63: /* syscall: "lseek" ret: "long" args: "int" "long" "int" */
64: #define LINUX_SYS_lseek 19
65:
66: /* syscall: "getpid" ret: "pid_t" args: */
67: #define LINUX_SYS_getpid 20
68:
69: /* 22 is obsolete umount */
70: /* syscall: "setuid" ret: "int" args: "uid_t" */
71: #define LINUX_SYS_setuid 23
72:
73: /* syscall: "getuid" ret: "uid_t" args: */
74: #define LINUX_SYS_getuid 24
1.8 tron 75:
76: /* syscall: "stime" ret: "int" args: "linux_time_t *" */
77: #define LINUX_SYS_stime 25
1.12 tron 78:
79: /* syscall: "ptrace" ret: "int" args: "int" "int" "int" "int" */
80: #define LINUX_SYS_ptrace 26
1.1 itohy 81:
82: /* syscall: "alarm" ret: "int" args: "unsigned int" */
83: #define LINUX_SYS_alarm 27
84:
85: /* 28 is obsolete ofstat */
86: /* syscall: "pause" ret: "int" args: */
87: #define LINUX_SYS_pause 29
88:
1.2 itohy 89: /* syscall: "utime" ret: "int" args: "const char *" "struct linux_utimbuf *" */
1.1 itohy 90: #define LINUX_SYS_utime 30
91:
92: /* 31 is obsolete stty */
93: /* 32 is obsolete gtty */
1.2 itohy 94: /* syscall: "access" ret: "int" args: "const char *" "int" */
1.1 itohy 95: #define LINUX_SYS_access 33
96:
97: /* syscall: "nice" ret: "int" args: "int" */
98: #define LINUX_SYS_nice 34
99:
100: /* 35 is obsolete ftime */
101: /* syscall: "sync" ret: "int" args: */
102: #define LINUX_SYS_sync 36
103:
104: /* syscall: "kill" ret: "int" args: "int" "int" */
105: #define LINUX_SYS_kill 37
106:
1.2 itohy 107: /* syscall: "rename" ret: "int" args: "const char *" "const char *" */
1.1 itohy 108: #define LINUX_SYS_rename 38
109:
1.2 itohy 110: /* syscall: "mkdir" ret: "int" args: "const char *" "int" */
1.1 itohy 111: #define LINUX_SYS_mkdir 39
112:
1.2 itohy 113: /* syscall: "rmdir" ret: "int" args: "const char *" */
1.1 itohy 114: #define LINUX_SYS_rmdir 40
115:
116: /* syscall: "dup" ret: "int" args: "u_int" */
117: #define LINUX_SYS_dup 41
118:
119: /* syscall: "pipe" ret: "int" args: "int *" */
120: #define LINUX_SYS_pipe 42
121:
122: /* syscall: "times" ret: "int" args: "struct times *" */
123: #define LINUX_SYS_times 43
124:
125: /* 44 is obsolete prof */
126: /* syscall: "brk" ret: "int" args: "char *" */
127: #define LINUX_SYS_brk 45
128:
129: /* syscall: "setgid" ret: "int" args: "gid_t" */
130: #define LINUX_SYS_setgid 46
131:
132: /* syscall: "getgid" ret: "gid_t" args: */
133: #define LINUX_SYS_getgid 47
134:
135: /* syscall: "signal" ret: "int" args: "int" "linux_handler_t" */
136: #define LINUX_SYS_signal 48
137:
138: /* syscall: "geteuid" ret: "uid_t" args: */
139: #define LINUX_SYS_geteuid 49
140:
141: /* syscall: "getegid" ret: "gid_t" args: */
142: #define LINUX_SYS_getegid 50
143:
144: /* syscall: "acct" ret: "int" args: "char *" */
145: #define LINUX_SYS_acct 51
146:
147: /* 53 is obsolete lock */
148: /* syscall: "ioctl" ret: "int" args: "int" "u_long" "caddr_t" */
149: #define LINUX_SYS_ioctl 54
150:
151: /* syscall: "fcntl" ret: "int" args: "int" "int" "void *" */
152: #define LINUX_SYS_fcntl 55
153:
154: /* 56 is obsolete mpx */
155: /* syscall: "setpgid" ret: "int" args: "int" "int" */
156: #define LINUX_SYS_setpgid 57
157:
158: /* 58 is obsolete ulimit */
159: /* syscall: "umask" ret: "int" args: "int" */
160: #define LINUX_SYS_umask 60
161:
162: /* syscall: "chroot" ret: "int" args: "char *" */
163: #define LINUX_SYS_chroot 61
164:
165: /* syscall: "dup2" ret: "int" args: "u_int" "u_int" */
166: #define LINUX_SYS_dup2 63
167:
168: /* syscall: "getppid" ret: "pid_t" args: */
169: #define LINUX_SYS_getppid 64
170:
171: /* syscall: "getpgrp" ret: "int" args: */
172: #define LINUX_SYS_getpgrp 65
173:
174: /* syscall: "setsid" ret: "int" args: */
175: #define LINUX_SYS_setsid 66
176:
177: /* syscall: "sigaction" ret: "int" args: "int" "const struct linux_old_sigaction *" "struct linux_old_sigaction *" */
178: #define LINUX_SYS_sigaction 67
179:
180: /* syscall: "siggetmask" ret: "int" args: */
181: #define LINUX_SYS_siggetmask 68
182:
183: /* syscall: "sigsetmask" ret: "int" args: "linux_old_sigset_t" */
184: #define LINUX_SYS_sigsetmask 69
185:
186: /* syscall: "setreuid" ret: "int" args: "int" "int" */
187: #define LINUX_SYS_setreuid 70
188:
189: /* syscall: "setregid" ret: "int" args: "int" "int" */
190: #define LINUX_SYS_setregid 71
191:
192: /* syscall: "sigsuspend" ret: "int" args: "caddr_t" "int" "int" */
193: #define LINUX_SYS_sigsuspend 72
194:
195: /* syscall: "sigpending" ret: "int" args: "linux_old_sigset_t *" */
196: #define LINUX_SYS_sigpending 73
197:
198: /* syscall: "sethostname" ret: "int" args: "char *" "u_int" */
199: #define LINUX_SYS_sethostname 74
200:
201: /* syscall: "setrlimit" ret: "int" args: "u_int" "struct orlimit *" */
202: #define LINUX_SYS_setrlimit 75
203:
204: /* syscall: "getrlimit" ret: "int" args: "u_int" "struct orlimit *" */
205: #define LINUX_SYS_getrlimit 76
206:
207: /* syscall: "getrusage" ret: "int" args: "int" "struct rusage *" */
208: #define LINUX_SYS_getrusage 77
209:
210: /* syscall: "gettimeofday" ret: "int" args: "struct timeval *" "struct timezone *" */
211: #define LINUX_SYS_gettimeofday 78
212:
213: /* syscall: "settimeofday" ret: "int" args: "struct timeval *" "struct timezone *" */
214: #define LINUX_SYS_settimeofday 79
215:
216: /* syscall: "getgroups" ret: "int" args: "u_int" "gid_t *" */
217: #define LINUX_SYS_getgroups 80
218:
219: /* syscall: "setgroups" ret: "int" args: "u_int" "gid_t *" */
220: #define LINUX_SYS_setgroups 81
221:
222: /* syscall: "oldselect" ret: "int" args: "struct linux_oldselect *" */
223: #define LINUX_SYS_oldselect 82
224:
1.2 itohy 225: /* syscall: "symlink" ret: "int" args: "const char *" "const char *" */
1.1 itohy 226: #define LINUX_SYS_symlink 83
227:
1.2 itohy 228: /* syscall: "oolstat" ret: "int" args: "const char *" "struct stat43 *" */
1.1 itohy 229: #define LINUX_SYS_oolstat 84
230:
1.2 itohy 231: /* syscall: "readlink" ret: "int" args: "const char *" "char *" "int" */
1.1 itohy 232: #define LINUX_SYS_readlink 85
233:
1.2 itohy 234: /* syscall: "uselib" ret: "int" args: "const char *" */
1.1 itohy 235: #define LINUX_SYS_uselib 86
236:
237: /* syscall: "swapon" ret: "int" args: "char *" */
238: #define LINUX_SYS_swapon 87
239:
1.14 erh 240: /* syscall: "reboot" ret: "int" args: "int" "int" "int" "void *" */
1.1 itohy 241: #define LINUX_SYS_reboot 88
242:
243: /* syscall: "readdir" ret: "int" args: "int" "caddr_t" "unsigned int" */
244: #define LINUX_SYS_readdir 89
245:
246: /* syscall: "old_mmap" ret: "int" args: "struct linux_oldmmap *" */
247: #define LINUX_SYS_old_mmap 90
248:
249: /* syscall: "munmap" ret: "int" args: "caddr_t" "int" */
250: #define LINUX_SYS_munmap 91
251:
1.2 itohy 252: /* syscall: "truncate" ret: "int" args: "const char *" "long" */
1.1 itohy 253: #define LINUX_SYS_truncate 92
254:
255: /* syscall: "ftruncate" ret: "int" args: "int" "long" */
256: #define LINUX_SYS_ftruncate 93
257:
258: /* syscall: "fchmod" ret: "int" args: "int" "int" */
259: #define LINUX_SYS_fchmod 94
260:
261: /* syscall: "fchown" ret: "int" args: "int" "int" "int" */
262: #define LINUX_SYS_fchown 95
263:
264: /* syscall: "getpriority" ret: "int" args: "int" "int" */
265: #define LINUX_SYS_getpriority 96
266:
267: /* syscall: "setpriority" ret: "int" args: "int" "int" "int" */
268: #define LINUX_SYS_setpriority 97
269:
270: /* syscall: "profil" ret: "int" args: "caddr_t" "u_int" "u_int" "u_int" */
271: #define LINUX_SYS_profil 98
272:
1.2 itohy 273: /* syscall: "statfs" ret: "int" args: "const char *" "struct linux_statfs *" */
1.1 itohy 274: #define LINUX_SYS_statfs 99
275:
276: /* syscall: "fstatfs" ret: "int" args: "int" "struct linux_statfs *" */
277: #define LINUX_SYS_fstatfs 100
278:
279: /* syscall: "socketcall" ret: "int" args: "int" "void *" */
280: #define LINUX_SYS_socketcall 102
281:
282: /* syscall: "setitimer" ret: "int" args: "u_int" "struct itimerval *" "struct itimerval *" */
283: #define LINUX_SYS_setitimer 104
284:
285: /* syscall: "getitimer" ret: "int" args: "u_int" "struct itimerval *" */
286: #define LINUX_SYS_getitimer 105
287:
1.2 itohy 288: /* syscall: "stat" ret: "int" args: "const char *" "struct linux_stat *" */
1.1 itohy 289: #define LINUX_SYS_stat 106
290:
1.2 itohy 291: /* syscall: "lstat" ret: "int" args: "const char *" "struct linux_stat *" */
1.1 itohy 292: #define LINUX_SYS_lstat 107
293:
294: /* syscall: "fstat" ret: "int" args: "int" "struct linux_stat *" */
295: #define LINUX_SYS_fstat 108
296:
297: /* syscall: "wait4" ret: "int" args: "int" "int *" "int" "struct rusage *" */
298: #define LINUX_SYS_wait4 114
299:
300: /* syscall: "ipc" ret: "int" args: "int" "int" "int" "int" "caddr_t" */
301: #define LINUX_SYS_ipc 117
302:
303: /* syscall: "fsync" ret: "int" args: "int" */
304: #define LINUX_SYS_fsync 118
305:
306: /* syscall: "sigreturn" ret: "int" args: */
307: #define LINUX_SYS_sigreturn 119
1.6 thorpej 308:
309: /* syscall: "clone" ret: "int" args: "int" "void *" */
310: #define LINUX_SYS_clone 120
1.1 itohy 311:
312: /* syscall: "setdomainname" ret: "int" args: "char *" "int" */
313: #define LINUX_SYS_setdomainname 121
314:
315: /* syscall: "uname" ret: "int" args: "struct linux_utsname *" */
316: #define LINUX_SYS_uname 122
317:
318: /* syscall: "cacheflush" ret: "int" args: "unsigned long" "int" "int" "unsigned long" */
319: #define LINUX_SYS_cacheflush 123
320:
321: /* syscall: "mprotect" ret: "int" args: "caddr_t" "int" "int" */
322: #define LINUX_SYS_mprotect 125
323:
324: /* syscall: "sigprocmask" ret: "int" args: "int" "const linux_old_sigset_t *" "linux_old_sigset_t *" */
325: #define LINUX_SYS_sigprocmask 126
326:
327: /* syscall: "getpgid" ret: "int" args: "int" */
328: #define LINUX_SYS_getpgid 132
329:
330: /* syscall: "fchdir" ret: "int" args: "int" */
331: #define LINUX_SYS_fchdir 133
332:
333: /* syscall: "personality" ret: "int" args: "int" */
334: #define LINUX_SYS_personality 136
335:
1.13 abs 336: /* syscall: "setfsuid" ret: "int" args: "uid_t" */
337: #define LINUX_SYS_setfsuid 138
338:
339: /* syscall: "getfsuid" ret: "int" args: */
340: #define LINUX_SYS_getfsuid 139
341:
1.1 itohy 342: /* syscall: "llseek" ret: "int" args: "int" "u_int32_t" "u_int32_t" "caddr_t" "int" */
343: #define LINUX_SYS_llseek 140
344:
345: /* syscall: "getdents" ret: "int" args: "int" "struct linux_dirent *" "unsigned int" */
346: #define LINUX_SYS_getdents 141
347:
348: /* syscall: "select" ret: "int" args: "int" "fd_set *" "fd_set *" "fd_set *" "struct timeval *" */
349: #define LINUX_SYS_select 142
350:
351: /* syscall: "flock" ret: "int" args: "int" "int" */
352: #define LINUX_SYS_flock 143
353:
354: /* syscall: "msync" ret: "int" args: "caddr_t" "int" "int" */
355: #define LINUX_SYS_msync 144
356:
357: /* syscall: "readv" ret: "int" args: "int" "struct iovec *" "u_int" */
358: #define LINUX_SYS_readv 145
359:
360: /* syscall: "writev" ret: "int" args: "int" "struct iovec *" "u_int" */
361: #define LINUX_SYS_writev 146
362:
363: /* syscall: "getsid" ret: "pid_t" args: "pid_t" */
364: #define LINUX_SYS_getsid 147
365:
366: /* syscall: "fdatasync" ret: "int" args: "int" */
367: #define LINUX_SYS_fdatasync 148
368:
369: /* syscall: "__sysctl" ret: "int" args: "struct linux___sysctl *" */
370: #define LINUX_SYS___sysctl 149
371:
372: /* syscall: "mlock" ret: "int" args: "caddr_t" "size_t" */
373: #define LINUX_SYS_mlock 150
374:
375: /* syscall: "munlock" ret: "int" args: "caddr_t" "size_t" */
376: #define LINUX_SYS_munlock 151
1.9 tron 377:
378: /* syscall: "sched_setparam" ret: "int" args: "pid_t" "const struct linux_sched_param *" */
379: #define LINUX_SYS_sched_setparam 154
380:
381: /* syscall: "sched_getparam" ret: "int" args: "pid_t" "struct linux_sched_param *" */
382: #define LINUX_SYS_sched_getparam 155
383:
384: /* syscall: "sched_setscheduler" ret: "int" args: "pid_t" "int" "const struct linux_sched_param *" */
385: #define LINUX_SYS_sched_setscheduler 156
386:
387: /* syscall: "sched_getscheduler" ret: "int" args: "pid_t" */
388: #define LINUX_SYS_sched_getscheduler 157
389:
390: /* syscall: "sched_yield" ret: "int" args: */
391: #define LINUX_SYS_sched_yield 158
392:
393: /* syscall: "sched_get_priority_max" ret: "int" args: "int" */
394: #define LINUX_SYS_sched_get_priority_max 159
395:
396: /* syscall: "sched_get_priority_min" ret: "int" args: "int" */
397: #define LINUX_SYS_sched_get_priority_min 160
1.1 itohy 398:
399: /* syscall: "nanosleep" ret: "int" args: "const struct timespec *" "struct timespec *" */
400: #define LINUX_SYS_nanosleep 162
401:
402: /* syscall: "mremap" ret: "void *" args: "void *" "size_t" "size_t" "u_long" */
403: #define LINUX_SYS_mremap 163
1.5 tron 404:
1.7 thorpej 405: /* syscall: "setresuid" ret: "int" args: "uid_t" "uid_t" "uid_t" */
406: #define LINUX_SYS_setresuid 164
407:
408: /* syscall: "getresuid" ret: "int" args: "uid_t *" "uid_t *" "uid_t *" */
409: #define LINUX_SYS_getresuid 165
410:
1.5 tron 411: /* syscall: "poll" ret: "int" args: "struct pollfd *" "u_int" "int" */
412: #define LINUX_SYS_poll 168
1.1 itohy 413:
1.7 thorpej 414: /* syscall: "setresgid" ret: "int" args: "gid_t" "gid_t" "gid_t" */
415: #define LINUX_SYS_setresgid 170
416:
417: /* syscall: "getresgid" ret: "int" args: "gid_t *" "gid_t *" "gid_t *" */
418: #define LINUX_SYS_getresgid 171
419:
1.1 itohy 420: /* syscall: "rt_sigreturn" ret: "int" args: */
421: #define LINUX_SYS_rt_sigreturn 173
422:
423: /* syscall: "rt_sigaction" ret: "int" args: "int" "const struct linux_sigaction *" "struct linux_sigaction *" "size_t" */
424: #define LINUX_SYS_rt_sigaction 174
425:
426: /* syscall: "rt_sigprocmask" ret: "int" args: "int" "const linux_sigset_t *" "linux_sigset_t *" "size_t" */
427: #define LINUX_SYS_rt_sigprocmask 175
428:
429: /* syscall: "rt_sigpending" ret: "int" args: "linux_sigset_t *" "size_t" */
430: #define LINUX_SYS_rt_sigpending 176
431:
432: /* syscall: "rt_queueinfo" ret: "int" args: "int" "int" "void *" */
433: #define LINUX_SYS_rt_queueinfo 178
434:
435: /* syscall: "rt_sigsuspend" ret: "int" args: "linux_sigset_t *" "size_t" */
436: #define LINUX_SYS_rt_sigsuspend 179
1.3 thorpej 437:
1.11 tron 438: /* syscall: "pread" ret: "int" args: "int" "char *" "size_t" "linux_off_t" */
1.3 thorpej 439: #define LINUX_SYS_pread 180
440:
1.11 tron 441: /* syscall: "pwrite" ret: "int" args: "int" "char *" "size_t" "linux_off_t" */
1.3 thorpej 442: #define LINUX_SYS_pwrite 181
1.1 itohy 443:
1.2 itohy 444: /* syscall: "lchown" ret: "int" args: "const char *" "int" "int" */
1.1 itohy 445: #define LINUX_SYS_lchown 182
1.4 tron 446:
447: /* syscall: "__getcwd" ret: "int" args: "char *" "size_t" */
448: #define LINUX_SYS___getcwd 183
1.1 itohy 449:
1.7 thorpej 450: /* syscall: "__vfork14" ret: "int" args: */
451: #define LINUX_SYS___vfork14 190
452:
453: #define LINUX_SYS_MAXSYSCALL 191
CVSweb <webmaster@jp.NetBSD.org>