xref: /original-bsd/sys/kern/syscalls.master (revision 6b3572dd)
1	@(#)syscalls.master	7.23 (Berkeley) 06/25/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;	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	UNIMPL	0 indir or out-of-range
291	STD	1 rexit 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	STD	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	STD	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 saccess access
6234	STD	2 chflags
6335	STD	2 fchflags
6436	STD	0 sync
6537	STD	2 kill
6638	STD	2 stat
6739	STD	0 getppid
6840	STD	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 sysacct acct
8452	STD	0 sigpending
85#ifdef notyet
8653	STD	3 sigaltstack
87#else
8853	UNIMPL	3 sigaltstack
89#endif
9054	STD	3 ioctl
9155	STD	1 reboot
9256	STD	1 revoke
9357	STD	2 symlink
9458	STD	3 readlink
9559	STD	3 execve
9660	STD	1 umask
9761	STD	1 chroot
9862	STD	2 fstat
9963	STD	4 getkerninfo
10064	STD	0 getpagesize
10165	STD	2 msync
10266	STD	0 vfork
10367	OBSOL	0 vread
10468	OBSOL	0 vwrite
10569	STD	1 sbrk
10670	STD	1 sstk
10771	STD	6 smmap mmap
10872	STD	1 ovadvise vadvise
10973	STD	2 munmap
11074	STD	3 mprotect
11175	STD	3 madvise
11276	COMPAT	0 vhangup
11377	OBSOL	0 vlimit
11478	STD	3 mincore
11579	STD	2 getgroups
11680	STD	2 setgroups
11781	STD	1 getpgrp
11882	STD	2 setpgrp
11983	STD	3 setitimer
12084	COMPAT	0 wait
12185	STD	1 swapon
12286	STD	2 getitimer
12387	STD	2 gethostname
12488	STD	2 sethostname
12589	STD	0 getdtablesize
12690	STD	2 dup2
12791	UNIMPL	2 getdopt
12892	STD	3 fcntl
12993	STD	5 select
13094	UNIMPL	2 setdopt
13195	STD	1 fsync
13296	STD	3 setpriority
13397	STD	3 socket
13498	STD	3 connect
13599	COMPAT	3 accept
136100	STD	2 getpriority
137101	COMPAT	4 send
138102	COMPAT	4 recv
139103	STD	1 sigreturn
140104	STD	3 bind
141105	STD	5 setsockopt
142106	STD	2 listen
143107	OBSOL	0 vtimes
144108	COMPAT	3 sigvec
145109	COMPAT	1 sigblock
146110	COMPAT	1 sigsetmask
147111	STD	1 sigsuspend
148112	STD	2 sigstack
149113	COMPAT	3 recvmsg
150114	COMPAT	3 sendmsg
151#ifdef TRACE
152115	STD	2 vtrace
153#else
154115	OBSOL	2 vtrace
155#endif
156116	STD	2 gettimeofday
157117	STD	2 getrusage
158118	STD	5 getsockopt
159#ifdef vax
160119	STD	1 resuba
161#else
162119	UNIMPL	0 nosys
163#endif
164120	STD	3 readv
165121	STD	3 writev
166122	STD	2 settimeofday
167123	STD	3 fchown
168124	STD	2 fchmod
169125	COMPAT	6 recvfrom
170126	LIBCOMPAT	2 setreuid
171127	LIBCOMPAT	2 setregid
172128	STD	2 rename
173129	STD	2 truncate
174130	STD	2 ftruncate
175131	STD	2 flock
176132	STD	2 mkfifo
177133	STD	6 sendto
178134	STD	2 shutdown
179135	STD	5 socketpair
180136	STD	2 mkdir
181137	STD	1 rmdir
182138	STD	2 utimes
183139	OBSOL	0 4.2 sigreturn
184140	STD	2 adjtime
185141	COMPAT	3 getpeername
186142	STD	0 gethostid
187143	STD	1 sethostid
188144	STD	2 getrlimit
189145	STD	2 setrlimit
190146	COMPAT	2 killpg
191147	STD	0 setsid
192148	STD	4 quotactl
193149	STD	4 oldquota quota
194150	COMPAT	3 getsockname
195
196; Syscalls 151-180 inclusive are reserved for vendor-specific
197; system calls.  (This includes various calls added for compatibity
198; with other Unix variants.)
199; Some of these calls are now supported by BSD...
200151	UNIMPL	0 nosys
201152	UNIMPL	0 nosys
202153	UNIMPL	0 nosys
203154	UNIMPL	0 nosys
204#ifdef NFS
205155	STD	5 nfssvc
206#else
207155	UNIMPL	0 nosys
208#endif
209156	STD	4 getdirentries
210157	STD	2 statfs
211158	STD	2 fstatfs
212159	UNIMPL	0 nosys
213#ifdef NFS
214160	STD	0 async_daemon
215161	STD	2 getfh
216#else
217160	UNIMPL	0 nosys
218161	UNIMPL	0 nosys
219#endif
220162	UNIMPL	0 nosys
221163	UNIMPL	0 nosys
222164	UNIMPL	0 nosys
223165	UNIMPL	0 nosys
224166	UNIMPL	0 nosys
225167	UNIMPL	0 nosys
226168	UNIMPL	0 nosys
227169	UNIMPL	0 nosys
228170	UNIMPL	0 nosys
229#ifdef SYSVSHM
230171	STD	4 shmsys
231#else
232171	UNIMPL	0 nosys
233#endif
234172	UNIMPL	0 nosys
235173	UNIMPL	0 nosys
236174	UNIMPL	0 nosys
237175	UNIMPL	0 nosys
238176	UNIMPL	0 nosys
239177	UNIMPL	0 nosys
240178	UNIMPL	0 nosys
241179	UNIMPL	0 nosys
242180	UNIMPL	0 nosys
243
244; Syscalls 180-199 are used by/reserved for BSD
245181	STD	1 setgid
246182	STD	1 setegid
247183	STD	1 seteuid
248184	UNIMPL	0 nosys
249185	UNIMPL	0 nosys
250186	UNIMPL	0 nosys
251187	UNIMPL	0 nosys
252188	UNIMPL	0 nosys
253189	UNIMPL	0 nosys
254190	UNIMPL	0 nosys
255