2 * Copyright (c) 1993 Branko Lankester <branko@hacktic.nl>
3 * Copyright (c) 1993, 1994, 1995 Rick Sladkey <jrs@world.std.com>
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
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.
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.
33 /* primary syscalls */
35 int sys_setup(), sys_exit(), sys_fork(), sys_read(), sys_write();
36 int sys_open(), sys_close(), sys_waitpid(), sys_creat(), sys_link();
37 int sys_unlink(), sys_execve(), sys_chdir(), sys_time(), sys_mknod();
38 int sys_chmod(), sys_chown(), sys_break(), sys_oldstat();
39 int sys_lseek(), sys_getpid(), sys_mount(), sys_umount(), sys_umount2();
40 int sys_setuid(), sys_getuid(), sys_stime(), sys_ptrace();
41 int sys_alarm(), sys_oldfstat(), sys_pause(), sys_utime();
42 int sys_stty(), sys_gtty(), sys_access(), sys_nice(), sys_ftime();
43 int sys_sync(), sys_kill(), sys_rename(), sys_mkdir(), sys_rmdir();
44 int sys_dup(), sys_pipe(), sys_times(), sys_prof(), sys_brk();
45 int sys_setgid(), sys_getgid(), sys_signal(), sys_geteuid();
46 int sys_getegid(), sys_acct(), sys_phys(), sys_lock(), sys_ioctl();
47 int sys_fcntl(), sys_mpx(), sys_setpgid(), sys_ulimit();
48 int sys_olduname(), sys_umask(), sys_chroot(), sys_ustat();
49 int sys_dup2(), sys_getppid(), sys_getpgrp(), sys_setsid();
50 int sys_sigaction(), sys_siggetmask(), sys_sigsetmask();
51 int sys_setreuid(), sys_setregid(), sys_sigsuspend();
52 int sys_sigpending(), sys_sethostname(), sys_setrlimit();
53 int sys_getrlimit(), sys_getrusage(), sys_gettimeofday();
54 int sys_settimeofday(), sys_getgroups(), sys_setgroups();
55 int sys_oldselect(), sys_symlink(), sys_oldlstat(), sys_readlink();
56 int sys_uselib(), sys_swapon(), sys_reboot(), sys_readdir();
57 int sys_mmap(), sys_munmap(), sys_truncate(), sys_ftruncate();
58 int sys_fchmod(), sys_fchown(), sys_getpriority();
59 int sys_setpriority(), sys_profil(), sys_statfs(), sys_fstatfs();
60 int sys_ioperm(), sys_socketcall(), sys_syslog(), sys_setitimer();
61 int sys_getitimer(), sys_stat(), sys_lstat(), sys_fstat();
62 int sys_uname(), sys_iopl(), sys_vhangup(), sys_idle(), sys_vm86();
63 int sys_wait4(), sys_swapoff(), sys_ipc(), sys_sigreturn();
64 int sys_fsync(), sys_clone(), sys_setdomainname(), sys_sysinfo();
65 int sys_modify_ldt(), sys_adjtimex(), sys_mprotect();
66 int sys_sigprocmask(), sys_create_module(), sys_init_module();
67 int sys_delete_module(), sys_get_kernel_syms(), sys_quotactl();
68 int sys_getpgid(), sys_fchdir(), sys_bdflush();
69 int sys_sysfs(), sys_personality(), sys_afs_syscall();
70 int sys_setfsuid(), sys_setfsgid(), sys_llseek();
71 int sys_getdents(), sys_flock(), sys_msync();
72 int sys_readv(), sys_writev(), sys_select();
73 int sys_getsid(), sys_fdatasync(), sys_sysctl();
74 int sys_mlock(), sys_munlock(), sys_mlockall(), sys_munlockall(), sys_madvise();
75 int sys_sched_setparam(), sys_sched_getparam();
76 int sys_sched_setscheduler(), sys_sched_getscheduler(), sys_sched_yield();
77 int sys_sched_get_priority_max(), sys_sched_get_priority_min();
78 int sys_sched_rr_get_interval(), sys_nanosleep(), sys_mremap();
79 int sys_sendmsg(), sys_recvmsg(), sys_setresuid(), sys_setresgid();
80 int sys_getresuid(), sys_getresgid(), sys_pread(), sys_pwrite(), sys_getcwd();
81 int sys_sigaltstack(), sys_rt_sigprocmask(), sys_rt_sigaction();
82 int sys_rt_sigpending(), sys_rt_sigsuspend(), sys_rt_sigqueueinfo();
83 int sys_rt_sigtimedwait(), sys_prctl(), sys_poll(), sys_vfork();
84 int sys_sendfile(), sys_old_mmap(), sys_stat64(), sys_lstat64(), sys_fstat64();
85 int sys_truncate64(), sys_ftruncate64(), sys_pivotroot();
88 /* sys_socketcall subcalls */
90 int sys_socket(), sys_bind(), sys_connect(), sys_listen();
91 int sys_accept(), sys_getsockname(), sys_getpeername(), sys_socketpair();
92 int sys_send(), sys_recv(), sys_sendto(), sys_recvfrom();
93 int sys_shutdown(), sys_setsockopt(), sys_getsockopt();
96 int sys_query_module();
99 /* architecture-specific calls */
101 int sys_osf_select();
102 int sys_osf_gettimeofday();
103 int sys_osf_settimeofday();
104 int sys_osf_getitimer();
105 int sys_osf_setitimer();
106 int sys_osf_getrusage();
108 int sys_osf_utimes();
112 #if !defined(ALPHA) && !defined(IA64) && !defined(MIPS)
114 # define SYS_socket_subcall 256
116 # define SYS_socket_subcall 230
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)
133 #define SYS_sendmsg (SYS_socket_subcall + 16)
134 #define SYS_recvmsg (SYS_socket_subcall + 17)
136 #define SYS_socket_nsubcalls 18
137 #endif /* !(ALPHA || IA64 || MIPS) */
139 /* sys_ipc subcalls */
141 int sys_semget(), sys_semctl(), sys_semop();
142 int sys_msgsnd(), sys_msgrcv(), sys_msgget(), sys_msgctl();
143 int sys_shmat(), sys_shmdt(), sys_shmget(), sys_shmctl();
145 #if !defined(ALPHA) && !defined(IA64) && !defined(MIPS) && !defined(SPARC)
147 # define SYS_ipc_subcall ((SYS_socket_subcall)+(SYS_socket_nsubcalls))
149 # define SYS_ipc_subcall 250
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)
163 #define SYS_ipc_nsubcalls 25
164 #endif /* !(ALPHA || IA64 || MIPS) */
166 #if defined(ALPHA) || defined(IA64)
167 int sys_getpagesize();
171 int osf_statfs(), osf_fstatfs();
175 int sys_getpmsg(), sys_putpmsg(); /* STREAMS stuff */
182 int sys_setpgrp(), sys_gethostname(), sys_getdtablesize(), sys_utimes();
183 int sys_capget(), sys_capset();
186 int sys_cacheflush();