xref: /original-bsd/sys/kern/syscalls.master (revision 4e1ffb20)
1	@(#)syscalls.master	8.3 (Berkeley) 07/12/94
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
16;	LIBCOMPAT included on COMPAT #ifdef, and placed in syscall.h
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	STD	0 nosys syscall
291	STD	1 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
368	COMPAT	2 creat
379	STD	2 link
3810	STD	1 unlink
3911	OBSOL	2 execv
4012	STD	1 chdir
4113	STD	1 fchdir
4214	STD	3 mknod
4315	STD	2 chmod
4416	STD	3 chown
4517	STD	1 obreak break
4618	STD	3 getfsstat
4719	COMPAT	3 lseek
4820	STD	0 getpid
4921	STD	4 mount
5022	STD	2 unmount
5123	STD	1 setuid
5224	STD	0 getuid
5325	STD	0 geteuid
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 access
6234	STD	2 chflags
6335	STD	2 fchflags
6436	STD	0 sync
6537	STD	2 kill
6638	COMPAT	2 stat
6739	STD	0 getppid
6840	COMPAT	2 lstat
6941	STD	2 dup
7042	STD	0 pipe
7143	STD	0 getegid
7244	STD	4 profil
73#ifdef KTRACE
7445	STD	4 ktrace
75#else
7645	UNIMPL	0 ktrace
77#endif
7846	STD	3 sigaction
7947	STD	0 getgid
8048	STD	2 sigprocmask
8149	STD	2 getlogin
8250	STD	1 setlogin
8351	STD	1 acct
8452	STD	0 sigpending
8553	STD	2 sigaltstack
8654	STD	3 ioctl
8755	STD	1 reboot
8856	STD	1 revoke
8957	STD	2 symlink
9058	STD	3 readlink
9159	STD	3 execve
9260	STD	1 umask
9361	STD	1 chroot
9462	COMPAT	2 fstat
9563	COMPAT	4 getkerninfo
9664	COMPAT	0 getpagesize
9765	STD	2 msync
9866	STD	0 vfork
9967	OBSOL	0 vread
10068	OBSOL	0 vwrite
10169	STD	1 sbrk
10270	STD	1 sstk
10371	COMPAT	7 mmap
10472	STD	1 ovadvise vadvise
10573	STD	2 munmap
10674	STD	3 mprotect
10775	STD	3 madvise
10876	OBSOL	0 vhangup
10977	OBSOL	0 vlimit
11078	STD	3 mincore
11179	STD	2 getgroups
11280	STD	2 setgroups
11381	STD	0 getpgrp
11482	STD	2 setpgid
11583	STD	3 setitimer
11684	COMPAT	0 wait
11785	STD	1 swapon
11886	STD	2 getitimer
11987	COMPAT	2 gethostname
12088	COMPAT	2 sethostname
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
140108	COMPAT	3 sigvec
141109	COMPAT	1 sigblock
142110	COMPAT	1 sigsetmask
143111	STD	1 sigsuspend
144112	COMPAT	2 sigstack
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
166126	COMPAT	2 setreuid
167127	COMPAT	2 setregid
168128	STD	2 rename
169129	COMPAT	2 truncate
170130	COMPAT	2 ftruncate
171131	STD	2 flock
172132	STD	2 mkfifo
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
182142	COMPAT	0 gethostid
183143	COMPAT	1 sethostid
184144	COMPAT	2 getrlimit
185145	COMPAT	2 setrlimit
186146	COMPAT	2 killpg
187147	STD	0 setsid
188148	STD	4 quotactl
189149	COMPAT	4 quota
190150	COMPAT	3 getsockname
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.)
195; Some of these calls are now supported by BSD...
196151	UNIMPL	0 nosys
197152	UNIMPL	0 nosys
198153	UNIMPL	0 nosys
199154	UNIMPL	0 nosys
200#ifdef NFS
201155	STD	2 nfssvc
202#else
203155	UNIMPL	0 nosys
204#endif
205156	COMPAT	4 getdirentries
206157	STD	2 statfs
207158	STD	2 fstatfs
208159	UNIMPL	0 nosys
209160	UNIMPL	0 nosys
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
219166	UNIMPL	0 nosys
220167	UNIMPL	0 nosys
221168	UNIMPL	0 nosys
222169	UNIMPL	0 nosys
223170	UNIMPL	0 nosys
224#ifdef SYSVSHM
225171	STD	4 shmsys
226#else
227171	UNIMPL	0 nosys
228#endif
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
239; Syscalls 180-199 are used by/reserved for BSD
240181	STD	1 setgid
241182	STD	1 setegid
242183	STD	1 seteuid
243#ifdef LFS
244184	STD	3 lfs_bmapv
245185	STD	3 lfs_markv
246186	STD	2 lfs_segclean
247187	STD	2 lfs_segwait
248#else
249184	UNIMPL	0 nosys
250185	UNIMPL	0 nosys
251186	UNIMPL	0 nosys
252187	UNIMPL	0 nosys
253#endif
254188	STD	2 stat
255189	STD	2 fstat
256190	STD	2 lstat
257191	STD	2 pathconf
258192	STD	2 fpathconf
259193	UNIMPL	0 nosys
260194	STD	2 getrlimit
261195	STD	2 setrlimit
262196	STD	4 getdirentries
263197	STD	8 mmap
264198	STD	0 nosys __syscall
265199	STD	5 lseek
266200	STD	4 truncate
267201	STD	4 ftruncate
268202	STD	6 __sysctl
269203	STD	2 mlock
270204	STD	2 munlock
271205	STD	1 unwhiteout
272206	UNIMPL	0 nosys
273207	UNIMPL	0 nosys
274208	UNIMPL	0 nosys
275209	UNIMPL	0 nosys
276210	UNIMPL	0 nosys
277