syscalls.master revision 1.20
1 $Id: syscalls.master,v 1.20 1994/06/08 11:28:45 mycroft Exp $ 2; from: @(#)syscalls.master 8.2 (Berkeley) 1/13/94 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, NCOMPAT, LIBCOMPAT 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; NCOMPAT included on NetBSD COMPAT #ifdef 21; UNIMPL not implemented, placeholder only 22 23; #ifdef's, etc. may be included, and are copied to the output files. 24 25; Reserved/unimplemented system calls in the range 0-150 inclusive 26; are reserved for use in future Berkeley releases. 27; Additional system calls implemented in vendor and other 28; redistributions should be placed in the reserved range at the end 29; of the current calls. 30 310 STD 0 nosys syscall 321 STD 1 exit 332 STD 0 fork 343 STD 3 read 354 STD 3 write 365 STD 3 open 376 STD 1 close 387 STD 4 wait4 398 COMPAT 2 creat 409 STD 2 link 4110 STD 1 unlink 4211 OBSOL 2 execv 4312 STD 1 chdir 4413 STD 1 fchdir 4514 STD 3 mknod 4615 STD 2 chmod 4716 STD 3 chown 4817 STD 1 obreak break 4918 STD 3 getfsstat 5019 COMPAT 3 lseek 5120 STD 0 getpid 5221 STD 4 mount 5322 STD 2 unmount 5423 STD 1 setuid 5524 STD 0 getuid 5625 STD 0 geteuid 5726 STD 4 ptrace 5827 STD 3 recvmsg 5928 STD 3 sendmsg 6029 STD 6 recvfrom 6130 STD 3 accept 6231 STD 3 getpeername 6332 STD 3 getsockname 6433 STD 2 access 6534 STD 2 chflags 6635 STD 2 fchflags 6736 STD 0 sync 6837 STD 2 kill 6938 COMPAT 2 stat 7039 STD 0 getppid 7140 COMPAT 2 lstat 7241 STD 2 dup 7342 STD 0 pipe 7443 STD 0 getegid 7544 STD 4 profil 76#ifdef KTRACE 7745 STD 4 ktrace 78#else 7945 UNIMPL 0 ktrace 80#endif 8146 STD 3 sigaction 8247 STD 0 getgid 8348 STD 2 sigprocmask 8449 STD 2 getlogin 8550 STD 1 setlogin 8651 STD 1 acct 8752 STD 0 sigpending 8853 STD 2 sigaltstack 8954 STD 3 ioctl 9055 STD 1 reboot 9156 STD 1 revoke 9257 STD 2 symlink 9358 STD 3 readlink 9459 STD 3 execve 9560 STD 1 umask 9661 STD 1 chroot 9762 COMPAT 2 fstat 9863 COMPAT 4 getkerninfo 9964 COMPAT 0 getpagesize 10065 STD 2 msync 10166 STD 0 vfork 10267 OBSOL 0 vread 10368 OBSOL 0 vwrite 10469 STD 1 sbrk 10570 STD 1 sstk 10671 COMPAT 7 mmap 10772 STD 1 ovadvise vadvise 10873 STD 2 munmap 10974 STD 3 mprotect 11075 STD 3 madvise 11176 OBSOL 0 vhangup 11277 OBSOL 0 vlimit 11378 STD 3 mincore 11479 STD 2 getgroups 11580 STD 2 setgroups 11681 STD 0 getpgrp 11782 STD 2 setpgid 11883 STD 3 setitimer 11984 COMPAT 0 wait 12085 STD 1 swapon 12186 STD 2 getitimer 12287 COMPAT 2 gethostname 12388 COMPAT 2 sethostname 12489 STD 0 getdtablesize 12590 STD 2 dup2 12691 UNIMPL 2 getdopt 12792 STD 3 fcntl 12893 STD 5 select 12994 UNIMPL 2 setdopt 13095 STD 1 fsync 13196 STD 3 setpriority 13297 STD 3 socket 13398 STD 3 connect 13499 COMPAT 3 accept 135100 STD 2 getpriority 136101 COMPAT 4 send 137102 COMPAT 4 recv 138103 STD 1 sigreturn 139104 STD 3 bind 140105 STD 5 setsockopt 141106 STD 2 listen 142107 OBSOL 0 vtimes 143108 COMPAT 3 sigvec 144109 COMPAT 1 sigblock 145110 COMPAT 1 sigsetmask 146111 STD 1 sigsuspend 147112 COMPAT 2 sigstack 148113 COMPAT 3 recvmsg 149114 COMPAT 3 sendmsg 150#ifdef TRACE 151115 STD 2 vtrace 152#else 153115 OBSOL 2 vtrace 154#endif 155116 STD 2 gettimeofday 156117 STD 2 getrusage 157118 STD 5 getsockopt 158#ifdef vax 159119 STD 1 resuba 160#else 161119 UNIMPL 0 nosys 162#endif 163120 STD 3 readv 164121 STD 3 writev 165122 STD 2 settimeofday 166123 STD 3 fchown 167124 STD 2 fchmod 168125 COMPAT 6 recvfrom 169126 COMPAT 2 setreuid 170127 COMPAT 2 setregid 171128 STD 2 rename 172129 COMPAT 2 truncate 173130 COMPAT 2 ftruncate 174131 STD 2 flock 175132 STD 2 mkfifo 176133 STD 6 sendto 177134 STD 2 shutdown 178135 STD 5 socketpair 179136 STD 2 mkdir 180137 STD 1 rmdir 181138 STD 2 utimes 182139 OBSOL 0 4.2 sigreturn 183140 STD 2 adjtime 184141 COMPAT 3 getpeername 185142 COMPAT 0 gethostid 186143 COMPAT 1 sethostid 187144 COMPAT 2 getrlimit 188145 COMPAT 2 setrlimit 189146 COMPAT 2 killpg 190147 STD 0 setsid 191148 STD 4 quotactl 192149 COMPAT 4 quota 193150 COMPAT 3 getsockname 194 195; Syscalls 151-180 inclusive are reserved for vendor-specific 196; system calls. (This includes various calls added for compatibity 197; with other Unix variants.) 198; Some of these calls are now supported by BSD... 199151 UNIMPL 0 nosys 200152 UNIMPL 0 nosys 201153 UNIMPL 0 nosys 202154 UNIMPL 0 nosys 203#if defined(NFSCLIENT) || defined(NFSSERVER) 204155 STD 2 nfssvc 205#else 206155 UNIMPL 0 nosys 207#endif 208156 COMPAT 4 getdirentries 209157 STD 2 statfs 210158 STD 2 fstatfs 211159 UNIMPL 0 nosys 212160 UNIMPL 0 nosys 213#ifdef NFSCLIENT 214161 STD 2 getfh 215#else 216161 UNIMPL 0 nosys 217#endif 218162 NCOMPAT 2 getdomainname 219163 NCOMPAT 2 setdomainname 220164 NCOMPAT 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 254#ifdef LFS 255184 STD 3 lfs_bmapv 256185 STD 3 lfs_markv 257186 STD 2 lfs_segclean 258187 STD 2 lfs_segwait 259#else 260184 UNIMPL 0 nosys 261185 UNIMPL 0 nosys 262186 UNIMPL 0 nosys 263187 UNIMPL 0 nosys 264#endif 265188 STD 2 stat 266189 STD 2 fstat 267190 STD 2 lstat 268191 STD 2 pathconf 269192 STD 2 fpathconf 270193 UNIMPL 0 nosys 271194 STD 2 getrlimit 272195 STD 2 setrlimit 273196 STD 4 getdirentries 274197 STD 8 mmap 275198 STD 0 nosys __syscall 276199 STD 5 lseek 277200 STD 4 truncate 278201 STD 4 ftruncate 279202 STD 6 __sysctl 280203 STD 2 mlock 281204 STD 2 munlock 282205 UNIMPL 0 nosys 283206 UNIMPL 0 nosys 284207 UNIMPL 0 nosys 285208 UNIMPL 0 nosys 286209 UNIMPL 0 nosys 287; 288; Syscalls 210-219 are reserved for dynamically loaded syscalls 289; 290#ifdef LKM 291210 NODEF 0 lkmnosys 292211 NODEF 0 lkmnosys 293212 NODEF 0 lkmnosys 294213 NODEF 0 lkmnosys 295214 NODEF 0 lkmnosys 296215 NODEF 0 lkmnosys 297216 NODEF 0 lkmnosys 298217 NODEF 0 lkmnosys 299218 NODEF 0 lkmnosys 300219 NODEF 0 lkmnosys 301#else /* !LKM */ 302210 UNIMPL 0 nosys 303211 UNIMPL 0 nosys 304212 UNIMPL 0 nosys 305213 UNIMPL 0 nosys 306214 UNIMPL 0 nosys 307215 UNIMPL 0 nosys 308216 UNIMPL 0 nosys 309217 UNIMPL 0 nosys 310218 UNIMPL 0 nosys 311219 UNIMPL 0 nosys 312#endif /* !LKM */ 313