xref: /original-bsd/sys/kern/syscalls.master (revision 2bd07fe6)
1	@(#)syscalls.master	7.18 (Berkeley) 05/07/90
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;	OBSOL	obsolete, not included in system, only specifies name
17;	UNIMPL	not implemented, placeholder only
18
19; #ifdef's, etc. may be included, and are copied to the output files.
20
21; Reserved/unimplemented system calls in the range 0-150 inclusive
22; are reserved for use in future Berkeley releases.
23; Additional system calls implemented in vendor and other
24; redistributions should be placed in the reserved range at the end
25; of the current calls.
26
270	UNIMPL	0 indir or out-of-range
281	STD	1 rexit exit
292	STD	0 fork
303	STD	3 read
314	STD	3 write
325	STD	3 open
336	STD	1 close
347	STD	4 wait4
358	STD	2 creat
369	STD	2 link
3710	STD	1 unlink
3811	STD	2 execv
3912	STD	1 chdir
4013	STD	1 fchdir
4114	STD	3 mknod
4215	STD	2 chmod
4316	STD	3 chown
4417	STD	1 obreak
4518	STD	3 getfsstat
4619	STD	3 lseek
4720	STD	0 getpid
4821	STD	4 mount
4922	STD	2 unmount
5023	OBSOL	0 setuid
5124	STD	0 getuid
5225	OBSOL	0 stime
5326	STD	4 ptrace
5427	STD	3 recvmsg
5528	STD	3 sendmsg
5629	STD	6 recvfrom
5730	STD	3 accept
5831	STD	3 getpeername
5932	STD	3 getsockname
6033	STD	2 saccess access
6134	STD	2 chflags
6235	STD	2 fchflags
6336	STD	0 sync
6437	STD	2 kill
6538	STD	2 stat
6639	OBSOL	0 setpgrp
6740	STD	2 lstat
6841	STD	2 dup
6942	STD	0 pipe
7043	OBSOL	0 times
7144	STD	4 profil
72#ifdef KTRACE
7345	STD	4 ktrace
74#else
7545	UNIMPL	0 nosys
76#endif
7746	STD	3 sigaction
7847	STD	0 getgid
7948	STD	2 sigprocmask
8049	STD	2 getlogin
8150	STD	2 setlogin
8251	STD	1 sysacct acct
8352	STD	0 sigpending
84#ifdef notyet
8553	STD	3 sigaltstack
86#else
8753	UNIMPL	3 sigaltstack
88#endif
8954	STD	3 ioctl
9055	STD	1 reboot
9156	STD	2 revoke
9257	STD	2 symlink
9358	STD	3 readlink
9459	STD	3 execve
9560	STD	1 umask
9661	STD	1 chroot
9762	STD	2 fstat
9863	STD	4 getkerninfo
9964	STD	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	STD	6 smmap mmap
10772	STD	1 ovadvise
10873	STD	2 munmap
10974	STD	3 mprotect
11075	STD	3 madvise
11176	COMPAT	0 vhangup
11277	OBSOL	0 vlimit
11378	STD	3 mincore
11479	STD	2 getgroups
11580	STD	2 setgroups
11681	STD	1 getpgrp
11782	STD	2 setpgrp
11883	STD	3 setitimer
11984	COMPAT	0 wait
12085	STD	1 swapon
12186	STD	2 getitimer
12287	STD	2 gethostname
12388	STD	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	STD	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	STD	2 setreuid
170127	STD	2 setregid
171128	STD	2 rename
172129	STD	2 truncate
173130	STD	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	STD	0 gethostid
186143	STD	1 sethostid
187144	STD	2 getrlimit
188145	STD	2 setrlimit
189146	COMPAT	2 killpg
190147	STD	0 setsid
191148	STD	4 quotactl
192149	STD	4 oldquota 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.)
198151	UNIMPL	0 nosys
199152	UNIMPL	0 nosys
200153	UNIMPL	0 nosys
201154	UNIMPL	0 nosys
202#ifdef NFS
203155	STD	3 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 NFS
212160	STD	0 async_daemon
213161	STD	2 getfh
214#else
215160	UNIMPL	0 nosys
216161	UNIMPL	0 nosys
217#endif
218162	UNIMPL	0 nosys
219163	UNIMPL	0 nosys
220164	UNIMPL	0 nosys
221165	UNIMPL	0 nosys
222166	UNIMPL	0 nosys
223167	UNIMPL	0 nosys
224168	UNIMPL	0 nosys
225169	UNIMPL	0 nosys
226170	UNIMPL	0 nosys
227171	UNIMPL	0 nosys
228172	UNIMPL	0 nosys
229173	UNIMPL	0 nosys
230174	UNIMPL	0 nosys
231175	UNIMPL	0 nosys
232176	UNIMPL	0 nosys
233177	UNIMPL	0 nosys
234178	UNIMPL	0 nosys
235179	UNIMPL	0 nosys
236180	UNIMPL	0 nosys
237
238; Syscalls above 180 are used by BSD
239181	UNIMPL	0 nosys
240182	UNIMPL	0 nosys
241183	UNIMPL	0 nosys
242184	UNIMPL	0 nosys
243185	UNIMPL	0 nosys
244186	UNIMPL	0 nosys
245187	UNIMPL	0 nosys
246188	UNIMPL	0 nosys
247189	UNIMPL	0 nosys
248190	UNIMPL	0 nosys
249