Home | History | Annotate | Line # | Download | only in m68k
syscalls.master revision 1.1
      1 	$NetBSD: syscalls.master,v 1.1 1998/12/15 19:25:41 itohy Exp $
      2 
      3 ;	@(#)syscalls.master	8.1 (Berkeley) 7/19/93
      4 
      5 ; NetBSD m68k 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 ;	INDIR	included, but don't define the syscall args structure
     20 ;		and allow it to be "really" varargs.
     21 ;
     22 ; The compat options are defined in the syscalls.conf file, and the
     23 ; compat option name is prefixed to the syscall name.  Other than
     24 ; that, they're like NODEF (for 'compat' options), or STD (for
     25 ; 'libcompat' options).
     26 ;
     27 ; The type-dependent arguments are as follows:
     28 ; For STD, NODEF, NOARGS, and compat syscalls:
     29 ;	{ pseudo-proto } [alias]
     30 ; For other syscalls:
     31 ;	[comment]
     32 ;
     33 ; #ifdef's, etc. may be included, and are copied to the output files.
     34 ; #include's are copied to the syscall names and switch definition files only.
     35 
     36 #include "opt_compat_netbsd.h"
     37 #include "opt_compat_43.h"
     38 
     39 #include <sys/param.h>
     40 #include <sys/systm.h>
     41 #include <sys/signal.h>
     42 #include <sys/mount.h>
     43 #include <sys/syscallargs.h>
     44 
     45 #include <compat/linux/common/linux_types.h>
     46 #include <compat/linux/common/linux_signal.h>
     47 #include <compat/linux/common/linux_siginfo.h>
     48 #include <compat/linux/common/linux_machdep.h>
     49 
     50 #include <compat/linux/linux_syscallargs.h>
     51 
     52 
     53 0	NOARGS		{ int sys_nosys(void); } syscall
     54 1	NOARGS		{ int sys_exit(int rval); }
     55 2	NOARGS		{ int sys_fork(void); }
     56 3	NOARGS		{ int sys_read(int fd, char *buf, u_int nbyte); }
     57 4	NOARGS		{ int sys_write(int fd, char *buf, u_int nbyte); }
     58 5	STD		{ int linux_sys_open(char *path, int flags, int mode); }
     59 6	NOARGS		{ int sys_close(int fd); }
     60 7	STD		{ int linux_sys_waitpid(int pid, int *status, \
     61 			    int options);}
     62 8	STD		{ int linux_sys_creat(char *path, int mode); }
     63 9	NOARGS		{ int sys_link(char *path, char *link); }
     64 10	STD		{ int linux_sys_unlink(char *path); }
     65 11	STD		{ int linux_sys_execve(char *path, char **argp, \
     66 			    char **envp); }
     67 12	STD		{ int linux_sys_chdir(char *path); }
     68 13	STD		{ int linux_sys_time(linux_time_t *t); }
     69 14	STD		{ int linux_sys_mknod(char *path, int mode, int dev); }
     70 15	STD		{ int linux_sys_chmod(char *path, int mode); }
     71 ;16 lchown on i386; chown on m68k.
     72 16	STD		{ int linux_sys_chown(char *path, int uid, int gid); }
     73 17	OBSOL		break
     74 18	OBSOL		ostat
     75 #if !defined(_KERNEL) || defined(COMPAT_43)
     76 19	NOARGS		{ long compat_43_sys_lseek(int fd, long offset, \
     77 			    int whence); }
     78 #else
     79 19	UNIMPL		compat_43_sys_lseek
     80 #endif
     81 20	NOARGS		{ pid_t sys_getpid(void); }
     82 21	UNIMPL		mount
     83 22	OBSOL		umount
     84 23	NOARGS		{ int sys_setuid(uid_t uid); }
     85 24	NOARGS		{ uid_t sys_getuid(void); }
     86 25	UNIMPL		stime
     87 26	UNIMPL		ptrace
     88 27	STD		{ int linux_sys_alarm(unsigned int secs); }
     89 28	OBSOL		ofstat
     90 29	STD		{ int linux_sys_pause(void); }
     91 30	STD		{ int linux_sys_utime(char *path, \
     92 			    struct linux_utimbuf *times); }
     93 31	OBSOL		stty
     94 32	OBSOL		gtty
     95 33	STD		{ int linux_sys_access(char *path, int flags); }
     96 34	STD		{ int linux_sys_nice(int incr); }
     97 35	OBSOL		ftime
     98 36	NOARGS		{ int sys_sync(void); }
     99 37	STD		{ int linux_sys_kill(int pid, int signum); }
    100 38	STD		{ int linux_sys_rename(char *from, char *to); }
    101 39	STD		{ int linux_sys_mkdir(char *path, int mode); }
    102 40	STD		{ int linux_sys_rmdir(char *path); }
    103 41	NOARGS		{ int sys_dup(u_int fd); }
    104 42	STD		{ int linux_sys_pipe(int *pfds); }
    105 43	STD		{ int linux_sys_times(struct times *tms); }
    106 44	OBSOL		prof
    107 45	STD		{ int linux_sys_brk(char *nsize); }
    108 46	NOARGS		{ int sys_setgid(gid_t gid); }
    109 47	NOARGS		{ gid_t sys_getgid(void); }
    110 48	STD		{ int linux_sys_signal(int sig, \
    111 			    linux_handler_t handler); }
    112 49	NOARGS		{ uid_t sys_geteuid(void); }
    113 50	NOARGS		{ gid_t sys_getegid(void); }
    114 51	NOARGS		{ int sys_acct(char *path); }
    115 52	UNIMPL		umount
    116 53	OBSOL		lock
    117 54	STD		{ int linux_sys_ioctl(int fd, u_long com, \
    118 			    caddr_t data); }
    119 55	STD		{ int linux_sys_fcntl(int fd, int cmd, void *arg); }
    120 56	OBSOL		mpx
    121 57	NOARGS		{ int sys_setpgid(int pid, int pgid); }
    122 58	OBSOL		ulimit
    123 59	UNIMPL		oldolduname
    124 60	NOARGS		{ int sys_umask(int newmask); }
    125 61	NOARGS		{ int sys_chroot(char *path); }
    126 62	UNIMPL		ustat
    127 63	NOARGS		{ int sys_dup2(u_int from, u_int to); }
    128 64	NOARGS		{ pid_t sys_getppid(void); }
    129 65	NOARGS		{ int sys_getpgrp(void); }
    130 66	NOARGS		{ int sys_setsid(void); }
    131 67	STD		{ int linux_sys_sigaction(int signum, \
    132 			    const struct linux_old_sigaction *nsa, \
    133 			    struct linux_old_sigaction *osa); }
    134 68	STD		{ int linux_sys_siggetmask(void); }
    135 69	STD		{ int linux_sys_sigsetmask(linux_old_sigset_t mask); }
    136 70	STD		{ int linux_sys_setreuid(int ruid, int euid); }
    137 71	STD		{ int linux_sys_setregid(int rgid, int egid); }
    138 72	STD		{ int linux_sys_sigsuspend(caddr_t restart, \
    139 			    int oldmask, int mask); }
    140 73	STD		{ int linux_sys_sigpending(linux_old_sigset_t *set); }
    141 #if !defined(_KERNEL) || defined(COMPAT_43)
    142 74	NOARGS		{ int compat_43_sys_sethostname(char *hostname, \
    143 			    u_int len);}
    144 75	NOARGS		{ int compat_43_sys_setrlimit(u_int which, \
    145 			    struct orlimit *rlp); }
    146 76	NOARGS		{ int compat_43_sys_getrlimit(u_int which, \
    147 			    struct orlimit *rlp); }
    148 #else
    149 74	UNIMPL		compat_43_sys_sethostname
    150 75	UNIMPL		compat_43_sys_setrlimit
    151 76	UNIMPL		compat_43_sys_getrlimit
    152 #endif
    153 77	NOARGS		{ int sys_getrusage(int who, struct rusage *rusage); }
    154 78	NOARGS		{ int sys_gettimeofday(struct timeval *tp, \
    155 			    struct timezone *tzp); }
    156 79	NOARGS		{ int sys_settimeofday(struct timeval *tp, \
    157 			    struct timezone *tzp); }
    158 80	NOARGS		{ int sys_getgroups(u_int gidsetsize, gid_t *gidset); }
    159 81	NOARGS		{ int sys_setgroups(u_int gidsetsize, gid_t *gidset); }
    160 82	STD		{ int linux_sys_oldselect(struct linux_oldselect *lsp); }
    161 83	STD		{ int linux_sys_symlink(char *path, char *to); }
    162 #if !defined(_KERNEL) || defined(COMPAT_43)
    163 84	NOARGS		{ int compat_43_sys_lstat(char *path, \
    164 			    struct stat43 *up); } oolstat
    165 #else
    166 84	UNIMPL		compat_43_sys_lstat
    167 #endif
    168 85	STD		{ int linux_sys_readlink(char *name, char *buf, \
    169 			    int count); }
    170 86	STD		{ int linux_sys_uselib(char *path); }
    171 #if !defined(_KERNEL) || defined(COMPAT_12)
    172 87	NOARGS		{ int compat_12_sys_swapon(char *name); }
    173 #else
    174 87	UNIMPL		compat_12_sys_swapon
    175 #endif
    176 88	NOARGS		{ int sys_reboot(int opt); }
    177 89	STD		{ int linux_sys_readdir(int fd, caddr_t dent, \
    178 			    unsigned int count); }
    179 90	STD		{ int linux_sys_old_mmap(struct linux_oldmmap *lmp); }
    180 91	NOARGS		{ int sys_munmap(caddr_t addr, int len); }
    181 92	STD		{ int linux_sys_truncate(char *path, long length); }
    182 #if !defined(_KERNEL) || defined(COMPAT_43)
    183 93	NOARGS		{ int compat_43_sys_ftruncate(int fd, long length); }
    184 #else
    185 93	UNIMPL		compat_43_sys_ftruncate
    186 #endif
    187 94	NOARGS		{ int sys_fchmod(int fd, int mode); }
    188 95	STD		{ int linux_sys_fchown(int fd, int uid, int gid); }
    189 96	NOARGS		{ int sys_getpriority(int which, int who); }
    190 97	NOARGS		{ int sys_setpriority(int which, int who, int prio); }
    191 98	NOARGS		{ int sys_profil(caddr_t samples, u_int size, \
    192 			    u_int offset, u_int scale); }
    193 99	STD		{ int linux_sys_statfs(char *path, \
    194 			    struct linux_statfs *sp); }
    195 100	STD		{ int linux_sys_fstatfs(int fd, \
    196 			    struct linux_statfs *sp); }
    197 101	UNIMPL		ioperm
    198 102	STD		{ int linux_sys_socketcall(int what, void *args); }
    199 103	UNIMPL		syslog
    200 104	NOARGS		{ int sys_setitimer(u_int which, \
    201 			    struct itimerval *itv, struct itimerval *oitv); }
    202 105	NOARGS		{ int sys_getitimer(u_int which, \
    203 			    struct itimerval *itv); }
    204 106	STD		{ int linux_sys_stat(char *path, \
    205 			    struct linux_stat *sp); }
    206 107	STD		{ int linux_sys_lstat(char *path, \
    207 			    struct linux_stat *sp); }
    208 108	STD		{ int linux_sys_fstat(int fd, struct linux_stat *sp); }
    209 109	UNIMPL		olduname
    210 110	UNIMPL		iopl
    211 111	UNIMPL		vhangup
    212 112	UNIMPL		idle
    213 113	UNIMPL		vm86old
    214 114	STD		{ int linux_sys_wait4(int pid, int *status, \
    215 			    int options, struct rusage *rusage); }
    216 115	UNIMPL		swapoff
    217 116	UNIMPL		sysinfo
    218 117	STD		{ int linux_sys_ipc(int what, int a1, int a2, int a3, \
    219 			    caddr_t ptr); }
    220 118	NOARGS		{ int sys_fsync(int fd); }
    221 119	STD		{ int linux_sys_sigreturn(void); }
    222 120	UNIMPL		clone
    223 #if !defined(_KERNEL) || defined(COMPAT_09)
    224 121	NOARGS		{ int compat_09_sys_setdomainname(char *name, \
    225 			    int len); }
    226 #else
    227 121	UNIMPL		compat_09_sys_setdomainname
    228 #endif
    229 122	STD		{ int linux_sys_uname(struct linux_utsname *up); }
    230 123	STD		{ int linux_sys_cacheflush(unsigned long addr, \
    231 			    int scope, int cache, unsigned long len); }
    232 124	UNIMPL		adjtimex
    233 125	NOARGS		{ int sys_mprotect(caddr_t addr, int len, int prot); }
    234 126	STD		{ int linux_sys_sigprocmask(int how, \
    235 			    const linux_old_sigset_t *set, \
    236 			    linux_old_sigset_t *oset); }
    237 127	UNIMPL		create_module
    238 128	UNIMPL		init_module
    239 129	UNIMPL		delete_module
    240 130	UNIMPL		get_kernel_syms
    241 131	UNIMPL		quotactl
    242 132	STD		{ int linux_sys_getpgid(int pid); }
    243 133	NOARGS		{ int sys_fchdir(int fd); }
    244 134	UNIMPL		bdflush
    245 135	UNIMPL		sysfs
    246 136	STD		{ int linux_sys_personality(int per); }
    247 137	UNIMPL		afs_syscall
    248 138	UNIMPL		setfsuid
    249 139	UNIMPL		getfsuid
    250 140	STD		{ int linux_sys_llseek(int fd, u_int32_t ohigh, \
    251 			    u_int32_t olow, caddr_t res, int whence); }
    252 141	STD		{ int linux_sys_getdents(int fd, \
    253 			    struct linux_dirent *dent, unsigned int count); }
    254 142	STD		{ int linux_sys_select(int nfds, fd_set *readfds, \
    255 			    fd_set *writefds, fd_set *exceptfds, \
    256 			    struct timeval *timeout); }
    257 143	NOARGS		{ int sys_flock(int fd, int how); }
    258 144	STD		{ int linux_sys_msync(caddr_t addr, int len, int fl); }
    259 145	NOARGS		{ int sys_readv(int fd, struct iovec *iovp, \
    260 				u_int iovcnt); }
    261 146	NOARGS		{ int sys_writev(int fd, struct iovec *iovp, \
    262 				u_int iovcnt); }
    263 147	NOARGS		{ pid_t sys_getsid(pid_t pid); }
    264 148	STD		{ int linux_sys_fdatasync(int fd); }
    265 149	STD		{ int linux_sys___sysctl(struct linux___sysctl *lsp); }
    266 150	NOARGS		{ int sys_mlock(caddr_t addr, size_t len); }
    267 151	NOARGS		{ int sys_munlock(caddr_t addr, size_t len); }
    268 152	UNIMPL		mlockall
    269 153	UNIMPL		munlockall
    270 154	UNIMPL		sched_setparam
    271 155	UNIMPL		sched_getparam
    272 156	UNIMPL		sched_setscheduler
    273 157	UNIMPL		sched_getscheduler
    274 158	UNIMPL		sched_yield
    275 159	UNIMPL		sched_get_priority_max
    276 160	UNIMPL		sched_get_priority_min
    277 161	UNIMPL		sched_rr_get_interval
    278 162	NOARGS		{ int sys_nanosleep(const struct timespec *rqtp, \
    279 				struct timespec *rmtp); }
    280 163	STD		{ void *linux_sys_mremap(void *old_address, \
    281 			    size_t old_size, size_t new_size, u_long flags); }
    282 164	UNIMPL		setresuid
    283 165	UNIMPL		getresuid
    284 166	UNIMPL		vm86
    285 167	UNIMPL		query_module
    286 168	UNIMPL		poll
    287 169	UNIMPL		nfsservctl
    288 170	UNIMPL		setresgid
    289 171	UNIMPL		setresgid
    290 172	UNIMPL		prctl
    291 173	STD		{ int linux_sys_rt_sigreturn(void); }
    292 174	STD		{ int linux_sys_rt_sigaction(int signum, \
    293 			    const struct linux_sigaction *nsa, \
    294 			    struct linux_sigaction *osa, \
    295 			    size_t sigsetsize); }
    296 175	STD		{ int linux_sys_rt_sigprocmask(int how, \
    297 			    const linux_sigset_t *set, \
    298 			    linux_sigset_t *oset, \
    299 			    size_t sigsetsize); }
    300 176	STD		{ int linux_sys_rt_sigpending( \
    301 			    linux_sigset_t *set, \
    302 			    size_t sigsetsize); }
    303 177	UNIMPL		rt_sigtimedwait
    304 ; XXX XAX int here?  sigset_t here?  siginfo_t
    305 178	STD		{ int linux_sys_rt_queueinfo(int pid, int signum, \
    306 			    void *uinfo); }
    307 179	STD		{ int linux_sys_rt_sigsuspend(linux_sigset_t *unewset, \
    308 			    size_t sigsetsize); }
    309 180	UNIMPL		pread
    310 181	UNIMPL		pwrite
    311 ;182 chown on i386; lchown on m68k.
    312 182	STD		{ int linux_sys_lchown(char *path, int uid, int gid); }
    313 183	UNIMPL		getcwd
    314 184	UNIMPL		capget
    315 185	UNIMPL		capset
    316 186	UNIMPL		sigaltstack
    317 ;187	UNIMPL		sendfile
    318 ;188	UNIMPL		streams1
    319 ;189	UNIMPL		streams2
    320