1 $FreeBSD$
2
3 ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93
4 ; System call name/number master file (or rather, slave, from LINUX).
5 ; Processed to create linux_sysent.c, linux_proto.h and linux_syscall.h.
6
7 ; Columns: number type nargs name alt{name,tag,rtyp}/comments
8 ; number system call number, must be in order
9 ; type one of STD, OBSOL, UNIMPL, COMPAT
10 ; name psuedo-prototype of syscall routine
11 ; If one of the following alts is different, then all appear:
12 ; altname name of system call if different
13 ; alttag name of args struct tag if different from [o]`name'"_args"
14 ; altrtyp return type if not int (bogus - syscalls always return int)
15 ; for UNIMPL/OBSOL, name continues with comments
16
17 ; types:
18 ; STD always included
19 ; COMPAT included on COMPAT #ifdef
20 ; LIBCOMPAT included on COMPAT #ifdef, and placed in syscall.h
21 ; OBSOL obsolete, not included in system, only specifies name
22 ; UNIMPL not implemented, placeholder only
23
24 #include "opt_compat.h"
25 #include <sys/param.h>
26 #include <sys/sysent.h>
27 #include <sys/sysproto.h>
28 #include <compat/linux/linux_sysproto.h>
29 #include <i386/linux/linux.h>
30 #include <i386/linux/linux_proto.h>
31
32 ; Isn't pretty, but there seems to be no other way to trap nosys
33 #define nosys linux_nosys
34
35 ; #ifdef's, etc. may be included, and are copied to the output files.
36
37 0 UNIMPL setup
38 1 MNOPROTO { void sys_exit(int rval); } exit sys_exit_args void
39 2 MSTD { int linux_fork(void); }
40 3 MNOPROTO { int read(int fd, char *buf, u_int nbyte); }
41 4 MNOPROTO { int write(int fd, char *buf, u_int nbyte); }
42 5 STD { int linux_open(char *path, l_int flags, l_int mode); }
43 6 MNOPROTO { int close(int fd); }
44 7 MSTD { int linux_waitpid(l_pid_t pid, l_int *status, l_int options); }
45 8 STD { int linux_creat(char *path, l_int mode); }
46 9 STD { int linux_link(char *path, char *to); }
47 10 STD { int linux_unlink(char *path); }
48 11 STD { int linux_execve(char *path, char **argp, char **envp); }
49 12 STD { int linux_chdir(char *path); }
50 13 STD { int linux_time(l_time_t *tm); }
51 14 STD { int linux_mknod(char *path, l_int mode, l_dev_t dev); }
52 15 STD { int linux_chmod(char *path, l_mode_t mode); }
53 16 STD { int linux_lchown16(char *path, l_uid16_t uid, \
54 l_gid16_t gid); }
55 17 UNIMPL break
56 18 STD { int linux_stat(char *path, struct ostat *up); }
57 19 STD { int linux_lseek(l_uint fdes, l_off_t off, l_int whence); }
58 20 MSTD { int linux_getpid(void); }
59 21 STD { int linux_mount(char *specialfile, char *dir, \
60 char *filesystemtype, l_ulong rwflag, \
61 void *data); }
62 22 STD { int linux_oldumount(char *path); }
63 23 MSTD { int linux_setuid16(l_uid16_t uid); }
64 24 MSTD { int linux_getuid16(void); }
65 25 STD { int linux_stime(void); }
66 26 MSTD { int linux_ptrace(l_long req, l_long pid, l_long addr, \
67 l_long data); }
68 27 STD { int linux_alarm(l_uint secs); }
69 28 STD { int linux_fstat(l_uint fd, struct ostat *up); }
70 29 MSTD { int linux_pause(void); }
71 30 STD { int linux_utime(char *fname, struct l_utimbuf *times); }
72 31 UNIMPL stty
73 32 UNIMPL gtty
74 33 STD { int linux_access(char *path, l_int flags); }
75 34 MSTD { int linux_nice(l_int inc); }
76 35 UNIMPL ftime
77 36 NOPROTO { int sync(void); }
78 37 MSTD { int linux_kill(l_int pid, l_int signum); }
79 38 STD { int linux_rename(char *from, char *to); }
80 39 STD { int linux_mkdir(char *path, l_int mode); }
81 40 STD { int linux_rmdir(char *path); }
82 41 MNOPROTO { int dup(u_int fd); }
83 42 MSTD { int linux_pipe(l_ulong *pipefds); }
84 43 STD { int linux_times(struct l_times_argv *buf); }
85 44 UNIMPL prof
86 45 STD { int linux_brk(l_ulong dsend); }
87 46 MSTD { int linux_setgid16(l_gid16_t gid); }
88 47 MSTD { int linux_getgid16(void); }
89 48 MSTD { int linux_signal(l_int sig, l_handler_t handler); }
90 49 MSTD { int linux_geteuid16(void); }
91 50 MSTD { int linux_getegid16(void); }
92 51 MNOPROTO { int acct(char *path); }
93 52 STD { int linux_umount(char *path, l_int flags); }
94 53 UNIMPL lock
95 54 STD { int linux_ioctl(l_uint fd, l_uint cmd, l_ulong arg); }
96 55 MSTD { int linux_fcntl(l_uint fd, l_uint cmd, l_ulong arg); }
97 56 UNIMPL mpx
98 57 MNOPROTO { int setpgid(int pid, int pgid); }
99 58 UNIMPL ulimit
100 59 STD { int linux_olduname(void); }
101 60 MNOPROTO { int umask(int newmask); }
102 61 NOPROTO { int chroot(char *path); }
103 62 STD { int linux_ustat(l_dev_t dev, struct l_ustat *ubuf); }
104 63 MNOPROTO { int dup2(u_int from, u_int to); }
105 64 MNOPROTO { int getppid(void); }
106 65 MNOPROTO { int getpgrp(void); }
107 66 MNOPROTO { int setsid(void); }
108 67 MSTD { int linux_sigaction(l_int sig, l_osigaction_t *nsa, \
109 l_osigaction_t *osa); }
110 68 MSTD { int linux_sgetmask(void); }
111 69 MSTD { int linux_ssetmask(l_osigset_t mask); }
112 70 MSTD { int linux_setreuid16(l_uid16_t ruid, l_uid16_t euid); }
113 71 MSTD { int linux_setregid16(l_gid16_t rgid, l_gid16_t egid); }
114 72 MSTD { int linux_sigsuspend(l_int hist0, l_int hist1, \
115 l_osigset_t mask); }
116 73 MSTD { int linux_sigpending(l_osigset_t *mask); }
117 74 MNOPROTO { int osethostname(char *hostname, u_int len); } \
118 osethostname sethostname_args int
119 75 MSTD { int linux_setrlimit(l_uint resource, struct l_rlimit *rlim); }
120 76 MSTD { int linux_old_getrlimit(l_uint resource, \
121 struct l_rlimit *rlim); }
122 77 MNOPROTO { int getrusage(int who, struct rusage *rusage); }
123 78 MNOPROTO { int gettimeofday(struct timeval *tp, struct timezone *tzp); }
124 79 MNOPROTO { int settimeofday(struct timeval *tp, struct timezone *tzp); }
125 80 MSTD { int linux_getgroups16(l_uint gidsetsize, l_gid16_t *gidset); }
126 81 MSTD { int linux_setgroups16(l_uint gidsetsize, l_gid16_t *gidset); }
127 82 STD { int linux_old_select(struct l_old_select_argv *ptr); }
128 83 STD { int linux_symlink(char *path, char *to); }
129 84 NOPROTO { int ostat(char *path, struct ostat *up); }
130 85 STD { int linux_readlink(char *name, char *buf, l_int count); }
131 86 STD { int linux_uselib(char *library); }
132 87 NOPROTO { int swapon(char *name); }
133 88 STD { int linux_reboot(l_int magic1, l_int magic2, l_uint cmd, \
134 void *arg); }
135 89 STD { int linux_readdir(l_uint fd, struct l_dirent *dent, \
136 l_uint count); }
137 90 STD { int linux_mmap(struct l_mmap_argv *ptr); }
138 91 NOPROTO { int munmap(caddr_t addr, int len); }
139 92 STD { int linux_truncate(char *path, l_ulong length); }
140 93 NOPROTO { int oftruncate(int fd, long length); }
141 94 NOPROTO { int fchmod(int fd, int mode); }
142 95 NOPROTO { int fchown(int fd, int uid, int gid); }
143 96 MNOPROTO { int getpriority(int which, int who); }
144 97 MNOPROTO { int setpriority(int which, int who, int prio); }
145 98 UNIMPL profil
146 99 STD { int linux_statfs(char *path, struct l_statfs_buf *buf); }
147 100 STD { int linux_fstatfs(l_uint fd, struct l_statfs_buf *buf); }
148 101 STD { int linux_ioperm(l_ulong start, l_ulong length, \
149 l_int enable); }
150 102 STD { int linux_socketcall(l_int what, l_ulong args); }
151 103 STD { int linux_syslog(l_int type, char *buf, l_int len); }
152 104 STD { int linux_setitimer(l_int which, struct l_itimerval *itv, \
153 struct l_itimerval *oitv); }
154 105 STD { int linux_getitimer(l_int which, struct l_itimerval *itv); }
155 106 STD { int linux_newstat(char *path, struct l_newstat *buf); }
156 107 STD { int linux_newlstat(char *path, struct l_newstat *buf); }
157 108 STD { int linux_newfstat(l_uint fd, struct l_newstat *buf); }
158 109 STD { int linux_uname(void); }
159 110 STD { int linux_iopl(l_ulong level); }
160 111 STD { int linux_vhangup(void); }
161 112 UNIMPL idle
162 113 STD { int linux_vm86old(void); }
163 114 MSTD { int linux_wait4(l_pid_t pid, l_uint *status, \
164 l_int options, struct l_rusage *rusage); }
165 115 STD { int linux_swapoff(void); }
166 116 STD { int linux_sysinfo(struct l_sysinfo *info); }
167 117 STD { int linux_ipc(l_uint what, l_int arg1, l_int arg2, \
168 l_int arg3, void *ptr, l_long arg5); }
169 118 NOPROTO { int fsync(int fd); }
170 119 MSTD { int linux_sigreturn(struct l_sigframe *sfp); }
171 120 MSTD { int linux_clone(l_int flags, void *stack); }
172 121 MNOPROTO { int setdomainname(char *name, int len); }
173 122 STD { int linux_newuname(struct l_new_utsname *buf); }
174 123 STD { int linux_modify_ldt(l_int func, void *ptr, \
175 l_ulong bytecount); }
176 124 STD { int linux_adjtimex(void); }
177 125 NOPROTO { int mprotect(caddr_t addr, int len, int prot); }
178 126 MSTD { int linux_sigprocmask(l_int how, l_osigset_t *mask, \
179 l_osigset_t *omask); }
180 127 STD { int linux_create_module(void); }
181 128 STD { int linux_init_module(void); }
182 129 STD { int linux_delete_module(void); }
183 130 STD { int linux_get_kernel_syms(void); }
184 131 STD { int linux_quotactl(void); }
185 132 NOPROTO { int getpgid(int pid); }
186 133 NOPROTO { int fchdir(int fd); }
187 134 STD { int linux_bdflush(void); }
188 135 STD { int linux_sysfs(l_int option, l_ulong arg1, l_ulong arg2); }
189 136 STD { int linux_personality(l_ulong per); }
190 137 UNIMPL afs_syscall
191 138 STD { int linux_setfsuid16(l_uid16_t uid); }
192 139 STD { int linux_setfsgid16(l_gid16_t gid); }
193 140 STD { int linux_llseek(l_int fd, l_ulong ohigh, l_ulong olow, \
194 l_loff_t *res, l_uint whence); }
195 141 STD { int linux_getdents(l_uint fd, void *dent, l_uint count); }
196 142 STD { int linux_select(l_int nfds, l_fd_set *readfds, \
197 l_fd_set *writefds, l_fd_set *exceptfds, \
198 struct l_timeval *timeout); }
199 143 NOPROTO { int flock(int fd, int how); }
200 144 STD { int linux_msync(l_ulong addr, l_size_t len, l_int fl); }
201 145 NOPROTO { int readv(int fd, struct iovec *iovp, u_int iovcnt); }
202 146 NOPROTO { int writev(int fd, struct iovec *iovp, u_int iovcnt); }
203 147 MSTD { int linux_getsid(l_pid_t pid); }
204 148 STD { int linux_fdatasync(l_uint fd); }
205 149 STD { int linux_sysctl(struct l___sysctl_args *args); }
206 150 MNOPROTO { int mlock(const void *addr, size_t len); }
207 151 MNOPROTO { int munlock(const void *addr, size_t len); }
208 152 MNOPROTO { int mlockall(int how); }
209 153 MNOPROTO { int munlockall(void); }
210 154 MNOPROTO { int sched_setparam(pid_t pid, \
211 const struct sched_param *param); }
212 155 MNOPROTO { int sched_getparam(pid_t pid, \
213 struct sched_param *param); }
214 156 MSTD { int linux_sched_setscheduler(l_pid_t pid, \
215 l_int policy, struct l_sched_param *param); }
216 157 MSTD { int linux_sched_getscheduler(l_pid_t pid); }
217 158 NOPROTO { int sched_yield(void); }
218 159 MSTD { int linux_sched_get_priority_max(l_int policy); }
219 160 MSTD { int linux_sched_get_priority_min(l_int policy); }
220 161 MNOPROTO { int sched_rr_get_interval(l_pid_t pid, \
221 struct l_timespec *interval); }
222 162 MNOPROTO { int nanosleep(const struct timespec *rqtp, \
223 struct timespec *rmtp); }
224 163 STD { int linux_mremap(l_ulong addr, l_ulong old_len, \
225 l_ulong new_len, l_ulong flags, \
226 l_ulong new_addr); }
227 164 MSTD { int linux_setresuid16(l_uid16_t ruid, \
228 l_uid16_t euid, l_uid16_t suid); }
229 165 MSTD { int linux_getresuid16(l_uid16_t *ruid, \
230 l_uid16_t *euid, l_uid16_t *suid); }
231 166 STD { int linux_vm86(void); }
232 167 STD { int linux_query_module(void); }
233 168 NOPROTO { int poll(struct pollfd*, unsigned int nfds, long timeout); }
234 169 STD { int linux_nfsservctl(void); }
235 170 MSTD { int linux_setresgid16(l_gid16_t rgid, \
236 l_gid16_t egid, l_gid16_t sgid); }
237 171 MSTD { int linux_getresgid16(l_gid16_t *rgid, \
238 l_gid16_t *egid, l_gid16_t *sgid); }
239 172 STD { int linux_prctl(void); }
240 173 STD { int linux_rt_sigreturn(struct l_ucontext *ucp); }
241 174 MSTD { int linux_rt_sigaction(l_int sig, \
242 l_sigaction_t *act, l_sigaction_t *oact, \
243 l_size_t sigsetsize); }
244 175 MSTD { int linux_rt_sigprocmask(l_int how, \
245 l_sigset_t *mask, l_sigset_t *omask, \
246 l_size_t sigsetsize); }
247 176 STD { int linux_rt_sigpending(void); }
248 177 STD { int linux_rt_sigtimedwait(void); }
249 178 STD { int linux_rt_sigqueueinfo(void); }
250 179 MSTD { int linux_rt_sigsuspend(l_sigset_t *newset, \
251 l_size_t sigsetsize); }
252 180 STD { int linux_pread(l_uint fd, char *buf, \
253 l_size_t nbyte, l_loff_t offset); }
254 181 STD { int linux_pwrite(l_uint fd, char *buf, \
255 l_size_t nbyte, l_loff_t offset); }
256 182 STD { int linux_chown16(char *path, l_uid16_t uid, l_gid16_t gid); }
257 183 STD { int linux_getcwd(char *buf, l_ulong bufsize); }
258 184 STD { int linux_capget(void); }
259 185 STD { int linux_capset(void); }
260 186 STD { int linux_sigaltstack(l_stack_t *uss, l_stack_t *uoss); }
261 187 STD { int linux_sendfile(void); }
262 188 UNIMPL getpmsg
263 189 UNIMPL putpmsg
264 190 MSTD { int linux_vfork(void); }
265 191 MSTD { int linux_getrlimit(l_uint resource, struct l_rlimit *rlim); }
266 192 STD { int linux_mmap2(l_ulong addr, l_ulong len, \
267 l_ulong prot, l_ulong flags, l_ulong fd, \
268 l_ulong pgoff); }
269 193 STD { int linux_truncate64(char *path, l_loff_t length); }
270 194 STD { int linux_ftruncate64(l_uint fd, l_loff_t length); }
271 195 STD { int linux_stat64(char *filename, \
272 struct l_stat64 *statbuf, l_long flags); }
273 196 STD { int linux_lstat64(char *filename, \
274 struct l_stat64 *statbuf, l_long flags); }
275 197 STD { int linux_fstat64(l_ulong fd, \
276 struct l_stat64 *statbuf, l_long flags); }
277 198 STD { int linux_lchown(char *path, l_uid_t uid, \
278 l_gid_t gid); }
279 199 MSTD { int linux_getuid(void); }
280 200 MSTD { int linux_getgid(void); }
281 201 MNOPROTO { int geteuid(void); }
282 202 MNOPROTO { int getegid(void); }
283 203 MNOPROTO { int setreuid(uid_t ruid, uid_t euid); }
284 204 MNOPROTO { int setregid(gid_t rgid, gid_t egid); }
285 205 MSTD { int linux_getgroups(l_int gidsetsize, l_gid_t *grouplist); }
286 206 MSTD { int linux_setgroups(l_int gidsetsize, l_gid_t *grouplist); }
287 207 NODEF fchown fchown fchown_args int
288 208 MNOPROTO { int setresuid(uid_t ruid, uid_t euid, uid_t suid); }
289 209 MNOPROTO { int getresuid(uid_t *ruid, uid_t *euid, uid_t *suid); }
290 210 MNOPROTO { int setresgid(gid_t rgid, gid_t egid, gid_t sgid); }
291 211 MNOPROTO { int getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid); }
292 212 STD { int linux_chown(char *path, l_uid_t uid, l_gid_t gid); }
293 213 MNOPROTO { int setuid(uid_t uid); }
294 214 MNOPROTO { int setgid(gid_t gid); }
295 215 STD { int linux_setfsuid(l_uid_t uid); }
296 216 STD { int linux_setfsgid(l_gid_t gid); }
297 217 STD { int linux_pivot_root(char *new_root, char *put_old); }
298 218 STD { int linux_mincore(l_ulong start, l_size_t len, u_char *vec); }
299 219 MNOPROTO { int madvise(void *addr, size_t len, int behav); }
300 220 STD { int linux_getdents64(l_uint fd, void *dirent, l_uint count); }
301 221 MSTD { int linux_fcntl64(l_uint fd, l_uint cmd, l_ulong arg); }
302 222 UNIMPL
303 223 UNIMPL
304 224 UNIMPL linux_gettid
305 225 UNIMPL linux_readahead
306 226 STD { int linux_setxattr(void); }
307 227 STD { int linux_lsetxattr(void); }
308 228 STD { int linux_fsetxattr(void); }
309 229 STD { int linux_getxattr(void); }
310 230 STD { int linux_lgetxattr(void); }
311 231 STD { int linux_fgetxattr(void); }
312 232 STD { int linux_listxattr(void); }
313 233 STD { int linux_llistxattr(void); }
314 234 STD { int linux_flistxattr(void); }
315 235 STD { int linux_removexattr(void); }
316 236 STD { int linux_lremovexattr(void); }
317 237 STD { int linux_fremovexattr(void); }
318 238 UNIMPL linux_tkill
319 239 UNIMPL linux_sendfile64
320 240 UNIMPL linux_futex
321 241 UNIMPL linux_sched_setaffinity
322 242 UNIMPL linux_sched_getaffinity
323 243 UNIMPL linux_set_thread_area
324 244 UNIMPL linux_get_thread_area
325 245 UNIMPL linux_io_setup
326 246 UNIMPL linux_io_destroy
327 247 UNIMPL linux_io_getevents
328 248 UNIMPL linux_io_submit
329 249 UNIMPL linux_io_cancel
330 250 STD { int linux_fadvise64(void); }
331 251 UNIMPL
332 252 MNOPROTO { void sys_exit(int rval); } exit_group sys_exit_args void
333 253 UNIMPL linux_lookup_dcookie
334 254 UNIMPL linux_epoll_create
335 255 UNIMPL linux_epoll_ctl
336 256 UNIMPL linux_epoll_wait
337 257 UNIMPL linux_remap_file_pages
338 258 UNIMPL linux_set_tid_address
339 259 UNIMPL linux_timer_create
340 260 UNIMPL linux_timer_settime
341 261 UNIMPL linux_timer_gettime
342 262 UNIMPL linux_timer_getoverrun
343 263 UNIMPL linux_timer_delete
344 264 UNIMPL linux_clock_settime
345 265 UNIMPL linux_clock_gettime
346 266 UNIMPL linux_clock_getres
347 267 UNIMPL linux_clock_nanosleep
Cache object: 86162fc6726d0131f3c1b39dd3ae12bf
|