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