syscalls.master revision 1.2 1 $NetBSD: syscalls.master,v 1.2 1995/03/05 23:23:51 fvdl Exp $
2
3 ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93
4
5 ; NetBSD COMPAT_LINUX system call name/number "master" file.
6 ; (See syscalls.conf to see what it is processed into.)
7 ;
8 ; Fields: number type [type-dependent ...]
9 ; number system call number, must be in order
10 ; type one of STD, OBSOL, UNIMPL, NODEF, NOARGS, or one of
11 ; the compatibility options defined in syscalls.conf.
12 ;
13 ; types:
14 ; STD always included
15 ; OBSOL obsolete, not included in system
16 ; UNIMPL unimplemented, not included in system
17 ; NODEF included, but don't define the syscall number
18 ; NOARGS included, but don't define the syscall args structure
19 ;
20 ; The compat options are defined in the syscalls.conf file, and the
21 ; compat option name is prefixed to the syscall name. Other than
22 ; that, they're like NODEF (for 'compat' options), or STD (for
23 ; 'libcompat' options).
24 ;
25 ; The type-dependent arguments are as follows:
26 ; For STD, NODEF, NOARGS, and compat syscalls:
27 ; { pseudo-proto } [alias]
28 ; For other syscalls:
29 ; [comment]
30 ;
31 ; #ifdef's, etc. may be included, and are copied to the output files.
32 ; #include's are copied to the syscall switch definition file only.
33
34 #include <sys/param.h>
35 #include <sys/systm.h>
36 #include <sys/signal.h>
37 #include <sys/mount.h>
38 #include <sys/syscallargs.h>
39 #include <compat/linux/linux_types.h>
40 #include <compat/linux/linux_syscallargs.h>
41
42 0 NOARGS { int nosys(void); } syscall
43 1 NOARGS { int exit(int rval); }
44 2 STD { int linux_fork(void); }
45 3 NOARGS { int read(int fd, char *buf, u_int nbyte); }
46 4 NOARGS { int write(int fd, char *buf, u_int nbyte); }
47 5 STD { int linux_open(char *path, int flags, int mode); }
48 6 NOARGS { int close(int fd); }
49 7 STD { int linux_waitpid(int pid, int *status, int options);}
50 8 STD { int linux_creat(char *path, int mode); }
51 9 NOARGS { int link(char *path, char *link); }
52 10 STD { int linux_unlink(char *path); }
53 11 STD { int linux_execve(char *path, char **argp, char **envp); }
54 12 STD { int linux_chdir(char *path); }
55 13 STD { int linux_time(linux_time_t *t); }
56 14 STD { int linux_mknod(char *path, int mode, int dev); }
57 15 STD { int linux_chmod(char *path, int mode); }
58 16 STD { int linux_chown(char *path, int uid, int gid); }
59 17 STD { int linux_break(char *nsize); }
60 18 OBSOL linux_ostat
61 19 NOARGS { long compat_43_lseek(int fd, long offset, int whence); }
62 20 NOARGS { pid_t getpid(void); }
63 21 UNIMPL linux_mount
64 22 UNIMPL linux_umount
65 23 NOARGS { int setuid(uid_t uid); }
66 24 NOARGS { uid_t getuid(void); }
67 25 UNIMPL linux_stime
68 26 UNIMPL linux_ptrace
69 27 STD { int linux_alarm(unsigned int secs); }
70 28 OBSOL linux_ofstat
71 29 UNIMPL linux_pause
72 30 STD { int linux_utime(char *path, struct linux_utimbuf *times); }
73 31 UNIMPL linux_stty
74 32 UNIMPL linux_gtty
75 33 STD { int linux_access(char *path, int flags); }
76 34 UNIMPL linux_nice
77 35 UNIMPL linux_ftime
78 36 NOARGS { int sync(void); }
79 37 STD { int linux_kill(int pid, int signum); }
80 38 STD { int linux_rename(char *from, char *to); }
81 39 STD { int linux_mkdir(char *path); }
82 40 STD { int linux_rmdir(char *path); }
83 41 NOARGS { int dup(u_int fd); }
84 42 STD { int linux_pipe(int *pfds); }
85 43 STD { int linux_times(struct times *tms); }
86 44 UNIMPL linux_prof
87 45 STD { int linux_brk(char *nsize); }
88 46 NOARGS { int setgid(uid_t gid); }
89 47 NOARGS { gid_t getgid(void); }
90 48 STD { int linux_signal(int sig, linux_handler_t handler); }
91 49 NOARGS { uid_t geteuid(void); }
92 50 NOARGS { gid_t getegid(void); }
93 51 NOARGS { int acct(char *path); }
94 52 UNIMPL linux_phys
95 53 UNIMPL linux_lock
96 54 STD { int linux_ioctl(int fd, u_long com, caddr_t data); }
97 55 STD { int linux_fcntl(int fd, int cmd, void *arg); }
98 56 UNIMPL linux_mpx
99 57 NOARGS { int setpgid(int pid, int pgid); }
100 58 UNIMPL linux_ulimit
101 59 UNIMPL linux_oldolduname
102 60 NOARGS { int umask(int newmask); }
103 61 NOARGS { int chroot(char *path); }
104 62 UNIMPL linux_ustat
105 63 NOARGS { int dup2(u_int from, u_int to); }
106 64 NOARGS { pid_t getppid(void); }
107 65 NOARGS { int getpgrp(void); }
108 66 NOARGS { int setsid(void); }
109 67 STD { int linux_sigaction(int signum, \
110 struct linux_sigaction *nsa,\
111 struct linux_sigaction *osa); }
112 68 STD { int linux_siggetmask(void); }
113 69 STD { int linux_sigsetmask(linux_sigset_t mask); }
114 70 NOARGS { int compat_43_setreuid(int ruid, int euid); }
115 71 NOARGS { int compat_43_setregid(int rgid, int egid); }
116 72 STD { int linux_sigsuspend(int mask); }
117 73 STD { int linux_sigpending(linux_sigset_t *mask); }
118 74 NOARGS { int compat_43_sethostname(char *hostname, u_int len);}
119 75 NOARGS { int compat_43_setrlimit(u_int which, \
120 struct ogetrlimit *rlp); }
121 76 NOARGS { int compat_43_getrlimit(u_int which, \
122 struct ogetrlimit *rlp); }
123 77 NOARGS { int getrusage(int who, struct rusage *rusage); }
124 78 NOARGS { int gettimeofday(struct timeval *tp, \
125 struct timezone *tzp); }
126 79 NOARGS { int settimeofday(struct timeval *tp, \
127 struct timezone *tzp); }
128 80 NOARGS { int getgroups(u_int gidsetsize, gid_t *gidset); }
129 81 NOARGS { int setgroups(u_int gidsetsize, gid_t *gidset); }
130 82 STD { int linux_select(struct linux_select *lsp); }
131 83 STD { int linux_symlink(char *path, char *to); }
132 84 NOARGS { int compat_43_lstat(char *path, struct ostat *up); }
133 85 STD { int linux_readlink(char *name, char *buf, int count); }
134 86 STD { int linux_uselib(char *path); }
135 87 NOARGS { int swapon(char *name); }
136 88 NOARGS { int reboot(int opt); }
137 89 STD { int linux_readdir(int fd, struct linux_dirent *dent, \
138 unsigned int count); }
139 90 STD { int linux_mmap(struct linux_mmap *lmp); }
140 91 NOARGS { int munmap(caddr_t addr, int len); }
141 92 STD { int linux_truncate(char *path, long length); }
142 93 NOARGS { int compat_43_ftruncate(int fd, long length); }
143 94 NOARGS { int fchmod(int fd, int mode); }
144 95 NOARGS { int fchown(int fd, int uid, int gid); }
145 96 NOARGS { int getpriority(int which, int who); }
146 97 NOARGS { int setpriority(int which, int who, int prio); }
147 98 NOARGS { int profil(caddr_t samples, u_int size, \
148 u_int offset, u_int scale); }
149 99 STD { int linux_statfs(char *path, struct linux_statfs *sp); }
150 100 STD { int linux_fstatfs(int fd, struct linux_statfs *sp); }
151 101 UNIMPL linux_ioperm
152 102 STD { int linux_socketcall(int what, void *args); }
153 103 UNIMPL linux_klog
154 104 NOARGS { int setitimer(u_int which, struct itimerval *itv, \
155 struct itimerval *oitv); }
156 105 NOARGS { int getitimer(u_int which, struct itimerval *itv); }
157 106 STD { int linux_stat(char *path, struct linux_stat *sp); }
158 107 STD { int linux_lstat(char *path, struct linux_stat *sp); }
159 108 STD { int linux_fstat(int fd, struct linux_stat *sp); }
160 109 UNIMPL linux_olduname
161 110 UNIMPL linux_iopl
162 111 UNIMPL linux_vhangup
163 112 UNIMPL linux_idle
164 113 UNIMPL linux_vm86
165 114 STD { int linux_wait4(int pid, int *status, int options, \
166 struct rusage *rusage); }
167 115 UNIMPL linux_swapoff
168 116 UNIMPL linux_sysinfo
169 117 STD { int linux_ipc(int what, int a1, int a2, int a3, \
170 caddr_t ptr); }
171 118 NOARGS { int fsync(int fd); }
172 119 UNIMPL linux_sigreturn
173 120 UNIMPL linux_clone
174 121 NOARGS { int compat_09_setdomainname(char *name, int len); }
175 122 STD { int linux_uname(struct linux_utsname *up); }
176 123 UNIMPL linux_modify_ldt
177 124 UNIMPL linux_adjtimex
178 125 NOARGS { int mprotect(caddr_t addr, int len, int prot); }
179 126 STD { int linux_sigprocmask(int how, linux_sigset_t *set, \
180 linux_sigset_t *oset); }
181 127 UNIMPL linux_create_module
182 128 UNIMPL linux_init_module
183 129 UNIMPL linux_delete_module
184 130 UNIMPL linux_get_kernel_syms
185 131 UNIMPL linux_quotactl
186 132 STD { int linux_getpgid(int pid); }
187 133 NOARGS { int fchdir(int fd); }
188 134 UNIMPL linux_bdflush
189 135 UNIMPL linux_sysfs
190 136 UNIMPL linux_personality
191 137 UNIMPL linux_afs_syscall
192 138 UNIMPL linux_setfsuid
193 139 UNIMPL linux_getfsuid
194 140 STD { int linux_llseek(int fd, u_int32_t ohigh, \
195 u_int32_t olow, caddr_t res, int whence); }
196