syscalls.master revision 1.17
11.17Scgd $Id: syscalls.master,v 1.17 1994/05/01 05:02:24 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.17Scgd#ifdef vax 1621.17Scgd119 STD 1 resuba 1631.17Scgd#else 1641.1Sglass119 UNIMPL 0 nosys 1651.17Scgd#endif 1661.1Sglass120 STD 3 readv 1671.1Sglass121 STD 3 writev 1681.1Sglass122 STD 2 settimeofday 1691.1Sglass123 STD 3 fchown 1701.1Sglass124 STD 2 fchmod 1711.1Sglass125 COMPAT 6 recvfrom 1721.14Scgd126 COMPAT 2 setreuid 1731.14Scgd127 COMPAT 2 setregid 1741.1Sglass128 STD 2 rename 1751.12Scgd129 COMPAT 2 truncate 1761.12Scgd130 COMPAT 2 ftruncate 1771.1Sglass131 STD 2 flock 1781.1Sglass132 STD 2 mkfifo 1791.1Sglass133 STD 6 sendto 1801.1Sglass134 STD 2 shutdown 1811.1Sglass135 STD 5 socketpair 1821.1Sglass136 STD 2 mkdir 1831.1Sglass137 STD 1 rmdir 1841.1Sglass138 STD 2 utimes 1851.1Sglass139 OBSOL 0 4.2 sigreturn 1861.1Sglass140 STD 2 adjtime 1871.1Sglass141 COMPAT 3 getpeername 1881.1Sglass142 STD 0 gethostid 1891.1Sglass143 STD 1 sethostid 1901.17Scgd144 COMPAT 2 getrlimit 1911.17Scgd145 COMPAT 2 setrlimit 1921.1Sglass146 COMPAT 2 killpg 1931.1Sglass147 STD 0 setsid 1941.1Sglass148 STD 4 quotactl 1951.1Sglass149 COMPAT 4 quota 1961.1Sglass150 COMPAT 3 getsockname 1971.1Sglass 1981.1Sglass; Syscalls 151-180 inclusive are reserved for vendor-specific 1991.1Sglass; system calls. (This includes various calls added for compatibity 2001.1Sglass; with other Unix variants.) 2011.1Sglass; Some of these calls are now supported by BSD... 2021.1Sglass151 UNIMPL 0 nosys 2031.1Sglass152 UNIMPL 0 nosys 2041.1Sglass153 UNIMPL 0 nosys 2051.1Sglass154 UNIMPL 0 nosys 2061.2Sglass#ifdef NFSSERVER 2071.1Sglass155 STD 5 nfssvc 2081.1Sglass#else 2091.1Sglass155 UNIMPL 0 nosys 2101.1Sglass#endif 2111.1Sglass156 STD 4 getdirentries 2121.1Sglass157 STD 2 statfs 2131.1Sglass158 STD 2 fstatfs 2141.1Sglass159 UNIMPL 0 nosys 2151.2Sglass#ifdef NFSCLIENT 2161.1Sglass160 STD 0 async_daemon 2171.1Sglass161 STD 2 getfh 2181.1Sglass#else 2191.1Sglass160 UNIMPL 0 nosys 2201.1Sglass161 UNIMPL 0 nosys 2211.1Sglass#endif 2221.1Sglass162 STD 2 getdomainname 2231.1Sglass163 STD 2 setdomainname 2241.3Scgd164 STD 1 uname 2251.7Sbrezak165 STD 2 sysarch 2261.1Sglass166 UNIMPL 0 nosys 2271.1Sglass167 UNIMPL 0 nosys 2281.1Sglass168 UNIMPL 0 nosys 2291.9Scgd#ifdef SYSVSEM 2301.9Scgd169 STD 5 semsys 2311.9Scgd#else 2321.1Sglass169 UNIMPL 0 nosys 2331.9Scgd#endif 2341.9Scgd#ifdef SYSVMSG 2351.9Scgd170 STD 6 msgsys 2361.9Scgd#else 2371.1Sglass170 UNIMPL 0 nosys 2381.9Scgd#endif 2391.1Sglass#ifdef SYSVSHM 2401.1Sglass171 STD 4 shmsys 2411.1Sglass#else 2421.1Sglass171 UNIMPL 0 nosys 2431.1Sglass#endif 2441.1Sglass172 UNIMPL 0 nosys 2451.1Sglass173 UNIMPL 0 nosys 2461.1Sglass174 UNIMPL 0 nosys 2471.1Sglass175 UNIMPL 0 nosys 2481.1Sglass176 UNIMPL 0 nosys 2491.1Sglass177 UNIMPL 0 nosys 2501.1Sglass178 UNIMPL 0 nosys 2511.1Sglass179 UNIMPL 0 nosys 2521.1Sglass180 UNIMPL 0 nosys 2531.1Sglass 2541.1Sglass; Syscalls 180-199 are used by/reserved for BSD 2551.1Sglass181 STD 1 setgid 2561.1Sglass182 STD 1 setegid 2571.1Sglass183 STD 1 seteuid 2581.17Scgd#ifdef LFS 2591.17Scgd184 STD 3 lfs_bmapv 2601.17Scgd185 STD 3 lfs_markv 2611.17Scgd186 STD 2 lfs_segclean 2621.17Scgd187 STD 2 lfs_segwait 2631.17Scgd#else 2641.1Sglass184 UNIMPL 0 nosys 2651.1Sglass185 UNIMPL 0 nosys 2661.1Sglass186 UNIMPL 0 nosys 2671.1Sglass187 UNIMPL 0 nosys 2681.17Scgd#endif 2691.12Scgd188 STD 2 stat 2701.12Scgd189 STD 2 fstat 2711.12Scgd190 STD 2 lstat 2721.6Scgd191 UNIMPL 0 nosys 2731.6Scgd192 UNIMPL 0 nosys 2741.6Scgd193 UNIMPL 0 nosys 2751.17Scgd194 STD 2 getrlimit 2761.17Scgd195 STD 2 setrlimit 2771.6Scgd196 UNIMPL 0 nosys 2781.16Scgd197 STD 8 mmap 2791.13Scgd198 STD 0 nosys __syscall 2801.15Scgd199 STD 5 lseek 2811.15Scgd200 STD 4 truncate 2821.15Scgd201 STD 4 ftruncate 2831.17Scgd202 UNIMPL 0 nosys 2841.17Scgd203 UNIMPL 0 nosys 2851.17Scgd204 UNIMPL 0 nosys 2861.17Scgd205 UNIMPL 0 nosys 2871.6Scgd206 UNIMPL 0 nosys 2881.6Scgd207 UNIMPL 0 nosys 2891.6Scgd208 UNIMPL 0 nosys 2901.6Scgd209 UNIMPL 0 nosys 2911.11Scgd; 2921.11Scgd; Syscalls 210-219 are reserved for dynamically loaded syscalls 2931.11Scgd; 2941.11Scgd#ifdef LKM 2951.11Scgd210 NODEF 0 lkmnosys 2961.11Scgd211 NODEF 0 lkmnosys 2971.11Scgd212 NODEF 0 lkmnosys 2981.11Scgd213 NODEF 0 lkmnosys 2991.11Scgd214 NODEF 0 lkmnosys 3001.11Scgd215 NODEF 0 lkmnosys 3011.11Scgd216 NODEF 0 lkmnosys 3021.11Scgd217 NODEF 0 lkmnosys 3031.11Scgd218 NODEF 0 lkmnosys 3041.11Scgd219 NODEF 0 lkmnosys 3051.11Scgd#else /* !LKM */ 3061.11Scgd210 UNIMPL 0 nosys 3071.11Scgd211 UNIMPL 0 nosys 3081.11Scgd212 UNIMPL 0 nosys 3091.11Scgd213 UNIMPL 0 nosys 3101.11Scgd214 UNIMPL 0 nosys 3111.11Scgd215 UNIMPL 0 nosys 3121.11Scgd216 UNIMPL 0 nosys 3131.11Scgd217 UNIMPL 0 nosys 3141.11Scgd218 UNIMPL 0 nosys 3151.11Scgd219 UNIMPL 0 nosys 3161.6Scgd#endif /* !LKM */ 317