Initial import from FreeBSD RELENG_4:
[dragonfly.git] / sys / emulation / svr4 / syscalls.master
1  $FreeBSD: src/sys/svr4/syscalls.master,v 1.6.2.2 2001/10/05 07:34:37 peter Exp $
2 ;       from: @(#)syscalls.master       8.1 (Berkeley) 7/19/93
3 ;
4 ; System call name/number master file (or rather, slave, from SVR4).
5 ; Processed to create svr4_sysent.c, svr4_syscalls.c and svr4_syscall.h.
6
7 ; Columns: number type nargs namespc name alt{name,tag,rtyp}/comments
8 ;       number  system call number, must be in order
9 ;       type    one of STD, OBSOL, UNIMPL, COMPAT
10 ;       namespc one of POSIX, BSD, STD, NOHIDE (I dont care :-) -Peter
11 ;       name    psuedo-prototype of syscall routine
12 ;               If one of the following alts is different, then all appear:
13 ;       altname name of system call if different
14 ;       alttag  name of args struct tag if different from [o]`name'"_args"
15 ;       altrtyp return type if not int (bogus - syscalls always return int)
16 ;               for UNIMPL/OBSOL, name continues with comments
17
18 ; types:
19 ;       STD     always included
20 ;       COMPAT  included on COMPAT #ifdef
21 ;       LIBCOMPAT included on COMPAT #ifdef, and placed in syscall.h
22 ;       OBSOL   obsolete, not included in system, only specifies name
23 ;       UNIMPL  not implemented, placeholder only
24
25 ; #ifdef's, etc. may be included, and are copied to the output files.
26
27 #include <sys/types.h>
28 #include <sys/sysent.h>
29 #include <sys/sysproto.h>
30 #include <netinet/in.h>
31
32 #include <svr4/svr4.h>
33 #include <svr4/svr4_types.h>
34 #include <svr4/svr4_signal.h>
35 #include <svr4/svr4_proto.h>
36
37 0       UNIMPL  SVR4    unused
38 1       NOPROTO POSIX   { void sys_exit(int rval); } exit sys_exit_args void
39 2       NOPROTO POSIX   { int fork(void); }
40 3       NOPROTO POSIX   { int read(int fd, char *buf, u_int nbyte); }
41 4       NOPROTO SVR4    { int write(int fd, char *buf, u_int nbyte); }
42 5       STD     SVR4    { int svr4_sys_open(char *path, int flags, int mode); }
43 6       NOPROTO SVR4    { int close(int fd); }
44 7       STD     SVR4    { int svr4_sys_wait(int *status); }
45 8       STD     SVR4    { int svr4_sys_creat(char *path, int mode); }
46 9       NOPROTO SVR4    { int link(char *path, char *link); }
47 10      NOPROTO SVR4    { int unlink(char *path); }
48 11      STD     SVR4    { int svr4_sys_execv(char *path, char **argp); }
49 12      NOPROTO SVR4    { int chdir(char *path); }
50 13      STD     SVR4    { int svr4_sys_time(time_t *t); }
51 14      STD     SVR4    { int svr4_sys_mknod(char* path, int mode, int dev); }
52 15      NOPROTO SVR4    { int chmod(char *path, int mode); }
53 16      NOPROTO SVR4    { int chown(char *path, uid_t uid, gid_t gid); }
54 17      STD     SVR4    { int svr4_sys_break(caddr_t nsize); }
55 18      STD     SVR4    { int svr4_sys_stat(char* path, \
56                                 struct svr4_stat* ub); }
57 19      NOPROTO SVR4    { int lseek(int filedes, off_t *offset, int whence); }
58 20      NOPROTO SVR4    { pid_t getpid(void); }
59 21      UNIMPL  SVR4    old_mount
60 22      UNIMPL  SVR4    sysv_umount
61 23      NOPROTO SVR4    { int setuid(uid_t uid); }
62 24      NOPROTO SVR4    { uid_t getuid(void); }
63 25      UNIMPL  SVR4    stime
64 26      UNIMPL  SVR4    ptrace
65 27      STD     SVR4    { int svr4_sys_alarm(unsigned sec); }
66 28      STD     SVR4    { int svr4_sys_fstat(int fd, struct svr4_stat *sb); }
67 29      STD     SVR4    { int svr4_sys_pause(void); }
68 30      STD     SVR4    { int svr4_sys_utime(char *path, \
69                                 struct svr4_utimbuf *ubuf); }
70 31      UNIMPL  SVR4    stty
71 32      UNIMPL  SVR4    gtty
72 33      STD     SVR4    { int svr4_sys_access(char *path, int flags); }
73 34      STD     SVR4    { int svr4_sys_nice(int prio); }
74 35      UNIMPL  SVR4    statfs
75 36      NOPROTO SVR4    { int sync(void); }
76 37      STD     SVR4    { int svr4_sys_kill(int pid, int signum); }
77 38      UNIMPL  SVR4    fstatfs
78 39      STD     SVR4    { int svr4_sys_pgrpsys(int cmd, int pid, int pgid); }
79 40      UNIMPL  SVR4    xenix
80 41      NOPROTO SVR4    { int dup(u_int fd); }
81 42      NOPROTO SVR4    { int pipe(void); }
82 43      STD     SVR4    { int svr4_sys_times(struct tms *tp); }
83 44      UNIMPL  SVR4    profil
84 45      UNIMPL  SVR4    plock
85 46      NOPROTO SVR4    { int setgid(gid_t gid); }
86 47      NOPROTO SVR4    { gid_t getgid(void); }
87 48      STD     SVR4    { int svr4_sys_signal(int signum, \
88                                 svr4_sig_t handler); }
89 #if defined(NOTYET)
90 49      STD     SVR4    { int svr4_sys_msgsys(int what, int a2, int a3, \
91                                 int a4, int a5); }
92 #else
93 49      UNIMPL  SVR4    msgsys
94 #endif
95 50      STD     SVR4    { int svr4_sys_sysarch(int op, void *a1); }
96 51      UNIMPL  SVR4    acct
97 52      UNIMPL  SVR4    shmsys
98 53      UNIMPL  SVR4    semsys
99 54      STD     SVR4    { int svr4_sys_ioctl(int fd, u_long com, \
100                                 caddr_t data); }
101 55      UNIMPL  SVR4    uadmin
102 56      UNIMPL  SVR4    exch
103 57      STD     SVR4    { int svr4_sys_utssys(void *a1, void *a2, int sel, \
104                                 void *a3); }
105 58      NOPROTO SVR4    { int fsync(int fd); }
106 59      STD     SVR4    { int svr4_sys_execve(char *path, char **argp, \
107                                 char **envp); }
108 60      NOPROTO SVR4    { int umask(int newmask); }
109 61      NOPROTO SVR4    { int chroot(char *path); }
110 62      STD     SVR4    { int svr4_sys_fcntl(int fd, int cmd, char *arg); }
111 63      STD     SVR4    { int svr4_sys_ulimit(int cmd, long newlimit); }
112 64      UNIMPL  SVR4    reserved
113 65      UNIMPL  SVR4    reserved
114 66      UNIMPL  SVR4    reserved
115 67      UNIMPL  SVR4    reserved
116 68      UNIMPL  SVR4    reserved
117 69      UNIMPL  SVR4    reserved
118 70      UNIMPL  SVR4    advfs
119 71      UNIMPL  SVR4    unadvfs
120 72      UNIMPL  SVR4    rmount
121 73      UNIMPL  SVR4    rumount
122 74      UNIMPL  SVR4    rfstart
123 75      UNIMPL  SVR4    sigret
124 76      UNIMPL  SVR4    rdebug
125 77      UNIMPL  SVR4    rfstop
126 78      UNIMPL  SVR4    rfsys
127 79      NOPROTO SVR4    { int rmdir(char *path); }
128 80      NOPROTO SVR4    { int mkdir(char *path, int mode); }
129 81      STD     SVR4    { int svr4_sys_getdents(int fd, char *buf, \
130                                 int nbytes); }
131 82      UNIMPL  SVR4    libattach
132 83      UNIMPL  SVR4    libdetach
133 84      UNIMPL  SVR4    sysfs
134 85      STD     SVR4    { int svr4_sys_getmsg(int fd, struct svr4_strbuf *ctl, \
135                                 struct svr4_strbuf *dat, int *flags); }
136 86      STD     SVR4    { int svr4_sys_putmsg(int fd, struct svr4_strbuf *ctl, \
137                                 struct svr4_strbuf *dat, int flags); }
138 87      STD     SVR4    { int svr4_sys_poll(struct pollfd *fds, unsigned int nfds, \
139                                 int timeout); }
140 88      STD     SVR4    { int svr4_sys_lstat(char *path, \
141                                 struct svr4_stat *ub); }
142 89      NOPROTO SVR4    { int symlink(char *path, char *link); }
143 90      NOPROTO SVR4    { int readlink(char *path, char *buf, int count); }
144 91      NOPROTO SVR4    { int getgroups(u_int gidsetsize, gid_t *gidset); }
145 92      NOPROTO SVR4    { int setgroups(u_int gidsetsize, gid_t *gidset); }
146 93      NOPROTO SVR4    { int fchmod(int fd, int mode); }
147 94      NOPROTO SVR4    { int fchown(int fd, int uid, int gid); }
148 95      STD     SVR4    { int svr4_sys_sigprocmask(int how, \
149                             svr4_sigset_t *set, svr4_sigset_t *oset); }
150 96      STD     SVR4    { int svr4_sys_sigsuspend(svr4_sigset_t *ss); }
151 97      STD     SVR4    { int svr4_sys_sigaltstack( \
152                                 struct svr4_sigaltstack *nss, \
153                                 struct svr4_sigaltstack *oss); }
154 98      STD     SVR4    { int svr4_sys_sigaction(int signum, \
155                             struct svr4_sigaction *nsa, \
156                             struct svr4_sigaction *osa); }
157 99      STD     SVR4    { int svr4_sys_sigpending(int what, \
158                             svr4_sigset_t *mask); }
159 100     STD     SVR4    { int svr4_sys_context(int func, \
160                             struct svr4_ucontext *uc); }
161 101     UNIMPL  SVR4    evsys
162 102     UNIMPL  SVR4    evtrapret
163 103     STD     SVR4    { int svr4_sys_statvfs(char *path, \
164                                 struct svr4_statvfs *fs); }
165 104     STD     SVR4    { int svr4_sys_fstatvfs(int fd, \
166                                 struct svr4_statvfs *fs); }
167 105     UNIMPL  SVR4    whoknows
168 106     UNIMPL  SVR4    nfssvc
169 107     STD     SVR4    { int svr4_sys_waitsys(int grp, int id, \
170                                 union svr4_siginfo *info, int options); }
171 108     UNIMPL  SVR4    sigsendsys
172 109     STD     SVR4    { int svr4_sys_hrtsys(int cmd, int fun, int sub, \
173                                 void *rv1, void *rv2); }
174 110     UNIMPL  SVR4    acancel
175 111     UNIMPL  SVR4    async
176 112     UNIMPL  SVR4    priocntlsys
177 113     STD     SVR4    { int svr4_sys_pathconf(char *path, int name); }
178 114     UNIMPL  SVR4    mincore
179 115     STD     SVR4    { caddr_t svr4_sys_mmap( caddr_t addr, svr4_size_t len, \
180                                 int prot, int flags, int fd, svr4_off_t pos); }
181 116     NOPROTO SVR4    { int mprotect(void *addr, int len, int prot); }
182 117     NOPROTO SVR4    { int munmap(void *addr, int len); }
183 118     STD     SVR4    { int svr4_sys_fpathconf(int fd, int name); }
184 119     NOPROTO SVR4    { int vfork(void); }
185 120     NOPROTO SVR4    { int fchdir(int fd); }
186 121     NOPROTO SVR4    { int readv(int fd, struct iovec *iovp, \
187                                 u_int iovcnt); }
188 122     NOPROTO SVR4    { int writev(int fd, struct iovec *iovp, \
189                                 u_int iovcnt); }
190 123     STD     SVR4    { int svr4_sys_xstat(int two, char *path, \
191                             struct svr4_xstat *ub); }
192 124     STD     SVR4    { int svr4_sys_lxstat(int two, char *path, \
193                                 struct svr4_xstat *ub); }
194 125     STD     SVR4    { int svr4_sys_fxstat(int two, int fd, \
195                                 struct svr4_xstat *sb); }
196 126     STD     SVR4    { int svr4_sys_xmknod(int two, char *path, \
197                                 svr4_mode_t mode, svr4_dev_t dev); }
198 127     UNIMPL  SVR4    clocal
199 128     STD     SVR4    { int svr4_sys_setrlimit(int which, \
200                                 const struct svr4_rlimit *rlp); }
201 129     STD     SVR4    { int svr4_sys_getrlimit(int which, \
202                                 struct svr4_rlimit *rlp); }
203 130     NOPROTO SVR4    { int lchown(char *path, uid_t uid, gid_t gid); }
204 131     STD     SVR4    { int svr4_sys_memcntl(void * addr, \
205                                 svr4_size_t len, int cmd, void * arg, \
206                                 int attr, int mask); }
207 132     UNIMPL  SVR4    getpmsg
208 133     UNIMPL  SVR4    putpmsg
209 134     NOPROTO SVR4    { int rename(char *from, char *to); }
210 135     STD     SVR4    { int svr4_sys_uname(struct svr4_utsname* name, \
211                                 int dummy); }
212 136     NOPROTO SVR4    { int setegid(gid_t egid); }
213 137     STD     SVR4    { int svr4_sys_sysconfig(int name); }
214 138     NOPROTO SVR4    { int adjtime(struct timeval *delta, \
215                                 struct timeval *olddelta); }
216 139     STD     SVR4    { long svr4_sys_systeminfo(int what, char *buf, \
217                                 long len); }
218 140     UNIMPL  SVR4    notused
219 141     NOPROTO SVR4    { int seteuid(uid_t euid); }
220 142     UNIMPL  SVR4    vtrace
221 ; fork1
222 143     UNIMPL SVR4     { int fork(void); } 
223 144     UNIMPL  SVR4    sigtimedwait
224 145     UNIMPL  SVR4    lwp_info
225 146     UNIMPL  SVR4    yield
226 147     UNIMPL  SVR4    lwp_sema_wait
227 148     UNIMPL  SVR4    lwp_sema_post
228 149     UNIMPL  SVR4    lwp_sema_trywait
229 150     UNIMPL  SVR4    notused
230 151     UNIMPL  SVR4    notused
231 152     UNIMPL  SVR4    modctl
232 153     STD     SVR4    { int svr4_sys_fchroot(int fd); }
233 154     STD     SVR4    { int svr4_sys_utimes(char *path, \
234                                 struct timeval *tptr); }
235 155     STD     SVR4    { int svr4_sys_vhangup(void); }
236 156     STD     SVR4    { int svr4_sys_gettimeofday(struct timeval *tp); }
237 157     NOPROTO SVR4    { int getitimer(u_int which, struct itimerval *itv); }
238 158     NOPROTO SVR4    { int setitimer(u_int which, struct itimerval *itv, \
239                                         struct itimerval *oitv); }
240 159     UNIMPL  SVR4    lwp_create
241 160     UNIMPL  SVR4    lwp_exit
242 161     UNIMPL  SVR4    lwp_suspend
243 162     UNIMPL  SVR4    lwp_continue
244 163     UNIMPL  SVR4    lwp_kill
245 164     UNIMPL  SVR4    lwp_self
246 165     UNIMPL  SVR4    lwp_getprivate
247 166     UNIMPL  SVR4    lwp_setprivate
248 167     UNIMPL  SVR4    lwp_wait
249 168     UNIMPL  SVR4    lwp_mutex_unlock
250 169     UNIMPL  SVR4    lwp_mutex_lock
251 170     UNIMPL  SVR4    lwp_cond_wait
252 171     UNIMPL  SVR4    lwp_cond_signal
253 172     UNIMPL  SVR4    lwp_cond_broadcast
254 173     UNIMPL  SVR4    { ssize_t svr4_sys_pread(int fd, void *buf, \
255                                 size_t nbyte, svr4_off_t off); }
256 174     UNIMPL  SVR4    { ssize_t svr4_sys_pwrite(int fd, const void *buf, \
257                                 size_t nbyte, svr4_off_t off); }
258 175     STD     SVR4    { svr4_off64_t svr4_sys_llseek(int fd, long offset1, \
259                                 long offset2, int whence); }
260 176     UNIMPL  SVR4    inst_sync
261 177     UNIMPL  SVR4    whoknows
262 178     UNIMPL  SVR4    kaio
263 179     UNIMPL  SVR4    whoknows
264 180     UNIMPL  SVR4    whoknows
265 181     UNIMPL  SVR4    whoknows
266 182     UNIMPL  SVR4    whoknows
267 183     UNIMPL  SVR4    whoknows
268 184     UNIMPL  SVR4    tsolsys
269 185     STD     SVR4    { int svr4_sys_acl(char *path, int cmd, int num, \
270                             struct svr4_aclent *buf); }
271 186     STD     SVR4    { int svr4_sys_auditsys(int code, int a1, int a2, \
272                                 int a3, int a4, int a5); }
273 187     UNIMPL  SVR4    processor_bind
274 188     UNIMPL  SVR4    processor_info
275 189     UNIMPL  SVR4    p_online
276 190     UNIMPL  SVR4    sigqueue
277 191     UNIMPL  SVR4    clock_gettime
278 192     UNIMPL  SVR4    clock_settime
279 193     UNIMPL  SVR4    clock_getres
280 194     UNIMPL  SVR4    timer_create
281 195     UNIMPL  SVR4    timer_delete
282 196     UNIMPL  SVR4    timer_settime
283 197     UNIMPL  SVR4    timer_gettime
284 198     UNIMPL  SVR4    timer_overrun
285 199     NOPROTO SVR4    { int nanosleep(const struct timespec *rqtp, \
286                                 struct timespec *rmtp); }
287 200     STD     SVR4    { int svr4_sys_facl(int fd, int cmd, int num, \
288                             struct svr4_aclent *buf); }
289 201     UNIMPL  SVR4    door
290 202     NOPROTO SVR4    { int setreuid(int ruid, int euid); }
291 203     NOPROTO SVR4    { int setregid(int rgid, int egid); }
292 204     UNIMPL  SVR4    install_utrap
293 205     UNIMPL  SVR4    signotify
294 206     UNIMPL  SVR4    schedctl
295 207     UNIMPL  SVR4    pset
296 208     UNIMPL  SVR4    whoknows
297 209     STD     SVR4    { int svr4_sys_resolvepath(const char *path, \
298                                 char *buf, size_t bufsiz); }
299 210     UNIMPL  SVR4    signotifywait
300 211     UNIMPL  SVR4    lwp_sigredirect
301 212     UNIMPL  SVR4    lwp_alarm
302 213     STD     SVR4    { int svr4_sys_getdents64(int fd, \
303                                 struct svr4_dirent64 *dp, \
304                                 int nbytes); }
305 ;213    UNIMPL  SVR4    getdents64
306 214     STD     SVR4    { caddr_t svr4_sys_mmap64(void *addr, \
307                                 svr4_size_t len, int prot, int flags, int fd, \
308                                 svr4_off64_t pos); }
309 215     STD     SVR4    { int svr4_sys_stat64(char *path, \
310                                 struct svr4_stat64 *sb); }
311 216     STD     SVR4    { int svr4_sys_lstat64(char *path, \
312                                 struct svr4_stat64 *sb); }
313 217     STD     SVR4    { int svr4_sys_fstat64(int fd, \
314                                 struct svr4_stat64 *sb); }
315 218     STD     SVR4    { int svr4_sys_statvfs64(char *path, \
316                                 struct svr4_statvfs64 *fs); }
317 219     STD     SVR4    { int svr4_sys_fstatvfs64(int fd, \
318                                 struct svr4_statvfs64 *fs); }
319 220     STD     SVR4    { int svr4_sys_setrlimit64(int which, \
320                                 const struct svr4_rlimit64 *rlp); }
321 221     STD     SVR4    { int svr4_sys_getrlimit64(int which, \
322                                 struct svr4_rlimit64 *rlp); }
323 222     UNIMPL  SVR4    pread64
324 223     UNIMPL  SVR4    pwrite64
325 224     STD     SVR4    { int svr4_sys_creat64(char *path, int mode); }
326 225     STD     SVR4    { int svr4_sys_open64(char *path, int flags, \
327                                 int mode); }
328 226     UNIMPL  SVR4    rpcsys
329 227     UNIMPL  SVR4    whoknows
330 228     UNIMPL  SVR4    whoknows
331 229     UNIMPL  SVR4    whoknows
332 230     STD     SVR4    { int svr4_sys_socket(int domain, int type, \
333                                 int protocol); }
334 231     NOPROTO SVR4    { int socketpair(int domain, int type, \
335                                 int protocol, int *rsv); }
336 232     NOPROTO SVR4    { int bind(int s, const struct sockaddr *name, \
337                                 int namelen); }
338 233     NOPROTO SVR4    { int listen(int s, int backlog); }
339 234     NOPROTO SVR4    { int accept(int s, struct sockaddr *name, \
340                                 int *anamelen); }
341 235     NOPROTO SVR4    { int connect(int s, const struct sockaddr *name, \
342                                 int namelen); }
343 236     NOPROTO SVR4    { int shutdown(int s, int how); }
344 237     STD     SVR4    { int svr4_sys_recv(int s, caddr_t buf, int len, int flags); }
345 238     NOPROTO SVR4    { ssize_t recvfrom(int s, void *buf, size_t len, \
346                                 int flags, struct sockaddr *from, \
347                                 int *fromlenaddr); }
348 239     NOPROTO SVR4    { ssize_t recvmsg(int s, struct msghdr *msg, \
349                                 int flags); }
350 240     STD     SVR4    { int svr4_sys_send(int s, caddr_t buf, int len, int flags); }
351 241     NOPROTO SVR4    { ssize_t sendmsg(int s, const struct msghdr *msg, \
352                                 int flags); }
353 242     STD     SVR4    { ssize_t svr4_sys_sendto(int s, void *buf, \
354                                 size_t len, int flags, \
355                                 struct sockaddr *to, int tolen); }
356 243     NOPROTO SVR4    { int getpeername(int fdes, struct sockaddr *asa, \
357                                 int *alen); }
358 244     NOPROTO SVR4    { int getsockname(int fdes, struct sockaddr *asa, \
359                                 int *alen); }
360 245     NOPROTO SVR4    { int getsockopt(int s, int level, int name, \
361                                 void *val, int *avalsize); }
362 246     NOPROTO SVR4    { int setsockopt(int s, int level, int name, \
363                                 const void *val, int valsize); }
364 247     UNIMPL  SVR4    sockconfig
365 248     UNIMPL  SVR4    { int ntp_gettime(struct ntptimeval *ntvp); }
366 249     UNIMPL  SVR4    { int ntp_adjtime(struct timex *tp); }