1 $Id: syscalls.master,v 1.3 1994/08/02 07:42:44 davidg Exp $ 2; from: @(#)syscalls.master 8.2 (Berkeley) 1/13/94 3; 4; System call name/number master file. 5; Processed to created init_sysent.c, syscalls.c and syscall.h. 6 7; Columns: number type nargs name altname/comments 8; number system call number, must be in order 9; type one of STD, OBSOL, UNIMPL, COMPAT 10; nargs number of arguments 11; name name of syscall routine 12; altname name of system call if different 13; for UNIMPL/OBSOL, name continues with comments 14 15; types: 16; STD always included 17; COMPAT included on COMPAT #ifdef 18; LIBCOMPAT included on COMPAT #ifdef, and placed in syscall.h 19; OBSOL obsolete, not included in system, only specifies name 20; UNIMPL not implemented, placeholder only 21 22; #ifdef's, etc. may be included, and are copied to the output files. 23 24; Reserved/unimplemented system calls in the range 0-150 inclusive 25; are reserved for use in future Berkeley releases. 26; Additional system calls implemented in vendor and other 27; redistributions should be placed in the reserved range at the end 28; of the current calls. 29 300 STD 0 nosys syscall 311 STD 1 exit 322 STD 0 fork 333 STD 3 read 344 STD 3 write 355 STD 3 open 366 STD 1 close 377 STD 4 wait4 388 COMPAT 2 creat 399 STD 2 link 4010 STD 1 unlink 4111 OBSOL 2 execv 4212 STD 1 chdir 4313 STD 1 fchdir 4414 STD 3 mknod 4515 STD 2 chmod 4616 STD 3 chown 4717 STD 1 obreak break 4818 STD 3 getfsstat 4919 COMPAT 3 lseek 5020 STD 0 getpid 5121 STD 4 mount 5222 STD 2 unmount 5323 STD 1 setuid 5424 STD 0 getuid 5525 STD 0 geteuid 5626 STD 4 ptrace 5727 STD 3 recvmsg 5828 STD 3 sendmsg 5929 STD 6 recvfrom 6030 STD 3 accept 6131 STD 3 getpeername 6232 STD 3 getsockname 6333 STD 2 access 6434 STD 2 chflags 6535 STD 2 fchflags 6636 STD 0 sync 6737 STD 2 kill 6838 COMPAT 2 stat 6939 STD 0 getppid 7040 COMPAT 2 lstat 7141 STD 2 dup 7242 STD 0 pipe 7343 STD 0 getegid 7444 STD 4 profil 75#ifdef KTRACE 7645 STD 4 ktrace 77#else 7845 UNIMPL 0 ktrace 79#endif 8046 STD 3 sigaction 8147 STD 0 getgid 8248 STD 2 sigprocmask 8349 STD 2 getlogin 8450 STD 1 setlogin 8551 STD 1 acct 8652 STD 0 sigpending 8753 STD 2 sigaltstack 8854 STD 3 ioctl 8955 STD 1 reboot 9056 STD 1 revoke 9157 STD 2 symlink 9258 STD 3 readlink 9359 STD 3 execve 9460 STD 1 umask 9561 STD 1 chroot 9662 COMPAT 2 fstat 9763 COMPAT 4 getkerninfo 9864 COMPAT 0 getpagesize 9965 STD 2 msync 10066 STD 0 vfork 10167 OBSOL 0 vread 10268 OBSOL 0 vwrite 10369 STD 1 sbrk 10470 STD 1 sstk 10571 COMPAT 6 mmap 10672 STD 1 ovadvise vadvise 10773 STD 2 munmap 10874 STD 3 mprotect 10975 STD 3 madvise 11076 OBSOL 0 vhangup 11177 OBSOL 0 vlimit 11278 STD 3 mincore 11379 STD 2 getgroups 11480 STD 2 setgroups 11581 STD 0 getpgrp 11682 STD 2 setpgid 11783 STD 3 setitimer 11884 COMPAT 0 wait 11985 STD 1 swapon 12086 STD 2 getitimer 12187 COMPAT 2 gethostname 12288 COMPAT 2 sethostname 12389 STD 0 getdtablesize 12490 STD 2 dup2 12591 UNIMPL 2 getdopt 12692 STD 3 fcntl 12793 STD 5 select 12894 UNIMPL 2 setdopt 12995 STD 1 fsync 13096 STD 3 setpriority 13197 STD 3 socket 13298 STD 3 connect 13399 COMPAT 3 accept 134100 STD 2 getpriority 135101 COMPAT 4 send 136102 COMPAT 4 recv 137103 STD 1 sigreturn 138104 STD 3 bind 139105 STD 5 setsockopt 140106 STD 2 listen 141107 OBSOL 0 vtimes 142108 COMPAT 3 sigvec 143109 COMPAT 1 sigblock 144110 COMPAT 1 sigsetmask 145111 STD 1 sigsuspend 146112 COMPAT 2 sigstack 147113 COMPAT 3 recvmsg 148114 COMPAT 3 sendmsg 149#ifdef TRACE 150115 STD 2 vtrace 151#else 152115 OBSOL 2 vtrace 153#endif 154116 STD 2 gettimeofday 155117 STD 2 getrusage 156118 STD 5 getsockopt 157#ifdef vax 158119 STD 1 resuba 159#else 160119 UNIMPL 0 nosys 161#endif 162120 STD 3 readv 163121 STD 3 writev 164122 STD 2 settimeofday 165123 STD 3 fchown 166124 STD 2 fchmod 167125 COMPAT 6 recvfrom 168126 COMPAT 2 setreuid 169127 COMPAT 2 setregid 170128 STD 2 rename 171129 COMPAT 2 truncate 172130 COMPAT 2 ftruncate 173131 STD 2 flock 174132 STD 2 mkfifo 175133 STD 6 sendto 176134 STD 2 shutdown 177135 STD 5 socketpair 178136 STD 2 mkdir 179137 STD 1 rmdir 180138 STD 2 utimes 181139 OBSOL 0 4.2 sigreturn 182140 STD 2 adjtime 183141 COMPAT 3 getpeername 184142 COMPAT 0 gethostid 185143 COMPAT 1 sethostid 186144 COMPAT 2 getrlimit 187145 COMPAT 2 setrlimit 188146 COMPAT 2 killpg 189147 STD 0 setsid 190148 STD 4 quotactl 191149 COMPAT 4 quota 192150 COMPAT 3 getsockname 193 194; Syscalls 151-180 inclusive are reserved for vendor-specific 195; system calls. (This includes various calls added for compatibity 196; with other Unix variants.) 197; Some of these calls are now supported by BSD... 198151 UNIMPL 0 nosys 199152 UNIMPL 0 nosys 200153 UNIMPL 0 nosys 201154 UNIMPL 0 nosys 202#ifdef NFS 203155 STD 2 nfssvc 204#else 205155 UNIMPL 0 nosys 206#endif 207156 COMPAT 4 getdirentries 208157 STD 2 statfs 209158 STD 2 fstatfs 210159 UNIMPL 0 nosys 211160 UNIMPL 0 nosys 212#ifdef NFS 213161 STD 2 getfh 214#else 215161 UNIMPL 0 nosys 216#endif 217162 STD 2 getdomainname 218163 STD 2 setdomainname 219164 STD 1 uname 220165 STD 2 sysarch 221166 UNIMPL 0 nosys 222167 UNIMPL 0 nosys 223168 UNIMPL 0 nosys 224169 UNIMPL 0 nosys 225170 UNIMPL 0 nosys 226#ifdef SYSVSHM 227171 STD 4 shmsys 228#else 229171 UNIMPL 0 nosys 230#endif 231172 UNIMPL 0 nosys 232173 UNIMPL 0 nosys 233174 UNIMPL 0 nosys 234175 UNIMPL 0 nosys 235176 UNIMPL 0 nosys 236177 UNIMPL 0 nosys 237178 UNIMPL 0 nosys 238179 UNIMPL 0 nosys 239180 UNIMPL 0 nosys 240 241; Syscalls 180-199 are used by/reserved for BSD 242181 STD 1 setgid 243182 STD 1 setegid 244183 STD 1 seteuid 245#ifdef LFS 246184 STD 3 lfs_bmapv 247185 STD 3 lfs_markv 248186 STD 2 lfs_segclean 249187 STD 2 lfs_segwait 250#else 251184 UNIMPL 0 nosys 252185 UNIMPL 0 nosys 253186 UNIMPL 0 nosys 254187 UNIMPL 0 nosys 255#endif 256188 STD 2 stat 257189 STD 2 fstat 258190 STD 2 lstat 259191 STD 2 pathconf 260192 STD 2 fpathconf 261193 UNIMPL 0 nosys 262194 STD 2 getrlimit 263195 STD 2 setrlimit 264196 STD 4 getdirentries 265197 STD 8 mmap 266198 STD 0 nosys __syscall 267199 STD 5 lseek 268200 STD 4 truncate 269201 STD 4 ftruncate 270202 STD 6 __sysctl 271203 STD 2 mlock 272204 STD 2 munlock 273205 UNIMPL 0 nosys 274206 UNIMPL 0 nosys 275207 UNIMPL 0 nosys 276208 UNIMPL 0 nosys 277209 UNIMPL 0 nosys 278 279; 280; The following are reserved for loadable syscalls 281; 282#ifdef LKM 283210 NODEF 0 lkmnosys 284211 NODEF 0 lkmnosys 285212 NODEF 0 lkmnosys 286213 NODEF 0 lkmnosys 287214 NODEF 0 lkmnosys 288215 NODEF 0 lkmnosys 289216 NODEF 0 lkmnosys 290217 NODEF 0 lkmnosys 291218 NODEF 0 lkmnosys 292219 NODEF 0 lkmnosys 293#else 294210 UNIMPL 0 nosys 295211 UNIMPL 0 nosys 296212 UNIMPL 0 nosys 297213 UNIMPL 0 nosys 298214 UNIMPL 0 nosys 299215 UNIMPL 0 nosys 300216 UNIMPL 0 nosys 301217 UNIMPL 0 nosys 302218 UNIMPL 0 nosys 303219 UNIMPL 0 nosys 304#endif 305