Home | History | Annotate | Line # | Download | only in i386
syscalls.master revision 1.4
      1 	$NetBSD: syscalls.master,v 1.4 1995/04/07 22:23:28 fvdl Exp $
      2 
      3 ;	@(#)syscalls.master	8.1 (Berkeley) 7/19/93
      4 
      5 ; NetBSD COMPAT_LINUX system call name/number "master" file.
      6 ; (See syscalls.conf to see what it is processed into.)
      7 ;
      8 ; Fields: number type [type-dependent ...]
      9 ;	number	system call number, must be in order
     10 ;	type	one of STD, OBSOL, UNIMPL, NODEF, NOARGS, or one of
     11 ;		the compatibility options defined in syscalls.conf.
     12 ;
     13 ; types:
     14 ;	STD	always included
     15 ;	OBSOL	obsolete, not included in system
     16 ;	UNIMPL	unimplemented, not included in system
     17 ;	NODEF	included, but don't define the syscall number
     18 ;	NOARGS	included, but don't define the syscall args structure
     19 ;
     20 ; The compat options are defined in the syscalls.conf file, and the
     21 ; compat option name is prefixed to the syscall name.  Other than
     22 ; that, they're like NODEF (for 'compat' options), or STD (for
     23 ; 'libcompat' options).
     24 ;
     25 ; The type-dependent arguments are as follows:
     26 ; For STD, NODEF, NOARGS, and compat syscalls:
     27 ;	{ pseudo-proto } [alias]
     28 ; For other syscalls:
     29 ;	[comment]
     30 ;
     31 ; #ifdef's, etc. may be included, and are copied to the output files.
     32 ; #include's are copied to the syscall switch definition file only.
     33 
     34 #include <sys/param.h>
     35 #include <sys/systm.h>
     36 #include <sys/signal.h>
     37 #include <sys/mount.h>
     38 #include <sys/syscallargs.h>
     39 #include <compat/linux/linux_types.h>
     40 #include <machine/linux_machdep.h>
     41 #include <compat/linux/linux_syscallargs.h>
     42 
     43 0	NOARGS		{ int nosys(void); } syscall
     44 1	NOARGS		{ int exit(int rval); }
     45 2	STD		{ int linux_fork(void); }
     46 3	NOARGS		{ int read(int fd, char *buf, u_int nbyte); }
     47 4	NOARGS		{ int write(int fd, char *buf, u_int nbyte); }
     48 5	STD		{ int linux_open(char *path, int flags, int mode); }
     49 6	NOARGS		{ int close(int fd); }
     50 7	STD		{ int linux_waitpid(int pid, int *status, int options);}
     51 8	STD		{ int linux_creat(char *path, int mode); }
     52 9	NOARGS		{ int link(char *path, char *link); }
     53 10	STD		{ int linux_unlink(char *path); }
     54 11	STD		{ int linux_execve(char *path, char **argp, char **envp); }
     55 12	STD		{ int linux_chdir(char *path); }
     56 13	STD		{ int linux_time(linux_time_t *t); }
     57 14	STD		{ int linux_mknod(char *path, int mode, int dev); }
     58 15	STD		{ int linux_chmod(char *path, int mode); }
     59 16	STD		{ int linux_chown(char *path, int uid, int gid); }
     60 17	STD		{ int linux_break(char *nsize); }
     61 18	OBSOL		linux_ostat
     62 19	NOARGS		{ long compat_43_lseek(int fd, long offset, int whence); }
     63 20	NOARGS		{ pid_t getpid(void); }
     64 21	UNIMPL		linux_mount
     65 22	UNIMPL		linux_umount
     66 23	NOARGS		{ int setuid(uid_t uid); }
     67 24	NOARGS		{ uid_t getuid(void); }
     68 25	UNIMPL		linux_stime
     69 26	UNIMPL		linux_ptrace
     70 27	STD		{ int linux_alarm(unsigned int secs); }
     71 28	OBSOL		linux_ofstat
     72 29	STD		{ int linux_pause(void); }
     73 30	STD		{ int linux_utime(char *path, struct linux_utimbuf *times); }
     74 31	UNIMPL		linux_stty
     75 32	UNIMPL		linux_gtty
     76 33	STD		{ int linux_access(char *path, int flags); }
     77 34	UNIMPL		linux_nice
     78 35	UNIMPL		linux_ftime
     79 36	NOARGS		{ int sync(void); }
     80 37	STD		{ int linux_kill(int pid, int signum); }
     81 38	STD		{ int linux_rename(char *from, char *to); }
     82 39	STD		{ int linux_mkdir(char *path); }
     83 40	STD		{ int linux_rmdir(char *path); }
     84 41	NOARGS		{ int dup(u_int fd); }
     85 42	STD		{ int linux_pipe(int *pfds); }
     86 43	STD		{ int linux_times(struct times *tms); }
     87 44	UNIMPL		linux_prof
     88 45	STD		{ int linux_brk(char *nsize); }
     89 46	NOARGS		{ int setgid(uid_t gid); }
     90 47	NOARGS		{ gid_t getgid(void); }
     91 48	STD		{ int linux_signal(int sig, linux_handler_t handler); }
     92 49	NOARGS		{ uid_t geteuid(void); }
     93 50	NOARGS		{ gid_t getegid(void); }
     94 51	NOARGS		{ int acct(char *path); }
     95 52	UNIMPL		linux_phys
     96 53	UNIMPL		linux_lock
     97 54	STD		{ int linux_ioctl(int fd, u_long com, caddr_t data); }
     98 55	STD		{ int linux_fcntl(int fd, int cmd, void *arg); }
     99 56	UNIMPL		linux_mpx
    100 57	NOARGS		{ int setpgid(int pid, int pgid); }
    101 58	UNIMPL		linux_ulimit
    102 59	UNIMPL		linux_oldolduname
    103 60	NOARGS		{ int umask(int newmask); }
    104 61	NOARGS		{ int chroot(char *path); }
    105 62	UNIMPL		linux_ustat
    106 63	NOARGS		{ int dup2(u_int from, u_int to); }
    107 64	NOARGS		{ pid_t getppid(void); }
    108 65	NOARGS		{ int getpgrp(void); }
    109 66	NOARGS		{ int setsid(void); }
    110 67	STD		{ int linux_sigaction(int signum, \
    111 				struct linux_sigaction *nsa,\
    112 				struct linux_sigaction *osa); }
    113 68	STD		{ int linux_siggetmask(void); }
    114 69	STD		{ int linux_sigsetmask(linux_sigset_t mask); }
    115 70	NOARGS		{ int compat_43_setreuid(int ruid, int euid); }
    116 71	NOARGS		{ int compat_43_setregid(int rgid, int egid); }
    117 72	STD		{ int linux_sigsuspend(caddr_t restart, int oldmask, \
    118 				int mask); }
    119 73	STD		{ int linux_sigpending(linux_sigset_t *mask); }
    120 74	NOARGS		{ int compat_43_sethostname(char *hostname, u_int len);}
    121 75	NOARGS		{ int compat_43_setrlimit(u_int which, \
    122 				struct ogetrlimit *rlp); }
    123 76	NOARGS		{ int compat_43_getrlimit(u_int which, \
    124 				struct ogetrlimit *rlp); }
    125 77	NOARGS		{ int getrusage(int who, struct rusage *rusage); }
    126 78	NOARGS		{ int gettimeofday(struct timeval *tp, \
    127 				struct timezone *tzp); }
    128 79	NOARGS		{ int settimeofday(struct timeval *tp, \
    129 				struct timezone *tzp); }
    130 80	NOARGS		{ int getgroups(u_int gidsetsize, gid_t *gidset); }
    131 81	NOARGS		{ int setgroups(u_int gidsetsize, gid_t *gidset); }
    132 82	STD		{ int linux_select(struct linux_select *lsp); }
    133 83	STD		{ int linux_symlink(char *path, char *to); }
    134 84	NOARGS		{ int compat_43_lstat(char *path, struct ostat *up); }
    135 85	STD		{ int linux_readlink(char *name, char *buf, int count); }
    136 86	STD		{ int linux_uselib(char *path); }
    137 87	NOARGS		{ int swapon(char *name); }
    138 88	NOARGS		{ int reboot(int opt); }
    139 89	STD		{ int linux_readdir(int fd, struct linux_dirent *dent, \
    140 			    unsigned int count); }
    141 90	STD		{ int linux_mmap(struct linux_mmap *lmp); }
    142 91	NOARGS		{ int munmap(caddr_t addr, int len); }
    143 92	STD		{ int linux_truncate(char *path, long length); }
    144 93	NOARGS		{ int compat_43_ftruncate(int fd, long length); }
    145 94	NOARGS		{ int fchmod(int fd, int mode); }
    146 95	NOARGS		{ int fchown(int fd, int uid, int gid); }
    147 96	NOARGS		{ int getpriority(int which, int who); }
    148 97	NOARGS		{ int setpriority(int which, int who, int prio); }
    149 98	NOARGS		{ int profil(caddr_t samples, u_int size, \
    150 				u_int offset, u_int scale); }
    151 99	STD		{ int linux_statfs(char *path, struct linux_statfs *sp); }
    152 100	STD		{ int linux_fstatfs(int fd, struct linux_statfs *sp); }
    153 101	UNIMPL		linux_ioperm
    154 102	STD		{ int linux_socketcall(int what, void *args); }
    155 103	UNIMPL		linux_klog
    156 104	NOARGS		{ int setitimer(u_int which, struct itimerval *itv, \
    157 			    struct itimerval *oitv); }
    158 105	NOARGS		{ int getitimer(u_int which, struct itimerval *itv); }
    159 106	STD		{ int linux_stat(char *path, struct linux_stat *sp); }
    160 107	STD		{ int linux_lstat(char *path, struct linux_stat *sp); }
    161 108	STD		{ int linux_fstat(int fd, struct linux_stat *sp); }
    162 109	UNIMPL		linux_olduname
    163 110	UNIMPL		linux_iopl
    164 111	UNIMPL		linux_vhangup
    165 112	UNIMPL		linux_idle
    166 113	UNIMPL		linux_vm86
    167 114	STD		{ int linux_wait4(int pid, int *status, int options, \
    168 				struct rusage *rusage); }
    169 115	UNIMPL		linux_swapoff
    170 116	UNIMPL		linux_sysinfo
    171 117	STD		{ int linux_ipc(int what, int a1, int a2, int a3, \
    172 				caddr_t ptr); }
    173 118	NOARGS		{ int fsync(int fd); }
    174 119	STD		{ int linux_sigreturn(struct linux_sigcontext *scp); }
    175 120	UNIMPL		linux_clone
    176 121	NOARGS		{ int compat_09_setdomainname(char *name, int len); }
    177 122	STD		{ int linux_uname(struct linux_utsname *up); }
    178 123	UNIMPL		linux_modify_ldt
    179 124	UNIMPL		linux_adjtimex
    180 125	NOARGS		{ int mprotect(caddr_t addr, int len, int prot); }
    181 126	STD		{ int linux_sigprocmask(int how, linux_sigset_t *set, \
    182 				linux_sigset_t *oset); }
    183 127	UNIMPL		linux_create_module
    184 128	UNIMPL		linux_init_module
    185 129	UNIMPL		linux_delete_module
    186 130	UNIMPL		linux_get_kernel_syms
    187 131	UNIMPL		linux_quotactl
    188 132	STD		{ int linux_getpgid(int pid); }
    189 133	NOARGS		{ int fchdir(int fd); }
    190 134	UNIMPL		linux_bdflush
    191 135	UNIMPL		linux_sysfs
    192 136	UNIMPL		linux_personality
    193 137	UNIMPL		linux_afs_syscall
    194 138	UNIMPL		linux_setfsuid
    195 139	UNIMPL		linux_getfsuid
    196 140	STD		{ int linux_llseek(int fd, u_int32_t ohigh, \
    197 				u_int32_t olow, caddr_t res, int whence); }
    198