syscalls.master revision 1.18
1 	$Id: syscalls.master,v 1.18 1994/05/07 00:39:06 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	STD	0 nosys syscall
311	STD	1 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	COMPAT	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 access
6434	STD	2 chflags
6535	STD	2 fchflags
6636	STD	0 sync
6737	STD	2 kill
6838	COMPAT	2 stat
6939	STD	0 getppid
7040	COMPAT	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 acct
8652	STD	0 sigpending
8753	STD	2 sigaltstack
8854	STD	3 ioctl
8955	STD	1 reboot
9056	STD	1 revoke
9157	STD	2 symlink
9258	STD	3 readlink
9359	STD	3 execve
9460	STD	1 umask
9561	STD	1 chroot
9662	COMPAT	2 fstat
9763	COMPAT	4 getkerninfo
9864	COMPAT	0 getpagesize
9965	STD	2 msync
10066	STD	0 vfork
10167	OBSOL	0 vread
10268	OBSOL	0 vwrite
10369	STD	1 sbrk
10470	STD	1 sstk
10571	COMPAT	7 mmap
10672	STD	1 ovadvise vadvise
10773	STD	2 munmap
10874	STD	3 mprotect
10975	STD	3 madvise
11076	OBSOL	0 vhangup
11177	OBSOL	0 vlimit
11278	STD	3 mincore
11379	STD	2 getgroups
11480	STD	2 setgroups
11581	STD	0 getpgrp
11682	STD	2 setpgid
11783	STD	3 setitimer
11884	COMPAT	0 wait
11985	STD	1 swapon
12086	STD	2 getitimer
12187	COMPAT	2 gethostname
12288	COMPAT	2 sethostname
12389	STD	0 getdtablesize
12490	STD	2 dup2
12591	UNIMPL	2 getdopt
12692	STD	3 fcntl
12793	STD	5 select
12894	UNIMPL	2 setdopt
12995	STD	1 fsync
13096	STD	3 setpriority
13197	STD	3 socket
13298	STD	3 connect
13399	COMPAT	3 accept
134100	STD	2 getpriority
135101	COMPAT	4 send
136102	COMPAT	4 recv
137103	STD	1 sigreturn
138104	STD	3 bind
139105	STD	5 setsockopt
140106	STD	2 listen
141107	OBSOL	0 vtimes
142108	COMPAT	3 sigvec
143109	COMPAT	1 sigblock
144110	COMPAT	1 sigsetmask
145111	STD	1 sigsuspend
146112	COMPAT	2 sigstack
147113	COMPAT	3 recvmsg
148114	COMPAT	3 sendmsg
149#ifdef TRACE
150115	STD	2 vtrace
151#else
152115	OBSOL	2 vtrace
153#endif
154116	STD	2 gettimeofday
155117	STD	2 getrusage
156118	STD	5 getsockopt
157#ifdef vax
158119	STD	1 resuba
159#else
160119	UNIMPL	0 nosys
161#endif
162120	STD	3 readv
163121	STD	3 writev
164122	STD	2 settimeofday
165123	STD	3 fchown
166124	STD	2 fchmod
167125	COMPAT	6 recvfrom
168126	COMPAT	2 setreuid
169127	COMPAT	2 setregid
170128	STD	2 rename
171129	COMPAT	2 truncate
172130	COMPAT	2 ftruncate
173131	STD	2 flock
174132	STD	2 mkfifo
175133	STD	6 sendto
176134	STD	2 shutdown
177135	STD	5 socketpair
178136	STD	2 mkdir
179137	STD	1 rmdir
180138	STD	2 utimes
181139	OBSOL	0 4.2 sigreturn
182140	STD	2 adjtime
183141	COMPAT	3 getpeername
184142	COMPAT	0 gethostid
185143	COMPAT	1 sethostid
186144	COMPAT	2 getrlimit
187145	COMPAT	2 setrlimit
188146	COMPAT	2 killpg
189147	STD	0 setsid
190148	STD	4 quotactl
191149	COMPAT	4 quota
192150	COMPAT	3 getsockname
193
194; Syscalls 151-180 inclusive are reserved for vendor-specific
195; system calls.  (This includes various calls added for compatibity
196; with other Unix variants.)
197; Some of these calls are now supported by BSD...
198151	UNIMPL	0 nosys
199152	UNIMPL	0 nosys
200153	UNIMPL	0 nosys
201154	UNIMPL	0 nosys
202#if defined(NFSSERVER)
203155	STD	5 nfssvc
204#else
205155	UNIMPL	0 nosys
206#endif
207156	STD	4 getdirentries
208157	STD	2 statfs
209158	STD	2 fstatfs
210159	UNIMPL	0 nosys
211#ifdef NFSCLIENT
212160	STD	0 async_daemon
213161	STD	2 getfh
214#else
215160	UNIMPL	0 nosys
216161	UNIMPL	0 nosys
217#endif
218162	COMPAT	2 getdomainname
219163	COMPAT	2 setdomainname
220164	COMPAT	1 uname
221165	STD	2 sysarch
222166	UNIMPL	0 nosys
223167	UNIMPL	0 nosys
224168	UNIMPL	0 nosys
225#ifdef SYSVSEM
226169	STD	5 semsys
227#else
228169	UNIMPL	0 nosys
229#endif
230#ifdef SYSVMSG
231170	STD	6 msgsys
232#else
233170	UNIMPL	0 nosys
234#endif
235#ifdef SYSVSHM
236171	STD	4 shmsys
237#else
238171	UNIMPL	0 nosys
239#endif
240172	UNIMPL	0 nosys
241173	UNIMPL	0 nosys
242174	UNIMPL	0 nosys
243175	UNIMPL	0 nosys
244176	UNIMPL	0 nosys
245177	UNIMPL	0 nosys
246178	UNIMPL	0 nosys
247179	UNIMPL	0 nosys
248180	UNIMPL	0 nosys
249
250; Syscalls 180-199 are used by/reserved for BSD
251181	STD	1 setgid
252182	STD	1 setegid
253183	STD	1 seteuid
254#ifdef LFS
255184	STD	3 lfs_bmapv
256185	STD	3 lfs_markv
257186	STD	2 lfs_segclean
258187	STD	2 lfs_segwait
259#else
260184	UNIMPL	0 nosys
261185	UNIMPL	0 nosys
262186	UNIMPL	0 nosys
263187	UNIMPL	0 nosys
264#endif
265188	STD	2 stat
266189	STD	2 fstat
267190	STD	2 lstat
268191	STD	2 pathconf
269192	STD	2 fpathconf
270193	UNIMPL	0 nosys
271194	STD	2 getrlimit
272195	STD	2 setrlimit
273196	UNIMPL	0 nosys
274197	STD	8 mmap
275198	STD	0 nosys __syscall
276199	STD	5 lseek
277200	STD	4 truncate
278201	STD	4 ftruncate
279202	STD	6 __sysctl
280203	STD	2 mlock
281204	STD	2 munlock
282205	UNIMPL	0 nosys
283206	UNIMPL	0 nosys
284207	UNIMPL	0 nosys
285208	UNIMPL	0 nosys
286209	UNIMPL	0 nosys
287;
288; Syscalls 210-219 are reserved for dynamically loaded syscalls
289;
290#ifdef LKM
291210	NODEF	0 lkmnosys
292211	NODEF	0 lkmnosys
293212	NODEF	0 lkmnosys
294213	NODEF	0 lkmnosys
295214	NODEF	0 lkmnosys
296215	NODEF	0 lkmnosys
297216	NODEF	0 lkmnosys
298217	NODEF	0 lkmnosys
299218	NODEF	0 lkmnosys
300219	NODEF	0 lkmnosys
301#else	/* !LKM */
302210	UNIMPL	0 nosys
303211	UNIMPL	0 nosys
304212	UNIMPL	0 nosys
305213	UNIMPL	0 nosys
306214	UNIMPL	0 nosys
307215	UNIMPL	0 nosys
308216	UNIMPL	0 nosys
309217	UNIMPL	0 nosys
310218	UNIMPL	0 nosys
311219	UNIMPL	0 nosys
312#endif	/* !LKM */
313