1 @(#)syscalls.master 7.3 (Berkeley) 05/04/89 2; System call name/number master file. 3; Processed to created init_sysent.c, syscalls.c and syscall.h. 4 5; Columns: number type nargs name altname/comments 6; number system call number, must be in order 7; type one of STD, OBSOL, UNIMPL, COMPAT 8; nargs number of arguments 9; name name of syscall routine 10; altname name of system call if different 11; for UNIMPL/OBSOL, name continues with comments 12 13; types: 14; STD always included 15; COMPAT included on COMPAT #ifdef 16; OBSOL obsolete, not included in system, only specifies name 17; UNIMPL not implemented, placeholder only 18 19; #ifdef's, etc. may be included, and are copied to the output files. 20 21; Reserved/unimplemented system calls in the range 0-150 inclusive 22; are reserved for use in future Berkeley releases. 23; Additional system calls implemented in vendor and other 24; redistributions should be placed in the reserved range at the end 25; of the current calls. 26 270 UNIMPL 0 indir or out-of-range 281 STD 1 rexit exit 292 STD 0 fork 303 STD 3 read 314 STD 3 write 325 STD 3 open 336 STD 1 close 347 STD 4 wait4 358 STD 2 creat 369 STD 2 link 3710 STD 1 unlink 3811 STD 2 execv 3912 STD 1 chdir 4013 OBSOL 0 time 4114 STD 3 mknod 4215 STD 2 chmod 4316 STD 3 chown 4417 STD 1 obreak 4518 OBSOL 0 stat 4619 STD 3 lseek 4720 STD 0 getpid 4821 STD 4 mount 4922 STD 2 unmount 5023 OBSOL 0 setuid 5124 STD 0 getuid 5225 OBSOL 0 stime 5326 STD 4 ptrace 5427 STD 3 recvmsg 5528 STD 3 sendmsg 5629 STD 6 recvfrom 5730 STD 3 accept 5831 STD 3 getpeername 5932 STD 3 getsockname 6033 STD 2 saccess access 6134 OBSOL 0 nice 6235 OBSOL 0 ftime 6336 STD 0 sync 6437 STD 2 kill 6538 STD 2 stat 6639 OBSOL 0 setpgrp 6740 STD 2 lstat 6841 STD 2 dup 6942 STD 0 pipe 7043 OBSOL 0 times 7144 STD 4 profil 72#ifdef KTRACE 7345 STD 4 ktrace 74#else 7545 UNIMPL 0 nosys 76#endif 7746 OBSOL 0 setgid 7847 STD 0 getgid 7948 OBSOL 0 sigsys 8049 STD 2 getlogname 8150 STD 2 setlogname 8251 STD 1 sysacct acct 8352 OBSOL 0 set phys addr 8453 OBSOL 0 lock in core 8554 STD 3 ioctl 8655 STD 1 reboot 8756 OBSOL 0 mpxchan 8857 STD 2 symlink 8958 STD 3 readlink 9059 STD 3 execve 9160 STD 1 umask 9261 STD 1 chroot 9362 STD 2 fstat 9463 UNIMPL 0 nosys 9564 STD 0 getpagesize 9665 STD 2 msync 9766 STD 0 vfork 9867 OBSOL 0 vread 9968 OBSOL 0 vwrite 10069 STD 1 sbrk 10170 STD 1 sstk 10271 STD 6 smmap mmap 10372 STD 1 ovadvise 10473 STD 2 munmap 10574 STD 3 mprotect 10675 STD 3 madvise 10776 STD 1 vhangup 10877 OBSOL 0 vlimit 10978 STD 3 mincore 11079 STD 2 getgroups 11180 STD 2 setgroups 11281 STD 1 getpgrp 11382 STD 2 setpgrp 11483 STD 3 setitimer 11584 COMPAT 0 wait 11685 STD 1 swapon 11786 STD 2 getitimer 11887 STD 2 gethostname 11988 STD 2 sethostname 12089 STD 0 getdtablesize 12190 STD 2 dup2 12291 UNIMPL 2 getdopt 12392 STD 3 fcntl 12493 STD 5 select 12594 UNIMPL 2 setdopt 12695 STD 1 fsync 12796 STD 3 setpriority 12897 STD 3 socket 12998 STD 3 connect 13099 COMPAT 3 accept 131100 STD 2 getpriority 132101 COMPAT 4 send 133102 COMPAT 4 recv 134103 STD 1 sigreturn 135104 STD 3 bind 136105 STD 5 setsockopt 137106 STD 2 listen 138107 OBSOL 0 vtimes 139108 STD 3 sigvec 140109 STD 1 sigblock 141110 STD 1 sigsetmask 142111 STD 1 sigpause 143112 STD 2 sigstack 144113 COMPAT 3 recvmsg 145114 COMPAT 3 sendmsg 146#ifdef TRACE 147115 STD 2 vtrace 148#else 149115 OBSOL 2 vtrace 150#endif 151116 STD 2 gettimeofday 152117 STD 2 getrusage 153118 STD 5 getsockopt 154#ifdef vax 155119 STD 1 resuba 156#else 157119 UNIMPL 0 nosys 158#endif 159120 STD 3 readv 160121 STD 3 writev 161122 STD 2 settimeofday 162123 STD 3 fchown 163124 STD 2 fchmod 164125 COMPAT 6 recvfrom 165126 STD 2 setreuid 166127 STD 2 setregid 167128 STD 2 rename 168129 STD 2 truncate 169130 STD 2 ftruncate 170131 STD 2 flock 171132 UNIMPL 0 nosys 172133 STD 6 sendto 173134 STD 2 shutdown 174135 STD 5 socketpair 175136 STD 2 mkdir 176137 STD 1 rmdir 177138 STD 2 utimes 178139 OBSOL 0 4.2 sigreturn 179140 STD 2 adjtime 180141 COMPAT 3 getpeername 181142 STD 0 gethostid 182143 STD 1 sethostid 183144 STD 2 getrlimit 184145 STD 2 setrlimit 185146 STD 2 killpg 186147 STD 0 setsid 187148 STD 2 setquota 188149 STD 4 qquota quota 189150 COMPAT 3 getsockname 190151 STD 2 getlogname 191152 STD 2 setlogname 192153 UNIMPL 0 nosys 193154 UNIMPL 0 nosys 194155 UNIMPL 0 nosys 195156 STD 4 getdirentries 196157 STD 2 statfs 197158 STD 2 fstatfs 198 199; Syscalls 151-180 inclusive are reserved for vendor-specific 200; system calls. (This includes various calls added for compatibity 201; with other Unix variants.) 202