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