Commit | Line | Data |
---|---|---|
7856752d | 1 | @(#)syscalls.master 7.26 (Berkeley) %G% |
1c7df810 MK |
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 | |
b241e504 | 16 | ; LIBCOMPAT included on COMPAT #ifdef, and placed in syscall.h |
1c7df810 MK |
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 | ||
28 | 0 UNIMPL 0 indir or out-of-range | |
29 | 1 STD 1 rexit exit | |
30 | 2 STD 0 fork | |
31 | 3 STD 3 read | |
32 | 4 STD 3 write | |
33 | 5 STD 3 open | |
34 | 6 STD 1 close | |
35 | 7 STD 4 wait4 | |
b241e504 | 36 | 8 COMPAT 2 creat |
1c7df810 MK |
37 | 9 STD 2 link |
38 | 10 STD 1 unlink | |
7856752d | 39 | 11 OBSOL 2 execv |
1c7df810 | 40 | 12 STD 1 chdir |
6ef647f0 | 41 | 13 STD 1 fchdir |
1c7df810 MK |
42 | 14 STD 3 mknod |
43 | 15 STD 2 chmod | |
44 | 16 STD 3 chown | |
394edd7a | 45 | 17 STD 1 obreak break |
2f276b8d | 46 | 18 STD 3 getfsstat |
1c7df810 MK |
47 | 19 STD 3 lseek |
48 | 20 STD 0 getpid | |
eae0b4b4 KM |
49 | 21 STD 4 mount |
50 | 22 STD 2 unmount | |
b241e504 | 51 | 23 STD 1 setuid |
1c7df810 | 52 | 24 STD 0 getuid |
b241e504 | 53 | 25 STD 0 geteuid |
1c7df810 MK |
54 | 26 STD 4 ptrace |
55 | 27 STD 3 recvmsg | |
56 | 28 STD 3 sendmsg | |
57 | 29 STD 6 recvfrom | |
58 | 30 STD 3 accept | |
59 | 31 STD 3 getpeername | |
60 | 32 STD 3 getsockname | |
61 | 33 STD 2 saccess access | |
6ef647f0 KM |
62 | 34 STD 2 chflags |
63 | 35 STD 2 fchflags | |
1c7df810 MK |
64 | 36 STD 0 sync |
65 | 37 STD 2 kill | |
66 | 38 STD 2 stat | |
b241e504 | 67 | 39 STD 0 getppid |
1c7df810 MK |
68 | 40 STD 2 lstat |
69 | 41 STD 2 dup | |
70 | 42 STD 0 pipe | |
b241e504 | 71 | 43 STD 0 getegid |
1c7df810 MK |
72 | 44 STD 4 profil |
73 | #ifdef KTRACE | |
74 | 45 STD 4 ktrace | |
75 | #else | |
b241e504 | 76 | 45 UNIMPL 0 ktrace |
1c7df810 | 77 | #endif |
356b430b | 78 | 46 STD 3 sigaction |
1c7df810 | 79 | 47 STD 0 getgid |
356b430b | 80 | 48 STD 2 sigprocmask |
d41db73f | 81 | 49 STD 2 getlogin |
c355507c | 82 | 50 STD 1 setlogin |
1c7df810 | 83 | 51 STD 1 sysacct acct |
356b430b MK |
84 | 52 STD 0 sigpending |
85 | #ifdef notyet | |
86 | 53 STD 3 sigaltstack | |
87 | #else | |
88 | 53 UNIMPL 3 sigaltstack | |
89 | #endif | |
1c7df810 MK |
90 | 54 STD 3 ioctl |
91 | 55 STD 1 reboot | |
b241e504 | 92 | 56 STD 1 revoke |
1c7df810 MK |
93 | 57 STD 2 symlink |
94 | 58 STD 3 readlink | |
95 | 59 STD 3 execve | |
96 | 60 STD 1 umask | |
97 | 61 STD 1 chroot | |
98 | 62 STD 2 fstat | |
30afde50 | 99 | 63 STD 4 getkerninfo |
1c7df810 MK |
100 | 64 STD 0 getpagesize |
101 | 65 STD 2 msync | |
102 | 66 STD 0 vfork | |
103 | 67 OBSOL 0 vread | |
104 | 68 OBSOL 0 vwrite | |
105 | 69 STD 1 sbrk | |
106 | 70 STD 1 sstk | |
107 | 71 STD 6 smmap mmap | |
394edd7a | 108 | 72 STD 1 ovadvise vadvise |
1c7df810 MK |
109 | 73 STD 2 munmap |
110 | 74 STD 3 mprotect | |
111 | 75 STD 3 madvise | |
7856752d | 112 | 76 OBSOL 0 vhangup |
1c7df810 MK |
113 | 77 OBSOL 0 vlimit |
114 | 78 STD 3 mincore | |
115 | 79 STD 2 getgroups | |
116 | 80 STD 2 setgroups | |
117 | 81 STD 1 getpgrp | |
348b50f8 | 118 | 82 STD 2 setpgid |
1c7df810 MK |
119 | 83 STD 3 setitimer |
120 | 84 COMPAT 0 wait | |
121 | 85 STD 1 swapon | |
122 | 86 STD 2 getitimer | |
123 | 87 STD 2 gethostname | |
124 | 88 STD 2 sethostname | |
125 | 89 STD 0 getdtablesize | |
126 | 90 STD 2 dup2 | |
127 | 91 UNIMPL 2 getdopt | |
128 | 92 STD 3 fcntl | |
129 | 93 STD 5 select | |
130 | 94 UNIMPL 2 setdopt | |
131 | 95 STD 1 fsync | |
132 | 96 STD 3 setpriority | |
133 | 97 STD 3 socket | |
134 | 98 STD 3 connect | |
135 | 99 COMPAT 3 accept | |
136 | 100 STD 2 getpriority | |
137 | 101 COMPAT 4 send | |
138 | 102 COMPAT 4 recv | |
139 | 103 STD 1 sigreturn | |
140 | 104 STD 3 bind | |
141 | 105 STD 5 setsockopt | |
142 | 106 STD 2 listen | |
143 | 107 OBSOL 0 vtimes | |
356b430b MK |
144 | 108 COMPAT 3 sigvec |
145 | 109 COMPAT 1 sigblock | |
146 | 110 COMPAT 1 sigsetmask | |
147 | 111 STD 1 sigsuspend | |
1c7df810 MK |
148 | 112 STD 2 sigstack |
149 | 113 COMPAT 3 recvmsg | |
150 | 114 COMPAT 3 sendmsg | |
151 | #ifdef TRACE | |
152 | 115 STD 2 vtrace | |
153 | #else | |
154 | 115 OBSOL 2 vtrace | |
155 | #endif | |
156 | 116 STD 2 gettimeofday | |
157 | 117 STD 2 getrusage | |
158 | 118 STD 5 getsockopt | |
159 | #ifdef vax | |
160 | 119 STD 1 resuba | |
161 | #else | |
162 | 119 UNIMPL 0 nosys | |
163 | #endif | |
164 | 120 STD 3 readv | |
165 | 121 STD 3 writev | |
166 | 122 STD 2 settimeofday | |
167 | 123 STD 3 fchown | |
168 | 124 STD 2 fchmod | |
169 | 125 COMPAT 6 recvfrom | |
b241e504 MK |
170 | 126 LIBCOMPAT 2 setreuid |
171 | 127 LIBCOMPAT 2 setregid | |
1c7df810 MK |
172 | 128 STD 2 rename |
173 | 129 STD 2 truncate | |
174 | 130 STD 2 ftruncate | |
175 | 131 STD 2 flock | |
7df48543 | 176 | 132 STD 2 mkfifo |
1c7df810 MK |
177 | 133 STD 6 sendto |
178 | 134 STD 2 shutdown | |
179 | 135 STD 5 socketpair | |
180 | 136 STD 2 mkdir | |
181 | 137 STD 1 rmdir | |
182 | 138 STD 2 utimes | |
183 | 139 OBSOL 0 4.2 sigreturn | |
184 | 140 STD 2 adjtime | |
185 | 141 COMPAT 3 getpeername | |
186 | 142 STD 0 gethostid | |
187 | 143 STD 1 sethostid | |
188 | 144 STD 2 getrlimit | |
189 | 145 STD 2 setrlimit | |
356b430b | 190 | 146 COMPAT 2 killpg |
1c7df810 | 191 | 147 STD 0 setsid |
65a7a73b | 192 | 148 STD 4 quotactl |
7856752d | 193 | 149 COMPAT 4 quota |
1c7df810 | 194 | 150 COMPAT 3 getsockname |
cc7d9ee1 KM |
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.) | |
b241e504 | 199 | ; Some of these calls are now supported by BSD... |
cc7d9ee1 KM |
200 | 151 UNIMPL 0 nosys |
201 | 152 UNIMPL 0 nosys | |
eae0b4b4 KM |
202 | 153 UNIMPL 0 nosys |
203 | 154 UNIMPL 0 nosys | |
cc7d9ee1 | 204 | #ifdef NFS |
dcb0bd7b | 205 | 155 STD 5 nfssvc |
cc7d9ee1 | 206 | #else |
eae0b4b4 | 207 | 155 UNIMPL 0 nosys |
cc7d9ee1 | 208 | #endif |
eae0b4b4 KM |
209 | 156 STD 4 getdirentries |
210 | 157 STD 2 statfs | |
211 | 158 STD 2 fstatfs | |
cc7d9ee1 | 212 | 159 UNIMPL 0 nosys |
cc7d9ee1 | 213 | #ifdef NFS |
bffdb50f | 214 | 160 STD 0 async_daemon |
cc7d9ee1 KM |
215 | 161 STD 2 getfh |
216 | #else | |
bffdb50f | 217 | 160 UNIMPL 0 nosys |
cc7d9ee1 KM |
218 | 161 UNIMPL 0 nosys |
219 | #endif | |
220 | 162 UNIMPL 0 nosys | |
221 | 163 UNIMPL 0 nosys | |
222 | 164 UNIMPL 0 nosys | |
223 | 165 UNIMPL 0 nosys | |
cc7d9ee1 | 224 | 166 UNIMPL 0 nosys |
910ebf3e KM |
225 | 167 UNIMPL 0 nosys |
226 | 168 UNIMPL 0 nosys | |
227 | 169 UNIMPL 0 nosys | |
228 | 170 UNIMPL 0 nosys | |
47b2b388 KM |
229 | #ifdef SYSVSHM |
230 | 171 STD 4 shmsys | |
231 | #else | |
910ebf3e | 232 | 171 UNIMPL 0 nosys |
47b2b388 | 233 | #endif |
910ebf3e KM |
234 | 172 UNIMPL 0 nosys |
235 | 173 UNIMPL 0 nosys | |
236 | 174 UNIMPL 0 nosys | |
237 | 175 UNIMPL 0 nosys | |
238 | 176 UNIMPL 0 nosys | |
239 | 177 UNIMPL 0 nosys | |
240 | 178 UNIMPL 0 nosys | |
241 | 179 UNIMPL 0 nosys | |
242 | 180 UNIMPL 0 nosys | |
243 | ||
b241e504 MK |
244 | ; Syscalls 180-199 are used by/reserved for BSD |
245 | 181 STD 1 setgid | |
246 | 182 STD 1 setegid | |
247 | 183 STD 1 seteuid | |
910ebf3e KM |
248 | 184 UNIMPL 0 nosys |
249 | 185 UNIMPL 0 nosys | |
250 | 186 UNIMPL 0 nosys | |
251 | 187 UNIMPL 0 nosys | |
252 | 188 UNIMPL 0 nosys | |
253 | 189 UNIMPL 0 nosys | |
254 | 190 UNIMPL 0 nosys |