blob: a4d7af33a30782321fa697310999687f9f274820 [file] [log] [blame]
Roland McGrath6d1a65c2004-07-12 07:44:08 +00001/*
2 * Copyright (c) 1993, 1994, 1995 Rick Sladkey <jrs@world.std.com>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in the
12 * documentation and/or other materials provided with the distribution.
13 * 3. The name of the author may not be used to endorse or promote products
14 * derived from this software without specific prior written permission.
15 *
16 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
17 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
18 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
19 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
20 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
21 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 *
27 * $Id$
28 */
29
30#define SOLARIS_syscall 0
31#define SOLARIS_exit 1
32#define SOLARIS_fork 2
33#define SOLARIS_read 3
34#define SOLARIS_write 4
35#define SOLARIS_open 5
36#define SOLARIS_close 6
37#define SOLARIS_wait 7
38#define SOLARIS_creat 8
39#define SOLARIS_link 9
40#define SOLARIS_unlink 10
41#define SOLARIS_exec 11
42#define SOLARIS_chdir 12
43#define SOLARIS_time 13
44#define SOLARIS_mknod 14
45#define SOLARIS_chmod 15
46#define SOLARIS_chown 16
47#define SOLARIS_brk 17
48#define SOLARIS_stat 18
49#define SOLARIS_lseek 19
50#define SOLARIS_getpid 20
51#define SOLARIS_mount 21
52#define SOLARIS_umount 22
53#define SOLARIS_setuid 23
54#define SOLARIS_getuid 24
55#define SOLARIS_stime 25
56#define SOLARIS_ptrace 26
57#define SOLARIS_alarm 27
58#define SOLARIS_fstat 28
59#define SOLARIS_pause 29
60#define SOLARIS_utime 30
61#define SOLARIS_stty 31
62#define SOLARIS_gtty 32
63#define SOLARIS_access 33
64#define SOLARIS_nice 34
65#define SOLARIS_statfs 35
66#define SOLARIS_sync 36
67#define SOLARIS_kill 37
68#define SOLARIS_fstatfs 38
69#define SOLARIS_pgrpsys 39
70#define SOLARIS_xenix 40
71#define SOLARIS_dup 41
72#define SOLARIS_pipe 42
73#define SOLARIS_times 43
74#define SOLARIS_profil 44
75#define SOLARIS_plock 45
76#define SOLARIS_setgid 46
77#define SOLARIS_getgid 47
78#define SOLARIS_signal 48
79#define SOLARIS_msgsys 49
80#define SOLARIS_syssun 50
81#define SOLARIS_acct 51
82#define SOLARIS_shmsys 52
83#define SOLARIS_semsys 53
84#define SOLARIS_ioctl 54
85#define SOLARIS_uadmin 55
86#define SOLARIS_utssys 57
87#define SOLARIS_fdsync 58
88#define SOLARIS_execve 59
89#define SOLARIS_umask 60
90#define SOLARIS_chroot 61
91#define SOLARIS_fcntl 62
92#define SOLARIS_ulimit 63
93#define SOLARIS_rmdir 79
94#define SOLARIS_mkdir 80
95#define SOLARIS_getdents 81
96#define SOLARIS_sysfs 84
97#define SOLARIS_getmsg 85
98#define SOLARIS_putmsg 86
99#define SOLARIS_poll 87
100#define SOLARIS_lstat 88
101#define SOLARIS_symlink 89
102#define SOLARIS_readlink 90
103#define SOLARIS_setgroups 91
104#define SOLARIS_getgroups 92
105#define SOLARIS_fchmod 93
106#define SOLARIS_fchown 94
107#define SOLARIS_sigprocmask 95
108#define SOLARIS_sigsuspend 96
109#define SOLARIS_sigaltstack 97
110#define SOLARIS_sigaction 98
111#define SOLARIS_sigpending 99
112#define SOLARIS_context 100
113#define SOLARIS_evsys 101
114#define SOLARIS_evtrapret 102
115#define SOLARIS_statvfs 103
116#define SOLARIS_fstatvfs 104
117#define SOLARIS_nfssys 106
118#define SOLARIS_waitsys 107
119#define SOLARIS_sigsendsys 108
120#define SOLARIS_hrtsys 109
121#define SOLARIS_acancel 110
122#define SOLARIS_async 111
123#define SOLARIS_priocntlsys 112
124#define SOLARIS_pathconf 113
125#define SOLARIS_mincore 114
126#define SOLARIS_mmap 115
127#define SOLARIS_mprotect 116
128#define SOLARIS_munmap 117
129#define SOLARIS_fpathconf 118
130#define SOLARIS_vfork 119
131#define SOLARIS_fchdir 120
132#define SOLARIS_readv 121
133#define SOLARIS_writev 122
134#define SOLARIS_xstat 123
135#define SOLARIS_lxstat 124
136#define SOLARIS_fxstat 125
137#define SOLARIS_xmknod 126
138#define SOLARIS_clocal 127
139#define SOLARIS_setrlimit 128
140#define SOLARIS_getrlimit 129
141#define SOLARIS_lchown 130
142#define SOLARIS_memcntl 131
143#define SOLARIS_getpmsg 132
144#define SOLARIS_putpmsg 133
145#define SOLARIS_rename 134
146#define SOLARIS_uname 135
147#define SOLARIS_setegid 136
148#define SOLARIS_sysconfig 137
149#define SOLARIS_adjtime 138
150#define SOLARIS_systeminfo 139
151#define SOLARIS_seteuid 141
152#define SOLARIS_vtrace 142
153#define SOLARIS_fork1 143
154#define SOLARIS_sigtimedwait 144
155#define SOLARIS_lwp_info 145
156#define SOLARIS_yield 146
157#define SOLARIS_lwp_sema_wait 147
158#define SOLARIS_lwp_sema_post 148
159#define SOLARIS_modctl 152
160#define SOLARIS_fchroot 153
161#define SOLARIS_utimes 154
162#define SOLARIS_vhangup 155
163#define SOLARIS_gettimeofday 156
164#define SOLARIS_getitimer 157
165#define SOLARIS_setitimer 158
166#define SOLARIS_lwp_create 159
167#define SOLARIS_lwp_exit 160
168#define SOLARIS_lwp_suspend 161
169#define SOLARIS_lwp_continue 162
170#define SOLARIS_lwp_kill 163
171#define SOLARIS_lwp_self 164
172#define SOLARIS_lwp_setprivate 165
173#define SOLARIS_lwp_getprivate 166
174#define SOLARIS_lwp_wait 167
175#define SOLARIS_lwp_mutex_unlock 168
176#define SOLARIS_lwp_mutex_lock 169
177#define SOLARIS_lwp_cond_wait 170
178#define SOLARIS_lwp_cond_signal 171
179#define SOLARIS_lwp_cond_broadcast 172
180#define SOLARIS_pread 173
181#define SOLARIS_pwrite 174
182#define SOLARIS_llseek 175
183#define SOLARIS_inst_sync 176
184#define SOLARIS_kaio 178
185#define SOLARIS_tsolsys 184
186#define SOLARIS_acl 185
187#define SOLARIS_auditsys 186
188#define SOLARIS_processor_bind 187
189#define SOLARIS_processor_info 188
190#define SOLARIS_p_online 189
191#define SOLARIS_sigqueue 190
192#define SOLARIS_clock_gettime 191
193#define SOLARIS_clock_settime 192
194#define SOLARIS_clock_getres 193
195#define SOLARIS_timer_create 194
196#define SOLARIS_timer_delete 195
197#define SOLARIS_timer_settime 196
198#define SOLARIS_timer_gettime 197
199#define SOLARIS_timer_getoverrun 198
200#define SOLARIS_nanosleep 199
201#define SOLARIS_facl 200
202#define SOLARIS_door 201
203#define SOLARIS_setreuid 202
204#define SOLARIS_setregid 203
205#define SOLARIS_signotifywait 210
206#define SOLARIS_lwp_sigredirect 211
207#define SOLARIS_lwp_alarm 212
208
209#include "dummy2.h"
210
211extern int solaris_syscall();
212extern int solaris_exit();
213extern int solaris_fork();
214extern int solaris_read();
215extern int solaris_write();
216extern int solaris_open();
217extern int solaris_close();
218extern int solaris_wait();
219extern int solaris_creat();
220extern int solaris_link();
221extern int solaris_unlink();
222extern int solaris_exec();
223extern int solaris_chdir();
224extern int solaris_time();
225extern int solaris_mknod();
226extern int solaris_chmod();
227extern int solaris_chown();
228extern int solaris_brk();
229extern int solaris_stat();
230extern int solaris_lseek();
231extern int solaris_getpid();
232extern int solaris_mount();
233extern int solaris_umount();
234extern int solaris_setuid();
235extern int solaris_getuid();
236extern int solaris_stime();
237extern int solaris_ptrace();
238extern int solaris_alarm();
239extern int solaris_fstat();
240extern int solaris_pause();
241extern int solaris_utime();
242extern int solaris_stty();
243extern int solaris_gtty();
244extern int solaris_access();
245extern int solaris_nice();
246extern int solaris_statfs();
247extern int solaris_sync();
248extern int solaris_kill();
249extern int solaris_fstatfs();
250extern int solaris_pgrpsys();
251extern int solaris_setpgrp();
252extern int solaris_xenix();
253extern int solaris_syssgi();
254extern int solaris_dup();
255extern int solaris_pipe();
256extern int solaris_times();
257extern int solaris_profil();
258extern int solaris_plock();
259extern int solaris_setgid();
260extern int solaris_getgid();
261extern int solaris_sigcall();
262extern int solaris_msgsys();
263extern int solaris_syssun();
264extern int solaris_sysi86();
265extern int solaris_sysmips();
266extern int solaris_sysmachine();
267extern int solaris_acct();
268extern int solaris_shmsys();
269extern int solaris_semsys();
270extern int solaris_ioctl();
271extern int solaris_uadmin();
272extern int solaris_utssys();
273extern int solaris_fdsync();
274extern int solaris_execve();
275extern int solaris_umask();
276extern int solaris_chroot();
277extern int solaris_fcntl();
278extern int solaris_ulimit();
279extern int solaris_rmdir();
280extern int solaris_mkdir();
281extern int solaris_getdents();
282extern int solaris_sysfs();
283extern int solaris_getmsg();
284extern int solaris_putmsg();
285extern int solaris_poll();
286extern int solaris_lstat();
287extern int solaris_symlink();
288extern int solaris_readlink();
289extern int solaris_setgroups();
290extern int solaris_getgroups();
291extern int solaris_fchmod();
292extern int solaris_fchown();
293extern int solaris_sigprocmask();
294extern int solaris_sigsuspend();
295extern int solaris_sigaltstack();
296extern int solaris_sigaction();
297extern int solaris_spcall();
298extern int solaris_context();
299extern int solaris_evsys();
300extern int solaris_evtrapret();
301extern int solaris_statvfs();
302extern int solaris_fstatvfs();
303extern int solaris_nfssys();
304extern int solaris_waitid();
305extern int solaris_sigsendsys();
306extern int solaris_hrtsys();
307extern int solaris_acancel();
308extern int solaris_async();
309extern int solaris_priocntlsys();
310extern int solaris_pathconf();
311extern int solaris_mincore();
312extern int solaris_mmap();
313extern int solaris_mprotect();
314extern int solaris_munmap();
315extern int solaris_fpathconf();
316extern int solaris_vfork();
317extern int solaris_fchdir();
318extern int solaris_readv();
319extern int solaris_writev();
320extern int solaris_xstat();
321extern int solaris_lxstat();
322extern int solaris_fxstat();
323extern int solaris_xmknod();
324extern int solaris_clocal();
325extern int solaris_setrlimit();
326extern int solaris_getrlimit();
327extern int solaris_lchown();
328extern int solaris_memcntl();
329extern int solaris_getpmsg();
330extern int solaris_putpmsg();
331extern int solaris_rename();
332extern int solaris_uname();
333extern int solaris_setegid();
334extern int solaris_sysconfig();
335extern int solaris_adjtime();
336extern int solaris_sysinfo();
337extern int solaris_seteuid();
338extern int solaris_vtrace();
339extern int solaris_fork1();
340extern int solaris_sigtimedwait();
341extern int solaris_lwp_info();
342extern int solaris_yield();
343extern int solaris_lwp_sema_wait();
344extern int solaris_lwp_sema_post();
345extern int solaris_modctl();
346extern int solaris_fchroot();
347extern int solaris_utimes();
348extern int solaris_vhangup();
349extern int solaris_gettimeofday();
350extern int solaris_getitimer();
351extern int solaris_setitimer();
352extern int solaris_lwp_create();
353extern int solaris_lwp_exit();
354extern int solaris_lwp_suspend();
355extern int solaris_lwp_continue();
356extern int solaris_lwp_kill();
357extern int solaris_lwp_self();
358extern int solaris_lwp_setprivate();
359extern int solaris_lwp_getprivate();
360extern int solaris_lwp_wait();
361extern int solaris_lwp_mutex_unlock();
362extern int solaris_lwp_mutex_lock();
363extern int solaris_lwp_cond_wait();
364extern int solaris_lwp_cond_signal();
365extern int solaris_lwp_cond_broadcast();
366extern int solaris_pread();
367extern int solaris_pwrite();
368extern int solaris_llseek();
369extern int solaris_inst_sync();
370extern int solaris_auditsys();
371extern int solaris_processor_bind();
372extern int solaris_processor_info();
373extern int solaris_p_online();
374extern int solaris_sigqueue();
375extern int solaris_clock_gettime();
376extern int solaris_clock_settime();
377extern int solaris_clock_getres();
378extern int solaris_timer_create();
379extern int solaris_timer_delete();
380extern int solaris_timer_settime();
381extern int solaris_timer_gettime();
382extern int solaris_timer_getoverrun();
383extern int solaris_nanosleep();
384
385/* solaris_pgrpsys subcalls */
386
387extern int solaris_getpgrp(), solaris_setpgrp(), solaris_getsid();
388extern int solaris_setsid(), solaris_getpgid(), solaris_setpgid();
389
390#define SOLARIS_pgrpsys_subcall 300
391#define SOLARIS_getpgrp (SOLARIS_pgrpsys_subcall + 0)
392#define SOLARIS_setpgrp (SOLARIS_pgrpsys_subcall + 1)
393#define SOLARIS_getsid (SOLARIS_pgrpsys_subcall + 2)
394#define SOLARIS_setsid (SOLARIS_pgrpsys_subcall + 3)
395#define SOLARIS_getpgid (SOLARIS_pgrpsys_subcall + 4)
396#define SOLARIS_setpgid (SOLARIS_pgrpsys_subcall + 5)
397
398#define SOLARIS_pgrpsys_nsubcalls 6
399
400/* solaris_sigcall subcalls */
401
402#undef SOLARIS_signal
403#define SOLARIS_sigcall 48
404
405extern int solaris_signal(), solaris_sigset(), solaris_sighold();
406extern int solaris_sigrelse(), solaris_sigignore(), solaris_sigpause();
407
408#define SOLARIS_sigcall_subcall 310
409#define SOLARIS_signal (SOLARIS_sigcall_subcall + 0)
410#define SOLARIS_sigset (SOLARIS_sigcall_subcall + 1)
411#define SOLARIS_sighold (SOLARIS_sigcall_subcall + 2)
412#define SOLARIS_sigrelse (SOLARIS_sigcall_subcall + 3)
413#define SOLARIS_sigignore (SOLARIS_sigcall_subcall + 4)
414#define SOLARIS_sigpause (SOLARIS_sigcall_subcall + 5)
415
416#define SOLARIS_sigcall_nsubcalls 6
417
418/* msgsys subcalls */
419
420extern int solaris_msgget(), solaris_msgctl(), solaris_msgrcv(), solaris_msgsnd();
421
422#define SOLARIS_msgsys_subcall 320
423#define SOLARIS_msgget (SOLARIS_msgsys_subcall + 0)
424#define SOLARIS_msgctl (SOLARIS_msgsys_subcall + 1)
425#define SOLARIS_msgrcv (SOLARIS_msgsys_subcall + 2)
426#define SOLARIS_msgsnd (SOLARIS_msgsys_subcall + 3)
427
428#define SOLARIS_msgsys_nsubcalls 4
429
430/* shmsys subcalls */
431
432extern int solaris_shmat(), solaris_shmctl(), solaris_shmdt(), solaris_shmget();
433
434#define SOLARIS_shmsys_subcall 330
435#define SOLARIS_shmat (SOLARIS_shmsys_subcall + 0)
436#define SOLARIS_shmctl (SOLARIS_shmsys_subcall + 1)
437#define SOLARIS_shmdt (SOLARIS_shmsys_subcall + 2)
438#define SOLARIS_shmget (SOLARIS_shmsys_subcall + 3)
439
440#define SOLARIS_shmsys_nsubcalls 4
441
442/* semsys subcalls */
443
444extern int solaris_semctl(), solaris_semget(), solaris_semop();
445
446#define SOLARIS_semsys_subcall 340
447#define SOLARIS_semctl (SOLARIS_semsys_subcall + 0)
448#define SOLARIS_semget (SOLARIS_semsys_subcall + 1)
449#define SOLARIS_semop (SOLARIS_semsys_subcall + 2)
450
451#define SOLARIS_semsys_nsubcalls 3
452
453/* utssys subcalls */
454
455extern int solaris_olduname(), solaris_ustat(), solaris_fusers();
456
457#define SOLARIS_utssys_subcall 350
458
459#define SOLARIS_olduname (SOLARIS_utssys_subcall + 0)
460 /* 1 is unused */
461#define SOLARIS_ustat (SOLARIS_utssys_subcall + 2)
462#define SOLARIS_fusers (SOLARIS_utssys_subcall + 3)
463
464#define SOLARIS_utssys_nsubcalls 4
465
466/* sysfs subcalls */
467
468extern int solaris_sysfs1(), solaris_sysfs2(), solaris_sysfs3();
469
470#define SOLARIS_sysfs_subcall 360
471 /* 0 is unused */
472#define SOLARIS_sysfs1 (SOLARIS_sysfs_subcall + 1)
473#define SOLARIS_sysfs2 (SOLARIS_sysfs_subcall + 2)
474#define SOLARIS_sysfs3 (SOLARIS_sysfs_subcall + 3)
475
476#define SOLARIS_sysfs_nsubcalls 4
477
478/* solaris_spcall subcalls */
479
480#undef SOLARIS_sigpending
481#define SOLARIS_spcall 99
482
483extern int solaris_sigpending(), solaris_sigfillset();
484
485#define SOLARIS_spcall_subcall 370
486 /* 0 is unused */
487#define SOLARIS_sigpending (SOLARIS_spcall_subcall + 1)
488#define SOLARIS_sigfillset (SOLARIS_spcall_subcall + 2)
489
490#define SOLARIS_spcall_nsubcalls 3
491
492/* solaris_context subcalls */
493
494extern int solaris_getcontext(), solaris_setcontext();
495
496#define SOLARIS_context_subcall 380
497#define SOLARIS_getcontext (SOLARIS_context_subcall + 0)
498#define SOLARIS_setcontext (SOLARIS_context_subcall + 1)
499
500#define SOLARIS_context_nsubcalls 2