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 created linux_sysent.c, linux_syscalls.c and linux_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#include "opt_compat.h" 26#include <sys/param.h> 27#include <sys/sysent.h> 28#include <sys/sysproto.h> 29#include <i386/linux/linux.h> 30#include <i386/linux/linux_proto.h> 31 32; #ifdef's, etc. may be included, and are copied to the output files. 33 340 STD LINUX { int linux_setup(void); } 351 NOPROTO LINUX { int exit(int rval); } 362 STD LINUX { int linux_fork(void); } 373 NOPROTO LINUX { int read(int fd, char *buf, u_int nbyte); } 384 NOPROTO LINUX { int write(int fd, char *buf, u_int nbyte); } 395 STD LINUX { int linux_open(char *path, int flags, int mode); } 406 NOPROTO LINUX { int close(int fd); } 417 STD LINUX { int linux_waitpid(int pid, int *status, \ 42 int options); } 438 STD LINUX { int linux_creat(char *path, int mode); } 449 STD LINUX { int linux_link(char *path, char *to); } 4510 STD LINUX { int linux_unlink(char *path); } 4611 STD LINUX { int linux_execve(char *path, char **argp, \ 47 char **envp); } 4812 STD LINUX { int linux_chdir(char *path); } 4913 STD LINUX { int linux_time(linux_time_t *tm); } 5014 STD LINUX { int linux_mknod(char *path, int mode, int dev); } 5115 STD LINUX { int linux_chmod(char *path, int mode); } 5216 STD LINUX { int linux_lchown(char *path, int uid, int gid); } 5317 STD LINUX { int linux_break(char *nsize); } 5418 STD LINUX { int linux_stat(char *path, struct ostat *up); } 5519 STD LINUX { int linux_lseek(int fdes, long off, int whence); } 5620 NOPROTO LINUX { int getpid(void); } 5721 STD LINUX { int linux_mount(void); } 5822 STD LINUX { int linux_umount(void); } 5923 NOPROTO LINUX { int setuid(uid_t uid); } 6024 NOPROTO LINUX { int getuid(void); } 6125 STD LINUX { int linux_stime(void); } 6226 STD LINUX { int linux_ptrace(void); } 6327 STD LINUX { int linux_alarm(unsigned int secs); } 6428 STD LINUX { int linux_fstat(int fd, struct ostat *up); } 6529 STD LINUX { int linux_pause(void); } 6630 STD LINUX { int linux_utime(char *fname, \ 67 struct linux_utimbuf *times); } 6831 STD LINUX { int linux_stty(void); } 6932 STD LINUX { int linux_gtty(void); } 7033 STD LINUX { int linux_access(char *path, int flags); } 7134 STD LINUX { int linux_nice(int inc); } 7235 STD LINUX { int linux_ftime(void); } 7336 NOPROTO LINUX { int sync(void); } 7437 STD LINUX { int linux_kill(int pid, int signum); } 7538 STD LINUX { int linux_rename(char *from, char *to); } 7639 STD LINUX { int linux_mkdir(char *path, int mode); } 7740 STD LINUX { int linux_rmdir(char *path); } 7841 NOPROTO LINUX { int dup(u_int fd); } 7942 STD LINUX { int linux_pipe(int *pipefds); } 8043 STD LINUX { int linux_times(struct linux_times_argv *buf); } 8144 STD LINUX { int linux_prof(void); } 8245 STD LINUX { int linux_brk(char *dsend); } 8346 NOPROTO LINUX { int setgid(gid_t gid); } 8447 NOPROTO LINUX { int getgid(void); } 8548 STD LINUX { int linux_signal(int sig, linux_handler_t handler); } 8649 NOPROTO LINUX { int geteuid(void); } 8750 NOPROTO LINUX { int getegid(void); } 8851 NOPROTO LINUX { int acct(char *path); } 8952 STD LINUX { int linux_umount2(void); } 9053 STD LINUX { int linux_lock(void); } 9154 STD LINUX { int linux_ioctl(int fd, u_long cmd, int arg); } 9255 STD LINUX { int linux_fcntl(int fd, int cmd, int arg); } 9356 STD LINUX { int linux_mpx(void); } 9457 NOPROTO LINUX { int setpgid(int pid, int pgid); } 9558 STD LINUX { int linux_ulimit(void); } 9659 STD LINUX { int linux_olduname(void); } 9760 NOPROTO LINUX { int umask(int newmask); } 9861 NOPROTO LINUX { int chroot(char *path); } 9962 STD LINUX { int linux_ustat(linux_dev_t dev, \ 100 struct linux_ustat *ubuf); } 10163 NOPROTO LINUX { int dup2(u_int from, u_int to); } 10264 NOPROTO LINUX { int getppid(void); } 10365 NOPROTO LINUX { int getpgrp(void); } 10466 NOPROTO LINUX { int setsid(void); } 10567 STD LINUX { int linux_sigaction(int sig, \ 106 linux_osigaction_t *nsa, \ 107 linux_osigaction_t *osa); } 10868 STD LINUX { int linux_siggetmask(void); } 10969 STD LINUX { int linux_sigsetmask(linux_osigset_t mask); } 11070 NOPROTO LINUX { int setreuid(int ruid, int euid); } 11171 NOPROTO LINUX { int setregid(int rgid, int egid); } 11272 STD LINUX { int linux_sigsuspend(int restart, \ 113 linux_osigset_t oldmask, \ 114 linux_osigset_t mask); } 11573 STD LINUX { int linux_sigpending(linux_osigset_t *mask); } 11674 NOPROTO LINUX { int osethostname(char *hostname, u_int len); } 11775 STD LINUX { int linux_setrlimit(u_int resource, \ 118 struct ogetrlimit *rlim); } 11976 STD LINUX { int linux_getrlimit(u_int resource, \ 120 struct ogetrlimit *rlim); } 12177 NOPROTO LINUX { int getrusage(int who, struct rusage *rusage); } 12278 NOPROTO LINUX { int gettimeofday(struct timeval *tp, \ 123 struct timezone *tzp); } 12479 NOPROTO LINUX { int settimeofday(struct timeval *tp, \ 125 struct timezone *tzp); } 12680 STD LINUX { int linux_getgroups(u_int gidsetsize, \ 127 linux_gid_t *gidset); } 12881 STD LINUX { int linux_setgroups(u_int gidsetsize, \ 129 linux_gid_t *gidset); } 13082 STD LINUX { int linux_select(struct linux_select_argv *ptr); } 13183 STD LINUX { int linux_symlink(char *path, char *to); } 13284 NOPROTO LINUX { int ostat(char *path, struct ostat *up); } 13385 STD LINUX { int linux_readlink(char *name, char *buf, \ 134 int count); } 13586 STD LINUX { int linux_uselib(char *library); } 13687 NOPROTO LINUX { int swapon(char *name); } 13788 NOPROTO LINUX { int reboot(int opt); } 13889 STD LINUX { int linux_readdir(int fd, \ 139 struct linux_dirent *dent, \ 140 unsigned int count); } 14190 STD LINUX { int linux_mmap(struct linux_mmap_argv *ptr); } 14291 NOPROTO LINUX { int munmap(caddr_t addr, int len); } 14392 STD LINUX { int linux_truncate(char *path, long length); } 14493 NOPROTO LINUX { int oftruncate(int fd, long length); } 14594 NOPROTO LINUX { int fchmod(int fd, int mode); } 14695 NOPROTO LINUX { int fchown(int fd, int uid, int gid); } 14796 NOPROTO LINUX { int getpriority(int which, int who); } 14897 NOPROTO LINUX { int setpriority(int which, int who, int prio); } 14998 NOPROTO LINUX { int profil(caddr_t samples, u_int size, \ 150 u_int offset, u_int scale); } 15199 STD LINUX { int linux_statfs(char *path, \ 152 struct linux_statfs_buf *buf); } 153100 STD LINUX { int linux_fstatfs(int fd, \ 154 struct linux_statfs_buf *buf); } 155101 STD LINUX { int linux_ioperm(unsigned int start, \ 156 unsigned int length, int enable); } 157102 STD LINUX { int linux_socketcall(int what, void *args); } 158103 STD LINUX { int linux_ksyslog(int what); } 159104 STD LINUX { int linux_setitimer(u_int which, \ 160 struct itimerval *itv, \ 161 struct itimerval *oitv); } 162105 STD LINUX { int linux_getitimer(u_int which, \ 163 struct itimerval *itv); } 164106 STD LINUX { int linux_newstat(char *path, \ 165 struct linux_newstat *buf); } 166107 STD LINUX { int linux_newlstat(char *path, \ 167 struct linux_newstat *buf); } 168108 STD LINUX { int linux_newfstat(int fd, \ 169 struct linux_newstat *buf); } 170109 STD LINUX { int linux_uname(void); } 171110 STD LINUX { int linux_iopl(int level); } 172111 STD LINUX { int linux_vhangup(void); } 173112 STD LINUX { int linux_idle(void); } 174113 STD LINUX { int linux_vm86old(void); } 175114 STD LINUX { int linux_wait4(int pid, int *status, \ 176 int options, struct rusage *rusage); } 177115 STD LINUX { int linux_swapoff(void); } 178116 STD LINUX { int linux_sysinfo(void); } 179117 STD LINUX { int linux_ipc(int what, int arg1, int arg2, \ 180 int arg3, caddr_t ptr); } 181118 NOPROTO LINUX { int fsync(int fd); } 182119 STD LINUX { int linux_sigreturn(struct linux_sigcontext *scp); } 183120 STD LINUX { int linux_clone(int flags, void *stack); } 184121 NOPROTO LINUX { int setdomainname(char *name, int len); } 185122 STD LINUX { int linux_newuname(struct linux_new_utsname *buf); } 186123 STD LINUX { int linux_modify_ldt(int func, void *ptr, \ 187 size_t bytecount); } 188124 STD LINUX { int linux_adjtimex(void); } 189125 NOPROTO LINUX { int mprotect(caddr_t addr, int len, int prot); } 190126 STD LINUX { int linux_sigprocmask(int how, \ 191 linux_osigset_t *mask, \ 192 linux_osigset_t *omask); } 193127 STD LINUX { int linux_create_module(void); } 194128 STD LINUX { int linux_init_module(void); } 195129 STD LINUX { int linux_delete_module(void); } 196130 STD LINUX { int linux_get_kernel_syms(void); } 197131 STD LINUX { int linux_quotactl(void); } 198132 STD LINUX { int linux_getpgid(int pid); } 199133 NOPROTO LINUX { int fchdir(int fd); } 200134 STD LINUX { int linux_bdflush(void); } 201135 STD LINUX { int linux_sysfs(int option, u_long arg1, \ 202 u_long arg2); } 203136 STD LINUX { int linux_personality(int per); } 204137 STD LINUX { int linux_afs_syscall(void); } 205138 STD LINUX { int linux_setfsuid(linux_uid_t uid); } 206139 STD LINUX { int linux_setfsgid(linux_gid_t gid); } 207140 STD LINUX { int linux_llseek(int fd, u_int32_t ohigh, \ 208 u_int32_t olow, caddr_t res, int whence); } 209141 STD LINUX { int linux_getdents(int fd, void *dent, \ 210 unsigned count); } 211142 STD LINUX { int linux_newselect(int nfds, fd_set *readfds, \ 212 fd_set *writefds, fd_set *exceptfds, \ 213 struct timeval *timeout); } 214143 NOPROTO LINUX { int flock(int fd, int how); } 215144 STD LINUX { int linux_msync(caddr_t addr, int len, int fl); } 216145 NOPROTO LINUX { int readv(int fd, struct iovec *iovp, \ 217 u_int iovcnt); } 218146 NOPROTO LINUX { int writev(int fd, struct iovec *iovp, \ 219 u_int iovcnt); } 220147 STD LINUX { int linux_getsid(linux_pid_t pid); } 221148 STD LINUX { int linux_fdatasync(int fd); } 222149 STD LINUX { int linux_sysctl(void); } 223150 NOPROTO BSD { int mlock(const void *addr, size_t len); } 224151 NOPROTO BSD { int munlock(const void *addr, size_t len); } 225152 NOPROTO BSD { int mlockall(int how); } 226153 NOPROTO BSD { int munlockall(void); } 227154 NOPROTO POSIX { int sched_setparam (pid_t pid, \ 228 const struct sched_param *param); } 229155 NOPROTO POSIX { int sched_getparam (pid_t pid, \ 230 struct sched_param *param); } 231156 STD POSIX { int linux_sched_setscheduler(pid_t pid, int policy, \ 232 const struct sched_param *param); } 233157 STD POSIX { int linux_sched_getscheduler(pid_t pid); } 234158 NOPROTO POSIX { int sched_yield (void); } 235159 NOPROTO POSIX { int sched_get_priority_max (int policy); } 236160 NOPROTO POSIX { int sched_get_priority_min (int policy); } 237161 NOPROTO POSIX { int sched_rr_get_interval (pid_t pid, \ 238 struct timespec *interval); } 239162 NOPROTO POSIX { int nanosleep(const struct timespec *rqtp, \ 240 struct timespec *rmtp); } 241163 STD LINUX { int linux_mremap(caddr_t addr, int old_len, \ 242 int new_len, int flags); } 243164 STD LINUX { int linux_setresuid(linux_uid_t ruid, \ 244 linux_uid_t euid, linux_uid_t suid); } 245165 STD LINUX { int linux_getresuid(linux_uid_t *ruid, \ 246 linux_uid_t *euid, linux_uid_t *suid); } 247166 STD LINUX { int linux_vm86(void); } 248167 STD LINUX { int linux_query_module(void); } 249168 NOPROTO LINUX { int poll(struct pollfd*, unsigned int nfds, \ 250 long timeout); } 251169 STD LINUX { int linux_nfsservctl(void); } 252170 STD LINUX { int linux_setresgid(void); } 253171 STD LINUX { int linux_getresgid(void); } 254172 STD LINUX { int linux_prctl(void); } 255173 STD LINUX { int linux_rt_sigreturn(void); } 256174 STD LINUX { int linux_rt_sigaction(int sig, \ 257 linux_sigaction_t *act, \ 258 linux_sigaction_t *oact, \ 259 size_t sigsetsize); } 260175 STD LINUX { int linux_rt_sigprocmask(int how, \ 261 linux_sigset_t *mask, linux_sigset_t *omask, \ 262 size_t sigsetsize); } 263176 STD LINUX { int linux_rt_sigpending(void); } 264177 STD LINUX { int linux_rt_sigtimedwait(void); } 265178 STD LINUX { int linux_rt_sigqueueinfo(void); } 266179 STD LINUX { int linux_rt_sigsuspend(linux_sigset_t *newset, \ 267 size_t sigsetsize); } 268180 STD LINUX { int linux_pread(void); } 269181 STD LINUX { int linux_pwrite(void); } 270182 STD LINUX { int linux_chown(char *path, int uid, int gid); } 271183 STD LINUX { int linux_getcwd(char *buf, unsigned long bufsize); } 272184 STD LINUX { int linux_capget(void); } 273185 STD LINUX { int linux_capset(void); } 274186 STD LINUX { int linux_sigaltstack(const linux_stack_t *uss, \ 275 linux_stack_t *uoss); } 276187 STD LINUX { int linux_sendfile(void); } 277188 STD LINUX { int linux_getpmsg(void); } 278189 STD LINUX { int linux_putpmsg(void); } 279190 STD LINUX { int linux_vfork(void); } 280