blob: 956401cdc561ab89a504a2e4fbb35b35695b7b04 [file] [log] [blame]
Wichert Akkerman76baf7c1999-02-19 00:21:36 +00001/*
2 * Copyright (c) 1993 Branko Lankester <branko@hacktic.nl>
3 * Copyright (c) 1993, 1994, 1995 Rick Sladkey <jrs@world.std.com>
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:
9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 * 2. Redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in the
13 * documentation and/or other materials provided with the distribution.
14 * 3. The name of the author may not be used to endorse or promote products
15 * derived from this software without specific prior written permission.
16 *
17 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
18 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 *
28 * $Id$
29 */
30
31#include "dummy.h"
32
33/* primary syscalls */
34
35int sys_setup(), sys_exit(), sys_fork(), sys_read(), sys_write();
36int sys_open(), sys_close(), sys_waitpid(), sys_creat(), sys_link();
37int sys_unlink(), sys_execve(), sys_chdir(), sys_time(), sys_mknod();
38int sys_chmod(), sys_chown(), sys_break(), sys_oldstat();
Wichert Akkermandacfb6e1999-06-03 14:21:07 +000039int sys_lseek(), sys_getpid(), sys_mount(), sys_umount(), sys_umount2();
Wichert Akkerman76baf7c1999-02-19 00:21:36 +000040int sys_setuid(), sys_getuid(), sys_stime(), sys_ptrace();
41int sys_alarm(), sys_oldfstat(), sys_pause(), sys_utime();
42int sys_stty(), sys_gtty(), sys_access(), sys_nice(), sys_ftime();
43int sys_sync(), sys_kill(), sys_rename(), sys_mkdir(), sys_rmdir();
44int sys_dup(), sys_pipe(), sys_times(), sys_prof(), sys_brk();
45int sys_setgid(), sys_getgid(), sys_signal(), sys_geteuid();
46int sys_getegid(), sys_acct(), sys_phys(), sys_lock(), sys_ioctl();
47int sys_fcntl(), sys_mpx(), sys_setpgid(), sys_ulimit();
48int sys_olduname(), sys_umask(), sys_chroot(), sys_ustat();
49int sys_dup2(), sys_getppid(), sys_getpgrp(), sys_setsid();
50int sys_sigaction(), sys_siggetmask(), sys_sigsetmask();
51int sys_setreuid(), sys_setregid(), sys_sigsuspend();
52int sys_sigpending(), sys_sethostname(), sys_setrlimit();
53int sys_getrlimit(), sys_getrusage(), sys_gettimeofday();
54int sys_settimeofday(), sys_getgroups(), sys_setgroups();
55int sys_oldselect(), sys_symlink(), sys_oldlstat(), sys_readlink();
56int sys_uselib(), sys_swapon(), sys_reboot(), sys_readdir();
57int sys_mmap(), sys_munmap(), sys_truncate(), sys_ftruncate();
58int sys_fchmod(), sys_fchown(), sys_getpriority();
59int sys_setpriority(), sys_profil(), sys_statfs(), sys_fstatfs();
60int sys_ioperm(), sys_socketcall(), sys_syslog(), sys_setitimer();
61int sys_getitimer(), sys_stat(), sys_lstat(), sys_fstat();
62int sys_uname(), sys_iopl(), sys_vhangup(), sys_idle(), sys_vm86();
63int sys_wait4(), sys_swapoff(), sys_ipc(), sys_sigreturn();
64int sys_fsync(), sys_clone(), sys_setdomainname(), sys_sysinfo();
65int sys_modify_ldt(), sys_adjtimex(), sys_mprotect();
66int sys_sigprocmask(), sys_create_module(), sys_init_module();
67int sys_delete_module(), sys_get_kernel_syms(), sys_quotactl();
68int sys_getpgid(), sys_fchdir(), sys_bdflush();
69int sys_sysfs(), sys_personality(), sys_afs_syscall();
70int sys_setfsuid(), sys_setfsgid(), sys_llseek();
71int sys_getdents(), sys_flock(), sys_msync();
72int sys_readv(), sys_writev(), sys_select();
73int sys_getsid(), sys_fdatasync(), sys_sysctl();
74int sys_mlock(), sys_munlock(), sys_mlockall(), sys_munlockall();
75int sys_sched_setparam(), sys_sched_getparam();
76int sys_sched_setscheduler(), sys_sched_getscheduler(), sys_sched_yield();
77int sys_sched_get_priority_max(), sys_sched_get_priority_min();
78int sys_sched_rr_get_interval(), sys_nanosleep(), sys_mremap();
79int sys_sendmsg(), sys_recvmsg(), sys_setresuid(), sys_setresgid();
80int sys_getresuid(), sys_getresgid(), sys_pread(), sys_pwrite(), sys_getcwd();
81int sys_sigaltstack(), sys_rt_sigprocmask(), sys_rt_sigaction();
82int sys_rt_sigpending(), sys_rt_sigsuspend(), sys_rt_sigqueueinfo();
83int sys_rt_sigtimedwait(), sys_prctl(), sys_poll(), sys_vfork();
Ulrich Drepper75bb37c1999-12-24 07:59:50 +000084int sys_sendfile(), sys_old_mmap(), sys_stat64(), sys_lstat64(), sys_fstat64();
85int sys_truncate64(), sys_ftruncate64();
Wichert Akkerman76baf7c1999-02-19 00:21:36 +000086
87
88/* sys_socketcall subcalls */
89
90int sys_socket(), sys_bind(), sys_connect(), sys_listen();
91int sys_accept(), sys_getsockname(), sys_getpeername(), sys_socketpair();
92int sys_send(), sys_recv(), sys_sendto(), sys_recvfrom();
93int sys_shutdown(), sys_setsockopt(), sys_getsockopt();
94
95/* new ones */
96int sys_query_module();
97int sys_poll();
98
Wichert Akkerman0ae852b1999-11-18 17:12:55 +000099/* architecture-specific calls */
100#ifdef ALPHA
Wichert Akkerman221f54f1999-11-18 17:26:45 +0000101int sys_osf_select();
102int sys_osf_gettimeofday();
103int sys_osf_settimeofday();
104int sys_osf_getitimer();
105int sys_osf_setitimer();
106int sys_osf_getrusage();
107int sys_osf_wait4();
108int sys_osf_utimes();
Wichert Akkerman0ae852b1999-11-18 17:12:55 +0000109#endif
110
111
Wichert Akkerman8b1b40c2000-02-03 21:58:30 +0000112#if !defined(ALPHA) && !defined(IA64) && !defined(MIPS)
Wichert Akkerman76baf7c1999-02-19 00:21:36 +0000113#ifdef POWERPC
114# define SYS_socket_subcall 256
115#else
116# define SYS_socket_subcall 230
117#endif
118#define SYS_socket (SYS_socket_subcall + 1)
119#define SYS_bind (SYS_socket_subcall + 2)
120#define SYS_connect (SYS_socket_subcall + 3)
121#define SYS_listen (SYS_socket_subcall + 4)
122#define SYS_accept (SYS_socket_subcall + 5)
123#define SYS_getsockname (SYS_socket_subcall + 6)
124#define SYS_getpeername (SYS_socket_subcall + 7)
125#define SYS_socketpair (SYS_socket_subcall + 8)
126#define SYS_send (SYS_socket_subcall + 9)
127#define SYS_recv (SYS_socket_subcall + 10)
128#define SYS_sendto (SYS_socket_subcall + 11)
129#define SYS_recvfrom (SYS_socket_subcall + 12)
130#define SYS_shutdown (SYS_socket_subcall + 13)
131#define SYS_setsockopt (SYS_socket_subcall + 14)
132#define SYS_getsockopt (SYS_socket_subcall + 15)
Wichert Akkerman0ae852b1999-11-18 17:12:55 +0000133#define SYS_sendmsg (SYS_socket_subcall + 16)
134#define SYS_recvmsg (SYS_socket_subcall + 17)
Wichert Akkerman76baf7c1999-02-19 00:21:36 +0000135
Wichert Akkerman0ae852b1999-11-18 17:12:55 +0000136#define SYS_socket_nsubcalls 18
Wichert Akkerman8b1b40c2000-02-03 21:58:30 +0000137#endif /* !(ALPHA || IA64 || MIPS) */
Wichert Akkerman76baf7c1999-02-19 00:21:36 +0000138
139/* sys_ipc subcalls */
140
Wichert Akkermane5be0de1999-12-14 10:46:18 +0000141int sys_semget(), sys_semctl(), sys_semop();
Wichert Akkerman76baf7c1999-02-19 00:21:36 +0000142int sys_msgsnd(), sys_msgrcv(), sys_msgget(), sys_msgctl();
143int sys_shmat(), sys_shmdt(), sys_shmget(), sys_shmctl();
144
Wichert Akkerman8b1b40c2000-02-03 21:58:30 +0000145#if !defined(ALPHA) && !defined(IA64) && !defined(MIPS)
Wichert Akkerman76baf7c1999-02-19 00:21:36 +0000146#ifdef POWERPC
147# define SYS_ipc_subcall ((SYS_socket_subcall)+(SYS_socket_nsubcalls))
148#else
149# define SYS_ipc_subcall 200
150#endif
151#define SYS_semop (SYS_ipc_subcall + 1)
152#define SYS_semget (SYS_ipc_subcall + 2)
153#define SYS_semctl (SYS_ipc_subcall + 3)
154#define SYS_msgsnd (SYS_ipc_subcall + 11)
155#define SYS_msgrcv (SYS_ipc_subcall + 12)
156#define SYS_msgget (SYS_ipc_subcall + 13)
157#define SYS_msgctl (SYS_ipc_subcall + 14)
158#define SYS_shmat (SYS_ipc_subcall + 21)
159#define SYS_shmdt (SYS_ipc_subcall + 22)
160#define SYS_shmget (SYS_ipc_subcall + 23)
161#define SYS_shmctl (SYS_ipc_subcall + 24)
162
163#define SYS_ipc_nsubcalls 25
Wichert Akkerman8b1b40c2000-02-03 21:58:30 +0000164#endif /* !(ALPHA || IA64 || MIPS) */
165
166#if defined(ALPHA) || defined(IA64)
167int sys_getpagesize();
168#endif
Wichert Akkerman76baf7c1999-02-19 00:21:36 +0000169
170#ifdef ALPHA
Wichert Akkerman8b1b40c2000-02-03 21:58:30 +0000171int osf_statfs(), osf_fstatfs(), sys_madvise();
172#endif
173
174#ifdef IA64
175int sys_getpmsg(), sys_putpmsg(); /* STREAMS stuff */
Wichert Akkerman76baf7c1999-02-19 00:21:36 +0000176#endif
177
178int sys_setpgrp(), sys_gethostname(), sys_getdtablesize(), sys_utimes();
179int sys_capget(), sys_capset();
180
Wichert Akkerman2e2553a1999-05-09 00:29:58 +0000181#ifdef M68K
182int sys_cacheflush();
183#endif