1 $FreeBSD: stable/9/sys/compat/svr4/syscalls.master 203660 2010-02-08 10:02:01Z ed $ 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 name alt{name,tag,rtyp}/comments 8; number system call number, must be in order 9; audit the audit event associated with the system call 10; A value of AUE_NULL means no auditing, but it also means that 11; there is no audit event for the call at this time. For the 12; case where the event exists, but we don't want auditing, the 13; event should be #defined to AUE_NULL in audit_kevents.h. 14; type one of STD, OBSOL, UNIMPL, COMPAT 15; name psuedo-prototype of syscall routine 16; If one of the following alts is different, then all appear: 17; altname name of system call if different 18; alttag name of args struct tag if different from [o]`name'"_args" 19; altrtyp return type if not int (bogus - syscalls always return int) 20; for UNIMPL/OBSOL, name continues with comments 21 22; types: 23; STD always included 24; COMPAT included on COMPAT #ifdef 25; OBSOL obsolete, not included in system, only specifies name 26; UNIMPL not implemented, placeholder only 27 28; #ifdef's, etc. may be included, and are copied to the output files. 29 30#include <sys/types.h> 31#include <sys/sysent.h> 32#include <sys/sysproto.h> 33#include <netinet/in.h> 34 35#include <compat/svr4/svr4.h> 36#include <compat/svr4/svr4_types.h> 37#include <compat/svr4/svr4_signal.h> 38#include <compat/svr4/svr4_proto.h> 39 400 AUE_NULL UNIMPL unused 411 AUE_NULL NOPROTO { void sys_exit(int rval); } exit \ 42 sys_exit_args void 432 AUE_NULL NOPROTO { int fork(void); } 443 AUE_NULL NOPROTO { int read(int fd, char *buf, u_int nbyte); } 454 AUE_NULL NOPROTO { int write(int fd, char *buf, u_int nbyte); } 465 AUE_NULL STD { int svr4_sys_open(char *path, int flags, \ 47 int mode); } 486 AUE_NULL NOPROTO { int close(int fd); } 497 AUE_NULL STD { int svr4_sys_wait(int *status); } 508 AUE_NULL STD { int svr4_sys_creat(char *path, int mode); } 519 AUE_NULL NOPROTO { int link(char *path, char *link); } 5210 AUE_NULL NOPROTO { int unlink(char *path); } 5311 AUE_NULL STD { int svr4_sys_execv(char *path, char **argp); } 5412 AUE_NULL NOPROTO { int chdir(char *path); } 5513 AUE_NULL STD { int svr4_sys_time(time_t *t); } 5614 AUE_NULL STD { int svr4_sys_mknod(char* path, int mode, int dev); } 5715 AUE_NULL NOPROTO { int chmod(char *path, int mode); } 5816 AUE_NULL NOPROTO { int chown(char *path, uid_t uid, gid_t gid); } 5917 AUE_NULL STD { int svr4_sys_break(caddr_t nsize); } 6018 AUE_NULL STD { int svr4_sys_stat(char* path, \ 61 struct svr4_stat* ub); } 6219 AUE_NULL NOPROTO { int lseek(int filedes, off_t *offset, \ 63 int whence); } 6420 AUE_NULL NOPROTO { pid_t getpid(void); } 6521 AUE_NULL UNIMPL old_mount 6622 AUE_NULL UNIMPL sysv_umount 6723 AUE_NULL NOPROTO { int setuid(uid_t uid); } 6824 AUE_NULL NOPROTO { uid_t getuid(void); } 6925 AUE_NULL UNIMPL stime 7026 AUE_NULL UNIMPL ptrace 7127 AUE_NULL STD { int svr4_sys_alarm(unsigned sec); } 7228 AUE_NULL STD { int svr4_sys_fstat(int fd, \ 73 struct svr4_stat *sb); } 7429 AUE_NULL STD { int svr4_sys_pause(void); } 7530 AUE_NULL STD { int svr4_sys_utime(char *path, \ 76 struct svr4_utimbuf *ubuf); } 7731 AUE_NULL UNIMPL stty 7832 AUE_NULL UNIMPL gtty 7933 AUE_NULL STD { int svr4_sys_access(char *path, \ 80 int flags); } 8134 AUE_NULL STD { int svr4_sys_nice(int prio); } 8235 AUE_NULL UNIMPL statfs 8336 AUE_NULL NOPROTO { int sync(void); } 8437 AUE_NULL STD { int svr4_sys_kill(int pid, int signum); } 8538 AUE_NULL UNIMPL fstatfs 8639 AUE_NULL STD { int svr4_sys_pgrpsys(int cmd, int pid, \ 87 int pgid); } 8840 AUE_NULL UNIMPL xenix 8941 AUE_NULL NOPROTO { int dup(u_int fd); } 9042 AUE_NULL NOPROTO { int pipe(void); } 9143 AUE_NULL STD { int svr4_sys_times(struct tms *tp); } 9244 AUE_NULL UNIMPL profil 9345 AUE_NULL UNIMPL plock 9446 AUE_NULL NOPROTO { int setgid(gid_t gid); } 9547 AUE_NULL NOPROTO { gid_t getgid(void); } 9648 AUE_NULL STD { int svr4_sys_signal(int signum, \ 97 svr4_sig_t handler); } 9849 AUE_NULL STD { int svr4_sys_msgsys(int what, int a2, \ 99 int a3, int a4, int a5); } 10050 AUE_NULL STD { int svr4_sys_sysarch(int op, void *a1); } 10151 AUE_NULL UNIMPL acct 10252 AUE_NULL STD { int svr4_sys_shmsys(int what, int a2, \ 103 int a3, int a4, int a5); } 10453 AUE_NULL STD { int svr4_sys_semsys(int what, int a2, \ 105 int a3, int a4, int a5); } 10654 AUE_NULL STD { int svr4_sys_ioctl(int fd, u_long com, \ 107 caddr_t data); } 10855 AUE_NULL UNIMPL uadmin 10956 AUE_NULL UNIMPL exch 11057 AUE_NULL STD { int svr4_sys_utssys(void *a1, void *a2, \ 111 int sel, void *a3); } 11258 AUE_NULL NOPROTO { int fsync(int fd); } 11359 AUE_NULL STD { int svr4_sys_execve(char *path, \ 114 char **argp, char **envp); } 11560 AUE_NULL NOPROTO { int umask(int newmask); } 11661 AUE_NULL NOPROTO { int chroot(char *path); } 11762 AUE_NULL STD { int svr4_sys_fcntl(int fd, int cmd, \ 118 char *arg); } 11963 AUE_NULL STD { int svr4_sys_ulimit(int cmd, \ 120 long newlimit); } 12164 AUE_NULL UNIMPL reserved 12265 AUE_NULL UNIMPL reserved 12366 AUE_NULL UNIMPL reserved 12467 AUE_NULL UNIMPL reserved 12568 AUE_NULL UNIMPL reserved 12669 AUE_NULL UNIMPL reserved 12770 AUE_NULL UNIMPL advfs 12871 AUE_NULL UNIMPL unadvfs 12972 AUE_NULL UNIMPL rmount 13073 AUE_NULL UNIMPL rumount 13174 AUE_NULL UNIMPL rfstart 13275 AUE_NULL UNIMPL sigret 13376 AUE_NULL UNIMPL rdebug 13477 AUE_NULL UNIMPL rfstop 13578 AUE_NULL UNIMPL rfsys 13679 AUE_NULL NOPROTO { int rmdir(char *path); } 13780 AUE_NULL NOPROTO { int mkdir(char *path, int mode); } 13881 AUE_NULL STD { int svr4_sys_getdents(int fd, char *buf, \ 139 int nbytes); } 14082 AUE_NULL UNIMPL libattach 14183 AUE_NULL UNIMPL libdetach 14284 AUE_NULL UNIMPL sysfs 14385 AUE_NULL STD { int svr4_sys_getmsg(int fd, \ 144 struct svr4_strbuf *ctl, \ 145 struct svr4_strbuf *dat, int *flags); } 14686 AUE_NULL STD { int svr4_sys_putmsg(int fd, \ 147 struct svr4_strbuf *ctl, \ 148 struct svr4_strbuf *dat, int flags); } 14987 AUE_NULL STD { int svr4_sys_poll(struct pollfd *fds, \ 150 unsigned int nfds, int timeout); } 15188 AUE_NULL STD { int svr4_sys_lstat(char *path, \ 152 struct svr4_stat *ub); } 15389 AUE_NULL NOPROTO { int symlink(char *path, char *link); } 15490 AUE_NULL NOPROTO { int readlink(char *path, char *buf, \ 155 int count); } 15691 AUE_NULL NOPROTO { int getgroups(u_int gidsetsize, \ 157 gid_t *gidset); } 15892 AUE_NULL NOPROTO { int setgroups(u_int gidsetsize, \ 159 gid_t *gidset); } 16093 AUE_NULL NOPROTO { int fchmod(int fd, int mode); } 16194 AUE_NULL NOPROTO { int fchown(int fd, int uid, int gid); } 16295 AUE_NULL STD { int svr4_sys_sigprocmask(int how, \ 163 svr4_sigset_t *set, \ 164 svr4_sigset_t *oset); } 16596 AUE_NULL STD { int svr4_sys_sigsuspend( \ 166 svr4_sigset_t *ss); } 16797 AUE_NULL STD { int svr4_sys_sigaltstack( \ 168 struct svr4_sigaltstack *nss, \ 169 struct svr4_sigaltstack *oss); } 17098 AUE_NULL STD { int svr4_sys_sigaction(int signum, \ 171 struct svr4_sigaction *nsa, \ 172 struct svr4_sigaction *osa); } 17399 AUE_NULL STD { int svr4_sys_sigpending(int what, \ 174 svr4_sigset_t *mask); } 175100 AUE_NULL STD { int svr4_sys_context(int func, \ 176 struct svr4_ucontext *uc); } 177101 AUE_NULL UNIMPL evsys 178102 AUE_NULL UNIMPL evtrapret 179103 AUE_NULL STD { int svr4_sys_statvfs(char *path, \ 180 struct svr4_statvfs *fs); } 181104 AUE_NULL STD { int svr4_sys_fstatvfs(int fd, \ 182 struct svr4_statvfs *fs); } 183105 AUE_NULL UNIMPL whoknows 184106 AUE_NULL UNIMPL nfssvc 185107 AUE_NULL STD { int svr4_sys_waitsys(int grp, int id, \ 186 union svr4_siginfo *info, int options); } 187108 AUE_NULL UNIMPL sigsendsys 188109 AUE_NULL STD { int svr4_sys_hrtsys(int cmd, int fun, \ 189 int sub, void *rv1, void *rv2); } 190110 AUE_NULL UNIMPL acancel 191111 AUE_NULL UNIMPL async 192112 AUE_NULL UNIMPL priocntlsys 193113 AUE_NULL STD { int svr4_sys_pathconf(char *path, \ 194 int name); } 195114 AUE_NULL UNIMPL mincore 196115 AUE_NULL STD { caddr_t svr4_sys_mmap(caddr_t addr, \ 197 svr4_size_t len, int prot, int flags, \ 198 int fd, svr4_off_t pos); } 199116 AUE_NULL NOPROTO { int mprotect(void *addr, int len, \ 200 int prot); } 201117 AUE_NULL NOPROTO { int munmap(void *addr, int len); } 202118 AUE_NULL STD { int svr4_sys_fpathconf(int fd, int name); } 203119 AUE_NULL NOPROTO { int vfork(void); } 204120 AUE_NULL NOPROTO { int fchdir(int fd); } 205121 AUE_NULL NOPROTO { int readv(int fd, struct iovec *iovp, \ 206 u_int iovcnt); } 207122 AUE_NULL NOPROTO { int writev(int fd, struct iovec *iovp, \ 208 u_int iovcnt); } 209123 AUE_NULL STD { int svr4_sys_xstat(int two, char *path, \ 210 struct svr4_xstat *ub); } 211124 AUE_NULL STD { int svr4_sys_lxstat(int two, char *path, \ 212 struct svr4_xstat *ub); } 213125 AUE_NULL STD { int svr4_sys_fxstat(int two, int fd, \ 214 struct svr4_xstat *sb); } 215126 AUE_NULL STD { int svr4_sys_xmknod(int two, char *path, \ 216 svr4_mode_t mode, svr4_dev_t dev); } 217127 AUE_NULL UNIMPL clocal 218128 AUE_NULL STD { int svr4_sys_setrlimit(int which, \ 219 const struct svr4_rlimit *rlp); } 220129 AUE_NULL STD { int svr4_sys_getrlimit(int which, \ 221 struct svr4_rlimit *rlp); } 222130 AUE_NULL NOPROTO { int lchown(char *path, uid_t uid, \ 223 gid_t gid); } 224131 AUE_NULL STD { int svr4_sys_memcntl(void * addr, \ 225 svr4_size_t len, int cmd, void * arg, \ 226 int attr, int mask); } 227132 AUE_NULL UNIMPL getpmsg 228133 AUE_NULL UNIMPL putpmsg 229134 AUE_NULL NOPROTO { int rename(char *from, char *to); } 230135 AUE_NULL STD { int svr4_sys_uname( \ 231 struct svr4_utsname* name, int dummy); } 232136 AUE_NULL NOPROTO { int setegid(gid_t egid); } 233137 AUE_NULL STD { int svr4_sys_sysconfig(int name); } 234138 AUE_NULL NOPROTO { int adjtime(struct timeval *delta, \ 235 struct timeval *olddelta); } 236139 AUE_NULL STD { long svr4_sys_systeminfo(int what, \ 237 char *buf, long len); } 238140 AUE_NULL UNIMPL notused 239141 AUE_NULL NOPROTO { int seteuid(uid_t euid); } 240142 AUE_NULL UNIMPL vtrace 241; fork1 242143 AUE_NULL UNIMPL { int fork(void); } 243144 AUE_NULL UNIMPL sigtimedwait 244145 AUE_NULL UNIMPL lwp_info 245146 AUE_NULL UNIMPL yield 246147 AUE_NULL UNIMPL lwp_sema_wait 247148 AUE_NULL UNIMPL lwp_sema_post 248149 AUE_NULL UNIMPL lwp_sema_trywait 249150 AUE_NULL UNIMPL notused 250151 AUE_NULL UNIMPL notused 251152 AUE_NULL UNIMPL modctl 252153 AUE_NULL STD { int svr4_sys_fchroot(int fd); } 253154 AUE_NULL STD { int svr4_sys_utimes(char *path, \ 254 struct timeval *tptr); } 255155 AUE_NULL STD { int svr4_sys_vhangup(void); } 256156 AUE_NULL STD { int svr4_sys_gettimeofday( \ 257 struct timeval *tp); } 258157 AUE_NULL NOPROTO { int getitimer(u_int which, \ 259 struct itimerval *itv); } 260158 AUE_NULL NOPROTO { int setitimer(u_int which, \ 261 struct itimerval *itv, \ 262 struct itimerval *oitv); } 263159 AUE_NULL UNIMPL lwp_create 264160 AUE_NULL UNIMPL lwp_exit 265161 AUE_NULL UNIMPL lwp_suspend 266162 AUE_NULL UNIMPL lwp_continue 267163 AUE_NULL UNIMPL lwp_kill 268164 AUE_NULL UNIMPL lwp_self 269165 AUE_NULL UNIMPL lwp_getprivate 270166 AUE_NULL UNIMPL lwp_setprivate 271167 AUE_NULL UNIMPL lwp_wait 272168 AUE_NULL UNIMPL lwp_mutex_unlock 273169 AUE_NULL UNIMPL lwp_mutex_lock 274170 AUE_NULL UNIMPL lwp_cond_wait 275171 AUE_NULL UNIMPL lwp_cond_signal 276172 AUE_NULL UNIMPL lwp_cond_broadcast 277173 AUE_NULL UNIMPL { ssize_t svr4_sys_pread(int fd, void *buf, \ 278 size_t nbyte, svr4_off_t off); } 279174 AUE_NULL UNIMPL { ssize_t svr4_sys_pwrite(int fd, \ 280 const void *buf, size_t nbyte, \ 281 svr4_off_t off); } 282175 AUE_NULL STD { svr4_off64_t svr4_sys_llseek(int fd, \ 283 long offset1, long offset2, int whence); } 284176 AUE_NULL UNIMPL inst_sync 285177 AUE_NULL UNIMPL whoknows 286178 AUE_NULL UNIMPL kaio 287179 AUE_NULL UNIMPL whoknows 288180 AUE_NULL UNIMPL whoknows 289181 AUE_NULL UNIMPL whoknows 290182 AUE_NULL UNIMPL whoknows 291183 AUE_NULL UNIMPL whoknows 292184 AUE_NULL UNIMPL tsolsys 293185 AUE_NULL STD { int svr4_sys_acl(char *path, int cmd, \ 294 int num, struct svr4_aclent *buf); } 295186 AUE_NULL STD { int svr4_sys_auditsys(int code, int a1, \ 296 int a2, int a3, int a4, int a5); } 297187 AUE_NULL UNIMPL processor_bind 298188 AUE_NULL UNIMPL processor_info 299189 AUE_NULL UNIMPL p_online 300190 AUE_NULL UNIMPL sigqueue 301191 AUE_NULL UNIMPL clock_gettime 302192 AUE_NULL UNIMPL clock_settime 303193 AUE_NULL UNIMPL clock_getres 304194 AUE_NULL UNIMPL timer_create 305195 AUE_NULL UNIMPL timer_delete 306196 AUE_NULL UNIMPL timer_settime 307197 AUE_NULL UNIMPL timer_gettime 308198 AUE_NULL UNIMPL timer_overrun 309199 AUE_NULL NOPROTO { int nanosleep( \ 310 const struct timespec *rqtp, \ 311 struct timespec *rmtp); } 312200 AUE_NULL STD { int svr4_sys_facl(int fd, int cmd, \ 313 int num, struct svr4_aclent *buf); } 314201 AUE_NULL UNIMPL door 315202 AUE_NULL NOPROTO { int setreuid(int ruid, int euid); } 316203 AUE_NULL NOPROTO { int setregid(int rgid, int egid); } 317204 AUE_NULL UNIMPL install_utrap 318205 AUE_NULL UNIMPL signotify 319206 AUE_NULL UNIMPL schedctl 320207 AUE_NULL UNIMPL pset 321208 AUE_NULL UNIMPL whoknows 322209 AUE_NULL STD { int svr4_sys_resolvepath(const char *path, \ 323 char *buf, size_t bufsiz); } 324210 AUE_NULL UNIMPL signotifywait 325211 AUE_NULL UNIMPL lwp_sigredirect 326212 AUE_NULL UNIMPL lwp_alarm 327213 AUE_NULL STD { int svr4_sys_getdents64(int fd, \ 328 struct svr4_dirent64 *dp, int nbytes); } 329;213 AUE_NULL UNIMPL getdents64 330214 AUE_NULL STD { caddr_t svr4_sys_mmap64(void *addr, \ 331 svr4_size_t len, int prot, int flags, \ 332 int fd, svr4_off64_t pos); } 333215 AUE_NULL STD { int svr4_sys_stat64(char *path, \ 334 struct svr4_stat64 *sb); } 335216 AUE_NULL STD { int svr4_sys_lstat64(char *path, \ 336 struct svr4_stat64 *sb); } 337217 AUE_NULL STD { int svr4_sys_fstat64(int fd, \ 338 struct svr4_stat64 *sb); } 339218 AUE_NULL STD { int svr4_sys_statvfs64(char *path, \ 340 struct svr4_statvfs64 *fs); } 341219 AUE_NULL STD { int svr4_sys_fstatvfs64(int fd, \ 342 struct svr4_statvfs64 *fs); } 343220 AUE_NULL STD { int svr4_sys_setrlimit64(int which, \ 344 const struct svr4_rlimit64 *rlp); } 345221 AUE_NULL STD { int svr4_sys_getrlimit64(int which, \ 346 struct svr4_rlimit64 *rlp); } 347222 AUE_NULL UNIMPL pread64 348223 AUE_NULL UNIMPL pwrite64 349224 AUE_NULL STD { int svr4_sys_creat64(char *path, \ 350 int mode); } 351225 AUE_NULL STD { int svr4_sys_open64(char *path, int flags, \ 352 int mode); } 353226 AUE_NULL UNIMPL rpcsys 354227 AUE_NULL UNIMPL whoknows 355228 AUE_NULL UNIMPL whoknows 356229 AUE_NULL UNIMPL whoknows 357230 AUE_NULL STD { int svr4_sys_socket(int domain, int type, \ 358 int protocol); } 359231 AUE_NULL NOPROTO { int socketpair(int domain, int type, \ 360 int protocol, int *rsv); } 361232 AUE_NULL NOPROTO { int bind(int s, \ 362 const struct sockaddr *name, \ 363 int namelen); } 364233 AUE_NULL NOPROTO { int listen(int s, int backlog); } 365234 AUE_NULL NOPROTO { int accept(int s, struct sockaddr *name, \ 366 int *anamelen); } 367235 AUE_NULL NOPROTO { int connect(int s, \ 368 const struct sockaddr *name, \ 369 int namelen); } 370236 AUE_NULL NOPROTO { int shutdown(int s, int how); } 371237 AUE_NULL STD { int svr4_sys_recv(int s, caddr_t buf, \ 372 int len, int flags); } 373238 AUE_NULL NOPROTO { ssize_t recvfrom(int s, void *buf, \ 374 size_t len, int flags, \ 375 struct sockaddr *from, \ 376 int *fromlenaddr); } 377239 AUE_NULL NOPROTO { ssize_t recvmsg(int s, struct msghdr *msg, \ 378 int flags); } 379240 AUE_NULL STD { int svr4_sys_send(int s, caddr_t buf, \ 380 int len, int flags); } 381241 AUE_NULL NOPROTO { ssize_t sendmsg(int s, \ 382 const struct msghdr *msg, int flags); } 383242 AUE_NULL STD { ssize_t svr4_sys_sendto(int s, void *buf, \ 384 size_t len, int flags, \ 385 struct sockaddr *to, int tolen); } 386243 AUE_NULL NOPROTO { int getpeername(int fdes, \ 387 struct sockaddr *asa, int *alen); } 388244 AUE_NULL NOPROTO { int getsockname(int fdes, \ 389 struct sockaddr *asa, int *alen); } 390245 AUE_NULL NOPROTO { int getsockopt(int s, int level, int name, \ 391 void *val, int *avalsize); } 392246 AUE_NULL NOPROTO { int setsockopt(int s, int level, int name, \ 393 const void *val, int valsize); } 394247 AUE_NULL UNIMPL sockconfig 395248 AUE_NULL UNIMPL { int ntp_gettime(struct ntptimeval *ntvp); } 396249 AUE_NULL UNIMPL { int ntp_adjtime(struct timex *tp); } 397