Home | History | Annotate | Line # | Download | only in ultrix
syscalls.master revision 1.9
      1 	$NetBSD: syscalls.master,v 1.9 1995/02/01 05:09:14 mellon Exp $
      2 ;	@(#)syscalls.master	8.1 (Berkeley) 7/19/93
      3 ; System call name/number master file (or rather, slave, from SunOS).
      4 ; Processed to created sun_sysent.c, sun_syscalls.c and sun_syscall.h.
      5 
      6 ; Columns: number type nargs name altname/comments
      7 ;	number	system call number, must be in order
      8 ;	type	one of STD, OBSOL, UNIMPL, COMPAT
      9 ;	nargs	number of arguments
     10 ;	name	name of syscall routine
     11 ;	altname	name of system call if different
     12 ;		for UNIMPL/OBSOL, name continues with comments
     13 
     14 ; types:
     15 ;	STD	always included
     16 ;	COMPAT	included on COMPAT #ifdef
     17 ;	LIBCOMPAT included on COMPAT #ifdef, and placed in syscall.h
     18 ;	OBSOL	obsolete, not included in system, only specifies name
     19 ;	UNIMPL	not implemented, placeholder only
     20 
     21 ; The compat options are defined in the syscalls.conf file, and the
     22 ; compat option name is prefixed to the syscall name.  Other than
     23 ; that, they're like NODEF (for 'compat' options), or STD (for
     24 ; 'libcompat' options).
     25 ;
     26 ; The type-dependent arguments are as follows:
     27 ; For STD, NODEF, NOARGS, and compat syscalls:
     28 ;	{ pseudo-proto } [alias]
     29 ; For other syscalls:
     30 ;	[comment]
     31 ;
     32 ; #ifdef's, etc. may be included, and are copied to the output files.
     33 ; #include's are copied to the syscall switch definition file only.
     34 
     35 #include <sys/param.h>
     36 #include <sys/systm.h>
     37 #include <sys/signal.h>
     38 #include <sys/mount.h>
     39 #include <sys/syscallargs.h>
     40 #include <compat/ultrix/ultrix_syscallargs.h>
     41 
     42 
     43 0	NOARGS		{ int  nosys(void); } syscall
     44 1	NOARGS		{ int exit(int rval); }
     45 2	NOARGS		{ int fork(void); }
     46 3	NOARGS		{ int read(int fd, char *buf, u_int nbyte); }
     47 4	NOARGS		{ int write(int fd, char *buf, u_int nbyte); }
     48 5	STD		{ int sun_open(char *path, int flags, int mode); }
     49 6	NOARGS		{ int close(int fd); }
     50 7	UNIMPL		old_wait
     51 8	NOARGS		{ int compat_43_creat(char *path, int mode); }
     52 9	NOARGS		{ int link(char *path, char *link); }
     53 10	NOARGS		{ int unlink(char *path); }
     54 11	STD		{ int sun_execv(char *path, char **argp); }
     55 12	NOARGS		{ int chdir(char *path); }
     56 13	OBSOL		sun_time
     57 14	STD		{ int sun_mknod(char *path, int mode, int dev); }
     58 15	NOARGS		{ int chmod(char *path, int mode); }
     59 16	NOARGS		{ int chown(char *path, int uid, int gid); }
     60 17	NOARGS		{ int obreak(char *nsize); } break
     61 18	OBSOL		sun_stat
     62 19	NOARGS		{ long compat_43_lseek(int fd, long offset, int whence); }
     63 20	NOARGS		{ pid_t getpid(void); }
     64 21	OBSOL		ultrix_mount
     65 22	OBSOL		sun_or_sysV_unmount
     66 23	NOARGS		{ int setuid(uid_t uid); }
     67 24	NOARGS		{ uid_t 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 access(char *path, int flags); }
     77 34	OBSOL		v7 nice
     78 35	OBSOL		v7 ftime
     79 36	NOARGS		{ int sync(void); }
     80 37	NOARGS		{ int kill(int pid, int signum); }
     81 38	NOARGS		{ int compat_43_stat(char *path, struct ostat *ub); }
     82 39	OBSOL		v7 setpgrp
     83 40	NOARGS		{ int compat_43_lstat(char *path, struct ostat *ub); }
     84 41	NOARGS		{ int dup(u_int fd); }
     85 42	NOARGS		{ int pipe(void); }
     86 43	OBSOL		v7 times
     87 44	NOARGS		{ int profil(caddr_t samples, u_int size, \
     88 			    u_int offset, u_int scale); }
     89 45	UNIMPL		nosys
     90 46	OBSOL		v7 setgid
     91 47	NOARGS		{ gid_t getgid(void); }
     92 48	UNIMPL		sun_ssig
     93 49	UNIMPL		reserved for USG
     94 50	UNIMPL		reserved for USG
     95 51	NOARGS		{ int acct(char *path); }
     96 52	UNIMPL		nosys
     97 53	UNIMPL		syslock
     98 54	NOARGS		{ int ioctl(int fd, u_long com, caddr_t data); }
     99 55	NOARGS		{ int reboot(int opt); }
    100 56	UNIMPL		v7 mpxchan
    101 57	NOARGS		{ int symlink(char *path, char *link); }
    102 58	NOARGS		{ int readlink(char *path, char *buf, int count); }
    103 59	NOARGS		{ int execve(char *path, char **argp, char **envp); }
    104 60	NOARGS		{ int umask(int newmask); }
    105 61	NOARGS		{ int chroot(char *path); }
    106 62	NOARGS		{ int compat_43_fstat(int fd, struct ostat *sb); }
    107 63	UNIMPL		nosys
    108 64	NOARGS		{ int compat_43_getpagesize(void); }
    109 65	UNIMPL		mremap
    110 66	NOARGS		{ int vfork(void); }
    111 67	OBSOL		vread
    112 68	OBSOL		vwrite
    113 69	NOARGS		{ int sbrk(int incr); }
    114 70	NOARGS		{ int sstk(int incr); }
    115 71	STD		{ int sun_mmap(caddr_t addr, int len, int prot, \
    116 			    u_int flags, int fd, long pos); }
    117 72	NOARGS		{ int ovadvise(int anom); } vadvise
    118 73	NOARGS		{ int munmap(caddr_t addr, int len); }
    119 74	NOARGS		{ int mprotect(caddr_t addr, int len, int prot); }
    120 75	NOARGS		{ int madvise(caddr_t addr, int len, int behav); }
    121 76	STD		{ int sun_vhangup(void); }
    122 77	UNIMPL		old vlimit
    123 78	NOARGS		{ int mincore(caddr_t addr, int len, char *vec); }
    124 79	NOARGS		{ int getgroups(u_int gidsetsize, gid_t *gidset); }
    125 80	NOARGS		{ int setgroups(u_int gidsetsize, gid_t *gidset); }
    126 81	NOARGS		{ int getpgrp(void); }
    127 82	STD		{ int sun_setpgid(int pid, int pgid); }
    128 83	NOARGS		{ int setitimer(u_int which, struct itimerval *itv, \
    129 			    struct itimerval *oitv); }
    130 84	STD		{ int sun_wait3(int *status, int options, \
    131 			    struct rusage *rusage);}
    132 85	NOARGS		{ int swapon(char *name); }
    133 86	NOARGS		{ int getitimer(u_int which, struct itimerval *itv); }
    134 87	NOARGS		{ int compat_43_gethostname(char *hostname, u_int len); }
    135 88	NOARGS		{ int compat_43_sethostname(char *hostname, u_int len); }
    136 89	NOARGS		{ int compat_43_getdtablesize(void); }
    137 90	NOARGS		{ int dup2(u_int from, u_int to); }
    138 91	UNIMPL		getdopt
    139 92	NOARGS		{ int fcntl(int fd, int cmd, void *arg); }
    140 93	NOARGS		{ int select(u_int nd, fd_set *in, fd_set *ou, \
    141 			    fd_set *ex, struct timeval *tv); }
    142 94	UNIMPL		setdopt
    143 95	NOARGS		{ int fsync(int fd); }
    144 96	NOARGS		{ int setpriority(int which, int who, int prio); }
    145 97	NOARGS		{ int socket(int domain, int type, int protocol); }
    146 98	NOARGS		{ int connect(int s, caddr_t name, int namelen); }
    147 99	NOARGS		{ int compat_43_accept(int s, caddr_t name, int *anamelen); }
    148 100	NOARGS		{ int getpriority(int which, int who); }
    149 101	NOARGS		{ int compat_43_send(int s, caddr_t buf, int len, int flags); }
    150 102	NOARGS		{ int compat_43_recv(int s, caddr_t buf, int len, int flags); }
    151 103	NOARGS		{ int sigreturn(struct sigcontext *sigcntxp); }
    152 104	NOARGS		{ int bind(int s, caddr_t name, int namelen); }
    153 105	STD		{ int sun_setsockopt(int s, int level, int name, \
    154 			    caddr_t val, int valsize); }
    155 106	NOARGS		{ int listen(int s, int backlog); }
    156 107	UNIMPL		vtimes
    157 108	NOARGS		{ int compat_43_sigvec(int signum, struct sigvec *nsv, \
    158 			    struct sigvec *osv); }
    159 109	NOARGS		{ int compat_43_sigblock(int mask); }
    160 110	NOARGS		{ int compat_43_sigsetmask(int mask); }
    161 111	NOARGS		{ int sigsuspend(int mask); }
    162 112	NOARGS		{ int compat_43_sigstack(struct sigstack *nss, \
    163 			    struct sigstack *oss); }
    164 113	NOARGS		{ int compat_43_recvmsg(int s, struct omsghdr *msg, int flags); }
    165 114	NOARGS		{ int compat_43_sendmsg(int s, caddr_t msg, int flags); }
    166 115	OBSOL		vtrace
    167 116	NOARGS		{ int gettimeofday(struct timeval *tp, \
    168 			    struct timezone *tzp); }
    169 117	NOARGS		{ int getrusage(int who, struct rusage *rusage); }
    170 118	NOARGS		{ int getsockopt(int s, int level, int name, \
    171 			    caddr_t val, int *avalsize); }
    172 119	UNIMPL		resuba
    173 120	NOARGS		{ int readv(int fd, struct iovec *iovp, u_int iovcnt); }
    174 121	NOARGS		{ int writev(int fd, struct iovec *iovp, \
    175 			    u_int iovcnt); }
    176 122	NOARGS		{ int settimeofday(struct timeval *tv, \
    177 			    struct timezone *tzp); }
    178 123	NOARGS		{ int fchown(int fd, int uid, int gid); }
    179 124	NOARGS		{ int fchmod(int fd, int mode); }
    180 125	NOARGS		{ int compat_43_recvfrom(int s, caddr_t buf, size_t len, \
    181 			    int flags, caddr_t from, int *fromlenaddr); }
    182 126	NOARGS		{ int compat_43_setreuid(int ruid, int euid); }
    183 127	NOARGS		{ int compat_43_setregid(int rgid, int egid); }
    184 128	NOARGS		{ int rename(char *from, char *to); }
    185 129	NOARGS		{ int compat_43_truncate(char *path, long length); }
    186 130	NOARGS		{ int compat_43_ftruncate(int fd, long length); }
    187 131	NOARGS		{ int flock(int fd, int how); }
    188 132	UNIMPL		nosys
    189 133	NOARGS		{ int sendto(int s, caddr_t buf, size_t len, \
    190 			    int flags, caddr_t to, int tolen); }
    191 134	NOARGS		{ int shutdown(int s, int how); }
    192 135	NOARGS		{ int socketpair(int domain, int type, int protocol, \
    193 			    int *rsv); }
    194 136	NOARGS		{ int mkdir(char *path, int mode); }
    195 137	NOARGS		{ int rmdir(char *path); }
    196 138	NOARGS		{ int utimes(char *path, struct timeval *tptr); }
    197 139	NOARGS		{ int sigreturn(struct sigcontext *sigcntxp); }
    198 140	NOARGS		{ int adjtime(struct timeval *delta, \
    199 			    struct timeval *olddelta); }
    200 141	NOARGS		{ int compat_43_getpeername(int fdes, caddr_t asa, int *alen); }
    201 142	NOARGS		{ int compat_43_gethostid(void); }
    202 143	UNIMPL		old sethostid
    203 144	NOARGS		{ int compat_43_getrlimit(u_int which, struct orlimit *rlp); }
    204 145	NOARGS		{ int compat_43_setrlimit(u_int which, struct orlimit *rlp); }
    205 146	NOARGS		{ int compat_43_killpg(int pgid, int signum); }
    206 147	UNIMPL		nosys
    207 148	UNIMPL		setquota
    208 149	UNIMPL	 	quota /* needs to be nullop to boot on Ultrix root partition*/
    209 150	NOARGS		{ int compat_43_getsockname(int fdes, caddr_t asa, int *alen); }
    210 151	UNIMPL		sysmips /* 4 args */
    211 152	UNIMPL		cacheflush /* 4 args */
    212 153	UNIMPL		cachectl /* 3 args */
    213 154	UNIMPL		nosys
    214 155	UNIMPL		atomic_op
    215 156	UNIMPL		nosys
    216 157	UNIMPL		nosys
    217 #ifdef NFSSERVER
    218 158	STD		{ int sun_nfssvc(int fd); }
    219 #else
    220 158	UNIMPL
    221 #endif
    222 159	NOARGS		{ int compat_43_getdirentries(int fd, char *buf, u_int count, \
    223 			    long *basep); }
    224 160	STD		{ int sun_statfs(char *path, struct sunos_statfs *buf); }
    225 161	STD		{ int sun_fstatfs(int fd, struct sunos_statfs *buf); }
    226 162	STD		{ int sun_unmount(char *path, int flags); }
    227 #ifdef NFSCLIENT
    228 163	NOARGS		{ int async_daemon(void); }
    229 164	NOARGS		{ int getfh(char *fname, fhandle_t *fhp); }
    230 #else
    231 163	UNIMPL		async_daemon
    232 164	UNIMPL		getfh
    233 #endif
    234 165	NOARGS		{ int compat_09_getdomainname(char *domainname, int len); }
    235 166	NOARGS		{ int compat_09_setdomainname(char *domainname, int len); }
    236 167	UNIMPL  0 nosys
    237 168	STD		{ int sun_quotactl(int cmd, char *special, int uid, \
    238 			    caddr_t addr); }
    239 169	STD		{ int sun_exportfs(char *path, char *ex); }
    240 170	UNIMPL		 ultrix_mount/*implemented by jonathan (a] DSG.Stanford.EDU*/
    241 171	UNIMPL	4 hdwconf
    242 #ifdef SYSVMSG
    243 172	UNIMPL	0 msgctl
    244 173	UNIMPL	0 msgget
    245 174	UNIMPL	0 msgrcv
    246 175	UNIMPL	0 msgsnd
    247 #else
    248 172	UNIMPL	0 msgctl
    249 173	UNIMPL	0 msgget
    250 174	UNIMPL	0 msgrcv
    251 175	UNIMPL	0 msgsnd
    252 #endif
    253 #ifdef SYSVSEM
    254 176	UNIMPL	0 semctl
    255 177	UNIMPL	0 semget
    256 178	UNIMPL	0 semop
    257 #else
    258 176	UNIMPL	0 semctl
    259 177	UNIMPL	0 semget
    260 178	UNIMPL	0 semop
    261 #endif
    262 179	STD		{ int sun_uname(struct sunos_utsname *name); }
    263 #ifdef SYSVSHM
    264 180	NOARGS		{ int shmsys(int which, int a2, int a3, int a4); }
    265 #else
    266 180	UNIMPL		shmsys
    267 #endif
    268 181	UNIMPL	0 plock
    269 182	UNIMPL	0 lockf
    270 183	STD		{ int sun_ustat(int dev, struct sunos_ustat *buf); }
    271 184	UNIMPL	ult_getmnt /*implemented by jonathan (a] DSG.Stanford.EDU*/
    272 185	UNIMPL	 	notdef
    273 186	UNIMPL	 	notdef
    274 187	STD		{ int sun_sigpending(int *mask); }
    275 188	NOARGS		{ int setsid(void); }
    276 189	STD		{ int ultrix_waitpid(); }
    277 190	UNIMPL		nosys
    278 191	UNIMPL		nosys
    279 192	UNIMPL		nosys
    280 193	UNIMPL		nosys
    281 194	UNIMPL		nosys
    282 195	UNIMPL		nosys
    283 196	UNIMPL		nosys
    284 197	UNIMPL		nosys
    285 198	UNIMPL		nosys
    286 199	UNIMPL		nosys
    287 200	UNIMPL		nosys
    288 201	UNIMPL		nosys
    289 202	UNIMPL		nosys
    290 203	UNIMPL		nosys
    291 204	UNIMPL		nosys
    292 205	UNIMPL		nosys
    293 206	UNIMPL		nosys
    294 207	UNIMPL		nosys
    295 208	UNIMPL		nosys
    296 209	UNIMPL		nosys
    297 210	UNIMPL		nosys
    298 211	UNIMPL		nosys
    299 212	UNIMPL		nosys
    300 213	UNIMPL		nosys
    301 214	UNIMPL		nosys
    302 215	UNIMPL		nosys
    303 216	UNIMPL		nosys
    304 217	UNIMPL		nosys
    305 218	UNIMPL		nosys
    306 219	UNIMPL		nosys
    307 220	UNIMPL		nosys
    308 221	UNIMPL		nosys
    309 222	UNIMPL		nosys
    310 223	UNIMPL		nosys
    311 224	UNIMPL		nosys
    312 225	UNIMPL		nosys
    313 226	UNIMPL		nosys
    314 227	UNIMPL		nosys
    315 228	UNIMPL		nosys
    316 229	UNIMPL		nosys
    317 230	UNIMPL		nosys
    318 231	UNIMPL		nosys
    319 232	UNIMPL		nosys
    320 233	UNIMPL	1 utc_gettime
    321 234	UNIMPL	2 utc_adjtime
    322 235	UNIMPL		nosys
    323 236	UNIMPL		nosys
    324 237	UNIMPL		nosys
    325 238	UNIMPL		nosys
    326 239	UNIMPL		nosys
    327 240	UNIMPL		nosys
    328 241	UNIMPL		nosys
    329 242	UNIMPL		nosys
    330 243	UNIMPL		nosys
    331 244	UNIMPL		nosys
    332 245	UNIMPL		nosys
    333 246	UNIMPL		nosys
    334 247	UNIMPL		nosys
    335 248	UNIMPL		nosys
    336 249	UNIMPL		nosys
    337 250	UNIMPL		nosys
    338 251	UNIMPL		nosys
    339 252     UNIMPL  	audctl /*Make no-op for installation on Ultrix rootpartition?*/
    340 253	UNIMPL		audgen /*Make no-op for installation on Ultrix rootpartition?*/
    341 254	UNIMPL		startcpu
    342 255	UNIMPL		stopcpu
    343 256	STD		{ int ultrix_getsysinfo(unsigned op, char *buffer, \
    344 				unsigned nbytes, int *start, char *arg); }
    345 257	STD		{ int ultrix_setsysinfo(unsigned op, char *buffer, \
    346 				unsigned nbytes, unsigned arg, unsigned flag); }
    347 
    348