1 $NetBSD: syscalls.master,v 1.8 1994/12/02 18:13:00 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 430 NOARGS { int nosys(void); } syscall 441 NOARGS { int exit(int rval); } 452 NOARGS { int fork(void); } 463 NOARGS { int read(int fd, char *buf, u_int nbyte); } 474 NOARGS { int write(int fd, char *buf, u_int nbyte); } 485 STD { int sun_open(char *path, int flags, int mode); } 496 NOARGS { int close(int fd); } 507 UNIMPL 0 old_wait 518 STD { int sun_creat(char *path, int mode); } 529 NOARGS { int link(char *path, char *link); } 5310 NOARGS { int unlink(char *path); } 5411 STD { int sun_execv(char *path, char **argp); } 5512 NOARGS { int chdir(char *path); } 5613 OBSOL sun_time 5714 STD { int sun_mknod(char *path, int mode, int dev); } 5815 NOARGS { int chmod(char *path, int mode); } 5916 NOARGS { int chown(char *path, int uid, int gid); } 6017 NOARGS { int obreak(char *nsize); } break 6118 OBSOL sun_stat 6219 NOARGS { long compat_43_lseek(int fd, long offset, int whence); } 6320 NOARGS { pid_t getpid(void); } 6421 OBSOL ultrix_mount 6522 OBSOL sun_or_sysV_unmount 6623 NOARGS { int setuid(uid_t uid); } 6724 NOARGS { uid_t getuid(void); } 6825 OBSOL v7 stime 6926 OBSOL v7 ptrace 7027 OBSOL v7 alarm 7128 OBSOL v7 fstat 7229 OBSOL v7 pause 7330 OBSOL v7 utime 7431 OBSOL v7 stty 7532 OBSOL v7 gtty 7633 NOARGS { int access(char *path, int flags); } 7734 OBSOL v7 nice 7835 OBSOL v7 ftime 7936 NOARGS { int sync(void); } 8037 NOARGS { int kill(int pidd, int signum); } 8138 NOARGS { int compat_43_stat(char *path, struct ostat *ub); } 8239 OBSOL v7 setpgrp 8340 NOARGS { int compat_43_lstat(char *path, struct ostat *ub); } 8441 NOARGS { int dup(u_int fd); } 8542 NOARGS { int pipe(void); } 8643 OBSOL v7 times 8744 NOARGS { int profil(caddr_t samples, u_int size, \ 88 u_int offset, u_int scale); } 8945 UNIMPL 0 nosys 9046 OBSOL v7 setgid 9147 NOARGS { gid_t getgid(void); } 9248 UNIMPL sun_ssig 9349 UNIMPL reserved for USG 9450 UNIMPL reserved for USG 9551 NOARGS { int acct(char *path); } 9652 UNIMPL 0 nosys 9753 UNIMPL 0 syslock 9854 UNIMPL { int sunos_ioctl(int fd, u_long com, caddr_t data); } 99 10055 NOARGS { int reboot(int opt); } 10156 UNIMPL 7thedition mpxchan 10257 NOARGS { int symlink(char *path, char *link); } 10358 NOARGS { int readlink(char *path, char *buf, int count); } 10459 NOARGS { int execve(char *path, char **argp, char **envp); } 10560 NOARGS { int umask(int newmask); } 10661 NOARGS { int chroot(char *path); } 10762 NOARGS { int compat_43_fstat(int fd, struct ostat *sb); } 10863 UNIMPL nosys 10964 NOARGS { int compat_43_getpagesize(void); } 11065 UNIMPL mremap 11166 NOARGS { int vfork(void); } 11267 OBSOL vread 11368 OBSOL vwrite 11469 NOARGS { int sbrk(int incr); } 11570 NOARGS { int sstk(int incr); } 11671 STD { int sun_mmap(caddr_t addr, int len, int prot, \ 117 u_int flags, int fd, long pos); } 11872 NOARGS { int ovadvise(int anom); } vadvise 11973 NOARGS { int munmap(caddr_t addr, int len); } 12074 NOARGS { int mprotect(caddr_t addr, int len, int prot); } 12175 NOARGS { int madvise(caddr_t addr, int len, int behav); } 12276 STD { int sun_vhangup(void); } 12377 UNIMPL old vlimit 12478 NOARGS { int mincore(caddr_t addr, int len, char *vec); } 12579 NOARGS { int getgroups(u_int gidsetsize, gid_t *gidset); } 12680 NOARGS { int setgroups(u_int gidsetsize, gid_t *gidset); } 12781 NOARGS { int getpgrp(void); } 12882 STD { int sun_setpgid(int pid, int pgid); } 12983 NOARGS { int setitimer(u_int which, struct itimerval *itv, \ 130 struct itimerval *oitv); } 13184 STD { int sun_wait3(int *status, int options, \ 132 struct rusage *rusage);} 13385 NOARGS { int swapon(char *name); } 13486 NOARGS { int getitimer(u_int which, struct itimerval *itv); } 13587 NOARGS { int compat_43_gethostname(char *hostname, u_int len); } 13688 NOARGS { int compat_43_sethostname(char *hostname, u_int len); } 13789 NOARGS { int compat_43_getdtablesize(void); } 13890 NOARGS { int dup2(u_int from, u_int to); } 13991 UNIMPL getdopt 14092 NOARGS { int fcntl(int fd, int cmd, void *arg); } 14193 NOARGS { int select(u_int nd, fd_set *in, fd_set *ou, \ 142 fd_set *ex, struct timeval *tv); } 14394 UNIMPL setdopt 14495 NOARGS { int fsync(int fd); } 14596 NOARGS { int setpriority(int which, int who, int prio); } 14697 NOARGS { int socket(int domain, int type, int protocol); } 14798 NOARGS { int connect(int s, caddr_t name, int namelen); } 14899 NOARGS { int compat_43_accept(int s, caddr_t name, int *anamelen); } 149100 NOARGS { int getpriority(int which, int who); } 150101 NOARGS { int compat_43_send(int s, caddr_t buf, int len, int flags); } 151102 NOARGS { int compat_43_recv(int s, caddr_t buf, int len, int flags); } 152103 NOARGS { int sigreturn(struct sigcontext *sigcntxp); } 153104 NOARGS { int bind(int s, caddr_t name, int namelen); } 154105 STD { int sun_setsockopt(int s, int level, int name, \ 155 caddr_t val, int valsize); } 156106 NOARGS { int listen(int s, int backlog); } 157107 UNIMPL vtimes 158108 NOARGS { int compat_43_sigvec(int signum, struct sigvec *nsv, \ 159 struct sigvec *osv); } 160109 NOARGS { int compat_43_sigblock(int mask); } 161110 NOARGS { int compat_43_sigsetmask(int mask); } 162111 NOARGS { int sigsuspend(int mask); } 163112 NOARGS { int compat_43_sigstack(struct sigstack *nss, \ 164 struct sigstack *oss); } 165113 NOARGS { int compat_43_recvmsg(int s, struct omsghdr *msg, int flags); } 166114 NOARGS { int compat_43_sendmsg(int s, caddr_t msg, int flags); } 167115 OBSOL vtrace 168116 NOARGS { int gettimeofday(struct timeval *tp, \ 169 struct timezone *tzp); } 170117 NOARGS { int getrusage(int who, struct rusage *rusage); } 171118 NOARGS { int getsockopt(int s, int level, int name, \ 172 caddr_t val, int *avalsize); } 173119 UNIMPL resuba 174120 NOARGS { int readv(int fd, struct iovec *iovp, u_int iovcnt); } 175121 NOARGS { int writev(int fd, struct iovec *iovp, \ 176 u_int iovcnt); } 177122 NOARGS { int settimeofday(struct timeval *tv, \ 178 struct timezone *tzp); } 179123 NOARGS { int fchown(int fd, int uid, int gid); } 180124 NOARGS { int fchmod(int fd, int mode); } 181125 NOARGS { int compat_43_recvfrom(int s, caddr_t buf, size_t len, \ 182 int flags, caddr_t from, int *fromlenaddr); } 183126 NOARGS { int compat_43_setreuid(int ruid, int euid); } 184127 NOARGS { int compat_43_setregid(int rgid, int egid); } 185128 NOARGS { int rename(char *from, char *to); } 186129 NOARGS { int compat_43_truncate(char *path, long length); } 187130 NOARGS { int compat_43_ftruncate(int fd, long length); } 188131 NOARGS { int flock(int fd, int how); } 189132 UNIMPL nosys 190133 NOARGS { int sendto(int s, caddr_t buf, size_t len, \ 191 int flags, caddr_t to, int tolen); } 192134 NOARGS { int shutdown(int s, int how); } 193135 NOARGS { int socketpair(int domain, int type, int protocol, \ 194 int *rsv); } 195136 NOARGS { int mkdir(char *path, int mode); } 196137 NOARGS { int rmdir(char *path); } 197138 NOARGS { int utimes(char *path, struct timeval *tptr); } 198139 NOARGS { int sigreturn(struct sigcontext *sigcntxp); } 199140 NOARGS { int adjtime(struct timeval *delta, \ 200 struct timeval *olddelta); } 201141 NOARGS { int compat_43_getpeername(int fdes, caddr_t asa, int *alen); } 202142 NOARGS { int compat_43_gethostid(void); } 203143 UNIMPL old sethostid 204144 NOARGS { int compat_43_getrlimit(u_int which, struct orlimit *rlp); } 205145 NOARGS { int compat_43_setrlimit(u_int which, struct orlimit *rlp); } 206146 NOARGS { int compat_43_killpg(int pgid, int signum); } 207147 UNIMPL nosys 208148 UNIMPL setquota 209149 UNIMPL quota /* needs to be nullop to boot on Ultrix root partition*/ 210150 NOARGS { int compat_43_getsockname(int fdes, caddr_t asa, int *alen); } 211151 UNIMPL sysmips /* 4 args */ 212152 UNIMPL cacheflush /* 4 args */ 213153 UNIMPL cachectl /* 3 args */ 214154 UNIMPL nosys 215155 UNIMPL atomic_op 216156 UNIMPL nosys 217157 UNIMPL nosys 218#ifdef NFSSERVER 219158 STD { int sun_nfssvc(int fd); } 220#else 221158 UNIMPL 222#endif 223159 NOARGS { int getdirentries(int fd, char *buf, u_int count, \ 224 long *basep); } 225160 STD { int sun_statfs(char *path, struct sunos_statfs *buf); } 226161 STD { int sun_fstatfs(int fd, struct sunos_statfs *buf); } 227162 STD { int sun_unmount(char *path, int flags); } 228#ifdef NFSCLIENT 229163 NOARGS { int async_daemon(void); } 230164 NOARGS { int getfh(char *fname, fhandle_t *fhp); } 231#else 232163 UNIMPL async_daemon 233164 UNIMPL getfh 234#endif 235165 NOARGS { int compat_09_getdomainname(char *domainname, int len); } 236166 NOARGS { int compat_09_setdomainname(char *domainname, int len); } 237167 UNIMPL 0 nosys 238168 STD { int sun_quotactl(int cmd, char *special, int uid, \ 239 caddr_t addr); } 240169 STD { int sun_exportfs(char *path, char *ex); } 241170 UNIMPL ultrix_mount/*implemented by jonathan@DSG.Stanford.EDU*/ 242171 UNIMPL 4 hdwconf 243#ifdef SYSVMSG 244172 UNIMPL 0 msgctl 245173 UNIMPL 0 msgget 246174 UNIMPL 0 msgrcv 247175 UNIMPL 0 msgsnd 248#else 249172 UNIMPL 0 msgctl 250173 UNIMPL 0 msgget 251174 UNIMPL 0 msgrcv 252175 UNIMPL 0 msgsnd 253#endif 254#ifdef SYSVSEM 255176 UNIMPL 0 semctl 256177 UNIMPL 0 semget 257178 UNIMPL 0 semop 258#else 259176 UNIMPL 0 semctl 260177 UNIMPL 0 semget 261178 UNIMPL 0 semop 262#endif 263179 STD { int sun_uname(struct sunos_utsname *name); } 264#ifdef SYSVSHM 265180 NOARGS { int shmsys(int which, int a2, int a3, int a4); } 266#else 267180 UNIMPL shmsys 268#endif 269181 UNIMPL 0 plock 270182 UNIMPL 0 lockf 271183 STD { int sun_ustat(int dev, struct sunos_ustat *buf); } 272184 UNIMPL ult_getmnt /*implemented by jonathan@DSG.Stanford.EDU*/ 273185 UNIMPL notdef 274186 UNIMPL notdef 275187 STD { int sun_sigpending(int *mask); } 276188 NOARGS { int setsid(void); } 277189 STD { int ultrix_waitpid(); } 278190 UNIMPL nosys 279191 UNIMPL nosys 280192 UNIMPL nosys 281193 UNIMPL nosys 282194 UNIMPL nosys 283195 UNIMPL nosys 284196 UNIMPL nosys 285197 UNIMPL nosys 286198 UNIMPL nosys 287199 UNIMPL nosys 288200 UNIMPL nosys 289201 UNIMPL nosys 290202 UNIMPL nosys 291203 UNIMPL nosys 292204 UNIMPL nosys 293205 UNIMPL nosys 294206 UNIMPL nosys 295207 UNIMPL nosys 296208 UNIMPL nosys 297209 UNIMPL nosys 298210 UNIMPL nosys 299211 UNIMPL nosys 300212 UNIMPL nosys 301213 UNIMPL nosys 302214 UNIMPL nosys 303215 UNIMPL nosys 304216 UNIMPL nosys 305217 UNIMPL nosys 306218 UNIMPL nosys 307219 UNIMPL nosys 308220 UNIMPL nosys 309221 UNIMPL nosys 310222 UNIMPL nosys 311223 UNIMPL nosys 312224 UNIMPL nosys 313225 UNIMPL nosys 314226 UNIMPL nosys 315227 UNIMPL nosys 316228 UNIMPL nosys 317229 UNIMPL nosys 318230 UNIMPL nosys 319231 UNIMPL nosys 320232 UNIMPL nosys 321233 UNIMPL 1 utc_gettime 322234 UNIMPL 2 utc_adjtime 323235 UNIMPL nosys 324236 UNIMPL nosys 325237 UNIMPL nosys 326238 UNIMPL nosys 327239 UNIMPL nosys 328240 UNIMPL nosys 329241 UNIMPL nosys 330242 UNIMPL nosys 331243 UNIMPL nosys 332244 UNIMPL nosys 333245 UNIMPL nosys 334246 UNIMPL nosys 335247 UNIMPL nosys 336248 UNIMPL nosys 337249 UNIMPL nosys 338250 UNIMPL nosys 339251 UNIMPL nosys 340252 UNIMPL audctl /*Make no-op for installation on Ultrix rootpartition?*/ 341253 UNIMPL audgen /*Make no-op for installation on Ultrix rootpartition?*/ 342254 UNIMPL startcpu 343255 UNIMPL stopcpu 344256 STD { int ultrix_getsysinfo(unsigned op, char *buffer, \ 345 unsigned nbytes, int *start, char *arg); } 346257 STD { int ultrix_setsysinfo(unsigned op, char *buffer, \ 347 unsigned nbytes, unsigned arg, unsigned flag); } 348 349