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