syscalls.master revision 10905
1 $Id: syscalls.master,v 1.15 1995/04/23 12:20:52 ache Exp $ 2; from: @(#)syscalls.master 8.2 (Berkeley) 1/13/94 3; 4; System call name/number master file. 5; Processed to created init_sysent.c, syscalls.c and syscall.h. 6 7; Columns: number type nargs namespc name alt{name,tag,rtyp}/comments 8; number system call number, must be in order 9; type one of STD, OBSOL, UNIMPL, COMPAT 10; nargs number of arguments 11; namespc one of POSIX, BSD, NOHIDE 12; name name of syscall routine 13; If one of the following alts is different, then all appear: 14; altname name of system call if different 15; alttag name of args struct tag if different from [o]`name'"_args" 16; altrtyp return type if not int (bogus - syscalls always return int) 17; for UNIMPL/OBSOL, name continues with comments 18 19; types: 20; STD always included 21; COMPAT included on COMPAT #ifdef 22; LIBCOMPAT included on COMPAT #ifdef, and placed in syscall.h 23; OBSOL obsolete, not included in system, only specifies name 24; UNIMPL not implemented, placeholder only 25 26; #ifdef's, etc. may be included, and are copied to the output files. 27 28; Reserved/unimplemented system calls in the range 0-150 inclusive 29; are reserved for use in future Berkeley releases. 30; Additional system calls implemented in vendor and other 31; redistributions should be placed in the reserved range at the end 32; of the current calls. 33 340 STD 0 NOHIDE nosys syscall nosys_args int 351 STD 1 NOHIDE exit exit rexit_args void 362 STD 0 POSIX fork 373 STD 3 POSIX read 384 STD 3 POSIX write 395 STD 3 POSIX open 406 STD 1 POSIX close 417 STD 4 BSD wait4 wait4 wait_args int 428 COMPAT 2 BSD creat 439 STD 2 POSIX link 4410 STD 1 POSIX unlink 4511 OBSOL 2 NOHIDE execv 4612 STD 1 POSIX chdir 4713 STD 1 BSD fchdir 4814 STD 3 POSIX mknod 4915 STD 2 POSIX chmod 5016 STD 3 POSIX chown 5117 STD 1 BSD obreak break obreak_args int 5218 STD 3 BSD getfsstat 5319 COMPAT 3 POSIX lseek 5420 STD 0 POSIX getpid getpid args int 5521 STD 4 BSD mount 5622 STD 2 BSD unmount 5723 STD 1 POSIX setuid 5824 STD 0 POSIX getuid getuid args int 5925 STD 0 POSIX geteuid geteuid args int 6026 STD 4 BSD ptrace 6127 STD 3 BSD recvmsg 6228 STD 3 BSD sendmsg 6329 STD 6 BSD recvfrom 6430 STD 3 BSD accept 6531 STD 3 BSD getpeername 6632 STD 3 BSD getsockname 6733 STD 2 POSIX access 6834 STD 2 BSD chflags 6935 STD 2 BSD fchflags 7036 STD 0 BSD sync 7137 STD 2 POSIX kill 7238 COMPAT 2 POSIX stat 7339 STD 0 POSIX getppid getppid args int 7440 COMPAT 2 POSIX lstat 7541 STD 2 POSIX dup 7642 STD 0 POSIX pipe 7743 STD 0 POSIX getegid getegid args int 7844 STD 4 BSD profil 79#ifdef KTRACE 8045 STD 4 BSD ktrace 81#else 8245 UNIMPL 0 BSD ktrace 83#endif 8446 STD 3 POSIX sigaction 8547 STD 0 POSIX getgid getgid args int 8648 STD 2 POSIX sigprocmask 8749 STD 2 BSD getlogin 8850 STD 1 BSD setlogin 8951 STD 1 BSD acct 9052 STD 0 POSIX sigpending 9153 STD 2 BSD sigaltstack 9254 STD 3 POSIX ioctl 9355 STD 1 BSD reboot 9456 STD 1 POSIX revoke 9557 STD 2 POSIX symlink 9658 STD 3 POSIX readlink 9759 STD 3 POSIX execve 9860 STD 1 POSIX umask umask umask_args mode_t 9961 STD 1 BSD chroot 10062 COMPAT 2 POSIX fstat 10163 COMPAT 4 BSD getkerninfo getkerninfo getkerninfo_args int 10264 COMPAT 0 BSD getpagesize getpagesize getpagesize_args int 10365 STD 3 BSD msync 10466 STD 0 BSD vfork vfork fork_args int 10567 OBSOL 0 NOHIDE vread 10668 OBSOL 0 NOHIDE vwrite 10769 STD 1 BSD sbrk 10870 STD 1 BSD sstk 10971 COMPAT 6 BSD mmap 11072 STD 1 BSD ovadvise vadvise ovadvise_args int 11173 STD 2 BSD munmap 11274 STD 3 BSD mprotect 11375 STD 3 BSD madvise 11476 OBSOL 0 NOHIDE vhangup 11577 OBSOL 0 NOHIDE vlimit 11678 STD 3 BSD mincore 11779 STD 2 POSIX getgroups 11880 STD 2 POSIX setgroups 11981 STD 0 POSIX getpgrp getpgrp args int 12082 STD 2 POSIX setpgid 12183 STD 3 BSD setitimer 12284 COMPAT 0 BSD wait wait wait_args int 12385 STD 1 BSD swapon 12486 STD 2 BSD getitimer 12587 COMPAT 2 BSD gethostname gethostname gethostname_args int 12688 COMPAT 2 BSD sethostname sethostname sethostname_args int 12789 STD 0 BSD getdtablesize 12890 STD 2 POSIX dup2 12991 UNIMPL 2 BSD getdopt 13092 STD 3 POSIX fcntl 13193 STD 5 BSD select 13294 UNIMPL 2 BSD setdopt 13395 STD 1 POSIX fsync 13496 STD 3 BSD setpriority 13597 STD 3 BSD socket 13698 STD 3 BSD connect 13799 COMPAT 3 BSD accept accept accept_args int 138100 STD 2 BSD getpriority 139101 COMPAT 4 BSD send 140102 COMPAT 4 BSD recv 141103 STD 1 BSD sigreturn 142104 STD 3 BSD bind 143105 STD 5 BSD setsockopt 144106 STD 2 BSD listen 145107 OBSOL 0 NOHIDE vtimes 146108 COMPAT 3 BSD sigvec 147109 COMPAT 1 BSD sigblock 148110 COMPAT 1 BSD sigsetmask 149111 STD 1 POSIX sigsuspend 150112 COMPAT 2 BSD sigstack 151113 COMPAT 3 BSD recvmsg 152114 COMPAT 3 BSD sendmsg 153115 OBSOL 2 NOHIDE vtrace 154116 STD 2 BSD gettimeofday 155117 STD 2 BSD getrusage 156118 STD 5 BSD getsockopt 157#ifdef vax 158119 STD 1 BSD resuba 159#else 160119 UNIMPL 0 NOHIDE nosys 161#endif 162120 STD 3 BSD readv 163121 STD 3 BSD writev 164122 STD 2 BSD settimeofday 165123 STD 3 BSD fchown 166124 STD 2 BSD fchmod 167125 COMPAT 6 BSD recvfrom recvfrom recvfrom_args int 168126 STD 2 BSD setreuid 169127 STD 2 BSD setregid 170128 STD 2 POSIX rename 171129 COMPAT 2 BSD truncate 172130 COMPAT 2 BSD ftruncate 173131 STD 2 BSD flock 174132 STD 2 POSIX mkfifo 175133 STD 6 BSD sendto 176134 STD 2 BSD shutdown 177135 STD 5 BSD socketpair 178136 STD 2 POSIX mkdir 179137 STD 1 POSIX rmdir 180138 STD 2 BSD utimes 181139 OBSOL 0 NOHIDE 4.2 sigreturn 182140 STD 2 BSD adjtime 183141 COMPAT 3 BSD getpeername getpeername getpeername_args int 184142 COMPAT 0 BSD gethostid gethostid gethostid_args int 185143 COMPAT 1 BSD sethostid sethostid sethostid_args int 186144 COMPAT 2 BSD getrlimit getrlimit getrlimit_args int 187145 COMPAT 2 BSD setrlimit setrlimit setrlimit_args int 188146 COMPAT 2 BSD killpg 189147 STD 0 POSIX setsid setsid args int 190148 STD 4 BSD quotactl 191149 COMPAT 4 BSD quota quota quota_args int 192150 COMPAT 3 BSD getsockname getsockname getsockname_args int 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 NOHIDE nosys 199152 UNIMPL 0 NOHIDE nosys 200153 UNIMPL 0 NOHIDE nosys 201154 UNIMPL 0 NOHIDE nosys 202#ifdef NFS 203155 STD 2 BSD nfssvc 204#else 205155 UNIMPL 0 BSD nosys 206#endif 207156 COMPAT 4 BSD getdirentries 208157 STD 2 BSD statfs 209158 STD 2 BSD fstatfs 210159 UNIMPL 0 NOHIDE nosys 211160 UNIMPL 0 NOHIDE nosys 212#ifdef NFS 213161 STD 2 BSD getfh 214#else 215161 UNIMPL 0 BSD nosys 216#endif 217162 STD 2 BSD getdomainname 218163 STD 2 BSD setdomainname 219164 STD 1 BSD uname 220165 STD 2 BSD sysarch 221166 STD 3 BSD rtprio 222167 UNIMPL 0 NOHIDE nosys 223168 UNIMPL 0 NOHIDE nosys 224#ifdef SYSVSEM 225169 STD 5 BSD semsys 226#else 227169 UNIMPL 0 NOHIDE nosys 228#endif 229#ifdef SYSVMSG 230170 STD 6 BSD msgsys 231#else 232170 UNIMPL 0 NOHIDE nosys 233#endif 234#ifdef SYSVSHM 235171 STD 4 BSD shmsys 236#else 237171 UNIMPL 0 BSD nosys 238#endif 239172 UNIMPL 0 NOHIDE nosys 240173 UNIMPL 0 NOHIDE nosys 241174 UNIMPL 0 NOHIDE nosys 242175 UNIMPL 0 NOHIDE nosys 243176 STD 1 BSD ntp_adjtime 244177 UNIMPL 0 NOHIDE nosys 245178 UNIMPL 0 NOHIDE nosys 246179 UNIMPL 0 NOHIDE nosys 247180 UNIMPL 0 NOHIDE nosys 248 249; Syscalls 180-199 are used by/reserved for BSD 250181 STD 1 POSIX setgid 251182 STD 1 BSD setegid 252183 STD 1 BSD seteuid 253#ifdef LFS 254184 STD 3 BSD lfs_bmapv 255185 STD 3 BSD lfs_markv 256186 STD 2 BSD lfs_segclean 257187 STD 2 BSD lfs_segwait 258#else 259184 UNIMPL 0 BSD nosys 260185 UNIMPL 0 BSD nosys 261186 UNIMPL 0 BSD nosys 262187 UNIMPL 0 BSD nosys 263#endif 264188 STD 2 POSIX stat 265189 STD 2 POSIX fstat 266190 STD 2 POSIX lstat 267191 STD 2 POSIX pathconf 268192 STD 2 POSIX fpathconf 269193 UNIMPL 0 NOHIDE nosys 270194 STD 2 BSD getrlimit getrlimit __getrlimit_args int 271195 STD 2 BSD setrlimit setrlimit __setrlimit_args int 272196 STD 4 BSD getdirentries 273197 STD 8 BSD mmap 274198 STD 0 NOHIDE nosys __syscall __syscall_args int 275199 STD 5 POSIX lseek 276200 STD 4 BSD truncate 277201 STD 4 BSD ftruncate 278202 STD 6 BSD __sysctl __sysctl sysctl_args int 279; properly, __sysctl should be a NOHIDE, but making an exception 280; here allows to avoid one in libc/sys/Makefile.inc. 281203 STD 2 BSD mlock 282204 STD 2 BSD munlock 283205 UNIMPL 0 NOHIDE nosys 284206 UNIMPL 0 NOHIDE nosys 285207 UNIMPL 0 NOHIDE nosys 286208 UNIMPL 0 NOHIDE nosys 287209 UNIMPL 0 NOHIDE nosys 288 289; 290; The following are reserved for loadable syscalls 291; 292210 NODEF 0 NOHIDE lkmnosys lkmnosys nosys_args int 293211 NODEF 0 NOHIDE lkmnosys lkmnosys nosys_args int 294212 NODEF 0 NOHIDE lkmnosys lkmnosys nosys_args int 295213 NODEF 0 NOHIDE lkmnosys lkmnosys nosys_args int 296214 NODEF 0 NOHIDE lkmnosys lkmnosys nosys_args int 297215 NODEF 0 NOHIDE lkmnosys lkmnosys nosys_args int 298216 NODEF 0 NOHIDE lkmnosys lkmnosys nosys_args int 299217 NODEF 0 NOHIDE lkmnosys lkmnosys nosys_args int 300218 NODEF 0 NOHIDE lkmnosys lkmnosys nosys_args int 301219 NODEF 0 NOHIDE lkmnosys lkmnosys nosys_args int 302