1/* 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: syscall.h.2,v 1.1.1.1 1999/02/19 00:23:14 wichert Exp $ 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(); 39int sys_lseek(), sys_getpid(), sys_mount(), sys_umount(); 40int 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(); 80 81/* sys_socketcall subcalls */ 82 83int sys_socket(), sys_bind(), sys_connect(), sys_listen(); 84int sys_accept(), sys_getsockname(), sys_getpeername(), sys_socketpair(); 85int sys_send(), sys_recv(), sys_sendto(), sys_recvfrom(); 86int sys_shutdown(), sys_setsockopt(), sys_getsockopt(); 87 88#ifndef ALPHA 89#define SYS_socket_subcall 180 90#define SYS_socket (SYS_socket_subcall + 1) 91#define SYS_bind (SYS_socket_subcall + 2) 92#define SYS_connect (SYS_socket_subcall + 3) 93#define SYS_listen (SYS_socket_subcall + 4) 94#define SYS_accept (SYS_socket_subcall + 5) 95#define SYS_getsockname (SYS_socket_subcall + 6) 96#define SYS_getpeername (SYS_socket_subcall + 7) 97#define SYS_socketpair (SYS_socket_subcall + 8) 98#define SYS_send (SYS_socket_subcall + 9) 99#define SYS_recv (SYS_socket_subcall + 10) 100#define SYS_sendto (SYS_socket_subcall + 11) 101#define SYS_recvfrom (SYS_socket_subcall + 12) 102#define SYS_shutdown (SYS_socket_subcall + 13) 103#define SYS_setsockopt (SYS_socket_subcall + 14) 104#define SYS_getsockopt (SYS_socket_subcall + 15) 105 106#define SYS_socket_nsubcalls 16 107#endif /* !ALPHA */ 108 109/* sys_ipc subcalls */ 110 111int sys_semget(), sys_semctl(); 112int sys_msgsnd(), sys_msgrcv(), sys_msgget(), sys_msgctl(); 113int sys_shmat(), sys_shmdt(), sys_shmget(), sys_shmctl(); 114 115#ifndef ALPHA 116#define SYS_ipc_subcall 200 117#define SYS_semop (SYS_ipc_subcall + 1) 118#define SYS_semget (SYS_ipc_subcall + 2) 119#define SYS_semctl (SYS_ipc_subcall + 3) 120#define SYS_msgsnd (SYS_ipc_subcall + 11) 121#define SYS_msgrcv (SYS_ipc_subcall + 12) 122#define SYS_msgget (SYS_ipc_subcall + 13) 123#define SYS_msgctl (SYS_ipc_subcall + 14) 124#define SYS_shmat (SYS_ipc_subcall + 21) 125#define SYS_shmdt (SYS_ipc_subcall + 22) 126#define SYS_shmget (SYS_ipc_subcall + 23) 127#define SYS_shmctl (SYS_ipc_subcall + 24) 128 129#define SYS_ipc_nsubcalls 25 130#endif /* ALPHA */ 131 132#ifdef ALPHA 133int osf_statfs(), osf_fstatfs(), sys_getpagesize(), sys_madvise(); 134int sys_setpgrp(), sys_gethostname(), sys_getdtablesize(), sys_utimes(); 135#endif 136 137int sys__llseek(), sys__newselect(), sys__sysctl(), sys_klog(); 138int sys_prev_fstat(), sys_prev_lstat(), sys_prev_mknod(), sys_prev_stat(); 139int sys_prev_ustat(), sys_syscall_flock(), sys_syscall_readv(); 140int sys_syscall_writev(); 141 142#include "syscall1.h" 143