Home | History | Annotate | Line # | Download | only in ultrix
syscalls.master revision 1.19
      1 	$NetBSD: syscalls.master,v 1.19 1997/06/09 11:50:52 jonathan 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_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 ostat *ub); } ostat
     84 39	OBSOL		v7 setpgrp
     85 40	STD		{ int ultrix_sys_lstat(char *path, \
     86 			    struct ostat *ub); } olstat
     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 ostat *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 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_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 152	UNIMPL		cacheflush /* 4 args */
    232 153	UNIMPL		cachectl /* 3 args */
    233 154	UNIMPL
    234 155	UNIMPL		atomic_op
    235 156	UNIMPL
    236 157	UNIMPL
    237 #ifdef NFSSERVER
    238 158	STD		{ int ultrix_sys_nfssvc(int fd); }
    239 #else
    240 158	UNIMPL
    241 #endif
    242 159	NOARGS		{ int compat_43_sys_getdirentries(int fd, char *buf, \
    243 			    u_int count, long *basep); }
    244 160	STD		{ int ultrix_sys_statfs(char *path, \
    245 			    struct ultrix_statfs *buf); }
    246 161	STD		{ int ultrix_sys_fstatfs(int fd, \
    247 			    struct ultrix_statfs *buf); }
    248 162	UNIMPL		umount
    249 #ifdef NFS
    250 163	NOARGS		{ int async_daemon(void); }
    251 164	NOARGS		{ int sys_getfh(char *fname, fhandle_t *fhp); }
    252 #else
    253 163	UNIMPL		async_daemon
    254 164	UNIMPL		getfh
    255 #endif
    256 165	NOARGS		{ int compat_09_sys_getdomainname(char *domainname, \
    257 			    int len); }
    258 166	NOARGS		{ int compat_09_sys_setdomainname(char *domainname, \
    259 			    int len); }
    260 167	UNIMPL 
    261 168	STD		{ int ultrix_sys_quotactl(int cmd, char *special, \
    262 			    int uid, caddr_t addr); }
    263 169	STD		{ int ultrix_sys_exportfs(char *path, char *ex); }
    264 170	UNIMPL		{ int ultrix_sys_mount(char *special, char *dir, \
    265 			     int rdonly, int type, caddr_t data); }
    266 171	UNIMPL	4 hdwconf
    267 172	UNIMPL		msgctl
    268 173	UNIMPL		msgget
    269 174	UNIMPL		msgrcv
    270 175	UNIMPL		msgsnd
    271 176	UNIMPL		semctl
    272 177	UNIMPL		semget
    273 178	UNIMPL		semop
    274 179	STD		{ int ultrix_sys_uname(struct ultrix_utsname *name); }
    275 180	STD		{ int ultrix_sys_shmsys(u_int shmop, \
    276 						u_int a2, u_int a3, u_int a4); }
    277 181	UNIMPL	0 plock
    278 182	UNIMPL	0 lockf
    279 183	STD		{ int ultrix_sys_ustat(int dev, \
    280 			    struct ultrix_ustat *buf); }
    281 184	STD		{ int ultrix_sys_getmnt(int *start, \
    282 				struct ultrix_fs_data *buf, \
    283 				int bufsize, int mode, char *path); }
    284 185	UNIMPL	 	notdef
    285 186	UNIMPL	 	notdef
    286 187	STD		{ int ultrix_sys_sigpending(int *mask); }
    287 188	NOARGS		{ int sys_setsid(void); }
    288 189	STD		{ int ultrix_sys_waitpid(int pid, int *status, \
    289 			    int options); }
    290 190	UNIMPL
    291 191	UNIMPL
    292 192	UNIMPL
    293 193	UNIMPL
    294 194	UNIMPL
    295 195	UNIMPL
    296 196	UNIMPL
    297 197	UNIMPL
    298 198	UNIMPL
    299 199	UNIMPL
    300 200	UNIMPL
    301 201	UNIMPL
    302 202	UNIMPL
    303 203	UNIMPL
    304 204	UNIMPL
    305 205	UNIMPL
    306 206	UNIMPL
    307 207	UNIMPL
    308 208	UNIMPL
    309 209	UNIMPL
    310 210	UNIMPL
    311 211	UNIMPL
    312 212	UNIMPL
    313 213	UNIMPL
    314 214	UNIMPL
    315 215	UNIMPL
    316 216	UNIMPL
    317 217	UNIMPL
    318 218	UNIMPL
    319 219	UNIMPL
    320 220	UNIMPL
    321 221	UNIMPL
    322 222	UNIMPL
    323 223	UNIMPL
    324 224	UNIMPL
    325 225	UNIMPL
    326 226	UNIMPL
    327 227	UNIMPL
    328 228	UNIMPL
    329 229	UNIMPL
    330 230	UNIMPL
    331 231	UNIMPL
    332 232	UNIMPL
    333 233	UNIMPL	1 utc_gettime
    334 234	UNIMPL	2 utc_adjtime
    335 235	UNIMPL
    336 236	UNIMPL
    337 237	UNIMPL
    338 238	UNIMPL
    339 239	UNIMPL
    340 240	UNIMPL
    341 241	UNIMPL
    342 242	UNIMPL
    343 243	UNIMPL
    344 244	UNIMPL
    345 245	UNIMPL
    346 246	UNIMPL
    347 247	UNIMPL
    348 248	UNIMPL
    349 249	UNIMPL
    350 250	UNIMPL
    351 251	UNIMPL
    352 252     UNIMPL  	audctl /*Make no-op for installation on Ultrix rootpartition?*/
    353 253	UNIMPL		audgen /*Make no-op for installation on Ultrix rootpartition?*/
    354 254	UNIMPL		startcpu
    355 255	UNIMPL		stopcpu
    356 256	STD		{ int ultrix_sys_getsysinfo(unsigned op, char *buffer, \
    357 			    unsigned nbytes, int *start, char *arg); }
    358 257	STD		{ int ultrix_sys_setsysinfo(unsigned op, char *buffer, \
    359 			    unsigned nbytes, unsigned arg, unsigned flag); }
    360 
    361