syscalls.master revision 1.20
11.19Scgd $Id: syscalls.master,v 1.20 1994/06/08 11:28:45 mycroft Exp $ 21.20Smycroft; from: @(#)syscalls.master 8.2 (Berkeley) 1/13/94 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.19Scgd; type one of STD, OBSOL, UNIMPL, NODEF, COMPAT, NCOMPAT, LIBCOMPAT 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.19Scgd; NCOMPAT included on NetBSD COMPAT #ifdef 211.1Sglass; UNIMPL not implemented, placeholder only 221.1Sglass 231.1Sglass; #ifdef's, etc. may be included, and are copied to the output files. 241.1Sglass 251.1Sglass; Reserved/unimplemented system calls in the range 0-150 inclusive 261.1Sglass; are reserved for use in future Berkeley releases. 271.1Sglass; Additional system calls implemented in vendor and other 281.1Sglass; redistributions should be placed in the reserved range at the end 291.1Sglass; of the current calls. 301.1Sglass 311.10Sderaadt0 STD 0 nosys syscall 321.16Scgd1 STD 1 exit 331.1Sglass2 STD 0 fork 341.1Sglass3 STD 3 read 351.1Sglass4 STD 3 write 361.1Sglass5 STD 3 open 371.1Sglass6 STD 1 close 381.1Sglass7 STD 4 wait4 391.1Sglass8 COMPAT 2 creat 401.1Sglass9 STD 2 link 411.1Sglass10 STD 1 unlink 421.1Sglass11 OBSOL 2 execv 431.1Sglass12 STD 1 chdir 441.1Sglass13 STD 1 fchdir 451.1Sglass14 STD 3 mknod 461.1Sglass15 STD 2 chmod 471.1Sglass16 STD 3 chown 481.1Sglass17 STD 1 obreak break 491.1Sglass18 STD 3 getfsstat 501.12Scgd19 COMPAT 3 lseek 511.1Sglass20 STD 0 getpid 521.1Sglass21 STD 4 mount 531.1Sglass22 STD 2 unmount 541.1Sglass23 STD 1 setuid 551.1Sglass24 STD 0 getuid 561.1Sglass25 STD 0 geteuid 571.1Sglass26 STD 4 ptrace 581.1Sglass27 STD 3 recvmsg 591.1Sglass28 STD 3 sendmsg 601.1Sglass29 STD 6 recvfrom 611.1Sglass30 STD 3 accept 621.1Sglass31 STD 3 getpeername 631.1Sglass32 STD 3 getsockname 641.16Scgd33 STD 2 access 651.1Sglass34 STD 2 chflags 661.1Sglass35 STD 2 fchflags 671.1Sglass36 STD 0 sync 681.1Sglass37 STD 2 kill 691.12Scgd38 COMPAT 2 stat 701.1Sglass39 STD 0 getppid 711.12Scgd40 COMPAT 2 lstat 721.1Sglass41 STD 2 dup 731.1Sglass42 STD 0 pipe 741.1Sglass43 STD 0 getegid 751.1Sglass44 STD 4 profil 761.1Sglass#ifdef KTRACE 771.1Sglass45 STD 4 ktrace 781.1Sglass#else 791.1Sglass45 UNIMPL 0 ktrace 801.1Sglass#endif 811.1Sglass46 STD 3 sigaction 821.1Sglass47 STD 0 getgid 831.1Sglass48 STD 2 sigprocmask 841.1Sglass49 STD 2 getlogin 851.1Sglass50 STD 1 setlogin 861.16Scgd51 STD 1 acct 871.1Sglass52 STD 0 sigpending 881.18Scgd53 STD 2 sigaltstack 891.1Sglass54 STD 3 ioctl 901.1Sglass55 STD 1 reboot 911.1Sglass56 STD 1 revoke 921.1Sglass57 STD 2 symlink 931.1Sglass58 STD 3 readlink 941.1Sglass59 STD 3 execve 951.1Sglass60 STD 1 umask 961.1Sglass61 STD 1 chroot 971.12Scgd62 COMPAT 2 fstat 981.18Scgd63 COMPAT 4 getkerninfo 991.18Scgd64 COMPAT 0 getpagesize 1001.1Sglass65 STD 2 msync 1011.1Sglass66 STD 0 vfork 1021.1Sglass67 OBSOL 0 vread 1031.1Sglass68 OBSOL 0 vwrite 1041.1Sglass69 STD 1 sbrk 1051.1Sglass70 STD 1 sstk 1061.12Scgd71 COMPAT 7 mmap 1071.1Sglass72 STD 1 ovadvise vadvise 1081.1Sglass73 STD 2 munmap 1091.1Sglass74 STD 3 mprotect 1101.1Sglass75 STD 3 madvise 1111.1Sglass76 OBSOL 0 vhangup 1121.1Sglass77 OBSOL 0 vlimit 1131.1Sglass78 STD 3 mincore 1141.1Sglass79 STD 2 getgroups 1151.1Sglass80 STD 2 setgroups 1161.4Scgd81 STD 0 getpgrp 1171.1Sglass82 STD 2 setpgid 1181.1Sglass83 STD 3 setitimer 1191.1Sglass84 COMPAT 0 wait 1201.1Sglass85 STD 1 swapon 1211.1Sglass86 STD 2 getitimer 1221.18Scgd87 COMPAT 2 gethostname 1231.18Scgd88 COMPAT 2 sethostname 1241.1Sglass89 STD 0 getdtablesize 1251.1Sglass90 STD 2 dup2 1261.1Sglass91 UNIMPL 2 getdopt 1271.1Sglass92 STD 3 fcntl 1281.1Sglass93 STD 5 select 1291.1Sglass94 UNIMPL 2 setdopt 1301.1Sglass95 STD 1 fsync 1311.1Sglass96 STD 3 setpriority 1321.1Sglass97 STD 3 socket 1331.1Sglass98 STD 3 connect 1341.1Sglass99 COMPAT 3 accept 1351.1Sglass100 STD 2 getpriority 1361.1Sglass101 COMPAT 4 send 1371.1Sglass102 COMPAT 4 recv 1381.1Sglass103 STD 1 sigreturn 1391.1Sglass104 STD 3 bind 1401.1Sglass105 STD 5 setsockopt 1411.1Sglass106 STD 2 listen 1421.1Sglass107 OBSOL 0 vtimes 1431.1Sglass108 COMPAT 3 sigvec 1441.1Sglass109 COMPAT 1 sigblock 1451.1Sglass110 COMPAT 1 sigsetmask 1461.1Sglass111 STD 1 sigsuspend 1471.18Scgd112 COMPAT 2 sigstack 1481.1Sglass113 COMPAT 3 recvmsg 1491.1Sglass114 COMPAT 3 sendmsg 1501.1Sglass#ifdef TRACE 1511.1Sglass115 STD 2 vtrace 1521.1Sglass#else 1531.1Sglass115 OBSOL 2 vtrace 1541.1Sglass#endif 1551.1Sglass116 STD 2 gettimeofday 1561.1Sglass117 STD 2 getrusage 1571.1Sglass118 STD 5 getsockopt 1581.17Scgd#ifdef vax 1591.17Scgd119 STD 1 resuba 1601.17Scgd#else 1611.1Sglass119 UNIMPL 0 nosys 1621.17Scgd#endif 1631.1Sglass120 STD 3 readv 1641.1Sglass121 STD 3 writev 1651.1Sglass122 STD 2 settimeofday 1661.1Sglass123 STD 3 fchown 1671.1Sglass124 STD 2 fchmod 1681.1Sglass125 COMPAT 6 recvfrom 1691.14Scgd126 COMPAT 2 setreuid 1701.14Scgd127 COMPAT 2 setregid 1711.1Sglass128 STD 2 rename 1721.12Scgd129 COMPAT 2 truncate 1731.12Scgd130 COMPAT 2 ftruncate 1741.1Sglass131 STD 2 flock 1751.1Sglass132 STD 2 mkfifo 1761.1Sglass133 STD 6 sendto 1771.1Sglass134 STD 2 shutdown 1781.1Sglass135 STD 5 socketpair 1791.1Sglass136 STD 2 mkdir 1801.1Sglass137 STD 1 rmdir 1811.1Sglass138 STD 2 utimes 1821.1Sglass139 OBSOL 0 4.2 sigreturn 1831.1Sglass140 STD 2 adjtime 1841.1Sglass141 COMPAT 3 getpeername 1851.18Scgd142 COMPAT 0 gethostid 1861.18Scgd143 COMPAT 1 sethostid 1871.17Scgd144 COMPAT 2 getrlimit 1881.17Scgd145 COMPAT 2 setrlimit 1891.1Sglass146 COMPAT 2 killpg 1901.1Sglass147 STD 0 setsid 1911.1Sglass148 STD 4 quotactl 1921.1Sglass149 COMPAT 4 quota 1931.1Sglass150 COMPAT 3 getsockname 1941.1Sglass 1951.1Sglass; Syscalls 151-180 inclusive are reserved for vendor-specific 1961.1Sglass; system calls. (This includes various calls added for compatibity 1971.1Sglass; with other Unix variants.) 1981.1Sglass; Some of these calls are now supported by BSD... 1991.1Sglass151 UNIMPL 0 nosys 2001.1Sglass152 UNIMPL 0 nosys 2011.1Sglass153 UNIMPL 0 nosys 2021.1Sglass154 UNIMPL 0 nosys 2031.20Smycroft#if defined(NFSCLIENT) || defined(NFSSERVER) 2041.20Smycroft155 STD 2 nfssvc 2051.1Sglass#else 2061.1Sglass155 UNIMPL 0 nosys 2071.1Sglass#endif 2081.20Smycroft156 COMPAT 4 getdirentries 2091.1Sglass157 STD 2 statfs 2101.1Sglass158 STD 2 fstatfs 2111.1Sglass159 UNIMPL 0 nosys 2121.20Smycroft160 UNIMPL 0 nosys 2131.2Sglass#ifdef NFSCLIENT 2141.1Sglass161 STD 2 getfh 2151.1Sglass#else 2161.1Sglass161 UNIMPL 0 nosys 2171.1Sglass#endif 2181.19Scgd162 NCOMPAT 2 getdomainname 2191.19Scgd163 NCOMPAT 2 setdomainname 2201.19Scgd164 NCOMPAT 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.17Scgd#ifdef LFS 2551.17Scgd184 STD 3 lfs_bmapv 2561.17Scgd185 STD 3 lfs_markv 2571.17Scgd186 STD 2 lfs_segclean 2581.17Scgd187 STD 2 lfs_segwait 2591.17Scgd#else 2601.1Sglass184 UNIMPL 0 nosys 2611.1Sglass185 UNIMPL 0 nosys 2621.1Sglass186 UNIMPL 0 nosys 2631.1Sglass187 UNIMPL 0 nosys 2641.17Scgd#endif 2651.12Scgd188 STD 2 stat 2661.12Scgd189 STD 2 fstat 2671.12Scgd190 STD 2 lstat 2681.18Scgd191 STD 2 pathconf 2691.18Scgd192 STD 2 fpathconf 2701.6Scgd193 UNIMPL 0 nosys 2711.17Scgd194 STD 2 getrlimit 2721.17Scgd195 STD 2 setrlimit 2731.20Smycroft196 STD 4 getdirentries 2741.16Scgd197 STD 8 mmap 2751.13Scgd198 STD 0 nosys __syscall 2761.15Scgd199 STD 5 lseek 2771.15Scgd200 STD 4 truncate 2781.15Scgd201 STD 4 ftruncate 2791.18Scgd202 STD 6 __sysctl 2801.18Scgd203 STD 2 mlock 2811.18Scgd204 STD 2 munlock 2821.17Scgd205 UNIMPL 0 nosys 2831.6Scgd206 UNIMPL 0 nosys 2841.6Scgd207 UNIMPL 0 nosys 2851.6Scgd208 UNIMPL 0 nosys 2861.6Scgd209 UNIMPL 0 nosys 2871.11Scgd; 2881.11Scgd; Syscalls 210-219 are reserved for dynamically loaded syscalls 2891.11Scgd; 2901.11Scgd#ifdef LKM 2911.11Scgd210 NODEF 0 lkmnosys 2921.11Scgd211 NODEF 0 lkmnosys 2931.11Scgd212 NODEF 0 lkmnosys 2941.11Scgd213 NODEF 0 lkmnosys 2951.11Scgd214 NODEF 0 lkmnosys 2961.11Scgd215 NODEF 0 lkmnosys 2971.11Scgd216 NODEF 0 lkmnosys 2981.11Scgd217 NODEF 0 lkmnosys 2991.11Scgd218 NODEF 0 lkmnosys 3001.11Scgd219 NODEF 0 lkmnosys 3011.11Scgd#else /* !LKM */ 3021.11Scgd210 UNIMPL 0 nosys 3031.11Scgd211 UNIMPL 0 nosys 3041.11Scgd212 UNIMPL 0 nosys 3051.11Scgd213 UNIMPL 0 nosys 3061.11Scgd214 UNIMPL 0 nosys 3071.11Scgd215 UNIMPL 0 nosys 3081.11Scgd216 UNIMPL 0 nosys 3091.11Scgd217 UNIMPL 0 nosys 3101.11Scgd218 UNIMPL 0 nosys 3111.11Scgd219 UNIMPL 0 nosys 3121.6Scgd#endif /* !LKM */ 313