1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
|
/*
* System call switch table.
*
* DO NOT EDIT-- this file is automatically generated.
* created from $Id: syscalls.master,v 1.12 1994/12/14 17:57:23 wollman Exp $
*/
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/sysent.h>
int nosys();
int exit();
int fork();
int read();
int write();
int open();
int close();
int wait4();
int link();
int unlink();
int chdir();
int fchdir();
int mknod();
int chmod();
int chown();
int obreak();
int getfsstat();
int getpid();
int mount();
int unmount();
int setuid();
int getuid();
int geteuid();
int ptrace();
int recvmsg();
int sendmsg();
int recvfrom();
int accept();
int getpeername();
int getsockname();
int access();
int chflags();
int fchflags();
int sync();
int kill();
int getppid();
int dup();
int pipe();
int getegid();
int profil();
#ifdef KTRACE
int ktrace();
#else
#endif
int sigaction();
int getgid();
int sigprocmask();
int getlogin();
int setlogin();
int acct();
int sigpending();
int sigaltstack();
int ioctl();
int reboot();
int revoke();
int symlink();
int readlink();
int execve();
int umask();
int chroot();
int msync();
int vfork();
int sbrk();
int sstk();
int ovadvise();
int munmap();
int mprotect();
int madvise();
int mincore();
int getgroups();
int setgroups();
int getpgrp();
int setpgid();
int setitimer();
int swapon();
int getitimer();
int getdtablesize();
int dup2();
int fcntl();
int select();
int fsync();
int setpriority();
int socket();
int connect();
int getpriority();
int sigreturn();
int bind();
int setsockopt();
int listen();
int sigsuspend();
#ifdef TRACE
int vtrace();
#else
#endif
int gettimeofday();
int getrusage();
int getsockopt();
#ifdef vax
int resuba();
#else
#endif
int readv();
int writev();
int settimeofday();
int fchown();
int fchmod();
int rename();
int flock();
int mkfifo();
int sendto();
int shutdown();
int socketpair();
int mkdir();
int rmdir();
int utimes();
int adjtime();
int setsid();
int quotactl();
#ifdef NFS
int nfssvc();
#else
#endif
int statfs();
int fstatfs();
#ifdef NFS
int getfh();
#else
#endif
int getdomainname();
int setdomainname();
int uname();
int sysarch();
int rtprio();
#ifdef SYSVSEM
int semsys();
#else
#endif
#ifdef SYSVMSG
int msgsys();
#else
#endif
#ifdef SYSVSHM
int shmsys();
#else
#endif
int ntp_adjtime();
int setgid();
int setegid();
int seteuid();
#ifdef LFS
int lfs_bmapv();
int lfs_markv();
int lfs_segclean();
int lfs_segwait();
#else
#endif
int stat();
int fstat();
int lstat();
int pathconf();
int fpathconf();
int getrlimit();
int setrlimit();
int getdirentries();
int mmap();
int lseek();
int truncate();
int ftruncate();
int __sysctl();
int mlock();
int munlock();
int lkmnosys();
#ifdef COMPAT_43
#define compat(n, name) n, __CONCAT(o,name)
int ocreat();
int olseek();
int ostat();
int olstat();
#ifdef KTRACE
#else
#endif
int ofstat();
int ogetkerninfo();
int ogetpagesize();
int ommap();
int owait();
int ogethostname();
int osethostname();
int oaccept();
int osend();
int orecv();
int osigvec();
int osigblock();
int osigsetmask();
int osigstack();
int orecvmsg();
int osendmsg();
#ifdef TRACE
#else
#endif
#ifdef vax
#else
#endif
int orecvfrom();
int osetreuid();
int osetregid();
int otruncate();
int oftruncate();
int ogetpeername();
int ogethostid();
int osethostid();
int ogetrlimit();
int osetrlimit();
int okillpg();
int oquota();
int ogetsockname();
#ifdef NFS
#else
#endif
int ogetdirentries();
#ifdef NFS
#else
#endif
#ifdef SYSVSEM
#else
#endif
#ifdef SYSVMSG
#else
#endif
#ifdef SYSVSHM
#else
#endif
#ifdef LFS
#else
#endif
#else /* COMPAT_43 */
#define compat(n, name) 0, nosys
#endif /* COMPAT_43 */
struct sysent sysent[] = {
{ 0, nosys }, /* 0 = syscall */
{ 1, exit }, /* 1 = exit */
{ 0, fork }, /* 2 = fork */
{ 3, read }, /* 3 = read */
{ 3, write }, /* 4 = write */
{ 3, open }, /* 5 = open */
{ 1, close }, /* 6 = close */
{ 4, wait4 }, /* 7 = wait4 */
{ compat(2,creat) }, /* 8 = old creat */
{ 2, link }, /* 9 = link */
{ 1, unlink }, /* 10 = unlink */
{ 0, nosys }, /* 11 = obsolete execv */
{ 1, chdir }, /* 12 = chdir */
{ 1, fchdir }, /* 13 = fchdir */
{ 3, mknod }, /* 14 = mknod */
{ 2, chmod }, /* 15 = chmod */
{ 3, chown }, /* 16 = chown */
{ 1, obreak }, /* 17 = break */
{ 3, getfsstat }, /* 18 = getfsstat */
{ compat(3,lseek) }, /* 19 = old lseek */
{ 0, getpid }, /* 20 = getpid */
{ 4, mount }, /* 21 = mount */
{ 2, unmount }, /* 22 = unmount */
{ 1, setuid }, /* 23 = setuid */
{ 0, getuid }, /* 24 = getuid */
{ 0, geteuid }, /* 25 = geteuid */
{ 4, ptrace }, /* 26 = ptrace */
{ 3, recvmsg }, /* 27 = recvmsg */
{ 3, sendmsg }, /* 28 = sendmsg */
{ 6, recvfrom }, /* 29 = recvfrom */
{ 3, accept }, /* 30 = accept */
{ 3, getpeername }, /* 31 = getpeername */
{ 3, getsockname }, /* 32 = getsockname */
{ 2, access }, /* 33 = access */
{ 2, chflags }, /* 34 = chflags */
{ 2, fchflags }, /* 35 = fchflags */
{ 0, sync }, /* 36 = sync */
{ 2, kill }, /* 37 = kill */
{ compat(2,stat) }, /* 38 = old stat */
{ 0, getppid }, /* 39 = getppid */
{ compat(2,lstat) }, /* 40 = old lstat */
{ 2, dup }, /* 41 = dup */
{ 0, pipe }, /* 42 = pipe */
{ 0, getegid }, /* 43 = getegid */
{ 4, profil }, /* 44 = profil */
#ifdef KTRACE
{ 4, ktrace }, /* 45 = ktrace */
#else
{ 0, nosys }, /* 45 = ktrace */
#endif
{ 3, sigaction }, /* 46 = sigaction */
{ 0, getgid }, /* 47 = getgid */
{ 2, sigprocmask }, /* 48 = sigprocmask */
{ 2, getlogin }, /* 49 = getlogin */
{ 1, setlogin }, /* 50 = setlogin */
{ 1, acct }, /* 51 = acct */
{ 0, sigpending }, /* 52 = sigpending */
{ 2, sigaltstack }, /* 53 = sigaltstack */
{ 3, ioctl }, /* 54 = ioctl */
{ 1, reboot }, /* 55 = reboot */
{ 1, revoke }, /* 56 = revoke */
{ 2, symlink }, /* 57 = symlink */
{ 3, readlink }, /* 58 = readlink */
{ 3, execve }, /* 59 = execve */
{ 1, umask }, /* 60 = umask */
{ 1, chroot }, /* 61 = chroot */
{ compat(2,fstat) }, /* 62 = old fstat */
{ compat(4,getkerninfo) }, /* 63 = old getkerninfo */
{ compat(0,getpagesize) }, /* 64 = old getpagesize */
{ 2, msync }, /* 65 = msync */
{ 0, vfork }, /* 66 = vfork */
{ 0, nosys }, /* 67 = obsolete vread */
{ 0, nosys }, /* 68 = obsolete vwrite */
{ 1, sbrk }, /* 69 = sbrk */
{ 1, sstk }, /* 70 = sstk */
{ compat(6,mmap) }, /* 71 = old mmap */
{ 1, ovadvise }, /* 72 = vadvise */
{ 2, munmap }, /* 73 = munmap */
{ 3, mprotect }, /* 74 = mprotect */
{ 3, madvise }, /* 75 = madvise */
{ 0, nosys }, /* 76 = obsolete vhangup */
{ 0, nosys }, /* 77 = obsolete vlimit */
{ 3, mincore }, /* 78 = mincore */
{ 2, getgroups }, /* 79 = getgroups */
{ 2, setgroups }, /* 80 = setgroups */
{ 0, getpgrp }, /* 81 = getpgrp */
{ 2, setpgid }, /* 82 = setpgid */
{ 3, setitimer }, /* 83 = setitimer */
{ compat(0,wait) }, /* 84 = old wait */
{ 1, swapon }, /* 85 = swapon */
{ 2, getitimer }, /* 86 = getitimer */
{ compat(2,gethostname) }, /* 87 = old gethostname */
{ compat(2,sethostname) }, /* 88 = old sethostname */
{ 0, getdtablesize }, /* 89 = getdtablesize */
{ 2, dup2 }, /* 90 = dup2 */
{ 0, nosys }, /* 91 = getdopt */
{ 3, fcntl }, /* 92 = fcntl */
{ 5, select }, /* 93 = select */
{ 0, nosys }, /* 94 = setdopt */
{ 1, fsync }, /* 95 = fsync */
{ 3, setpriority }, /* 96 = setpriority */
{ 3, socket }, /* 97 = socket */
{ 3, connect }, /* 98 = connect */
{ compat(3,accept) }, /* 99 = old accept */
{ 2, getpriority }, /* 100 = getpriority */
{ compat(4,send) }, /* 101 = old send */
{ compat(4,recv) }, /* 102 = old recv */
{ 1, sigreturn }, /* 103 = sigreturn */
{ 3, bind }, /* 104 = bind */
{ 5, setsockopt }, /* 105 = setsockopt */
{ 2, listen }, /* 106 = listen */
{ 0, nosys }, /* 107 = obsolete vtimes */
{ compat(3,sigvec) }, /* 108 = old sigvec */
{ compat(1,sigblock) }, /* 109 = old sigblock */
{ compat(1,sigsetmask) }, /* 110 = old sigsetmask */
{ 1, sigsuspend }, /* 111 = sigsuspend */
{ compat(2,sigstack) }, /* 112 = old sigstack */
{ compat(3,recvmsg) }, /* 113 = old recvmsg */
{ compat(3,sendmsg) }, /* 114 = old sendmsg */
#ifdef TRACE
{ 2, vtrace }, /* 115 = vtrace */
#else
{ 0, nosys }, /* 115 = obsolete vtrace */
#endif
{ 2, gettimeofday }, /* 116 = gettimeofday */
{ 2, getrusage }, /* 117 = getrusage */
{ 5, getsockopt }, /* 118 = getsockopt */
#ifdef vax
{ 1, resuba }, /* 119 = resuba */
#else
{ 0, nosys }, /* 119 = nosys */
#endif
{ 3, readv }, /* 120 = readv */
{ 3, writev }, /* 121 = writev */
{ 2, settimeofday }, /* 122 = settimeofday */
{ 3, fchown }, /* 123 = fchown */
{ 2, fchmod }, /* 124 = fchmod */
{ compat(6,recvfrom) }, /* 125 = old recvfrom */
{ compat(2,setreuid) }, /* 126 = old setreuid */
{ compat(2,setregid) }, /* 127 = old setregid */
{ 2, rename }, /* 128 = rename */
{ compat(2,truncate) }, /* 129 = old truncate */
{ compat(2,ftruncate) }, /* 130 = old ftruncate */
{ 2, flock }, /* 131 = flock */
{ 2, mkfifo }, /* 132 = mkfifo */
{ 6, sendto }, /* 133 = sendto */
{ 2, shutdown }, /* 134 = shutdown */
{ 5, socketpair }, /* 135 = socketpair */
{ 2, mkdir }, /* 136 = mkdir */
{ 1, rmdir }, /* 137 = rmdir */
{ 2, utimes }, /* 138 = utimes */
{ 0, nosys }, /* 139 = obsolete 4.2 sigreturn */
{ 2, adjtime }, /* 140 = adjtime */
{ compat(3,getpeername) }, /* 141 = old getpeername */
{ compat(0,gethostid) }, /* 142 = old gethostid */
{ compat(1,sethostid) }, /* 143 = old sethostid */
{ compat(2,getrlimit) }, /* 144 = old getrlimit */
{ compat(2,setrlimit) }, /* 145 = old setrlimit */
{ compat(2,killpg) }, /* 146 = old killpg */
{ 0, setsid }, /* 147 = setsid */
{ 4, quotactl }, /* 148 = quotactl */
{ compat(4,quota) }, /* 149 = old quota */
{ compat(3,getsockname) }, /* 150 = old getsockname */
{ 0, nosys }, /* 151 = nosys */
{ 0, nosys }, /* 152 = nosys */
{ 0, nosys }, /* 153 = nosys */
{ 0, nosys }, /* 154 = nosys */
#ifdef NFS
{ 2, nfssvc }, /* 155 = nfssvc */
#else
{ 0, nosys }, /* 155 = nosys */
#endif
{ compat(4,getdirentries) }, /* 156 = old getdirentries */
{ 2, statfs }, /* 157 = statfs */
{ 2, fstatfs }, /* 158 = fstatfs */
{ 0, nosys }, /* 159 = nosys */
{ 0, nosys }, /* 160 = nosys */
#ifdef NFS
{ 2, getfh }, /* 161 = getfh */
#else
{ 0, nosys }, /* 161 = nosys */
#endif
{ 2, getdomainname }, /* 162 = getdomainname */
{ 2, setdomainname }, /* 163 = setdomainname */
{ 1, uname }, /* 164 = uname */
{ 2, sysarch }, /* 165 = sysarch */
{ 3, rtprio }, /* 166 = rtprio */
{ 0, nosys }, /* 167 = nosys */
{ 0, nosys }, /* 168 = nosys */
#ifdef SYSVSEM
{ 5, semsys }, /* 169 = semsys */
#else
{ 0, nosys }, /* 169 = nosys */
#endif
#ifdef SYSVMSG
{ 6, msgsys }, /* 170 = msgsys */
#else
{ 0, nosys }, /* 170 = nosys */
#endif
#ifdef SYSVSHM
{ 4, shmsys }, /* 171 = shmsys */
#else
{ 0, nosys }, /* 171 = nosys */
#endif
{ 0, nosys }, /* 172 = nosys */
{ 0, nosys }, /* 173 = nosys */
{ 0, nosys }, /* 174 = nosys */
{ 0, nosys }, /* 175 = nosys */
{ 1, ntp_adjtime }, /* 176 = ntp_adjtime */
{ 0, nosys }, /* 177 = nosys */
{ 0, nosys }, /* 178 = nosys */
{ 0, nosys }, /* 179 = nosys */
{ 0, nosys }, /* 180 = nosys */
{ 1, setgid }, /* 181 = setgid */
{ 1, setegid }, /* 182 = setegid */
{ 1, seteuid }, /* 183 = seteuid */
#ifdef LFS
{ 3, lfs_bmapv }, /* 184 = lfs_bmapv */
{ 3, lfs_markv }, /* 185 = lfs_markv */
{ 2, lfs_segclean }, /* 186 = lfs_segclean */
{ 2, lfs_segwait }, /* 187 = lfs_segwait */
#else
{ 0, nosys }, /* 184 = nosys */
{ 0, nosys }, /* 185 = nosys */
{ 0, nosys }, /* 186 = nosys */
{ 0, nosys }, /* 187 = nosys */
#endif
{ 2, stat }, /* 188 = stat */
{ 2, fstat }, /* 189 = fstat */
{ 2, lstat }, /* 190 = lstat */
{ 2, pathconf }, /* 191 = pathconf */
{ 2, fpathconf }, /* 192 = fpathconf */
{ 0, nosys }, /* 193 = nosys */
{ 2, getrlimit }, /* 194 = getrlimit */
{ 2, setrlimit }, /* 195 = setrlimit */
{ 4, getdirentries }, /* 196 = getdirentries */
{ 8, mmap }, /* 197 = mmap */
{ 0, nosys }, /* 198 = __syscall */
{ 5, lseek }, /* 199 = lseek */
{ 4, truncate }, /* 200 = truncate */
{ 4, ftruncate }, /* 201 = ftruncate */
{ 6, __sysctl }, /* 202 = __sysctl */
{ 2, mlock }, /* 203 = mlock */
{ 2, munlock }, /* 204 = munlock */
{ 0, nosys }, /* 205 = nosys */
{ 0, nosys }, /* 206 = nosys */
{ 0, nosys }, /* 207 = nosys */
{ 0, nosys }, /* 208 = nosys */
{ 0, nosys }, /* 209 = nosys */
{ 0, lkmnosys }, /* 210 = lkmnosys */
{ 0, lkmnosys }, /* 211 = lkmnosys */
{ 0, lkmnosys }, /* 212 = lkmnosys */
{ 0, lkmnosys }, /* 213 = lkmnosys */
{ 0, lkmnosys }, /* 214 = lkmnosys */
{ 0, lkmnosys }, /* 215 = lkmnosys */
{ 0, lkmnosys }, /* 216 = lkmnosys */
{ 0, lkmnosys }, /* 217 = lkmnosys */
{ 0, lkmnosys }, /* 218 = lkmnosys */
{ 0, lkmnosys }, /* 219 = lkmnosys */
};
struct sysentvec aout_sysvec = {
sizeof (sysent) / sizeof (sysent[0]),
sysent,
0,
0,
0,
0,
0,
0
};
|