Home | History | Annotate | Line # | Download | only in i386
syscalls.master revision 1.10
      1  1.10     fvdl 	$NetBSD: syscalls.master,v 1.10 1995/08/23 20:17:30 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.8  mycroft #include <compat/linux/linux_signal.h>
     41   1.8  mycroft #include <compat/linux/linux_syscallargs.h>
     42   1.4     fvdl #include <machine/linux_machdep.h>
     43   1.1     fvdl 
     44   1.1     fvdl 0	NOARGS		{ int nosys(void); } syscall
     45   1.1     fvdl 1	NOARGS		{ int exit(int rval); }
     46   1.1     fvdl 2	STD		{ int linux_fork(void); }
     47   1.1     fvdl 3	NOARGS		{ int read(int fd, char *buf, u_int nbyte); }
     48   1.1     fvdl 4	NOARGS		{ int write(int fd, char *buf, u_int nbyte); }
     49   1.1     fvdl 5	STD		{ int linux_open(char *path, int flags, int mode); }
     50   1.1     fvdl 6	NOARGS		{ int close(int fd); }
     51   1.1     fvdl 7	STD		{ int linux_waitpid(int pid, int *status, int options);}
     52   1.1     fvdl 8	STD		{ int linux_creat(char *path, int mode); }
     53   1.1     fvdl 9	NOARGS		{ int link(char *path, char *link); }
     54   1.2     fvdl 10	STD		{ int linux_unlink(char *path); }
     55   1.1     fvdl 11	STD		{ int linux_execve(char *path, char **argp, char **envp); }
     56   1.2     fvdl 12	STD		{ int linux_chdir(char *path); }
     57   1.1     fvdl 13	STD		{ int linux_time(linux_time_t *t); }
     58   1.2     fvdl 14	STD		{ int linux_mknod(char *path, int mode, int dev); }
     59   1.2     fvdl 15	STD		{ int linux_chmod(char *path, int mode); }
     60   1.2     fvdl 16	STD		{ int linux_chown(char *path, int uid, int gid); }
     61   1.1     fvdl 17	STD		{ int linux_break(char *nsize); }
     62   1.1     fvdl 18	OBSOL		linux_ostat
     63   1.1     fvdl 19	NOARGS		{ long compat_43_lseek(int fd, long offset, int whence); }
     64   1.1     fvdl 20	NOARGS		{ pid_t getpid(void); }
     65   1.1     fvdl 21	UNIMPL		linux_mount
     66   1.1     fvdl 22	UNIMPL		linux_umount
     67   1.1     fvdl 23	NOARGS		{ int setuid(uid_t uid); }
     68   1.1     fvdl 24	NOARGS		{ uid_t getuid(void); }
     69   1.1     fvdl 25	UNIMPL		linux_stime
     70   1.1     fvdl 26	UNIMPL		linux_ptrace
     71   1.1     fvdl 27	STD		{ int linux_alarm(unsigned int secs); }
     72   1.1     fvdl 28	OBSOL		linux_ofstat
     73   1.3     fvdl 29	STD		{ int linux_pause(void); }
     74   1.1     fvdl 30	STD		{ int linux_utime(char *path, struct linux_utimbuf *times); }
     75   1.1     fvdl 31	UNIMPL		linux_stty
     76   1.1     fvdl 32	UNIMPL		linux_gtty
     77   1.1     fvdl 33	STD		{ int linux_access(char *path, int flags); }
     78   1.1     fvdl 34	UNIMPL		linux_nice
     79   1.1     fvdl 35	UNIMPL		linux_ftime
     80   1.1     fvdl 36	NOARGS		{ int sync(void); }
     81   1.1     fvdl 37	STD		{ int linux_kill(int pid, int signum); }
     82   1.2     fvdl 38	STD		{ int linux_rename(char *from, char *to); }
     83   1.7     fvdl 39	STD		{ int linux_mkdir(char *path, int mode); }
     84   1.2     fvdl 40	STD		{ int linux_rmdir(char *path); }
     85   1.1     fvdl 41	NOARGS		{ int dup(u_int fd); }
     86   1.1     fvdl 42	STD		{ int linux_pipe(int *pfds); }
     87   1.1     fvdl 43	STD		{ int linux_times(struct times *tms); }
     88   1.1     fvdl 44	UNIMPL		linux_prof
     89   1.1     fvdl 45	STD		{ int linux_brk(char *nsize); }
     90   1.1     fvdl 46	NOARGS		{ int setgid(uid_t gid); }
     91   1.1     fvdl 47	NOARGS		{ gid_t getgid(void); }
     92   1.1     fvdl 48	STD		{ int linux_signal(int sig, linux_handler_t handler); }
     93   1.1     fvdl 49	NOARGS		{ uid_t geteuid(void); }
     94   1.1     fvdl 50	NOARGS		{ gid_t getegid(void); }
     95   1.1     fvdl 51	NOARGS		{ int acct(char *path); }
     96   1.1     fvdl 52	UNIMPL		linux_phys
     97   1.1     fvdl 53	UNIMPL		linux_lock
     98   1.1     fvdl 54	STD		{ int linux_ioctl(int fd, u_long com, caddr_t data); }
     99   1.1     fvdl 55	STD		{ int linux_fcntl(int fd, int cmd, void *arg); }
    100   1.1     fvdl 56	UNIMPL		linux_mpx
    101   1.1     fvdl 57	NOARGS		{ int setpgid(int pid, int pgid); }
    102   1.1     fvdl 58	UNIMPL		linux_ulimit
    103   1.9  mycroft 59	STD		{ int linux_oldolduname(struct linux_oldold_utsname *up); }
    104   1.1     fvdl 60	NOARGS		{ int umask(int newmask); }
    105   1.1     fvdl 61	NOARGS		{ int chroot(char *path); }
    106   1.1     fvdl 62	UNIMPL		linux_ustat
    107   1.1     fvdl 63	NOARGS		{ int dup2(u_int from, u_int to); }
    108   1.1     fvdl 64	NOARGS		{ pid_t getppid(void); }
    109   1.1     fvdl 65	NOARGS		{ int getpgrp(void); }
    110   1.1     fvdl 66	NOARGS		{ int setsid(void); }
    111   1.1     fvdl 67	STD		{ int linux_sigaction(int signum, \
    112   1.1     fvdl 				struct linux_sigaction *nsa,\
    113   1.1     fvdl 				struct linux_sigaction *osa); }
    114   1.1     fvdl 68	STD		{ int linux_siggetmask(void); }
    115   1.1     fvdl 69	STD		{ int linux_sigsetmask(linux_sigset_t mask); }
    116   1.1     fvdl 70	NOARGS		{ int compat_43_setreuid(int ruid, int euid); }
    117   1.1     fvdl 71	NOARGS		{ int compat_43_setregid(int rgid, int egid); }
    118   1.3     fvdl 72	STD		{ int linux_sigsuspend(caddr_t restart, int oldmask, \
    119   1.3     fvdl 				int mask); }
    120   1.1     fvdl 73	STD		{ int linux_sigpending(linux_sigset_t *mask); }
    121   1.1     fvdl 74	NOARGS		{ int compat_43_sethostname(char *hostname, u_int len);}
    122   1.1     fvdl 75	NOARGS		{ int compat_43_setrlimit(u_int which, \
    123   1.1     fvdl 				struct ogetrlimit *rlp); }
    124   1.1     fvdl 76	NOARGS		{ int compat_43_getrlimit(u_int which, \
    125   1.1     fvdl 				struct ogetrlimit *rlp); }
    126   1.1     fvdl 77	NOARGS		{ int getrusage(int who, struct rusage *rusage); }
    127   1.1     fvdl 78	NOARGS		{ int gettimeofday(struct timeval *tp, \
    128   1.1     fvdl 				struct timezone *tzp); }
    129   1.1     fvdl 79	NOARGS		{ int settimeofday(struct timeval *tp, \
    130   1.1     fvdl 				struct timezone *tzp); }
    131   1.1     fvdl 80	NOARGS		{ int getgroups(u_int gidsetsize, gid_t *gidset); }
    132   1.1     fvdl 81	NOARGS		{ int setgroups(u_int gidsetsize, gid_t *gidset); }
    133  1.10     fvdl 82	STD		{ int linux_oldselect(struct linux_select *lsp); }
    134   1.2     fvdl 83	STD		{ int linux_symlink(char *path, char *to); }
    135   1.1     fvdl 84	NOARGS		{ int compat_43_lstat(char *path, struct ostat *up); }
    136   1.2     fvdl 85	STD		{ int linux_readlink(char *name, char *buf, int count); }
    137   1.1     fvdl 86	STD		{ int linux_uselib(char *path); }
    138   1.1     fvdl 87	NOARGS		{ int swapon(char *name); }
    139   1.1     fvdl 88	NOARGS		{ int reboot(int opt); }
    140   1.1     fvdl 89	STD		{ int linux_readdir(int fd, struct linux_dirent *dent, \
    141   1.1     fvdl 			    unsigned int count); }
    142   1.1     fvdl 90	STD		{ int linux_mmap(struct linux_mmap *lmp); }
    143   1.1     fvdl 91	NOARGS		{ int munmap(caddr_t addr, int len); }
    144   1.2     fvdl 92	STD		{ int linux_truncate(char *path, long length); }
    145   1.1     fvdl 93	NOARGS		{ int compat_43_ftruncate(int fd, long length); }
    146   1.1     fvdl 94	NOARGS		{ int fchmod(int fd, int mode); }
    147   1.1     fvdl 95	NOARGS		{ int fchown(int fd, int uid, int gid); }
    148   1.1     fvdl 96	NOARGS		{ int getpriority(int which, int who); }
    149   1.1     fvdl 97	NOARGS		{ int setpriority(int which, int who, int prio); }
    150   1.1     fvdl 98	NOARGS		{ int profil(caddr_t samples, u_int size, \
    151   1.1     fvdl 				u_int offset, u_int scale); }
    152   1.1     fvdl 99	STD		{ int linux_statfs(char *path, struct linux_statfs *sp); }
    153   1.2     fvdl 100	STD		{ int linux_fstatfs(int fd, struct linux_statfs *sp); }
    154   1.1     fvdl 101	UNIMPL		linux_ioperm
    155   1.1     fvdl 102	STD		{ int linux_socketcall(int what, void *args); }
    156   1.1     fvdl 103	UNIMPL		linux_klog
    157   1.1     fvdl 104	NOARGS		{ int setitimer(u_int which, struct itimerval *itv, \
    158   1.1     fvdl 			    struct itimerval *oitv); }
    159   1.1     fvdl 105	NOARGS		{ int getitimer(u_int which, struct itimerval *itv); }
    160   1.1     fvdl 106	STD		{ int linux_stat(char *path, struct linux_stat *sp); }
    161   1.1     fvdl 107	STD		{ int linux_lstat(char *path, struct linux_stat *sp); }
    162   1.1     fvdl 108	STD		{ int linux_fstat(int fd, struct linux_stat *sp); }
    163   1.9  mycroft 109	STD		{ int linux_olduname(struct linux_old_utsname *up); }
    164   1.1     fvdl 110	UNIMPL		linux_iopl
    165   1.1     fvdl 111	UNIMPL		linux_vhangup
    166   1.1     fvdl 112	UNIMPL		linux_idle
    167   1.1     fvdl 113	UNIMPL		linux_vm86
    168   1.1     fvdl 114	STD		{ int linux_wait4(int pid, int *status, int options, \
    169   1.1     fvdl 				struct rusage *rusage); }
    170   1.1     fvdl 115	UNIMPL		linux_swapoff
    171   1.1     fvdl 116	UNIMPL		linux_sysinfo
    172   1.1     fvdl 117	STD		{ int linux_ipc(int what, int a1, int a2, int a3, \
    173   1.1     fvdl 				caddr_t ptr); }
    174   1.1     fvdl 118	NOARGS		{ int fsync(int fd); }
    175   1.4     fvdl 119	STD		{ int linux_sigreturn(struct linux_sigcontext *scp); }
    176   1.1     fvdl 120	UNIMPL		linux_clone
    177   1.1     fvdl 121	NOARGS		{ int compat_09_setdomainname(char *name, int len); }
    178   1.1     fvdl 122	STD		{ int linux_uname(struct linux_utsname *up); }
    179   1.5  mycroft #ifdef __i386__
    180   1.5  mycroft 123	STD		{ int linux_modify_ldt(int func, void *ptr, \
    181   1.5  mycroft 				size_t bytecount); }
    182   1.5  mycroft #else
    183   1.1     fvdl 123	UNIMPL		linux_modify_ldt
    184   1.5  mycroft #endif
    185   1.1     fvdl 124	UNIMPL		linux_adjtimex
    186   1.1     fvdl 125	NOARGS		{ int mprotect(caddr_t addr, int len, int prot); }
    187   1.1     fvdl 126	STD		{ int linux_sigprocmask(int how, linux_sigset_t *set, \
    188   1.1     fvdl 				linux_sigset_t *oset); }
    189   1.1     fvdl 127	UNIMPL		linux_create_module
    190   1.1     fvdl 128	UNIMPL		linux_init_module
    191   1.1     fvdl 129	UNIMPL		linux_delete_module
    192   1.1     fvdl 130	UNIMPL		linux_get_kernel_syms
    193   1.1     fvdl 131	UNIMPL		linux_quotactl
    194   1.1     fvdl 132	STD		{ int linux_getpgid(int pid); }
    195   1.1     fvdl 133	NOARGS		{ int fchdir(int fd); }
    196   1.1     fvdl 134	UNIMPL		linux_bdflush
    197   1.1     fvdl 135	UNIMPL		linux_sysfs
    198   1.6     fvdl 136	STD		{ int linux_personality(int per); }
    199   1.1     fvdl 137	UNIMPL		linux_afs_syscall
    200   1.2     fvdl 138	UNIMPL		linux_setfsuid
    201   1.2     fvdl 139	UNIMPL		linux_getfsuid
    202   1.2     fvdl 140	STD		{ int linux_llseek(int fd, u_int32_t ohigh, \
    203   1.2     fvdl 				u_int32_t olow, caddr_t res, int whence); }
    204  1.10     fvdl 141	STD		{ int linux_getdents(int fd, void *dirent, \
    205  1.10     fvdl 				unsigned count); }
    206  1.10     fvdl 142	STD		{ int linux_select(int nfds, fd_set *readfds, \
    207  1.10     fvdl 				fd_set *writefds, fd_set *exceptfds, \
    208  1.10     fvdl 				struct timeval *timeout); }
    209  1.10     fvdl 143	NOARGS		{ int flock(int fd, int how); }
    210