1 $Id: syscalls.master,v 1.9 1993/11/14 13:08:09 cgd Exp $ 2; from: @(#)syscalls.master 7.26 (Berkeley) 3/25/91 3; System call name/number master file. 4; Processed to created init_sysent.c, syscalls.c and syscall.h. 5 6; Columns: number type nargs name altname/comments 7; number system call number, must be in order 8; type one of STD, OBSOL, UNIMPL, NODEF, COMPAT 9; nargs number of arguments 10; name name of syscall routine 11; altname name of system call if different 12; for UNIMPL/OBSOL, name continues with comments 13 14; types: 15; STD always included 16; COMPAT included on COMPAT #ifdef 17; LIBCOMPAT included on COMPAT #ifdef, and placed in syscall.h 18; OBSOL obsolete, not included in system, only specifies name 19; NODEF do everything except include in syscall.h 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 UNIMPL 0 indir or out-of-range 311 STD 1 rexit 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 STD 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 saccess access 6434 STD 2 chflags 6535 STD 2 fchflags 6636 STD 0 sync 6737 STD 2 kill 6838 STD 2 stat 6939 STD 0 getppid 7040 STD 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 sysacct acct 8652 STD 0 sigpending 87#ifdef notyet 8853 STD 3 sigaltstack 89#else 9053 UNIMPL 3 sigaltstack 91#endif 9254 STD 3 ioctl 9355 STD 1 reboot 9456 STD 1 revoke 9557 STD 2 symlink 9658 STD 3 readlink 9759 STD 3 execve 9860 STD 1 umask 9961 STD 1 chroot 10062 STD 2 fstat 10163 STD 4 getkerninfo 10264 STD 0 getpagesize 10365 STD 2 msync 10466 STD 0 vfork 10567 OBSOL 0 vread 10668 OBSOL 0 vwrite 10769 STD 1 sbrk 10870 STD 1 sstk 10971 STD 6 smmap mmap 11072 STD 1 ovadvise vadvise 11173 STD 2 munmap 11274 STD 3 mprotect 11375 STD 3 madvise 11476 OBSOL 0 vhangup 11577 OBSOL 0 vlimit 11678 STD 3 mincore 11779 STD 2 getgroups 11880 STD 2 setgroups 11981 STD 0 getpgrp 12082 STD 2 setpgid 12183 STD 3 setitimer 12284 COMPAT 0 wait 12385 STD 1 swapon 12486 STD 2 getitimer 12587 STD 2 gethostname 12688 STD 2 sethostname 12789 STD 0 getdtablesize 12890 STD 2 dup2 12991 UNIMPL 2 getdopt 13092 STD 3 fcntl 13193 STD 5 select 13294 UNIMPL 2 setdopt 13395 STD 1 fsync 13496 STD 3 setpriority 13597 STD 3 socket 13698 STD 3 connect 13799 COMPAT 3 accept 138100 STD 2 getpriority 139101 COMPAT 4 send 140102 COMPAT 4 recv 141103 STD 1 sigreturn 142104 STD 3 bind 143105 STD 5 setsockopt 144106 STD 2 listen 145107 OBSOL 0 vtimes 146108 COMPAT 3 sigvec 147109 COMPAT 1 sigblock 148110 COMPAT 1 sigsetmask 149111 STD 1 sigsuspend 150112 STD 2 sigstack 151113 COMPAT 3 recvmsg 152114 COMPAT 3 sendmsg 153#ifdef TRACE 154115 STD 2 vtrace 155#else 156115 OBSOL 2 vtrace 157#endif 158116 STD 2 gettimeofday 159117 STD 2 getrusage 160118 STD 5 getsockopt 161119 UNIMPL 0 nosys 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 LIBCOMPAT 2 setreuid 169127 LIBCOMPAT 2 setregid 170128 STD 2 rename 171129 STD 2 truncate 172130 STD 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 STD 0 gethostid 185143 STD 1 sethostid 186144 STD 2 getrlimit 187145 STD 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 NFSSERVER 203155 STD 5 nfssvc 204#else 205155 UNIMPL 0 nosys 206#endif 207156 STD 4 getdirentries 208157 STD 2 statfs 209158 STD 2 fstatfs 210159 UNIMPL 0 nosys 211#ifdef NFSCLIENT 212160 STD 0 async_daemon 213161 STD 2 getfh 214#else 215160 UNIMPL 0 nosys 216161 UNIMPL 0 nosys 217#endif 218162 STD 2 getdomainname 219163 STD 2 setdomainname 220164 STD 1 uname 221165 STD 2 sysarch 222166 UNIMPL 0 nosys 223167 UNIMPL 0 nosys 224168 UNIMPL 0 nosys 225#ifdef SYSVSEM 226169 STD 5 semsys 227#else 228169 UNIMPL 0 nosys 229#endif 230#ifdef SYSVMSG 231170 STD 6 msgsys 232#else 233170 UNIMPL 0 nosys 234#endif 235#ifdef SYSVSHM 236171 STD 4 shmsys 237#else 238171 UNIMPL 0 nosys 239#endif 240172 UNIMPL 0 nosys 241173 UNIMPL 0 nosys 242174 UNIMPL 0 nosys 243175 UNIMPL 0 nosys 244176 UNIMPL 0 nosys 245177 UNIMPL 0 nosys 246178 UNIMPL 0 nosys 247179 UNIMPL 0 nosys 248180 UNIMPL 0 nosys 249 250; Syscalls 180-199 are used by/reserved for BSD 251181 STD 1 setgid 252182 STD 1 setegid 253183 STD 1 seteuid 254184 UNIMPL 0 nosys 255185 UNIMPL 0 nosys 256186 UNIMPL 0 nosys 257187 UNIMPL 0 nosys 258188 UNIMPL 0 nosys 259189 UNIMPL 0 nosys 260190 UNIMPL 0 nosys 261191 UNIMPL 0 nosys 262192 UNIMPL 0 nosys 263193 UNIMPL 0 nosys 264194 UNIMPL 0 nosys 265195 UNIMPL 0 nosys 266196 UNIMPL 0 nosys 267197 UNIMPL 0 nosys 268198 UNIMPL 0 nosys 269199 UNIMPL 0 nosys 270; 271; Syscalls 200-109 are reserved for dynamically loaded syscalls 272; 273#ifdef LKM 274200 NODEF 0 lkmnosys 275201 NODEF 0 lkmnosys 276202 NODEF 0 lkmnosys 277203 NODEF 0 lkmnosys 278204 NODEF 0 lkmnosys 279205 NODEF 0 lkmnosys 280206 NODEF 0 lkmnosys 281207 NODEF 0 lkmnosys 282208 NODEF 0 lkmnosys 283209 NODEF 0 lkmnosys 284#else /* !LKM */ 285200 UNIMPL 0 nosys 286201 UNIMPL 0 nosys 287202 UNIMPL 0 nosys 288203 UNIMPL 0 nosys 289204 UNIMPL 0 nosys 290205 UNIMPL 0 nosys 291206 UNIMPL 0 nosys 292207 UNIMPL 0 nosys 293208 UNIMPL 0 nosys 294209 UNIMPL 0 nosys 295#endif /* !LKM */ 296