xref: /netbsd-src/sys/kern/syscalls.master (revision cda4f8f6ee55684e8d311b86c99ea59191e6b74f)
1 	$Id: syscalls.master,v 1.6 1993/06/07 19:52:42 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
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;	UNIMPL	not implemented, placeholder only
21
22; #ifdef's, etc. may be included, and are copied to the output files.
23
24; Reserved/unimplemented system calls in the range 0-150 inclusive
25; are reserved for use in future Berkeley releases.
26; Additional system calls implemented in vendor and other
27; redistributions should be placed in the reserved range at the end
28; of the current calls.
29
300	UNIMPL	0 indir or out-of-range
311	STD	1 rexit exit
322	STD	0 fork
333	STD	3 read
344	STD	3 write
355	STD	3 open
366	STD	1 close
377	STD	4 wait4
388	COMPAT	2 creat
399	STD	2 link
4010	STD	1 unlink
4111	OBSOL	2 execv
4212	STD	1 chdir
4313	STD	1 fchdir
4414	STD	3 mknod
4515	STD	2 chmod
4616	STD	3 chown
4717	STD	1 obreak break
4818	STD	3 getfsstat
4919	STD	3 lseek
5020	STD	0 getpid
5121	STD	4 mount
5222	STD	2 unmount
5323	STD	1 setuid
5424	STD	0 getuid
5525	STD	0 geteuid
5626	STD	4 ptrace
5727	STD	3 recvmsg
5828	STD	3 sendmsg
5929	STD	6 recvfrom
6030	STD	3 accept
6131	STD	3 getpeername
6232	STD	3 getsockname
6333	STD	2 saccess access
6434	STD	2 chflags
6535	STD	2 fchflags
6636	STD	0 sync
6737	STD	2 kill
6838	STD	2 stat
6939	STD	0 getppid
7040	STD	2 lstat
7141	STD	2 dup
7242	STD	0 pipe
7343	STD	0 getegid
7444	STD	4 profil
75#ifdef KTRACE
7645	STD	4 ktrace
77#else
7845	UNIMPL	0 ktrace
79#endif
8046	STD	3 sigaction
8147	STD	0 getgid
8248	STD	2 sigprocmask
8349	STD	2 getlogin
8450	STD	1 setlogin
8551	STD	1 sysacct acct
8652	STD	0 sigpending
87#ifdef notyet
8853	STD	3 sigaltstack
89#else
9053	UNIMPL	3 sigaltstack
91#endif
9254	STD	3 ioctl
9355	STD	1 reboot
9456	STD	1 revoke
9557	STD	2 symlink
9658	STD	3 readlink
9759	STD	3 execve
9860	STD	1 umask
9961	STD	1 chroot
10062	STD	2 fstat
10163	STD	4 getkerninfo
10264	STD	0 getpagesize
10365	STD	2 msync
10466	STD	0 vfork
10567	OBSOL	0 vread
10668	OBSOL	0 vwrite
10769	STD	1 sbrk
10870	STD	1 sstk
10971	STD	6 smmap mmap
11072	STD	1 ovadvise vadvise
11173	STD	2 munmap
11274	STD	3 mprotect
11375	STD	3 madvise
11476	OBSOL	0 vhangup
11577	OBSOL	0 vlimit
11678	STD	3 mincore
11779	STD	2 getgroups
11880	STD	2 setgroups
11981	STD	0 getpgrp
12082	STD	2 setpgid
12183	STD	3 setitimer
12284	COMPAT	0 wait
12385	STD	1 swapon
12486	STD	2 getitimer
12587	STD	2 gethostname
12688	STD	2 sethostname
12789	STD	0 getdtablesize
12890	STD	2 dup2
12991	UNIMPL	2 getdopt
13092	STD	3 fcntl
13193	STD	5 select
13294	UNIMPL	2 setdopt
13395	STD	1 fsync
13496	STD	3 setpriority
13597	STD	3 socket
13698	STD	3 connect
13799	COMPAT	3 accept
138100	STD	2 getpriority
139101	COMPAT	4 send
140102	COMPAT	4 recv
141103	STD	1 sigreturn
142104	STD	3 bind
143105	STD	5 setsockopt
144106	STD	2 listen
145107	OBSOL	0 vtimes
146108	COMPAT	3 sigvec
147109	COMPAT	1 sigblock
148110	COMPAT	1 sigsetmask
149111	STD	1 sigsuspend
150112	STD	2 sigstack
151113	COMPAT	3 recvmsg
152114	COMPAT	3 sendmsg
153#ifdef TRACE
154115	STD	2 vtrace
155#else
156115	OBSOL	2 vtrace
157#endif
158116	STD	2 gettimeofday
159117	STD	2 getrusage
160118	STD	5 getsockopt
161#ifdef vax
162119	STD	1 resuba
163#else
164119	UNIMPL	0 nosys
165#endif
166120	STD	3 readv
167121	STD	3 writev
168122	STD	2 settimeofday
169123	STD	3 fchown
170124	STD	2 fchmod
171125	COMPAT	6 recvfrom
172126	LIBCOMPAT	2 setreuid
173127	LIBCOMPAT	2 setregid
174128	STD	2 rename
175129	STD	2 truncate
176130	STD	2 ftruncate
177131	STD	2 flock
178132	STD	2 mkfifo
179133	STD	6 sendto
180134	STD	2 shutdown
181135	STD	5 socketpair
182136	STD	2 mkdir
183137	STD	1 rmdir
184138	STD	2 utimes
185139	OBSOL	0 4.2 sigreturn
186140	STD	2 adjtime
187141	COMPAT	3 getpeername
188142	STD	0 gethostid
189143	STD	1 sethostid
190144	STD	2 getrlimit
191145	STD	2 setrlimit
192146	COMPAT	2 killpg
193147	STD	0 setsid
194148	STD	4 quotactl
195149	COMPAT	4 quota
196150	COMPAT	3 getsockname
197
198; Syscalls 151-180 inclusive are reserved for vendor-specific
199; system calls.  (This includes various calls added for compatibity
200; with other Unix variants.)
201; Some of these calls are now supported by BSD...
202151	UNIMPL	0 nosys
203152	UNIMPL	0 nosys
204153	UNIMPL	0 nosys
205154	UNIMPL	0 nosys
206#ifdef NFSSERVER
207155	STD	5 nfssvc
208#else
209155	UNIMPL	0 nosys
210#endif
211156	STD	4 getdirentries
212157	STD	2 statfs
213158	STD	2 fstatfs
214159	UNIMPL	0 nosys
215#ifdef NFSCLIENT
216160	STD	0 async_daemon
217161	STD	2 getfh
218#else
219160	UNIMPL	0 nosys
220161	UNIMPL	0 nosys
221#endif
222162	STD	2 getdomainname
223163	STD 	2 setdomainname
224164	STD	1 uname
225165	UNIMPL	0 nosys
226166	UNIMPL	0 nosys
227167	UNIMPL	0 nosys
228168	UNIMPL	0 nosys
229169	UNIMPL	0 nosys
230170	UNIMPL	0 nosys
231#ifdef SYSVSHM
232171	STD	4 shmsys
233#else
234171	UNIMPL	0 nosys
235#endif
236172	UNIMPL	0 nosys
237173	UNIMPL	0 nosys
238174	UNIMPL	0 nosys
239175	UNIMPL	0 nosys
240176	UNIMPL	0 nosys
241177	UNIMPL	0 nosys
242178	UNIMPL	0 nosys
243179	UNIMPL	0 nosys
244180	UNIMPL	0 nosys
245
246; Syscalls 180-199 are used by/reserved for BSD
247181	STD	1 setgid
248182	STD	1 setegid
249183	STD	1 seteuid
250184	UNIMPL	0 nosys
251185	UNIMPL	0 nosys
252186	UNIMPL	0 nosys
253187	UNIMPL	0 nosys
254188	UNIMPL	0 nosys
255189	UNIMPL	0 nosys
256190	UNIMPL	0 nosys
257191	UNIMPL	0 nosys
258192	UNIMPL	0 nosys
259193	UNIMPL	0 nosys
260194	UNIMPL	0 nosys
261195	UNIMPL	0 nosys
262196	UNIMPL	0 nosys
263197	UNIMPL	0 nosys
264198	UNIMPL	0 nosys
265199	UNIMPL	0 nosys
266;
267; Syscalls 200-109 are reserved for dynamically loaded syscalls
268;
269#ifdef LKM
270200	NODEF	0 lkmnosys
271201	NODEF	0 lkmnosys
272202	NODEF	0 lkmnosys
273203	NODEF	0 lkmnosys
274204	NODEF	0 lkmnosys
275205	NODEF	0 lkmnosys
276206	NODEF	0 lkmnosys
277207	NODEF	0 lkmnosys
278208	NODEF	0 lkmnosys
279209	NODEF	0 lkmnosys
280#else	/* !LKM */
281200	UNIMPL	0 nosys
282201	UNIMPL	0 nosys
283202	UNIMPL	0 nosys
284203	UNIMPL	0 nosys
285204	UNIMPL	0 nosys
286205	UNIMPL	0 nosys
287206	UNIMPL	0 nosys
288207	UNIMPL	0 nosys
289208	UNIMPL	0 nosys
290209	UNIMPL	0 nosys
291#endif	/* !LKM */
292