Home | History | Annotate | Line # | Download | only in ultrix
syscalls.master revision 1.34
      1 	$NetBSD: syscalls.master,v 1.34 2000/12/09 05:27:30 mycroft Exp $
      2 
      3 ;	@(#)syscalls.master	8.1 (Berkeley) 7/19/93
      4 
      5 ; NetBSD COMPAT_ULTRIX 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 names and switch definition files only.
     33 
     34 #if defined(_KERNEL) && !defined(_LKM)
     35 #include "opt_nfsserver.h"
     36 #include "fs_nfs.h"
     37 #endif
     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 #include <compat/ultrix/ultrix_syscallargs.h>
     45 
     46 0	NOARGS		{ int sys_nosys(void); } syscall
     47 1	NOARGS		{ int sys_exit(int rval); }
     48 2	NOARGS		{ int sys_fork(void); }
     49 3	NOARGS		{ int sys_read(int fd, char *buf, u_int nbyte); }
     50 4	NOARGS		{ int sys_write(int fd, char *buf, u_int nbyte); }
     51 5	STD		{ int ultrix_sys_open(const char *path, int flags, \
     52 			    int mode); }
     53 6	NOARGS		{ int sys_close(int fd); }
     54 7	NOARGS		{ int compat_43_sys_wait(void); } owait
     55 8	STD		{ int ultrix_sys_creat(const char *path, int mode); }
     56 9	NOARGS		{ int sys_link(char *path, char *link); }
     57 10	NOARGS		{ int sys_unlink(char *path); }
     58 11	STD		{ int ultrix_sys_execv(const char *path, char **argp); }
     59 12	NOARGS		{ int sys_chdir(char *path); }
     60 13	OBSOL		time
     61 14	STD		{ int ultrix_sys_mknod(const char *path, int mode, \
     62 			    int dev); }
     63 15	NOARGS		{ int sys_chmod(char *path, int mode); }
     64 16	NOARGS		{ int sys___posix_chown(char *path, int uid, int gid); }
     65 17	NOARGS		{ int sys_obreak(char *nsize); } break
     66 18	OBSOL		stat
     67 19	NOARGS		{ long compat_43_sys_lseek(int fd, long offset, \
     68 			    int whence); }
     69 20	NOARGS		{ pid_t sys_getpid(void); }
     70 21	STD		{ int ultrix_sys_mount(char *special, char *dir, \
     71 			     int rdonly, int type, caddr_t data); }
     72 22	OBSOL		sysV_unmount
     73 23	NOARGS		{ int sys_setuid(uid_t uid); }
     74 24	NOARGS		{ uid_t sys_getuid(void); }
     75 25	OBSOL		v7 stime
     76 26	OBSOL		v7 ptrace
     77 27	OBSOL		v7 alarm
     78 28	OBSOL		v7 fstat
     79 29	OBSOL		v7 pause
     80 30	OBSOL		v7 utime
     81 31	OBSOL		v7 stty
     82 32	OBSOL		v7 gtty
     83 33	STD		{ int ultrix_sys_access(const char *path, int flags); }
     84 34	OBSOL		v7 nice
     85 35	OBSOL		v7 ftime
     86 36	NOARGS		{ int sys_sync(void); }
     87 37	NOARGS		{ int sys_kill(int pid, int signum); }
     88 38	STD		{ int ultrix_sys_stat(const char *path, \
     89 			    struct stat43 *ub); } stat43
     90 39	OBSOL		v7 setpgrp
     91 40	STD		{ int ultrix_sys_lstat(const char *path, \
     92 			    struct stat43 *ub); } lstat43
     93 41	NOARGS		{ int sys_dup(u_int fd); }
     94 42	NOARGS		{ int sys_pipe(void); }
     95 43	OBSOL		v7 times
     96 44	NOARGS		{ int sys_profil(caddr_t samples, u_int size, \
     97 			    u_int offset, u_int scale); }
     98 45	UNIMPL
     99 46	OBSOL		v7 setgid
    100 47	NOARGS		{ gid_t sys_getgid(void); }
    101 48	UNIMPL		ssig
    102 49	UNIMPL		reserved for USG
    103 50	UNIMPL		reserved for USG
    104 51	NOARGS		{ int sys_acct(char *path); }
    105 52	UNIMPL
    106 53	UNIMPL		syslock
    107 54	STD		{ int ultrix_sys_ioctl(int fd, u_long com, caddr_t data); }
    108 55	NOARGS		{ int sys_reboot(int opt); }
    109 56	UNIMPL		v7 mpxchan
    110 57	NOARGS		{ int sys_symlink(char *path, char *link); }
    111 58	NOARGS		{ int sys_readlink(char *path, char *buf, int count); }
    112 59	STD		{ int ultrix_sys_execve(const char *path, char **argp, \
    113 			    char **envp); }
    114 60	NOARGS		{ int sys_umask(int newmask); }
    115 61	NOARGS		{ int sys_chroot(char *path); }
    116 62	NOARGS		{ int compat_43_sys_fstat(int fd, struct stat43 *sb); }
    117 63	UNIMPL
    118 64	NOARGS		{ int compat_43_sys_getpagesize(void); }
    119 65	UNIMPL		mremap
    120 66	NOARGS		{ int sys_vfork(void); }
    121 67	OBSOL		vread
    122 68	OBSOL		vwrite
    123 69	NOARGS		{ int sys_sbrk(intptr_t incr); }
    124 70	NOARGS		{ int sys_sstk(int incr); }
    125 71	STD		{ int ultrix_sys_mmap(caddr_t addr, size_t len, \
    126 			    int prot, u_int flags, int fd, long pos); }
    127 72	NOARGS		{ int sys_ovadvise(int anom); } vadvise
    128 73	NOARGS		{ int sys_munmap(caddr_t addr, size_t len); }
    129 74	NOARGS		{ int sys_mprotect(caddr_t addr, size_t len, \
    130 			    int prot); }
    131 75	NOARGS		{ int sys_madvise(caddr_t addr, size_t len, \
    132 			    int behav); }
    133 76	STD		{ int ultrix_sys_vhangup(void); }
    134 77	UNIMPL		old vlimit
    135 78	NOARGS		{ int sys_mincore(caddr_t addr, int len, char *vec); }
    136 79	NOARGS		{ int sys_getgroups(u_int gidsetsize, gid_t *gidset); }
    137 80	NOARGS		{ int sys_setgroups(u_int gidsetsize, gid_t *gidset); }
    138 81	NOARGS		{ int sys_getpgrp(void); }
    139 82	STD		{ int ultrix_sys_setpgrp(int pid, int pgid); }
    140 83	NOARGS		{ int sys_setitimer(u_int which, \
    141 			    struct itimerval *itv, struct itimerval *oitv); }
    142 84	STD		{ int ultrix_sys_wait3(int *status, int options, \
    143 			    struct rusage *rusage);}
    144 85	NOARGS		{ int compat_12_sys_swapon(char *name); }
    145 86	NOARGS		{ int sys_getitimer(u_int which, \
    146 			    struct itimerval *itv); }
    147 87	NOARGS		{ int compat_43_sys_gethostname(char *hostname, \
    148 			    u_int len); }
    149 88	NOARGS		{ int compat_43_sys_sethostname(char *hostname, \
    150 			    u_int len); }
    151 89	NOARGS		{ int compat_43_sys_getdtablesize(void); }
    152 90	NOARGS		{ int sys_dup2(u_int from, u_int to); }
    153 91	UNIMPL		getdopt
    154 92	STD		{ int ultrix_sys_fcntl(int fd, int cmd, void *arg); }
    155 93	STD		{ int ultrix_sys_select(u_int nd, fd_set *in, fd_set *ou, \
    156 			    fd_set *ex, struct timeval *tv); }
    157 94	UNIMPL		setdopt
    158 95	NOARGS		{ int sys_fsync(int fd); }
    159 96	NOARGS		{ int sys_setpriority(int which, int who, int prio); }
    160 97	NOARGS		{ int sys_socket(int domain, int type, int protocol); }
    161 98	NOARGS		{ int sys_connect(int s, caddr_t name, int namelen); }
    162 99	NOARGS		{ int compat_43_sys_accept(int s, caddr_t name, \
    163 			    int *anamelen); }
    164 100	NOARGS		{ int sys_getpriority(int which, int who); }
    165 101	NOARGS		{ int compat_43_sys_send(int s, caddr_t buf, int len, \
    166 			    int flags); }
    167 102	NOARGS		{ int compat_43_sys_recv(int s, caddr_t buf, int len, \
    168 			    int flags); }
    169 103	STD			{ int ultrix_sys_sigreturn(struct sigcontext * \
    170 							sigcntxp); }
    171 104	NOARGS		{ int sys_bind(int s, caddr_t name, int namelen); }
    172 105	STD		{ int ultrix_sys_setsockopt(int s, int level, \
    173 			    int name, caddr_t val, int valsize); }
    174 106	NOARGS		{ int sys_listen(int s, int backlog); }
    175 107	UNIMPL		vtimes
    176 108	STD		{ int ultrix_sys_sigvec(int signum, \
    177 			    struct sigvec *nsv, struct sigvec *osv); }
    178 109	NOARGS		{ int compat_43_sys_sigblock(int mask); }
    179 110	NOARGS		{ int compat_43_sys_sigsetmask(int mask); }
    180 111	STD			{ int ultrix_sys_sigsuspend(int mask); }
    181 112	NOARGS		{ int compat_43_sys_sigstack(struct sigstack *nss, \
    182 			    struct sigstack *oss); }
    183 113	NOARGS		{ int compat_43_sys_recvmsg(int s, \
    184 			    struct omsghdr *msg, int flags); }
    185 114	NOARGS		{ int compat_43_sys_sendmsg(int s, caddr_t msg, \
    186 			    int flags); }
    187 115	OBSOL		vtrace
    188 116	NOARGS		{ int sys_gettimeofday(struct timeval *tp, \
    189 			    struct timezone *tzp); }
    190 117	NOARGS		{ int sys_getrusage(int who, struct rusage *rusage); }
    191 118	NOARGS		{ int sys_getsockopt(int s, int level, int name, \
    192 			    caddr_t val, int *avalsize); }
    193 119	UNIMPL		resuba
    194 120	NOARGS		{ int sys_readv(int fd, struct iovec *iovp, \
    195 			    u_int iovcnt); }
    196 121	NOARGS		{ int sys_writev(int fd, struct iovec *iovp, \
    197 			    u_int iovcnt); }
    198 122	NOARGS		{ int sys_settimeofday(struct timeval *tv, \
    199 			    struct timezone *tzp); }
    200 123	NOARGS		{ int sys___posix_fchown(int fd, int uid, int gid); }
    201 124	NOARGS		{ int sys_fchmod(int fd, int mode); }
    202 125	NOARGS		{ int compat_43_sys_recvfrom(int s, caddr_t buf, \
    203 			    size_t len, int flags, caddr_t from, \
    204 			    int *fromlenaddr); }
    205 126	NOARGS		{ int sys_setreuid(int ruid, int euid); }
    206 127	NOARGS		{ int sys_setregid(int rgid, int egid); }
    207 128	NOARGS		{ int sys_rename(char *from, char *to); }
    208 129	NOARGS		{ int compat_43_sys_truncate(char *path, long length); }
    209 130	NOARGS		{ int compat_43_sys_ftruncate(int fd, long length); }
    210 131	NOARGS		{ int sys_flock(int fd, int how); }
    211 132	UNIMPL
    212 133	NOARGS		{ int sys_sendto(int s, caddr_t buf, size_t len, \
    213 			    int flags, caddr_t to, int tolen); }
    214 134	NOARGS		{ int sys_shutdown(int s, int how); }
    215 135	NOARGS		{ int sys_socketpair(int domain, int type, \
    216 			    int protocol, int *rsv); }
    217 136	NOARGS		{ int sys_mkdir(char *path, int mode); }
    218 137	NOARGS		{ int sys_rmdir(char *path); }
    219 138	NOARGS		{ int sys_utimes(char *path, struct timeval *tptr); }
    220 139	STD		{ int ultrix_sys_sigcleanup(struct sigcontext *sigcntxp); }
    221 140	NOARGS		{ int sys_adjtime(struct timeval *delta, \
    222 			    struct timeval *olddelta); }
    223 141	NOARGS		{ int compat_43_sys_getpeername(int fdes, caddr_t asa, \
    224 			    int *alen); }
    225 142	NOARGS		{ int compat_43_sys_gethostid(void); }
    226 143	UNIMPL		old sethostid
    227 144	NOARGS		{ int compat_43_sys_getrlimit(u_int which, \
    228 			    struct orlimit *rlp); }
    229 145	NOARGS		{ int compat_43_sys_setrlimit(u_int which, \
    230 			    struct orlimit *rlp); }
    231 146	NOARGS		{ int compat_43_sys_killpg(int pgid, int signum); }
    232 147	UNIMPL
    233 148	UNIMPL		setquota
    234 149	UNIMPL	 	quota /* needs to be nullop to boot on Ultrix root partition*/
    235 150	NOARGS		{ int compat_43_sys_getsockname(int fdes, caddr_t asa, \
    236 			    int *alen); }
    237 151	UNIMPL		sysmips /* 4 args */
    238 #ifdef __mips
    239 152	STD		{ int ultrix_sys_cacheflush(char *addr, int nbytes, \
    240 			    int whichcache); }
    241 153	STD	{ int ultrix_sys_cachectl(char *addr, int nbytes, int cacheop); }
    242 #else	/* !mips */
    243 152	UNIMPL
    244 153	UNIMPL
    245 #endif	/* !mips */
    246 154	UNIMPL
    247 155	UNIMPL		atomic_op
    248 156	UNIMPL
    249 157	UNIMPL
    250 #ifdef NFSSERVER
    251 158	STD		{ int ultrix_sys_nfssvc(int fd); }
    252 #else
    253 158	UNIMPL
    254 #endif
    255 159	NOARGS		{ int compat_43_sys_getdirentries(int fd, char *buf, \
    256 			    u_int count, long *basep); }
    257 160	STD		{ int ultrix_sys_statfs(const char *path, \
    258 			    struct ultrix_statfs *buf); }
    259 161	STD		{ int ultrix_sys_fstatfs(int fd, \
    260 			    struct ultrix_statfs *buf); }
    261 162	UNIMPL		umount
    262 #ifdef NFS
    263 163	NOARGS		{ int async_daemon(void); }
    264 164	NOARGS		{ int sys_getfh(char *fname, fhandle_t *fhp); }
    265 #else
    266 163	UNIMPL		async_daemon
    267 164	UNIMPL		getfh
    268 #endif
    269 165	NOARGS		{ int compat_09_sys_getdomainname(char *domainname, \
    270 			    int len); }
    271 166	NOARGS		{ int compat_09_sys_setdomainname(char *domainname, \
    272 			    int len); }
    273 167	UNIMPL 
    274 168	STD		{ int ultrix_sys_quotactl(int cmd, char *special, \
    275 			    int uid, caddr_t addr); }
    276 169	STD		{ int ultrix_sys_exportfs(char *path, char *ex); }
    277 170	UNIMPL		{ int ultrix_sys_mount(char *special, char *dir, \
    278 			     int rdonly, int type, caddr_t data); }
    279 171	UNIMPL	4 hdwconf
    280 172	UNIMPL		msgctl
    281 173	UNIMPL		msgget
    282 174	UNIMPL		msgrcv
    283 175	UNIMPL		msgsnd
    284 176	UNIMPL		semctl
    285 177	UNIMPL		semget
    286 178	UNIMPL		semop
    287 179	STD		{ int ultrix_sys_uname(struct ultrix_utsname *name); }
    288 180	STD		{ int ultrix_sys_shmsys(u_int shmop, \
    289 						u_int a2, u_int a3, u_int a4); }
    290 181	UNIMPL	0 plock
    291 182	UNIMPL	0 lockf
    292 183	STD		{ int ultrix_sys_ustat(int dev, \
    293 			    struct ultrix_ustat *buf); }
    294 184	STD		{ int ultrix_sys_getmnt(int *start, \
    295 				struct ultrix_fs_data *buf, \
    296 				int bufsize, int mode, char *path); }
    297 185	UNIMPL	 	notdef
    298 186	UNIMPL	 	notdef
    299 187	STD		{ int ultrix_sys_sigpending(int *mask); }
    300 188	NOARGS		{ int sys_setsid(void); }
    301 189	STD		{ int ultrix_sys_waitpid(int pid, int *status, \
    302 			    int options); }
    303 190	UNIMPL
    304 191	UNIMPL
    305 192	UNIMPL
    306 193	UNIMPL
    307 194	UNIMPL
    308 195	UNIMPL
    309 196	UNIMPL
    310 197	UNIMPL
    311 198	UNIMPL
    312 199	UNIMPL
    313 200	UNIMPL
    314 201	UNIMPL
    315 202	UNIMPL
    316 203	UNIMPL
    317 204	UNIMPL
    318 205	UNIMPL
    319 206	UNIMPL
    320 207	UNIMPL
    321 208	UNIMPL
    322 209	UNIMPL
    323 210	UNIMPL
    324 211	UNIMPL
    325 212	UNIMPL
    326 213	UNIMPL
    327 214	UNIMPL
    328 215	UNIMPL
    329 216	UNIMPL
    330 217	UNIMPL
    331 218	UNIMPL
    332 219	UNIMPL
    333 220	UNIMPL
    334 221	UNIMPL
    335 222	UNIMPL
    336 223	UNIMPL
    337 224	UNIMPL
    338 225	UNIMPL
    339 226	UNIMPL
    340 227	UNIMPL
    341 228	UNIMPL
    342 229	UNIMPL
    343 230	UNIMPL
    344 231	UNIMPL
    345 232	UNIMPL
    346 233	UNIMPL	1 utc_gettime
    347 234	UNIMPL	2 utc_adjtime
    348 235	UNIMPL
    349 236	UNIMPL
    350 237	UNIMPL
    351 238	UNIMPL
    352 239	UNIMPL
    353 240	UNIMPL
    354 241	UNIMPL
    355 242	UNIMPL
    356 243	UNIMPL
    357 244	UNIMPL
    358 245	UNIMPL
    359 246	UNIMPL
    360 247	UNIMPL
    361 248	UNIMPL
    362 249	UNIMPL
    363 250	UNIMPL
    364 251	UNIMPL
    365 252     UNIMPL  	audctl /*Make no-op for installation on Ultrix rootpartition?*/
    366 253	UNIMPL		audgen /*Make no-op for installation on Ultrix rootpartition?*/
    367 254	UNIMPL		startcpu
    368 255	UNIMPL		stopcpu
    369 256	STD		{ int ultrix_sys_getsysinfo(unsigned op, char *buffer, \
    370 			    unsigned nbytes, int *start, char *arg); }
    371 257	STD		{ int ultrix_sys_setsysinfo(unsigned op, char *buffer, \
    372 			    unsigned nbytes, unsigned arg, unsigned flag); }
    373 
    374