xref: /netbsd-src/sys/kern/syscalls.master (revision ae1bfcddc410612bc8c58b807e1830becb69a24c)
1 	$Id: syscalls.master,v 1.19 1994/05/17 00:00:46 cgd Exp $
2;	from: @(#)syscalls.master	7.26 (Berkeley) 3/25/91
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(NFSSERVER)
204155	STD	5 nfssvc
205#else
206155	UNIMPL	0 nosys
207#endif
208156	STD	4 getdirentries
209157	STD	2 statfs
210158	STD	2 fstatfs
211159	UNIMPL	0 nosys
212#ifdef NFSCLIENT
213160	STD	0 async_daemon
214161	STD	2 getfh
215#else
216160	UNIMPL	0 nosys
217161	UNIMPL	0 nosys
218#endif
219162	NCOMPAT	2 getdomainname
220163	NCOMPAT	2 setdomainname
221164	NCOMPAT	1 uname
222165	STD	2 sysarch
223166	UNIMPL	0 nosys
224167	UNIMPL	0 nosys
225168	UNIMPL	0 nosys
226#ifdef SYSVSEM
227169	STD	5 semsys
228#else
229169	UNIMPL	0 nosys
230#endif
231#ifdef SYSVMSG
232170	STD	6 msgsys
233#else
234170	UNIMPL	0 nosys
235#endif
236#ifdef SYSVSHM
237171	STD	4 shmsys
238#else
239171	UNIMPL	0 nosys
240#endif
241172	UNIMPL	0 nosys
242173	UNIMPL	0 nosys
243174	UNIMPL	0 nosys
244175	UNIMPL	0 nosys
245176	UNIMPL	0 nosys
246177	UNIMPL	0 nosys
247178	UNIMPL	0 nosys
248179	UNIMPL	0 nosys
249180	UNIMPL	0 nosys
250
251; Syscalls 180-199 are used by/reserved for BSD
252181	STD	1 setgid
253182	STD	1 setegid
254183	STD	1 seteuid
255#ifdef LFS
256184	STD	3 lfs_bmapv
257185	STD	3 lfs_markv
258186	STD	2 lfs_segclean
259187	STD	2 lfs_segwait
260#else
261184	UNIMPL	0 nosys
262185	UNIMPL	0 nosys
263186	UNIMPL	0 nosys
264187	UNIMPL	0 nosys
265#endif
266188	STD	2 stat
267189	STD	2 fstat
268190	STD	2 lstat
269191	STD	2 pathconf
270192	STD	2 fpathconf
271193	UNIMPL	0 nosys
272194	STD	2 getrlimit
273195	STD	2 setrlimit
274196	UNIMPL	0 nosys
275197	STD	8 mmap
276198	STD	0 nosys __syscall
277199	STD	5 lseek
278200	STD	4 truncate
279201	STD	4 ftruncate
280202	STD	6 __sysctl
281203	STD	2 mlock
282204	STD	2 munlock
283205	UNIMPL	0 nosys
284206	UNIMPL	0 nosys
285207	UNIMPL	0 nosys
286208	UNIMPL	0 nosys
287209	UNIMPL	0 nosys
288;
289; Syscalls 210-219 are reserved for dynamically loaded syscalls
290;
291#ifdef LKM
292210	NODEF	0 lkmnosys
293211	NODEF	0 lkmnosys
294212	NODEF	0 lkmnosys
295213	NODEF	0 lkmnosys
296214	NODEF	0 lkmnosys
297215	NODEF	0 lkmnosys
298216	NODEF	0 lkmnosys
299217	NODEF	0 lkmnosys
300218	NODEF	0 lkmnosys
301219	NODEF	0 lkmnosys
302#else	/* !LKM */
303210	UNIMPL	0 nosys
304211	UNIMPL	0 nosys
305212	UNIMPL	0 nosys
306213	UNIMPL	0 nosys
307214	UNIMPL	0 nosys
308215	UNIMPL	0 nosys
309216	UNIMPL	0 nosys
310217	UNIMPL	0 nosys
311218	UNIMPL	0 nosys
312219	UNIMPL	0 nosys
313#endif	/* !LKM */
314