set hashfraction; enable getting gmonparam
[unix-history] / usr / src / sys / kern / syscalls.master
CommitLineData
eed9c709 1 @(#)syscalls.master 7.41 (Berkeley) %G%
1c7df810
MK
2; System call name/number master file.
3; Processed to created init_sysent.c, syscalls.c and syscall.h.
4
5; Columns: number type nargs name altname/comments
6; number system call number, must be in order
7; type one of STD, OBSOL, UNIMPL, COMPAT
8; nargs number of arguments
9; name name of syscall routine
10; altname name of system call if different
11; for UNIMPL/OBSOL, name continues with comments
12
13; types:
14; STD always included
15; COMPAT included on COMPAT #ifdef
b241e504 16; LIBCOMPAT included on COMPAT #ifdef, and placed in syscall.h
1c7df810
MK
17; OBSOL obsolete, not included in system, only specifies name
18; UNIMPL not implemented, placeholder only
19
20; #ifdef's, etc. may be included, and are copied to the output files.
21
22; Reserved/unimplemented system calls in the range 0-150 inclusive
23; are reserved for use in future Berkeley releases.
24; Additional system calls implemented in vendor and other
25; redistributions should be placed in the reserved range at the end
26; of the current calls.
27
eb696fee 280 STD 0 nosys indir
1c7df810
MK
291 STD 1 rexit exit
302 STD 0 fork
313 STD 3 read
324 STD 3 write
335 STD 3 open
346 STD 1 close
357 STD 4 wait4
b241e504 368 COMPAT 2 creat
1c7df810
MK
379 STD 2 link
3810 STD 1 unlink
7856752d 3911 OBSOL 2 execv
1c7df810 4012 STD 1 chdir
6ef647f0 4113 STD 1 fchdir
1c7df810
MK
4214 STD 3 mknod
4315 STD 2 chmod
4416 STD 3 chown
394edd7a 4517 STD 1 obreak break
2f276b8d 4618 STD 3 getfsstat
1c7df810
MK
4719 STD 3 lseek
4820 STD 0 getpid
eae0b4b4
KM
4921 STD 4 mount
5022 STD 2 unmount
b241e504 5123 STD 1 setuid
1c7df810 5224 STD 0 getuid
b241e504 5325 STD 0 geteuid
1c7df810
MK
5426 STD 4 ptrace
5527 STD 3 recvmsg
5628 STD 3 sendmsg
5729 STD 6 recvfrom
5830 STD 3 accept
5931 STD 3 getpeername
6032 STD 3 getsockname
6133 STD 2 saccess access
6ef647f0
KM
6234 STD 2 chflags
6335 STD 2 fchflags
1c7df810
MK
6436 STD 0 sync
6537 STD 2 kill
3a677687 6638 COMPAT 2 stat
b241e504 6739 STD 0 getppid
3a677687 6840 COMPAT 2 lstat
1c7df810
MK
6941 STD 2 dup
7042 STD 0 pipe
b241e504 7143 STD 0 getegid
1c7df810
MK
7244 STD 4 profil
73#ifdef KTRACE
7445 STD 4 ktrace
75#else
b241e504 7645 UNIMPL 0 ktrace
1c7df810 77#endif
356b430b 7846 STD 3 sigaction
1c7df810 7947 STD 0 getgid
356b430b 8048 STD 2 sigprocmask
d41db73f 8149 STD 2 getlogin
c355507c 8250 STD 1 setlogin
1c7df810 8351 STD 1 sysacct acct
356b430b 8452 STD 0 sigpending
ebf08548 8553 STD 2 sigaltstack
1c7df810
MK
8654 STD 3 ioctl
8755 STD 1 reboot
b241e504 8856 STD 1 revoke
1c7df810
MK
8957 STD 2 symlink
9058 STD 3 readlink
9159 STD 3 execve
9260 STD 1 umask
9361 STD 1 chroot
3a677687 9462 COMPAT 2 fstat
eed9c709
KM
9563 COMPAT 4 getkerninfo
9664 COMPAT 0 getpagesize
1c7df810
MK
9765 STD 2 msync
9866 STD 0 vfork
9967 OBSOL 0 vread
10068 OBSOL 0 vwrite
10169 STD 1 sbrk
10270 STD 1 sstk
eb696fee 10371 COMPAT 7 smmap mmap
394edd7a 10472 STD 1 ovadvise vadvise
1c7df810
MK
10573 STD 2 munmap
10674 STD 3 mprotect
10775 STD 3 madvise
7856752d 10876 OBSOL 0 vhangup
1c7df810
MK
10977 OBSOL 0 vlimit
11078 STD 3 mincore
11179 STD 2 getgroups
11280 STD 2 setgroups
6667dacf 11381 STD 0 getpgrp
348b50f8 11482 STD 2 setpgid
1c7df810
MK
11583 STD 3 setitimer
11684 COMPAT 0 wait
11785 STD 1 swapon
11886 STD 2 getitimer
eed9c709
KM
11987 COMPAT 2 gethostname
12088 COMPAT 2 sethostname
1c7df810
MK
12189 STD 0 getdtablesize
12290 STD 2 dup2
12391 UNIMPL 2 getdopt
12492 STD 3 fcntl
12593 STD 5 select
12694 UNIMPL 2 setdopt
12795 STD 1 fsync
12896 STD 3 setpriority
12997 STD 3 socket
13098 STD 3 connect
13199 COMPAT 3 accept
132100 STD 2 getpriority
133101 COMPAT 4 send
134102 COMPAT 4 recv
135103 STD 1 sigreturn
136104 STD 3 bind
137105 STD 5 setsockopt
138106 STD 2 listen
139107 OBSOL 0 vtimes
356b430b
MK
140108 COMPAT 3 sigvec
141109 COMPAT 1 sigblock
142110 COMPAT 1 sigsetmask
143111 STD 1 sigsuspend
ebf08548 144112 COMPAT 2 sigstack
1c7df810
MK
145113 COMPAT 3 recvmsg
146114 COMPAT 3 sendmsg
147#ifdef TRACE
148115 STD 2 vtrace
149#else
150115 OBSOL 2 vtrace
151#endif
152116 STD 2 gettimeofday
153117 STD 2 getrusage
154118 STD 5 getsockopt
155#ifdef vax
156119 STD 1 resuba
157#else
158119 UNIMPL 0 nosys
159#endif
160120 STD 3 readv
161121 STD 3 writev
162122 STD 2 settimeofday
163123 STD 3 fchown
164124 STD 2 fchmod
165125 COMPAT 6 recvfrom
5894ff37
KM
166126 COMPAT 2 setreuid
167127 COMPAT 2 setregid
1c7df810
MK
168128 STD 2 rename
169129 STD 2 truncate
170130 STD 2 ftruncate
171131 STD 2 flock
7df48543 172132 STD 2 mkfifo
1c7df810
MK
173133 STD 6 sendto
174134 STD 2 shutdown
175135 STD 5 socketpair
176136 STD 2 mkdir
177137 STD 1 rmdir
178138 STD 2 utimes
179139 OBSOL 0 4.2 sigreturn
180140 STD 2 adjtime
181141 COMPAT 3 getpeername
eed9c709
KM
182142 COMPAT 0 gethostid
183143 COMPAT 1 sethostid
1c7df810
MK
184144 STD 2 getrlimit
185145 STD 2 setrlimit
356b430b 186146 COMPAT 2 killpg
1c7df810 187147 STD 0 setsid
65a7a73b 188148 STD 4 quotactl
7856752d 189149 COMPAT 4 quota
1c7df810 190150 COMPAT 3 getsockname
cc7d9ee1
KM
191
192; Syscalls 151-180 inclusive are reserved for vendor-specific
193; system calls. (This includes various calls added for compatibity
194; with other Unix variants.)
b241e504 195; Some of these calls are now supported by BSD...
cc7d9ee1
KM
196151 UNIMPL 0 nosys
197152 UNIMPL 0 nosys
eae0b4b4
KM
198153 UNIMPL 0 nosys
199154 UNIMPL 0 nosys
cc7d9ee1 200#ifdef NFS
327ca0c7 201155 STD 2 nfssvc
cc7d9ee1 202#else
eae0b4b4 203155 UNIMPL 0 nosys
cc7d9ee1 204#endif
eb696fee 205156 COMPAT 4 getdirentries
eae0b4b4
KM
206157 STD 2 statfs
207158 STD 2 fstatfs
cc7d9ee1 208159 UNIMPL 0 nosys
327ca0c7 209160 UNIMPL 0 nosys
cc7d9ee1
KM
210#ifdef NFS
211161 STD 2 getfh
212#else
213161 UNIMPL 0 nosys
214#endif
215162 UNIMPL 0 nosys
216163 UNIMPL 0 nosys
217164 UNIMPL 0 nosys
218165 UNIMPL 0 nosys
cc7d9ee1 219166 UNIMPL 0 nosys
910ebf3e
KM
220167 UNIMPL 0 nosys
221168 UNIMPL 0 nosys
222169 UNIMPL 0 nosys
223170 UNIMPL 0 nosys
47b2b388
KM
224#ifdef SYSVSHM
225171 STD 4 shmsys
226#else
910ebf3e 227171 UNIMPL 0 nosys
47b2b388 228#endif
910ebf3e
KM
229172 UNIMPL 0 nosys
230173 UNIMPL 0 nosys
231174 UNIMPL 0 nosys
232175 UNIMPL 0 nosys
233176 UNIMPL 0 nosys
234177 UNIMPL 0 nosys
235178 UNIMPL 0 nosys
236179 UNIMPL 0 nosys
237180 UNIMPL 0 nosys
238
b241e504
MK
239; Syscalls 180-199 are used by/reserved for BSD
240181 STD 1 setgid
241182 STD 1 setegid
242183 STD 1 seteuid
5306a47c 243#ifdef LFS
f452e7b6 244184 STD 4 lfs_bmapv
fb849d1c 245185 STD 4 lfs_markv
f452e7b6
KB
246186 STD 3 lfs_segclean
247187 STD 3 lfs_segwait
5306a47c
KM
248#else
249184 UNIMPL 0 nosys
250185 UNIMPL 0 nosys
251186 UNIMPL 0 nosys
252187 UNIMPL 0 nosys
253#endif
3a677687
KM
254188 STD 2 stat
255189 STD 2 fstat
256190 STD 2 lstat
a55fe831
CT
257191 UNIMPL 0 nosys
258192 UNIMPL 0 nosys
259193 UNIMPL 0 nosys
3a677687
KM
260194 STD 2 __getrlimit
261195 STD 2 __setrlimit
eb696fee
KM
262196 STD 4 getdirentries
263197 STD 8 smmap mmap
a55fe831
CT
264198 STD 0 nosys __indir
265199 STD 5 __lseek
266200 STD 4 __truncate
267201 STD 4 __ftruncate
5f0cca4e 268202 STD 6 sysctl
a55fe831
CT
269203 UNIMPL 0 nosys
270204 UNIMPL 0 nosys
271205 UNIMPL 0 nosys
272206 UNIMPL 0 nosys
273207 UNIMPL 0 nosys
274208 UNIMPL 0 nosys
275209 UNIMPL 0 nosys
276210 UNIMPL 0 nosys