Commit | Line | Data |
---|---|---|
9e85cc83 | 1 | $Id: syscalls.master,v 1.8 1994/01/31 10:27:25 davidg Exp $ |
600f7f07 | 2 | ; from: @(#)syscalls.master 7.26 (Berkeley) 3/25/91 |
4f1093c3 NW |
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, 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 | ; UNIMPL not implemented, placeholder only | |
20 | ||
21 | ; #ifdef's, etc. may be included, and are copied to the output files. | |
22 | ||
23 | ; Reserved/unimplemented system calls in the range 0-150 inclusive | |
24 | ; are reserved for use in future Berkeley releases. | |
25 | ; Additional system calls implemented in vendor and other | |
26 | ; redistributions should be placed in the reserved range at the end | |
27 | ; of the current calls. | |
28 | ||
29 | 0 UNIMPL 0 indir or out-of-range | |
30 | 1 STD 1 rexit exit | |
31 | 2 STD 0 fork | |
32 | 3 STD 3 read | |
33 | 4 STD 3 write | |
34 | 5 STD 3 open | |
35 | 6 STD 1 close | |
36 | 7 STD 4 wait4 | |
37 | 8 COMPAT 2 creat | |
38 | 9 STD 2 link | |
39 | 10 STD 1 unlink | |
40 | 11 OBSOL 2 execv | |
41 | 12 STD 1 chdir | |
42 | 13 STD 1 fchdir | |
43 | 14 STD 3 mknod | |
44 | 15 STD 2 chmod | |
45 | 16 STD 3 chown | |
46 | 17 STD 1 obreak break | |
47 | 18 STD 3 getfsstat | |
48 | 19 STD 3 lseek | |
49 | 20 STD 0 getpid | |
50 | 21 STD 4 mount | |
51 | 22 STD 2 unmount | |
52 | 23 STD 1 setuid | |
53 | 24 STD 0 getuid | |
54 | 25 STD 0 geteuid | |
55 | 26 STD 4 ptrace | |
56 | 27 STD 3 recvmsg | |
57 | 28 STD 3 sendmsg | |
58 | 29 STD 6 recvfrom | |
59 | 30 STD 3 accept | |
60 | 31 STD 3 getpeername | |
61 | 32 STD 3 getsockname | |
62 | 33 STD 2 saccess access | |
63 | 34 STD 2 chflags | |
64 | 35 STD 2 fchflags | |
65 | 36 STD 0 sync | |
66 | 37 STD 2 kill | |
67 | 38 STD 2 stat | |
68 | 39 STD 0 getppid | |
69 | 40 STD 2 lstat | |
70 | 41 STD 2 dup | |
71 | 42 STD 0 pipe | |
72 | 43 STD 0 getegid | |
73 | 44 STD 4 profil | |
74 | #ifdef KTRACE | |
75 | 45 STD 4 ktrace | |
76 | #else | |
77 | 45 UNIMPL 0 ktrace | |
78 | #endif | |
79 | 46 STD 3 sigaction | |
80 | 47 STD 0 getgid | |
81 | 48 STD 2 sigprocmask | |
82 | 49 STD 2 getlogin | |
83 | 50 STD 1 setlogin | |
84 | 51 STD 1 sysacct acct | |
85 | 52 STD 0 sigpending | |
86 | #ifdef notyet | |
87 | 53 STD 3 sigaltstack | |
88 | #else | |
89 | 53 UNIMPL 3 sigaltstack | |
90 | #endif | |
91 | 54 STD 3 ioctl | |
92 | 55 STD 1 reboot | |
93 | 56 STD 1 revoke | |
94 | 57 STD 2 symlink | |
95 | 58 STD 3 readlink | |
96 | 59 STD 3 execve | |
97 | 60 STD 1 umask | |
98 | 61 STD 1 chroot | |
99 | 62 STD 2 fstat | |
100 | 63 STD 4 getkerninfo | |
101 | 64 STD 0 getpagesize | |
102 | 65 STD 2 msync | |
103 | 66 STD 0 vfork | |
104 | 67 OBSOL 0 vread | |
105 | 68 OBSOL 0 vwrite | |
106 | 69 STD 1 sbrk | |
107 | 70 STD 1 sstk | |
108 | 71 STD 6 smmap mmap | |
109 | 72 STD 1 ovadvise vadvise | |
110 | 73 STD 2 munmap | |
111 | 74 STD 3 mprotect | |
112 | 75 STD 3 madvise | |
113 | 76 OBSOL 0 vhangup | |
114 | 77 OBSOL 0 vlimit | |
115 | 78 STD 3 mincore | |
116 | 79 STD 2 getgroups | |
117 | 80 STD 2 setgroups | |
e866db7c | 118 | 81 STD 0 getpgrp |
4f1093c3 NW |
119 | 82 STD 2 setpgid |
120 | 83 STD 3 setitimer | |
121 | 84 COMPAT 0 wait | |
122 | 85 STD 1 swapon | |
123 | 86 STD 2 getitimer | |
124 | 87 STD 2 gethostname | |
125 | 88 STD 2 sethostname | |
126 | 89 STD 0 getdtablesize | |
127 | 90 STD 2 dup2 | |
128 | 91 UNIMPL 2 getdopt | |
129 | 92 STD 3 fcntl | |
130 | 93 STD 5 select | |
131 | 94 UNIMPL 2 setdopt | |
132 | 95 STD 1 fsync | |
133 | 96 STD 3 setpriority | |
134 | 97 STD 3 socket | |
135 | 98 STD 3 connect | |
136 | 99 COMPAT 3 accept | |
137 | 100 STD 2 getpriority | |
138 | 101 COMPAT 4 send | |
139 | 102 COMPAT 4 recv | |
140 | 103 STD 1 sigreturn | |
141 | 104 STD 3 bind | |
142 | 105 STD 5 setsockopt | |
143 | 106 STD 2 listen | |
144 | 107 OBSOL 0 vtimes | |
145 | 108 COMPAT 3 sigvec | |
146 | 109 COMPAT 1 sigblock | |
147 | 110 COMPAT 1 sigsetmask | |
148 | 111 STD 1 sigsuspend | |
149 | 112 STD 2 sigstack | |
150 | 113 COMPAT 3 recvmsg | |
151 | 114 COMPAT 3 sendmsg | |
152 | #ifdef TRACE | |
153 | 115 STD 2 vtrace | |
154 | #else | |
155 | 115 OBSOL 2 vtrace | |
156 | #endif | |
157 | 116 STD 2 gettimeofday | |
158 | 117 STD 2 getrusage | |
159 | 118 STD 5 getsockopt | |
160 | #ifdef vax | |
161 | 119 STD 1 resuba | |
162 | #else | |
163 | 119 UNIMPL 0 nosys | |
164 | #endif | |
165 | 120 STD 3 readv | |
166 | 121 STD 3 writev | |
167 | 122 STD 2 settimeofday | |
168 | 123 STD 3 fchown | |
169 | 124 STD 2 fchmod | |
170 | 125 COMPAT 6 recvfrom | |
171 | 126 LIBCOMPAT 2 setreuid | |
172 | 127 LIBCOMPAT 2 setregid | |
173 | 128 STD 2 rename | |
174 | 129 STD 2 truncate | |
175 | 130 STD 2 ftruncate | |
176 | 131 STD 2 flock | |
177 | 132 STD 2 mkfifo | |
178 | 133 STD 6 sendto | |
179 | 134 STD 2 shutdown | |
180 | 135 STD 5 socketpair | |
181 | 136 STD 2 mkdir | |
182 | 137 STD 1 rmdir | |
183 | 138 STD 2 utimes | |
184 | 139 OBSOL 0 4.2 sigreturn | |
185 | 140 STD 2 adjtime | |
186 | 141 COMPAT 3 getpeername | |
187 | 142 STD 0 gethostid | |
188 | 143 STD 1 sethostid | |
189 | 144 STD 2 getrlimit | |
190 | 145 STD 2 setrlimit | |
191 | 146 COMPAT 2 killpg | |
192 | 147 STD 0 setsid | |
193 | 148 STD 4 quotactl | |
194 | 149 COMPAT 4 quota | |
195 | 150 COMPAT 3 getsockname | |
196 | ||
197 | ; Syscalls 151-180 inclusive are reserved for vendor-specific | |
198 | ; system calls. (This includes various calls added for compatibity | |
199 | ; with other Unix variants.) | |
200 | ; Some of these calls are now supported by BSD... | |
201 | 151 UNIMPL 0 nosys | |
202 | 152 UNIMPL 0 nosys | |
203 | 153 UNIMPL 0 nosys | |
204 | 154 UNIMPL 0 nosys | |
205 | #ifdef NFS | |
206 | 155 STD 5 nfssvc | |
207 | #else | |
208 | 155 UNIMPL 0 nosys | |
209 | #endif | |
210 | 156 STD 4 getdirentries | |
211 | 157 STD 2 statfs | |
212 | 158 STD 2 fstatfs | |
213 | 159 UNIMPL 0 nosys | |
214 | #ifdef NFS | |
215 | 160 STD 0 async_daemon | |
216 | 161 STD 2 getfh | |
217 | #else | |
218 | 160 UNIMPL 0 nosys | |
219 | 161 UNIMPL 0 nosys | |
220 | #endif | |
d0b34ea8 PR |
221 | 162 STD 2 getdomainname |
222 | 163 STD 2 setdomainname | |
5da574a1 | 223 | 164 STD 1 uname |
888d0c79 | 224 | 165 STD 2 sysarch |
4f1093c3 NW |
225 | 166 UNIMPL 0 nosys |
226 | 167 UNIMPL 0 nosys | |
227 | 168 UNIMPL 0 nosys | |
24fd64ab DG |
228 | #ifdef SYSVSEM |
229 | 169 STD 5 semsys | |
230 | #else | |
4f1093c3 | 231 | 169 UNIMPL 0 nosys |
24fd64ab DG |
232 | #endif |
233 | #ifdef SYSVMSG | |
234 | 170 STD 6 msgsys | |
235 | #else | |
4f1093c3 | 236 | 170 UNIMPL 0 nosys |
24fd64ab | 237 | #endif |
4f1093c3 NW |
238 | #ifdef SYSVSHM |
239 | 171 STD 4 shmsys | |
240 | #else | |
241 | 171 UNIMPL 0 nosys | |
242 | #endif | |
243 | 172 UNIMPL 0 nosys | |
244 | 173 UNIMPL 0 nosys | |
245 | 174 UNIMPL 0 nosys | |
9e85cc83 GW |
246 | 175 STD 1 ntp_gettime |
247 | 176 STD 1 ntp_adjtime | |
495867ae GW |
248 | #ifdef MACHVMCOMPAT |
249 | 177 STD 4 svm_allocate vm_allocate | |
250 | 178 STD 3 svm_deallocate vm_deallocate | |
251 | 179 STD 4 svm_inherit vm_inherit | |
252 | 180 STD 5 svm_protect vm_protect | |
253 | #else | |
4f1093c3 NW |
254 | 177 UNIMPL 0 nosys |
255 | 178 UNIMPL 0 nosys | |
256 | 179 UNIMPL 0 nosys | |
257 | 180 UNIMPL 0 nosys | |
495867ae | 258 | #endif |
4f1093c3 NW |
259 | |
260 | ; Syscalls 180-199 are used by/reserved for BSD | |
261 | 181 STD 1 setgid | |
262 | 182 STD 1 setegid | |
263 | 183 STD 1 seteuid | |
264 | 184 UNIMPL 0 nosys | |
265 | 185 UNIMPL 0 nosys | |
266 | 186 UNIMPL 0 nosys | |
267 | 187 UNIMPL 0 nosys | |
268 | 188 UNIMPL 0 nosys | |
269 | 189 UNIMPL 0 nosys | |
270 | 190 UNIMPL 0 nosys |