fix to previous changes
[unix-history] / usr / src / sys / kern / syscalls.master
CommitLineData
7856752d 1 @(#)syscalls.master 7.26 (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
280 UNIMPL 0 indir or out-of-range
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
6638 STD 2 stat
b241e504 6739 STD 0 getppid
1c7df810
MK
6840 STD 2 lstat
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
MK
8452 STD 0 sigpending
85#ifdef notyet
8653 STD 3 sigaltstack
87#else
8853 UNIMPL 3 sigaltstack
89#endif
1c7df810
MK
9054 STD 3 ioctl
9155 STD 1 reboot
b241e504 9256 STD 1 revoke
1c7df810
MK
9357 STD 2 symlink
9458 STD 3 readlink
9559 STD 3 execve
9660 STD 1 umask
9761 STD 1 chroot
9862 STD 2 fstat
30afde50 9963 STD 4 getkerninfo
1c7df810
MK
10064 STD 0 getpagesize
10165 STD 2 msync
10266 STD 0 vfork
10367 OBSOL 0 vread
10468 OBSOL 0 vwrite
10569 STD 1 sbrk
10670 STD 1 sstk
10771 STD 6 smmap mmap
394edd7a 10872 STD 1 ovadvise vadvise
1c7df810
MK
10973 STD 2 munmap
11074 STD 3 mprotect
11175 STD 3 madvise
7856752d 11276 OBSOL 0 vhangup
1c7df810
MK
11377 OBSOL 0 vlimit
11478 STD 3 mincore
11579 STD 2 getgroups
11680 STD 2 setgroups
11781 STD 1 getpgrp
348b50f8 11882 STD 2 setpgid
1c7df810
MK
11983 STD 3 setitimer
12084 COMPAT 0 wait
12185 STD 1 swapon
12286 STD 2 getitimer
12387 STD 2 gethostname
12488 STD 2 sethostname
12589 STD 0 getdtablesize
12690 STD 2 dup2
12791 UNIMPL 2 getdopt
12892 STD 3 fcntl
12993 STD 5 select
13094 UNIMPL 2 setdopt
13195 STD 1 fsync
13296 STD 3 setpriority
13397 STD 3 socket
13498 STD 3 connect
13599 COMPAT 3 accept
136100 STD 2 getpriority
137101 COMPAT 4 send
138102 COMPAT 4 recv
139103 STD 1 sigreturn
140104 STD 3 bind
141105 STD 5 setsockopt
142106 STD 2 listen
143107 OBSOL 0 vtimes
356b430b
MK
144108 COMPAT 3 sigvec
145109 COMPAT 1 sigblock
146110 COMPAT 1 sigsetmask
147111 STD 1 sigsuspend
1c7df810
MK
148112 STD 2 sigstack
149113 COMPAT 3 recvmsg
150114 COMPAT 3 sendmsg
151#ifdef TRACE
152115 STD 2 vtrace
153#else
154115 OBSOL 2 vtrace
155#endif
156116 STD 2 gettimeofday
157117 STD 2 getrusage
158118 STD 5 getsockopt
159#ifdef vax
160119 STD 1 resuba
161#else
162119 UNIMPL 0 nosys
163#endif
164120 STD 3 readv
165121 STD 3 writev
166122 STD 2 settimeofday
167123 STD 3 fchown
168124 STD 2 fchmod
169125 COMPAT 6 recvfrom
b241e504
MK
170126 LIBCOMPAT 2 setreuid
171127 LIBCOMPAT 2 setregid
1c7df810
MK
172128 STD 2 rename
173129 STD 2 truncate
174130 STD 2 ftruncate
175131 STD 2 flock
7df48543 176132 STD 2 mkfifo
1c7df810
MK
177133 STD 6 sendto
178134 STD 2 shutdown
179135 STD 5 socketpair
180136 STD 2 mkdir
181137 STD 1 rmdir
182138 STD 2 utimes
183139 OBSOL 0 4.2 sigreturn
184140 STD 2 adjtime
185141 COMPAT 3 getpeername
186142 STD 0 gethostid
187143 STD 1 sethostid
188144 STD 2 getrlimit
189145 STD 2 setrlimit
356b430b 190146 COMPAT 2 killpg
1c7df810 191147 STD 0 setsid
65a7a73b 192148 STD 4 quotactl
7856752d 193149 COMPAT 4 quota
1c7df810 194150 COMPAT 3 getsockname
cc7d9ee1
KM
195
196; Syscalls 151-180 inclusive are reserved for vendor-specific
197; system calls. (This includes various calls added for compatibity
198; with other Unix variants.)
b241e504 199; Some of these calls are now supported by BSD...
cc7d9ee1
KM
200151 UNIMPL 0 nosys
201152 UNIMPL 0 nosys
eae0b4b4
KM
202153 UNIMPL 0 nosys
203154 UNIMPL 0 nosys
cc7d9ee1 204#ifdef NFS
dcb0bd7b 205155 STD 5 nfssvc
cc7d9ee1 206#else
eae0b4b4 207155 UNIMPL 0 nosys
cc7d9ee1 208#endif
eae0b4b4
KM
209156 STD 4 getdirentries
210157 STD 2 statfs
211158 STD 2 fstatfs
cc7d9ee1 212159 UNIMPL 0 nosys
cc7d9ee1 213#ifdef NFS
bffdb50f 214160 STD 0 async_daemon
cc7d9ee1
KM
215161 STD 2 getfh
216#else
bffdb50f 217160 UNIMPL 0 nosys
cc7d9ee1
KM
218161 UNIMPL 0 nosys
219#endif
220162 UNIMPL 0 nosys
221163 UNIMPL 0 nosys
222164 UNIMPL 0 nosys
223165 UNIMPL 0 nosys
cc7d9ee1 224166 UNIMPL 0 nosys
910ebf3e
KM
225167 UNIMPL 0 nosys
226168 UNIMPL 0 nosys
227169 UNIMPL 0 nosys
228170 UNIMPL 0 nosys
47b2b388
KM
229#ifdef SYSVSHM
230171 STD 4 shmsys
231#else
910ebf3e 232171 UNIMPL 0 nosys
47b2b388 233#endif
910ebf3e
KM
234172 UNIMPL 0 nosys
235173 UNIMPL 0 nosys
236174 UNIMPL 0 nosys
237175 UNIMPL 0 nosys
238176 UNIMPL 0 nosys
239177 UNIMPL 0 nosys
240178 UNIMPL 0 nosys
241179 UNIMPL 0 nosys
242180 UNIMPL 0 nosys
243
b241e504
MK
244; Syscalls 180-199 are used by/reserved for BSD
245181 STD 1 setgid
246182 STD 1 setegid
247183 STD 1 seteuid
910ebf3e
KM
248184 UNIMPL 0 nosys
249185 UNIMPL 0 nosys
250186 UNIMPL 0 nosys
251187 UNIMPL 0 nosys
252188 UNIMPL 0 nosys
253189 UNIMPL 0 nosys
254190 UNIMPL 0 nosys