Home | History | Annotate | Line # | Download | only in ultrix
syscalls.master revision 1.7
      1 	$NetBSD: syscalls.master,v 1.7 1994/12/01 16:41:43 dean 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	0 old_wait
     51 8	STD		{ int sun_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 pidd 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	0 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	0 nosys
     97 53	UNIMPL	0 syslock
     98 54	UNIMPL		{ int sunos_ioctl(int fd, u_long com, caddr_t data); }
     99 
    100 55	NOARGS		{ int reboot(int opt); }
    101 56	UNIMPL		7thedition  mpxchan
    102 57	NOARGS		{ int symlink(char *path, char *link); }
    103 58	NOARGS		{ int readlink(char *path, char *buf, int count); }
    104 59	NOARGS		{ int execve(char *path, char **argp, char **envp); }
    105 60	NOARGS		{ int umask(int newmask); }
    106 61	NOARGS		{ int chroot(char *path); }
    107 62	NOARGS		{ int compat_43_fstat(int fd, struct ostat *sb); }
    108 63	UNIMPL		nosys
    109 64	NOARGS		{ int compat_43_getpagesize(void); }
    110 65	UNIMPL		mremap
    111 66	NOARGS		{ int vfork(void); }
    112 67	OBSOL		vread
    113 68	OBSOL		vwrite
    114 69	NOARGS		{ int sbrk(int incr); }
    115 70	NOARGS		{ int sstk(int incr); }
    116 71	STD		{ int sun_mmap(caddr_t addr, int len, int prot, \
    117 			    u_int flags, int fd, long pos); }
    118 72	NOARGS		{ int ovadvise(int anom); } vadvise
    119 73	NOARGS		{ int munmap(caddr_t addr, int len); }
    120 74	NOARGS		{ int mprotect(caddr_t addr, int len, int prot); }
    121 75	NOARGS		{ int madvise(caddr_t addr, int len, int behav); }
    122 76	STD		{ int sun_vhangup(void); }
    123 77	UNIMPL		old vlimit
    124 78	NOARGS		{ int mincore(caddr_t addr, int len, char *vec); }
    125 79	NOARGS		{ int getgroups(u_int gidsetsize, gid_t *gidset); }
    126 80	NOARGS		{ int setgroups(u_int gidsetsize, gid_t *gidset); }
    127 81	NOARGS		{ int getpgrp(void); }
    128 82	STD		{ int sun_setpgid(int pid, int pgid); }
    129 83	NOARGS		{ int setitimer(u_int which, struct itimerval *itv, \
    130 			    struct itimerval *oitv); }
    131 84	STD		{ int sun_wait3(int *status, int options, \
    132 			    struct rusage *rusage);}
    133 85	NOARGS		{ int swapon(char *name); }
    134 86	NOARGS		{ int getitimer(u_int which, struct itimerval *itv); }
    135 87	NOARGS		{ int compat_43_gethostname(char *hostname, u_int len); }
    136 88	NOARGS		{ int compat_43_sethostname(char *hostname, u_int len); }
    137 89	NOARGS		{ int compat_43_getdtablesize(void); }
    138 90	NOARGS		{ int dup2(u_int from, u_int to); }
    139 91	UNIMPL		getdopt
    140 92	NOARGS		{ int fcntl(int fd, int cmd, void *arg); }
    141 93	NOARGS		{ int select(u_int nd, fd_set *in, fd_set *ou, \
    142 			    fd_set *ex, struct timeval *tv); }
    143 94	UNIMPL		setdopt
    144 95	NOARGS		{ int fsync(int fd); }
    145 96	NOARGS		{ int setpriority(int which, int who, int prio); }
    146 97	NOARGS		{ int socket(int domain, int type, int protocol); }
    147 98	NOARGS		{ int connect(int s, caddr_t name, int namelen); }
    148 99	NOARGS		{ int compat_43_accept(int s, caddr_t name, int *anamelen); }
    149 100	NOARGS		{ int getpriority(int which, int who); }
    150 101	NOARGS		{ int compat_43_send(int s, caddr_t buf, int len, int flags); }
    151 102	NOARGS		{ int compat_43_recv(int s, caddr_t buf, int len, int flags); }
    152 103	NOARGS		{ int sigreturn(struct sigcontext *sigcntxp); }
    153 104	NOARGS		{ int bind(int s, caddr_t name, int namelen); }
    154 105	STD		{ int sun_setsockopt(int s, int level, int name, \
    155 			    caddr_t val, int valsize); }
    156 106	NOARGS		{ int listen(int s, int backlog); }
    157 107	UNIMPL		vtimes
    158 108	NOARGS		{ int compat_43_sigvec(int signum, struct sigvec *nsv, \
    159 			    struct sigvec *osv); }
    160 109	NOARGS		{ int compat_43_sigblock(int mask); }
    161 110	NOARGS		{ int compat_43_sigsetmask(int mask); }
    162 111	NOARGS		{ int sigsuspend(int mask); }
    163 112	NOARGS		{ int compat_43_sigstack(struct sigstack *nss, \
    164 			    struct sigstack *oss); }
    165 113	NOARGS		{ int compat_43_recvmsg(int s, struct omsghdr *msg, int flags); }
    166 114	NOARGS		{ int compat_43_sendmsg(int s, caddr_t msg, int flags); }
    167 115	OBSOL		vtrace
    168 116	NOARGS		{ int gettimeofday(struct timeval *tp, \
    169 			    struct timezone *tzp); }
    170 117	NOARGS		{ int getrusage(int who, struct rusage *rusage); }
    171 118	NOARGS		{ int getsockopt(int s, int level, int name, \
    172 			    caddr_t val, int *avalsize); }
    173 119	UNIMPL		resuba
    174 120	NOARGS		{ int readv(int fd, struct iovec *iovp, u_int iovcnt); }
    175 121	NOARGS		{ int writev(int fd, struct iovec *iovp, \
    176 			    u_int iovcnt); }
    177 122	NOARGS		{ int settimeofday(struct timeval *tv, \
    178 			    struct timezone *tzp); }
    179 123	NOARGS		{ int fchown(int fd, int uid, int gid); }
    180 124	NOARGS		{ int fchmod(int fd, int mode); }
    181 125	NOARGS		{ int compat_43_recvfrom(int s, caddr_t buf, size_t len, \
    182 			    int flags, caddr_t from, int *fromlenaddr); }
    183 126	NOARGS		{ int compat_43_setreuid(int ruid, int euid); }
    184 127	NOARGS		{ int compat_43_setregid(int rgid, int egid); }
    185 128	NOARGS		{ int rename(char *from, char *to); }
    186 129	NOARGS		{ int compat_43_truncate(char *path, long length); }
    187 130	NOARGS		{ int compat_43_ftruncate(int fd, long length); }
    188 131	NOARGS		{ int flock(int fd, int how); }
    189 132	UNIMPL		nosys
    190 133	NOARGS		{ int sendto(int s, caddr_t buf, size_t len, \
    191 			    int flags, caddr_t to, int tolen); }
    192 134	NOARGS		{ int shutdown(int s, int how); }
    193 135	NOARGS		{ int socketpair(int domain, int type, int protocol, \
    194 			    int *rsv); }
    195 136	NOARGS		{ int mkdir(char *path, int mode); }
    196 137	NOARGS		{ int rmdir(char *path); }
    197 138	NOARGS		{ int utimes(char *path, struct timeval *tptr); }
    198 139	NOARGS		{ int sigreturn(struct sigcontext *sigcntxp); }
    199 140	NOARGS		{ int adjtime(struct timeval *delta, \
    200 			    struct timeval *olddelta); }
    201 141	NOARGS		{ int compat_43_getpeername(int fdes, caddr_t asa, int *alen); }
    202 142	NOARGS		{ int compat_43_gethostid(void); }
    203 143	UNIMPL		old sethostid
    204 144	NOARGS		{ int compat_43_getrlimit(u_int which, struct orlimit *rlp); }
    205 145	NOARGS		{ int compat_43_setrlimit(u_int which, struct orlimit *rlp); }
    206 146	NOARGS		{ int compat_43_killpg(int pgid, int signum); }
    207 147	UNIMPL		nosys
    208 148	UNIMPL		setquota
    209 149	UNIMPL	 	quota /* needs to be nullop to boot on Ultrix root partition*/
    210 150	NOARGS		{ int compat_43_getsockname(int fdes, caddr_t asa, int *alen); }
    211 151	UNIMPL		sysmips /* 4 args */
    212 152	UNIMPL		cacheflush /* 4 args */
    213 153	UNIMPL		cachectl /* 3 args */
    214 154	UNIMPL		nosys
    215 155	UNIMPL		atomic_op
    216 156	UNIMPL		nosys
    217 157	UNIMPL		nosys
    218 #ifdef NFSSERVER
    219 158	STD		{ int sun_nfssvc(int fd); }
    220 #else
    221 158	UNIMPL
    222 #endif
    223 159	NOARGS		{ int getdirentries(int fd, char *buf, u_int count, \
    224 			    long *basep); }
    225 160	STD		{ int sun_statfs(char *path, struct sunos_statfs *buf); }
    226 161	STD		{ int sun_fstatfs(int fd, struct sunos_statfs *buf); }
    227 162	STD		{ int sun_unmount(char *path, int flags); }
    228 #ifdef NFSCLIENT
    229 163	NOARGS		{ int async_daemon(void); }
    230 164	NOARGS		{ int getfh(char *fname, fhandle_t *fhp); }
    231 #else
    232 163	UNIMPL		async_daemon
    233 164	UNIMPL		getfh
    234 #endif
    235 165	NOARGS		{ int compat_09_getdomainname(char *domainname, int len); }
    236 166	NOARGS		{ int compat_09_setdomainname(char *domainname, int len); }
    237 167	UNIMPL  0 nosys
    238 168	STD		{ int sun_quotactl(int cmd, char *special, int uid, \
    239 			    caddr_t addr); }
    240 169	STD		{ int sun_exportfs(char *path, char *ex); }
    241 170	UNIMPL		 ultrix_mount/*implemented by jonathan (a] DSG.Stanford.EDU*/
    242 171	UNIMPL	4 hdwconf
    243 #ifdef SYSVMSG
    244 172	UNIMPL	0 msgctl
    245 173	UNIMPL	0 msgget
    246 174	UNIMPL	0 msgrcv
    247 175	UNIMPL	0 msgsnd
    248 #else
    249 172	UNIMPL	0 msgctl
    250 173	UNIMPL	0 msgget
    251 174	UNIMPL	0 msgrcv
    252 175	UNIMPL	0 msgsnd
    253 #endif
    254 #ifdef SYSVSEM
    255 176	UNIMPL	0 semctl
    256 177	UNIMPL	0 semget
    257 178	UNIMPL	0 semop
    258 #else
    259 176	UNIMPL	0 semctl
    260 177	UNIMPL	0 semget
    261 178	UNIMPL	0 semop
    262 #endif
    263 179	STD		{ int sun_uname(struct sunos_utsname *name); }
    264 #ifdef SYSVSHM
    265 180	NOARGS		{ int shmsys(int which, int a2, int a3, int a4); }
    266 #else
    267 180	UNIMPL		shmsys
    268 #endif
    269 181	UNIMPL	0 plock
    270 182	UNIMPL	0 lockf
    271 183	STD		{ int sun_ustat(int dev, struct sunos_ustat *buf); }
    272 184	UNIMPL	ult_getmnt /*implemented by jonathan (a] DSG.Stanford.EDU*/
    273 185	UNIMPL	 notdef
    274 186	UNIMPL	 notdef
    275 187	STD		{ int sun_sigpending(int *mask); }
    276 188	NOARGS		{ int setsid(void); }
    277 189	STD		{ int ultrix_waitpid(); }
    278 190	UNIMPL		nosys
    279 191	UNIMPL		nosys
    280 192	UNIMPL		nosys
    281 193	UNIMPL		nosys
    282 194	UNIMPL		nosys
    283 195	UNIMPL		nosys
    284 196	UNIMPL		nosys
    285 197	UNIMPL		nosys
    286 198	UNIMPL		nosys
    287 199	UNIMPL		nosys
    288 200	UNIMPL		nosys
    289 201	UNIMPL		nosys
    290 202	UNIMPL		nosys
    291 203	UNIMPL		nosys
    292 204	UNIMPL		nosys
    293 205	UNIMPL		nosys
    294 206	UNIMPL		nosys
    295 207	UNIMPL		nosys
    296 208	UNIMPL		nosys
    297 209	UNIMPL		nosys
    298 210	UNIMPL		nosys
    299 211	UNIMPL		nosys
    300 212	UNIMPL		nosys
    301 213	UNIMPL		nosys
    302 214	UNIMPL		nosys
    303 215	UNIMPL		nosys
    304 216	UNIMPL		nosys
    305 217	UNIMPL		nosys
    306 218	UNIMPL		nosys
    307 219	UNIMPL		nosys
    308 220	UNIMPL		nosys
    309 221	UNIMPL		nosys
    310 222	UNIMPL		nosys
    311 223	UNIMPL		nosys
    312 224	UNIMPL		nosys
    313 225	UNIMPL		nosys
    314 226	UNIMPL		nosys
    315 227	UNIMPL		nosys
    316 228	UNIMPL		nosys
    317 229	UNIMPL		nosys
    318 230	UNIMPL		nosys
    319 231	UNIMPL		nosys
    320 232	UNIMPL		nosys
    321 233	UNIMPL	1 utc_gettime
    322 234	UNIMPL	2 utc_adjtime
    323 235	UNIMPL		nosys
    324 236	UNIMPL		nosys
    325 237	UNIMPL		nosys
    326 238	UNIMPL		nosys
    327 239	UNIMPL		nosys
    328 240	UNIMPL		nosys
    329 241	UNIMPL		nosys
    330 242	UNIMPL		nosys
    331 243	UNIMPL		nosys
    332 244	UNIMPL		nosys
    333 245	UNIMPL		nosys
    334 246	UNIMPL		nosys
    335 247	UNIMPL		nosys
    336 248	UNIMPL		nosys
    337 249	UNIMPL		nosys
    338 250	UNIMPL		nosys
    339 251	UNIMPL		nosys
    340 252     UNIMPL  	audctl /*Make no-op for installation on Ultrix rootpartition?*/
    341 253	UNIMPL		audgen /*Make no-op for installation on Ultrix rootpartition?*/
    342 254	UNIMPL		startcpu
    343 255	UNIMPL		stopcpu
    344 256	STD		{ int ultrix_getsysinfo(unsigned op, char *buffer, \
    345 				unsigned nbytes, int *start, char *arg); }
    346 257	STD		{ int ultrix_setsysinfo(unsigned op, char *buffer, \
    347 				unsigned nbytes, unsigned arg, unsigned flag); }
    348 
    349