syscalls.master revision 1.16
11.16Scgd $Id: syscalls.master,v 1.16 1994/04/29 04:29:14 cgd Exp $ 21.5Scgd; from: @(#)syscalls.master 7.26 (Berkeley) 3/25/91 31.1Sglass; System call name/number master file. 41.1Sglass; Processed to created init_sysent.c, syscalls.c and syscall.h. 51.1Sglass 61.1Sglass; Columns: number type nargs name altname/comments 71.1Sglass; number system call number, must be in order 81.6Scgd; type one of STD, OBSOL, UNIMPL, NODEF, COMPAT 91.1Sglass; nargs number of arguments 101.1Sglass; name name of syscall routine 111.1Sglass; altname name of system call if different 121.1Sglass; for UNIMPL/OBSOL, name continues with comments 131.1Sglass 141.1Sglass; types: 151.1Sglass; STD always included 161.1Sglass; COMPAT included on COMPAT #ifdef 171.1Sglass; LIBCOMPAT included on COMPAT #ifdef, and placed in syscall.h 181.1Sglass; OBSOL obsolete, not included in system, only specifies name 191.6Scgd; NODEF do everything except include in syscall.h 201.1Sglass; UNIMPL not implemented, placeholder only 211.1Sglass 221.1Sglass; #ifdef's, etc. may be included, and are copied to the output files. 231.1Sglass 241.1Sglass; Reserved/unimplemented system calls in the range 0-150 inclusive 251.1Sglass; are reserved for use in future Berkeley releases. 261.1Sglass; Additional system calls implemented in vendor and other 271.1Sglass; redistributions should be placed in the reserved range at the end 281.1Sglass; of the current calls. 291.1Sglass 301.10Sderaadt0 STD 0 nosys syscall 311.16Scgd1 STD 1 exit 321.1Sglass2 STD 0 fork 331.1Sglass3 STD 3 read 341.1Sglass4 STD 3 write 351.1Sglass5 STD 3 open 361.1Sglass6 STD 1 close 371.1Sglass7 STD 4 wait4 381.1Sglass8 COMPAT 2 creat 391.1Sglass9 STD 2 link 401.1Sglass10 STD 1 unlink 411.1Sglass11 OBSOL 2 execv 421.1Sglass12 STD 1 chdir 431.1Sglass13 STD 1 fchdir 441.1Sglass14 STD 3 mknod 451.1Sglass15 STD 2 chmod 461.1Sglass16 STD 3 chown 471.1Sglass17 STD 1 obreak break 481.1Sglass18 STD 3 getfsstat 491.12Scgd19 COMPAT 3 lseek 501.1Sglass20 STD 0 getpid 511.1Sglass21 STD 4 mount 521.1Sglass22 STD 2 unmount 531.1Sglass23 STD 1 setuid 541.1Sglass24 STD 0 getuid 551.1Sglass25 STD 0 geteuid 561.1Sglass26 STD 4 ptrace 571.1Sglass27 STD 3 recvmsg 581.1Sglass28 STD 3 sendmsg 591.1Sglass29 STD 6 recvfrom 601.1Sglass30 STD 3 accept 611.1Sglass31 STD 3 getpeername 621.1Sglass32 STD 3 getsockname 631.16Scgd33 STD 2 access 641.1Sglass34 STD 2 chflags 651.1Sglass35 STD 2 fchflags 661.1Sglass36 STD 0 sync 671.1Sglass37 STD 2 kill 681.12Scgd38 COMPAT 2 stat 691.1Sglass39 STD 0 getppid 701.12Scgd40 COMPAT 2 lstat 711.1Sglass41 STD 2 dup 721.1Sglass42 STD 0 pipe 731.1Sglass43 STD 0 getegid 741.1Sglass44 STD 4 profil 751.1Sglass#ifdef KTRACE 761.1Sglass45 STD 4 ktrace 771.1Sglass#else 781.1Sglass45 UNIMPL 0 ktrace 791.1Sglass#endif 801.1Sglass46 STD 3 sigaction 811.1Sglass47 STD 0 getgid 821.1Sglass48 STD 2 sigprocmask 831.1Sglass49 STD 2 getlogin 841.1Sglass50 STD 1 setlogin 851.16Scgd51 STD 1 acct 861.1Sglass52 STD 0 sigpending 871.1Sglass#ifdef notyet 881.1Sglass53 STD 3 sigaltstack 891.1Sglass#else 901.1Sglass53 UNIMPL 3 sigaltstack 911.1Sglass#endif 921.1Sglass54 STD 3 ioctl 931.1Sglass55 STD 1 reboot 941.1Sglass56 STD 1 revoke 951.1Sglass57 STD 2 symlink 961.1Sglass58 STD 3 readlink 971.1Sglass59 STD 3 execve 981.1Sglass60 STD 1 umask 991.1Sglass61 STD 1 chroot 1001.12Scgd62 COMPAT 2 fstat 1011.1Sglass63 STD 4 getkerninfo 1021.1Sglass64 STD 0 getpagesize 1031.1Sglass65 STD 2 msync 1041.1Sglass66 STD 0 vfork 1051.1Sglass67 OBSOL 0 vread 1061.1Sglass68 OBSOL 0 vwrite 1071.1Sglass69 STD 1 sbrk 1081.1Sglass70 STD 1 sstk 1091.12Scgd71 COMPAT 7 mmap 1101.1Sglass72 STD 1 ovadvise vadvise 1111.1Sglass73 STD 2 munmap 1121.1Sglass74 STD 3 mprotect 1131.1Sglass75 STD 3 madvise 1141.1Sglass76 OBSOL 0 vhangup 1151.1Sglass77 OBSOL 0 vlimit 1161.1Sglass78 STD 3 mincore 1171.1Sglass79 STD 2 getgroups 1181.1Sglass80 STD 2 setgroups 1191.4Scgd81 STD 0 getpgrp 1201.1Sglass82 STD 2 setpgid 1211.1Sglass83 STD 3 setitimer 1221.1Sglass84 COMPAT 0 wait 1231.1Sglass85 STD 1 swapon 1241.1Sglass86 STD 2 getitimer 1251.1Sglass87 STD 2 gethostname 1261.1Sglass88 STD 2 sethostname 1271.1Sglass89 STD 0 getdtablesize 1281.1Sglass90 STD 2 dup2 1291.1Sglass91 UNIMPL 2 getdopt 1301.1Sglass92 STD 3 fcntl 1311.1Sglass93 STD 5 select 1321.1Sglass94 UNIMPL 2 setdopt 1331.1Sglass95 STD 1 fsync 1341.1Sglass96 STD 3 setpriority 1351.1Sglass97 STD 3 socket 1361.1Sglass98 STD 3 connect 1371.1Sglass99 COMPAT 3 accept 1381.1Sglass100 STD 2 getpriority 1391.1Sglass101 COMPAT 4 send 1401.1Sglass102 COMPAT 4 recv 1411.1Sglass103 STD 1 sigreturn 1421.1Sglass104 STD 3 bind 1431.1Sglass105 STD 5 setsockopt 1441.1Sglass106 STD 2 listen 1451.1Sglass107 OBSOL 0 vtimes 1461.1Sglass108 COMPAT 3 sigvec 1471.1Sglass109 COMPAT 1 sigblock 1481.1Sglass110 COMPAT 1 sigsetmask 1491.1Sglass111 STD 1 sigsuspend 1501.1Sglass112 STD 2 sigstack 1511.1Sglass113 COMPAT 3 recvmsg 1521.1Sglass114 COMPAT 3 sendmsg 1531.1Sglass#ifdef TRACE 1541.1Sglass115 STD 2 vtrace 1551.1Sglass#else 1561.1Sglass115 OBSOL 2 vtrace 1571.1Sglass#endif 1581.1Sglass116 STD 2 gettimeofday 1591.1Sglass117 STD 2 getrusage 1601.1Sglass118 STD 5 getsockopt 1611.1Sglass119 UNIMPL 0 nosys 1621.1Sglass120 STD 3 readv 1631.1Sglass121 STD 3 writev 1641.1Sglass122 STD 2 settimeofday 1651.1Sglass123 STD 3 fchown 1661.1Sglass124 STD 2 fchmod 1671.1Sglass125 COMPAT 6 recvfrom 1681.14Scgd126 COMPAT 2 setreuid 1691.14Scgd127 COMPAT 2 setregid 1701.1Sglass128 STD 2 rename 1711.12Scgd129 COMPAT 2 truncate 1721.12Scgd130 COMPAT 2 ftruncate 1731.1Sglass131 STD 2 flock 1741.1Sglass132 STD 2 mkfifo 1751.1Sglass133 STD 6 sendto 1761.1Sglass134 STD 2 shutdown 1771.1Sglass135 STD 5 socketpair 1781.1Sglass136 STD 2 mkdir 1791.1Sglass137 STD 1 rmdir 1801.1Sglass138 STD 2 utimes 1811.1Sglass139 OBSOL 0 4.2 sigreturn 1821.1Sglass140 STD 2 adjtime 1831.1Sglass141 COMPAT 3 getpeername 1841.1Sglass142 STD 0 gethostid 1851.1Sglass143 STD 1 sethostid 1861.1Sglass144 STD 2 getrlimit 1871.1Sglass145 STD 2 setrlimit 1881.1Sglass146 COMPAT 2 killpg 1891.1Sglass147 STD 0 setsid 1901.1Sglass148 STD 4 quotactl 1911.1Sglass149 COMPAT 4 quota 1921.1Sglass150 COMPAT 3 getsockname 1931.1Sglass 1941.1Sglass; Syscalls 151-180 inclusive are reserved for vendor-specific 1951.1Sglass; system calls. (This includes various calls added for compatibity 1961.1Sglass; with other Unix variants.) 1971.1Sglass; Some of these calls are now supported by BSD... 1981.1Sglass151 UNIMPL 0 nosys 1991.1Sglass152 UNIMPL 0 nosys 2001.1Sglass153 UNIMPL 0 nosys 2011.1Sglass154 UNIMPL 0 nosys 2021.2Sglass#ifdef NFSSERVER 2031.1Sglass155 STD 5 nfssvc 2041.1Sglass#else 2051.1Sglass155 UNIMPL 0 nosys 2061.1Sglass#endif 2071.1Sglass156 STD 4 getdirentries 2081.1Sglass157 STD 2 statfs 2091.1Sglass158 STD 2 fstatfs 2101.1Sglass159 UNIMPL 0 nosys 2111.2Sglass#ifdef NFSCLIENT 2121.1Sglass160 STD 0 async_daemon 2131.1Sglass161 STD 2 getfh 2141.1Sglass#else 2151.1Sglass160 UNIMPL 0 nosys 2161.1Sglass161 UNIMPL 0 nosys 2171.1Sglass#endif 2181.1Sglass162 STD 2 getdomainname 2191.1Sglass163 STD 2 setdomainname 2201.3Scgd164 STD 1 uname 2211.7Sbrezak165 STD 2 sysarch 2221.1Sglass166 UNIMPL 0 nosys 2231.1Sglass167 UNIMPL 0 nosys 2241.1Sglass168 UNIMPL 0 nosys 2251.9Scgd#ifdef SYSVSEM 2261.9Scgd169 STD 5 semsys 2271.9Scgd#else 2281.1Sglass169 UNIMPL 0 nosys 2291.9Scgd#endif 2301.9Scgd#ifdef SYSVMSG 2311.9Scgd170 STD 6 msgsys 2321.9Scgd#else 2331.1Sglass170 UNIMPL 0 nosys 2341.9Scgd#endif 2351.1Sglass#ifdef SYSVSHM 2361.1Sglass171 STD 4 shmsys 2371.1Sglass#else 2381.1Sglass171 UNIMPL 0 nosys 2391.1Sglass#endif 2401.1Sglass172 UNIMPL 0 nosys 2411.1Sglass173 UNIMPL 0 nosys 2421.1Sglass174 UNIMPL 0 nosys 2431.1Sglass175 UNIMPL 0 nosys 2441.1Sglass176 UNIMPL 0 nosys 2451.1Sglass177 UNIMPL 0 nosys 2461.1Sglass178 UNIMPL 0 nosys 2471.1Sglass179 UNIMPL 0 nosys 2481.1Sglass180 UNIMPL 0 nosys 2491.1Sglass 2501.1Sglass; Syscalls 180-199 are used by/reserved for BSD 2511.1Sglass181 STD 1 setgid 2521.1Sglass182 STD 1 setegid 2531.1Sglass183 STD 1 seteuid 2541.1Sglass184 UNIMPL 0 nosys 2551.1Sglass185 UNIMPL 0 nosys 2561.1Sglass186 UNIMPL 0 nosys 2571.1Sglass187 UNIMPL 0 nosys 2581.12Scgd188 STD 2 stat 2591.12Scgd189 STD 2 fstat 2601.12Scgd190 STD 2 lstat 2611.6Scgd191 UNIMPL 0 nosys 2621.6Scgd192 UNIMPL 0 nosys 2631.6Scgd193 UNIMPL 0 nosys 2641.6Scgd194 UNIMPL 0 nosys 2651.6Scgd195 UNIMPL 0 nosys 2661.6Scgd196 UNIMPL 0 nosys 2671.16Scgd197 STD 8 mmap 2681.13Scgd198 STD 0 nosys __syscall 2691.15Scgd199 STD 5 lseek 2701.15Scgd200 STD 4 truncate 2711.15Scgd201 STD 4 ftruncate 2721.13Scgd; XXX THE FOLLOWING FOUR ENTRIES ARE TEMPORARY 2731.15Scgd202 COMPAT 8 nmmap 2741.15Scgd203 COMPAT 5 nlseek 2751.15Scgd204 COMPAT 4 ntruncate 2761.15Scgd205 COMPAT 4 nftruncate 2771.6Scgd206 UNIMPL 0 nosys 2781.6Scgd207 UNIMPL 0 nosys 2791.6Scgd208 UNIMPL 0 nosys 2801.6Scgd209 UNIMPL 0 nosys 2811.11Scgd; 2821.11Scgd; Syscalls 210-219 are reserved for dynamically loaded syscalls 2831.11Scgd; 2841.11Scgd#ifdef LKM 2851.11Scgd210 NODEF 0 lkmnosys 2861.11Scgd211 NODEF 0 lkmnosys 2871.11Scgd212 NODEF 0 lkmnosys 2881.11Scgd213 NODEF 0 lkmnosys 2891.11Scgd214 NODEF 0 lkmnosys 2901.11Scgd215 NODEF 0 lkmnosys 2911.11Scgd216 NODEF 0 lkmnosys 2921.11Scgd217 NODEF 0 lkmnosys 2931.11Scgd218 NODEF 0 lkmnosys 2941.11Scgd219 NODEF 0 lkmnosys 2951.11Scgd#else /* !LKM */ 2961.11Scgd210 UNIMPL 0 nosys 2971.11Scgd211 UNIMPL 0 nosys 2981.11Scgd212 UNIMPL 0 nosys 2991.11Scgd213 UNIMPL 0 nosys 3001.11Scgd214 UNIMPL 0 nosys 3011.11Scgd215 UNIMPL 0 nosys 3021.11Scgd216 UNIMPL 0 nosys 3031.11Scgd217 UNIMPL 0 nosys 3041.11Scgd218 UNIMPL 0 nosys 3051.11Scgd219 UNIMPL 0 nosys 3061.6Scgd#endif /* !LKM */ 307