Home | History | Annotate | Line # | Download | only in i386
syscalls.master revision 1.18.4.1
      1  1.18.4.1   thorpej 	$NetBSD: syscalls.master,v 1.18.4.1 1997/10/14 10:21:39 thorpej 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.13   mycroft 
     40       1.1      fvdl #include <compat/linux/linux_types.h>
     41       1.8   mycroft #include <compat/linux/linux_signal.h>
     42       1.8   mycroft #include <compat/linux/linux_syscallargs.h>
     43      1.13   mycroft 
     44       1.4      fvdl #include <machine/linux_machdep.h>
     45       1.1      fvdl 
     46      1.13   mycroft 0	NOARGS		{ int sys_nosys(void); } syscall
     47      1.13   mycroft 1	NOARGS		{ int sys_exit(int rval); }
     48      1.14   mycroft 2	NOARGS		{ int sys_fork(void); }
     49      1.13   mycroft 3	NOARGS		{ int sys_read(int fd, char *buf, u_int nbyte); }
     50      1.13   mycroft 4	NOARGS		{ int sys_write(int fd, char *buf, u_int nbyte); }
     51      1.13   mycroft 5	STD		{ int linux_sys_open(char *path, int flags, int mode); }
     52      1.13   mycroft 6	NOARGS		{ int sys_close(int fd); }
     53      1.13   mycroft 7	STD		{ int linux_sys_waitpid(int pid, int *status, \
     54      1.13   mycroft 			    int options);}
     55      1.13   mycroft 8	STD		{ int linux_sys_creat(char *path, int mode); }
     56      1.13   mycroft 9	NOARGS		{ int sys_link(char *path, char *link); }
     57      1.13   mycroft 10	STD		{ int linux_sys_unlink(char *path); }
     58      1.13   mycroft 11	STD		{ int linux_sys_execve(char *path, char **argp, \
     59      1.13   mycroft 			    char **envp); }
     60      1.13   mycroft 12	STD		{ int linux_sys_chdir(char *path); }
     61      1.13   mycroft 13	STD		{ int linux_sys_time(linux_time_t *t); }
     62      1.13   mycroft 14	STD		{ int linux_sys_mknod(char *path, int mode, int dev); }
     63      1.13   mycroft 15	STD		{ int linux_sys_chmod(char *path, int mode); }
     64      1.13   mycroft 16	STD		{ int linux_sys_chown(char *path, int uid, int gid); }
     65      1.13   mycroft 17	STD		{ int linux_sys_break(char *nsize); }
     66      1.13   mycroft 18	OBSOL		ostat
     67      1.13   mycroft 19	NOARGS		{ long compat_43_sys_lseek(int fd, long offset, \
     68      1.13   mycroft 			    int whence); }
     69      1.13   mycroft 20	NOARGS		{ pid_t sys_getpid(void); }
     70      1.13   mycroft 21	UNIMPL		mount
     71      1.13   mycroft 22	UNIMPL		umount
     72      1.13   mycroft 23	NOARGS		{ int sys_setuid(uid_t uid); }
     73      1.13   mycroft 24	NOARGS		{ uid_t sys_getuid(void); }
     74      1.13   mycroft 25	UNIMPL		stime
     75      1.13   mycroft 26	UNIMPL		ptrace
     76      1.13   mycroft 27	STD		{ int linux_sys_alarm(unsigned int secs); }
     77      1.13   mycroft 28	OBSOL		ofstat
     78      1.13   mycroft 29	STD		{ int linux_sys_pause(void); }
     79      1.13   mycroft 30	STD		{ int linux_sys_utime(char *path, \
     80      1.13   mycroft 			    struct linux_utimbuf *times); }
     81      1.13   mycroft 31	UNIMPL		stty
     82      1.13   mycroft 32	UNIMPL		gtty
     83      1.13   mycroft 33	STD		{ int linux_sys_access(char *path, int flags); }
     84      1.17  augustss 34	STD		{ int linux_sys_nice(int incr); }
     85      1.13   mycroft 35	UNIMPL		ftime
     86      1.13   mycroft 36	NOARGS		{ int sys_sync(void); }
     87      1.13   mycroft 37	STD		{ int linux_sys_kill(int pid, int signum); }
     88      1.13   mycroft 38	STD		{ int linux_sys_rename(char *from, char *to); }
     89      1.13   mycroft 39	STD		{ int linux_sys_mkdir(char *path, int mode); }
     90      1.13   mycroft 40	STD		{ int linux_sys_rmdir(char *path); }
     91      1.13   mycroft 41	NOARGS		{ int sys_dup(u_int fd); }
     92      1.13   mycroft 42	STD		{ int linux_sys_pipe(int *pfds); }
     93      1.13   mycroft 43	STD		{ int linux_sys_times(struct times *tms); }
     94      1.13   mycroft 44	UNIMPL		prof
     95      1.13   mycroft 45	STD		{ int linux_sys_brk(char *nsize); }
     96      1.13   mycroft 46	NOARGS		{ int sys_setgid(gid_t gid); }
     97      1.13   mycroft 47	NOARGS		{ gid_t sys_getgid(void); }
     98      1.13   mycroft 48	STD		{ int linux_sys_signal(int sig, \
     99      1.13   mycroft 			    linux_handler_t handler); }
    100      1.13   mycroft 49	NOARGS		{ uid_t sys_geteuid(void); }
    101      1.13   mycroft 50	NOARGS		{ gid_t sys_getegid(void); }
    102      1.13   mycroft 51	NOARGS		{ int sys_acct(char *path); }
    103      1.13   mycroft 52	UNIMPL		phys
    104      1.13   mycroft 53	UNIMPL		lock
    105      1.13   mycroft 54	STD		{ int linux_sys_ioctl(int fd, u_long com, \
    106      1.13   mycroft 			    caddr_t data); }
    107      1.13   mycroft 55	STD		{ int linux_sys_fcntl(int fd, int cmd, void *arg); }
    108      1.13   mycroft 56	UNIMPL		mpx
    109      1.13   mycroft 57	NOARGS		{ int sys_setpgid(int pid, int pgid); }
    110      1.13   mycroft 58	UNIMPL		ulimit
    111      1.13   mycroft 59	STD		{ int linux_sys_oldolduname(struct linux_oldold_utsname *up); }
    112      1.13   mycroft 60	NOARGS		{ int sys_umask(int newmask); }
    113      1.13   mycroft 61	NOARGS		{ int sys_chroot(char *path); }
    114      1.13   mycroft 62	UNIMPL		ustat
    115      1.13   mycroft 63	NOARGS		{ int sys_dup2(u_int from, u_int to); }
    116      1.13   mycroft 64	NOARGS		{ pid_t sys_getppid(void); }
    117      1.13   mycroft 65	NOARGS		{ int sys_getpgrp(void); }
    118      1.13   mycroft 66	NOARGS		{ int sys_setsid(void); }
    119      1.13   mycroft 67	STD		{ int linux_sys_sigaction(int signum, \
    120      1.13   mycroft 			    struct linux_sigaction *nsa, \
    121      1.13   mycroft 			    struct linux_sigaction *osa); }
    122      1.13   mycroft 68	STD		{ int linux_sys_siggetmask(void); }
    123      1.13   mycroft 69	STD		{ int linux_sys_sigsetmask(linux_sigset_t mask); }
    124      1.13   mycroft 70	STD		{ int linux_sys_setreuid(int ruid, int euid); }
    125      1.13   mycroft 71	STD		{ int linux_sys_setregid(int rgid, int egid); }
    126      1.13   mycroft 72	STD		{ int linux_sys_sigsuspend(caddr_t restart, \
    127      1.13   mycroft 			    int oldmask, int mask); }
    128      1.13   mycroft 73	STD		{ int linux_sys_sigpending(linux_sigset_t *mask); }
    129      1.13   mycroft 74	NOARGS		{ int compat_43_sys_sethostname(char *hostname, \
    130      1.13   mycroft 			    u_int len);}
    131      1.13   mycroft 75	NOARGS		{ int compat_43_sys_setrlimit(u_int which, \
    132      1.13   mycroft 			    struct ogetrlimit *rlp); }
    133      1.13   mycroft 76	NOARGS		{ int compat_43_sys_getrlimit(u_int which, \
    134      1.13   mycroft 			    struct ogetrlimit *rlp); }
    135      1.13   mycroft 77	NOARGS		{ int sys_getrusage(int who, struct rusage *rusage); }
    136      1.13   mycroft 78	NOARGS		{ int sys_gettimeofday(struct timeval *tp, \
    137      1.13   mycroft 			    struct timezone *tzp); }
    138      1.13   mycroft 79	NOARGS		{ int sys_settimeofday(struct timeval *tp, \
    139      1.13   mycroft 			    struct timezone *tzp); }
    140      1.13   mycroft 80	NOARGS		{ int sys_getgroups(u_int gidsetsize, gid_t *gidset); }
    141      1.13   mycroft 81	NOARGS		{ int sys_setgroups(u_int gidsetsize, gid_t *gidset); }
    142      1.13   mycroft 82	STD		{ int linux_sys_oldselect(struct linux_select *lsp); }
    143      1.13   mycroft 83	STD		{ int linux_sys_symlink(char *path, char *to); }
    144      1.13   mycroft 84	NOARGS		{ int compat_43_sys_lstat(char *path, \
    145      1.13   mycroft 			    struct ostat *up); } olstat
    146      1.13   mycroft 85	STD		{ int linux_sys_readlink(char *name, char *buf, \
    147      1.13   mycroft 			    int count); }
    148      1.13   mycroft 86	STD		{ int linux_sys_uselib(char *path); }
    149      1.18   thorpej 87	NOARGS		{ int compat_12_sys_swapon(char *name); }
    150      1.13   mycroft 88	NOARGS		{ int sys_reboot(int opt); }
    151      1.13   mycroft 89	STD		{ int linux_sys_readdir(int fd, caddr_t dent, \
    152       1.1      fvdl 			    unsigned int count); }
    153      1.13   mycroft 90	STD		{ int linux_sys_mmap(struct linux_mmap *lmp); }
    154      1.13   mycroft 91	NOARGS		{ int sys_munmap(caddr_t addr, int len); }
    155      1.13   mycroft 92	STD		{ int linux_sys_truncate(char *path, long length); }
    156      1.13   mycroft 93	NOARGS		{ int compat_43_sys_ftruncate(int fd, long length); }
    157      1.13   mycroft 94	NOARGS		{ int sys_fchmod(int fd, int mode); }
    158      1.13   mycroft 95	STD		{ int linux_sys_fchown(int fd, int uid, int gid); }
    159      1.13   mycroft 96	NOARGS		{ int sys_getpriority(int which, int who); }
    160      1.13   mycroft 97	NOARGS		{ int sys_setpriority(int which, int who, int prio); }
    161      1.13   mycroft 98	NOARGS		{ int sys_profil(caddr_t samples, u_int size, \
    162      1.13   mycroft 			    u_int offset, u_int scale); }
    163      1.13   mycroft 99	STD		{ int linux_sys_statfs(char *path, \
    164      1.13   mycroft 			    struct linux_statfs *sp); }
    165      1.13   mycroft 100	STD		{ int linux_sys_fstatfs(int fd, \
    166      1.13   mycroft 			    struct linux_statfs *sp); }
    167      1.11      fvdl #ifdef __i386__
    168      1.13   mycroft 101	STD		{ int linux_sys_ioperm(unsigned int lo, \
    169      1.13   mycroft 			    unsigned int hi, int val); }
    170      1.11      fvdl #else
    171      1.13   mycroft 101	UNIMPL		ioperm
    172      1.11      fvdl #endif
    173      1.13   mycroft 102	STD		{ int linux_sys_socketcall(int what, void *args); }
    174      1.13   mycroft 103	UNIMPL		klog
    175      1.13   mycroft 104	NOARGS		{ int sys_setitimer(u_int which, \
    176      1.13   mycroft 			    struct itimerval *itv, struct itimerval *oitv); }
    177      1.13   mycroft 105	NOARGS		{ int sys_getitimer(u_int which, \
    178      1.13   mycroft 			    struct itimerval *itv); }
    179      1.13   mycroft 106	STD		{ int linux_sys_stat(char *path, \
    180      1.13   mycroft 			    struct linux_stat *sp); }
    181      1.13   mycroft 107	STD		{ int linux_sys_lstat(char *path, \
    182      1.13   mycroft 			    struct linux_stat *sp); }
    183      1.13   mycroft 108	STD		{ int linux_sys_fstat(int fd, struct linux_stat *sp); }
    184      1.13   mycroft 109	STD		{ int linux_sys_olduname(struct linux_old_utsname *up); }
    185      1.11      fvdl #ifdef __i386__
    186      1.13   mycroft 110	STD		{ int linux_sys_iopl(int level); }
    187      1.11      fvdl #else
    188      1.13   mycroft 110	UNIMPL		iopl
    189      1.11      fvdl #endif
    190      1.13   mycroft 111	UNIMPL		vhangup
    191      1.13   mycroft 112	UNIMPL		idle
    192      1.13   mycroft 113	UNIMPL		vm86
    193      1.13   mycroft 114	STD		{ int linux_sys_wait4(int pid, int *status, \
    194      1.13   mycroft 			    int options, struct rusage *rusage); }
    195      1.13   mycroft 115	UNIMPL		swapoff
    196      1.13   mycroft 116	UNIMPL		sysinfo
    197      1.13   mycroft 117	STD		{ int linux_sys_ipc(int what, int a1, int a2, int a3, \
    198      1.13   mycroft 			    caddr_t ptr); }
    199      1.13   mycroft 118	NOARGS		{ int sys_fsync(int fd); }
    200      1.13   mycroft 119	STD		{ int linux_sys_sigreturn(struct linux_sigcontext *scp); }
    201      1.13   mycroft 120	UNIMPL		clone
    202      1.13   mycroft 121	NOARGS		{ int compat_09_sys_setdomainname(char *name, \
    203      1.13   mycroft 			    int len); }
    204      1.13   mycroft 122	STD		{ int linux_sys_uname(struct linux_utsname *up); }
    205       1.5   mycroft #ifdef __i386__
    206      1.13   mycroft 123	STD		{ int linux_sys_modify_ldt(int func, void *ptr, \
    207      1.13   mycroft 			    size_t bytecount); }
    208       1.5   mycroft #else
    209      1.13   mycroft 123	UNIMPL		modify_ldt
    210       1.5   mycroft #endif
    211      1.13   mycroft 124	UNIMPL		adjtimex
    212      1.13   mycroft 125	NOARGS		{ int sys_mprotect(caddr_t addr, int len, int prot); }
    213      1.13   mycroft 126	STD		{ int linux_sys_sigprocmask(int how, \
    214      1.13   mycroft 			    linux_sigset_t *set, linux_sigset_t *oset); }
    215      1.13   mycroft 127	UNIMPL		create_module
    216      1.13   mycroft 128	UNIMPL		init_module
    217      1.13   mycroft 129	UNIMPL		delete_module
    218      1.13   mycroft 130	UNIMPL		get_kernel_syms
    219      1.13   mycroft 131	UNIMPL		quotactl
    220      1.13   mycroft 132	STD		{ int linux_sys_getpgid(int pid); }
    221      1.13   mycroft 133	NOARGS		{ int sys_fchdir(int fd); }
    222      1.13   mycroft 134	UNIMPL		bdflush
    223      1.13   mycroft 135	UNIMPL		sysfs
    224      1.13   mycroft 136	STD		{ int linux_sys_personality(int per); }
    225      1.13   mycroft 137	UNIMPL		afs_syscall
    226      1.13   mycroft 138	UNIMPL		setfsuid
    227      1.13   mycroft 139	UNIMPL		getfsuid
    228      1.13   mycroft 140	STD		{ int linux_sys_llseek(int fd, u_int32_t ohigh, \
    229      1.13   mycroft 			    u_int32_t olow, caddr_t res, int whence); }
    230      1.13   mycroft 141	STD		{ int linux_sys_getdents(int fd, void *dirent, \
    231      1.13   mycroft 			    unsigned count); }
    232      1.13   mycroft 142	STD		{ int linux_sys_select(int nfds, fd_set *readfds, \
    233      1.13   mycroft 			    fd_set *writefds, fd_set *exceptfds, \
    234      1.13   mycroft 			    struct timeval *timeout); }
    235      1.13   mycroft 143	NOARGS		{ int sys_flock(int fd, int how); }
    236      1.15      fvdl 144	STD		{ int linux_sys_msync(caddr_t addr, int len, int fl); }
    237      1.15      fvdl 145	NOARGS		{ int sys_readv(int fd, struct iovec *iovp, \
    238      1.15      fvdl 				u_int iovcnt); }
    239      1.15      fvdl 146	NOARGS		{ int sys_writev(int fd, struct iovec *iovp, \
    240      1.15      fvdl 				u_int iovcnt); }
    241      1.16      fvdl 147	STD		{ int linux_sys_getsid(int pid); }
    242      1.16      fvdl 148	STD		{ int linux_sys_fdatasync(int fd); }
    243      1.16      fvdl 149	STD		{ int linux_sys___sysctl(struct linux___sysctl *lsp); }
    244      1.16      fvdl 150	NOARGS		{ int sys_mlock(caddr_t addr, size_t len); }
    245      1.16      fvdl 151	NOARGS		{ int sys_munlock(caddr_t addr, size_t len); }
    246      1.16      fvdl 152	UNIMPL		mlockall
    247      1.16      fvdl 153	UNIMPL		munlockall
    248      1.16      fvdl 154	UNIMPL		sched_setparam
    249      1.16      fvdl 155	UNIMPL		sched_getparam
    250      1.16      fvdl 156	UNIMPL		sched_setscheduler
    251      1.16      fvdl 157	UNIMPL		sched_getscheduler
    252      1.16      fvdl 158	UNIMPL		sched_yield
    253      1.16      fvdl 159	UNIMPL		sched_get_priority_max
    254      1.16      fvdl 160	UNIMPL		sched_get_priority_min
    255      1.16      fvdl 161	UNIMPL		sched_rr_get_interval
    256      1.16      fvdl 162	UNIMPL		nanosleep
    257  1.18.4.1   thorpej 163	STD		{ void *linux_sys_mremap(void *old_address, \
    258  1.18.4.1   thorpej 			    size_t old_size, size_t new_size, u_long flags); }
    259