syscall.h revision df13e8f4cae0e57786cf5cd9d0304d6f9f2715d5
176baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman/* 276baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman * Copyright (c) 1993 Branko Lankester <branko@hacktic.nl> 376baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman * Copyright (c) 1993, 1994, 1995 Rick Sladkey <jrs@world.std.com> 476baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman * All rights reserved. 576baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman * 676baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman * Redistribution and use in source and binary forms, with or without 776baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman * modification, are permitted provided that the following conditions 876baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman * are met: 976baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman * 1. Redistributions of source code must retain the above copyright 1076baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman * notice, this list of conditions and the following disclaimer. 1176baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman * 2. Redistributions in binary form must reproduce the above copyright 1276baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman * notice, this list of conditions and the following disclaimer in the 1376baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman * documentation and/or other materials provided with the distribution. 1476baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman * 3. The name of the author may not be used to endorse or promote products 1576baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman * derived from this software without specific prior written permission. 1676baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman * 1776baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 1876baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 1976baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 2076baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 2176baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 2276baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 2376baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 2476baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 2576baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 2676baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 2776baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman * 2876baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman * $Id$ 2976baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman */ 3076baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman 3176baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman#include "dummy.h" 3276baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman 3376baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman/* primary syscalls */ 3476baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman 3576baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_setup(), sys_exit(), sys_fork(), sys_read(), sys_write(); 3676baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_open(), sys_close(), sys_waitpid(), sys_creat(), sys_link(); 3776baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_unlink(), sys_execve(), sys_chdir(), sys_time(), sys_mknod(); 3876baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_chmod(), sys_chown(), sys_break(), sys_oldstat(); 39dacfb6ebd630641d851b6df94c3b4587969a6cfbWichert Akkermanint sys_lseek(), sys_getpid(), sys_mount(), sys_umount(), sys_umount2(); 4076baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_setuid(), sys_getuid(), sys_stime(), sys_ptrace(); 4176baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_alarm(), sys_oldfstat(), sys_pause(), sys_utime(); 4276baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_stty(), sys_gtty(), sys_access(), sys_nice(), sys_ftime(); 4376baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_sync(), sys_kill(), sys_rename(), sys_mkdir(), sys_rmdir(); 4476baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_dup(), sys_pipe(), sys_times(), sys_prof(), sys_brk(); 4576baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_setgid(), sys_getgid(), sys_signal(), sys_geteuid(); 4676baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_getegid(), sys_acct(), sys_phys(), sys_lock(), sys_ioctl(); 4776baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_fcntl(), sys_mpx(), sys_setpgid(), sys_ulimit(); 4876baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_olduname(), sys_umask(), sys_chroot(), sys_ustat(); 4976baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_dup2(), sys_getppid(), sys_getpgrp(), sys_setsid(); 5076baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_sigaction(), sys_siggetmask(), sys_sigsetmask(); 5176baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_setreuid(), sys_setregid(), sys_sigsuspend(); 5276baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_sigpending(), sys_sethostname(), sys_setrlimit(); 5376baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_getrlimit(), sys_getrusage(), sys_gettimeofday(); 5476baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_settimeofday(), sys_getgroups(), sys_setgroups(); 55a44c82af4b7d1b412964881da063ed5aa6e729a4Roland McGrathint sys_setgroups32(), sys_getgroups32(); 5676baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_oldselect(), sys_symlink(), sys_oldlstat(), sys_readlink(); 5776baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_uselib(), sys_swapon(), sys_reboot(), sys_readdir(); 5876baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_mmap(), sys_munmap(), sys_truncate(), sys_ftruncate(); 5976baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_fchmod(), sys_fchown(), sys_getpriority(); 6076baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_setpriority(), sys_profil(), sys_statfs(), sys_fstatfs(); 6176baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_ioperm(), sys_socketcall(), sys_syslog(), sys_setitimer(); 6276baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_getitimer(), sys_stat(), sys_lstat(), sys_fstat(); 6376baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_uname(), sys_iopl(), sys_vhangup(), sys_idle(), sys_vm86(); 6476baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_wait4(), sys_swapoff(), sys_ipc(), sys_sigreturn(); 6576baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_fsync(), sys_clone(), sys_setdomainname(), sys_sysinfo(); 6676baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_modify_ldt(), sys_adjtimex(), sys_mprotect(); 6776baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_sigprocmask(), sys_create_module(), sys_init_module(); 6876baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_delete_module(), sys_get_kernel_syms(), sys_quotactl(); 6976baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_getpgid(), sys_fchdir(), sys_bdflush(); 7076baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_sysfs(), sys_personality(), sys_afs_syscall(); 7176baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_setfsuid(), sys_setfsgid(), sys_llseek(); 7276baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_getdents(), sys_flock(), sys_msync(); 7376baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_readv(), sys_writev(), sys_select(); 7476baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_getsid(), sys_fdatasync(), sys_sysctl(); 75c792698a99b640e7d256e8692c992bd967f0c5b2Wichert Akkermanint sys_mlock(), sys_munlock(), sys_mlockall(), sys_munlockall(), sys_madvise(); 7676baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_sched_setparam(), sys_sched_getparam(); 7776baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_sched_setscheduler(), sys_sched_getscheduler(), sys_sched_yield(); 7876baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_sched_get_priority_max(), sys_sched_get_priority_min(); 7976baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_sched_rr_get_interval(), sys_nanosleep(), sys_mremap(); 8076baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_sendmsg(), sys_recvmsg(), sys_setresuid(), sys_setresgid(); 8176baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_getresuid(), sys_getresgid(), sys_pread(), sys_pwrite(), sys_getcwd(); 8276baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_sigaltstack(), sys_rt_sigprocmask(), sys_rt_sigaction(); 8376baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_rt_sigpending(), sys_rt_sigsuspend(), sys_rt_sigqueueinfo(); 8476baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_rt_sigtimedwait(), sys_prctl(), sys_poll(), sys_vfork(); 8575bb37c8a82fff91874b26a914c551ab6b48e103Ulrich Drepperint sys_sendfile(), sys_old_mmap(), sys_stat64(), sys_lstat64(), sys_fstat64(); 86c792698a99b640e7d256e8692c992bd967f0c5b2Wichert Akkermanint sys_truncate64(), sys_ftruncate64(), sys_pivotroot(); 879677b3a2805e346ca5e61820391095ea3e571c3fRoland McGrathint sys_getdents64(); 882c71e0da7e531494f4ea21f8b8e9730a26789154Roland McGrathint sys_getpmsg(), sys_putpmsg(), sys_readahead(), sys_sendfile64(); 892c71e0da7e531494f4ea21f8b8e9730a26789154Roland McGrathint sys_setxattr(), sys_fsetxattr(), sys_getxattr(), sys_fgetxattr(); 902c71e0da7e531494f4ea21f8b8e9730a26789154Roland McGrathint sys_listxattr(), sys_flistxattr(), sys_removexattr(), sys_fremovexattr(); 912c71e0da7e531494f4ea21f8b8e9730a26789154Roland McGrathint sys_sched_setaffinity(), sys_sched_getaffinity(), sys_futex(); 9272c5b7bf739c707a7f8cd006050f1302c0e618e7Roland McGrathint sys_set_thread_area(), sys_get_thread_area(), sys_remap_file_pages(); 931e35679bbb8c840bd0b107c68cb187feeb3e3282Roland McGrathint sys_timer_create(), sys_timer_delete(), sys_timer_getoverrun(); 941e35679bbb8c840bd0b107c68cb187feeb3e3282Roland McGrathint sys_timer_gettime(), sys_timer_settime(), sys_clock_settime(); 951e35679bbb8c840bd0b107c68cb187feeb3e3282Roland McGrathint sys_clock_gettime(), sys_clock_getres(), sys_clock_nanosleep(); 96ab147c5d67748213d3169fdf9f39c26ec0f65770Roland McGrathint sys_semtimedop(), sys_statfs64(), sys_fstatfs64(), sys_tgkill(); 97d4c85ebbc64b1eb141b310a4634c6ca37fd352c1Roland McGrathint sys_mq_open(), sys_mq_timedsend(), sys_mq_timedreceive(); 98d4c85ebbc64b1eb141b310a4634c6ca37fd352c1Roland McGrathint sys_mq_notify(), sys_mq_getsetattr(); 9993817bfb82577309f84cb5ac8324e34f502d777fRoland McGrathint sys_epoll_create(), sys_epoll_ctl(), sys_epoll_wait(); 100df13e8f4cae0e57786cf5cd9d0304d6f9f2715d5Roland McGrathint sys_waitid(), sys_fadvise64(), sys_fadvise64_64(); 10176baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman 10276baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman/* sys_socketcall subcalls */ 10376baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman 10476baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_socket(), sys_bind(), sys_connect(), sys_listen(); 10576baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_accept(), sys_getsockname(), sys_getpeername(), sys_socketpair(); 10676baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_send(), sys_recv(), sys_sendto(), sys_recvfrom(); 10776baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_shutdown(), sys_setsockopt(), sys_getsockopt(); 10876baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman 10976baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman/* new ones */ 11076baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_query_module(); 11176baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_poll(); 11210a88d09ebe283d0dd2ba5deccfe50dc20ea5821Michal Ludvigint sys_mincore(); 11376baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman 1140ae852b90b116aaac2c0c7816dce2e1365ad271eWichert Akkerman/* architecture-specific calls */ 1150ae852b90b116aaac2c0c7816dce2e1365ad271eWichert Akkerman#ifdef ALPHA 116221f54f721a2f74e629bb70e34888205f68e95ccWichert Akkermanint sys_osf_select(); 117221f54f721a2f74e629bb70e34888205f68e95ccWichert Akkermanint sys_osf_gettimeofday(); 118221f54f721a2f74e629bb70e34888205f68e95ccWichert Akkermanint sys_osf_settimeofday(); 119221f54f721a2f74e629bb70e34888205f68e95ccWichert Akkermanint sys_osf_getitimer(); 120221f54f721a2f74e629bb70e34888205f68e95ccWichert Akkermanint sys_osf_setitimer(); 121221f54f721a2f74e629bb70e34888205f68e95ccWichert Akkermanint sys_osf_getrusage(); 122221f54f721a2f74e629bb70e34888205f68e95ccWichert Akkermanint sys_osf_wait4(); 123221f54f721a2f74e629bb70e34888205f68e95ccWichert Akkermanint sys_osf_utimes(); 1240ae852b90b116aaac2c0c7816dce2e1365ad271eWichert Akkerman#endif 1250ae852b90b116aaac2c0c7816dce2e1365ad271eWichert Akkerman 1260ae852b90b116aaac2c0c7816dce2e1365ad271eWichert Akkerman 1270e035502d28ef981636abde3139247e6fb2bfcceMichal Ludvig#if !defined(ALPHA) && !defined(MIPS) && !defined(HPPA) && !defined(X86_64) 1287b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman# ifdef IA64 1297b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman/* 1307b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman * IA64 syscall numbers (the only ones available from standard header 1317b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman * files) are disjoint from IA32 syscall numbers. We need to define 1327b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman * the IA32 socket call number here. 1337b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman */ 1347b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman# define SYS_socketcall 102 1357b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman 1367b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman# undef SYS_socket 1377b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman# undef SYS_bind 1387b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman# undef SYS_connect 1397b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman# undef SYS_listen 1407b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman# undef SYS_accept 1417b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman# undef SYS_getsockname 1427b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman# undef SYS_getpeername 1437b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman# undef SYS_socketpair 1447b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman# undef SYS_send 1457b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman# undef SYS_recv 1467b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman# undef SYS_sendto 1477b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman# undef SYS_recvfrom 1487b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman# undef SYS_shutdown 1497b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman# undef SYS_setsockopt 1507b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman# undef SYS_getsockopt 1517b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman# undef SYS_sendmsg 1527b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman# undef SYS_recvmsg 15309f0d1d4c48e19b84573f66e8c8edab79150a550Roland McGrath# endif /* IA64 */ 154bc78376efe021b514f07f3604cf230b58812c2f5Roland McGrath# define SYS_socket_subcall 300 15576baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman#define SYS_socket (SYS_socket_subcall + 1) 15676baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman#define SYS_bind (SYS_socket_subcall + 2) 15776baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman#define SYS_connect (SYS_socket_subcall + 3) 15876baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman#define SYS_listen (SYS_socket_subcall + 4) 15976baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman#define SYS_accept (SYS_socket_subcall + 5) 16076baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman#define SYS_getsockname (SYS_socket_subcall + 6) 16176baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman#define SYS_getpeername (SYS_socket_subcall + 7) 16276baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman#define SYS_socketpair (SYS_socket_subcall + 8) 16376baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman#define SYS_send (SYS_socket_subcall + 9) 16476baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman#define SYS_recv (SYS_socket_subcall + 10) 16576baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman#define SYS_sendto (SYS_socket_subcall + 11) 16676baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman#define SYS_recvfrom (SYS_socket_subcall + 12) 16776baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman#define SYS_shutdown (SYS_socket_subcall + 13) 16876baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman#define SYS_setsockopt (SYS_socket_subcall + 14) 16976baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman#define SYS_getsockopt (SYS_socket_subcall + 15) 1700ae852b90b116aaac2c0c7816dce2e1365ad271eWichert Akkerman#define SYS_sendmsg (SYS_socket_subcall + 16) 1710ae852b90b116aaac2c0c7816dce2e1365ad271eWichert Akkerman#define SYS_recvmsg (SYS_socket_subcall + 17) 17276baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman 1730ae852b90b116aaac2c0c7816dce2e1365ad271eWichert Akkerman#define SYS_socket_nsubcalls 18 1740e035502d28ef981636abde3139247e6fb2bfcceMichal Ludvig#endif /* !(ALPHA || MIPS || HPPA || X86_64) */ 17576baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman 17676baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman/* sys_ipc subcalls */ 17776baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman 178e5be0de04471219a85a6ca0e37d21ef6d0d18cafWichert Akkermanint sys_semget(), sys_semctl(), sys_semop(); 17976baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_msgsnd(), sys_msgrcv(), sys_msgget(), sys_msgctl(); 18076baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_shmat(), sys_shmdt(), sys_shmget(), sys_shmctl(); 18176baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman 1820e035502d28ef981636abde3139247e6fb2bfcceMichal Ludvig#if !defined(ALPHA) && !defined(MIPS) && !defined(SPARC) && !defined(HPPA) && !defined(X86_64) 1837b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman# ifdef IA64 1847b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman /* 1857b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman * IA64 syscall numbers (the only ones available from standard 1867b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman * header files) are disjoint from IA32 syscall numbers. We need 1877b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman * to define the IA32 socket call number here. Fortunately, this 1887b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman * symbol, `SYS_ipc', is not used by any of the IA64 code so 1897b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman * re-defining this symbol will not cause a problem. 1907b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman */ 1917b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman# undef SYS_ipc 1927b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman# define SYS_ipc 117 1937b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman# undef SYS_semop 1947b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman# undef SYS_semget 1957b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman# undef SYS_semctl 1967b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman# undef SYS_msgsnd 1977b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman# undef SYS_msgrcv 1987b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman# undef SYS_msgget 1997b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman# undef SYS_msgctl 2007b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman# undef SYS_shmat 2017b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman# undef SYS_shmdt 2027b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman# undef SYS_shmget 2037b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman# undef SYS_shmctl 2047b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman# endif /* IA64 */ 2052c71e0da7e531494f4ea21f8b8e9730a26789154Roland McGrath#define SYS_ipc_subcall ((SYS_socket_subcall)+(SYS_socket_nsubcalls)) 20676baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman#define SYS_semop (SYS_ipc_subcall + 1) 20776baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman#define SYS_semget (SYS_ipc_subcall + 2) 20876baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman#define SYS_semctl (SYS_ipc_subcall + 3) 20958f38db0b1ec1d682854566fe4b6bdf3b9319888Roland McGrath#define SYS_semtimedop (SYS_ipc_subcall + 4) 21076baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman#define SYS_msgsnd (SYS_ipc_subcall + 11) 21176baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman#define SYS_msgrcv (SYS_ipc_subcall + 12) 21276baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman#define SYS_msgget (SYS_ipc_subcall + 13) 21376baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman#define SYS_msgctl (SYS_ipc_subcall + 14) 21476baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman#define SYS_shmat (SYS_ipc_subcall + 21) 21576baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman#define SYS_shmdt (SYS_ipc_subcall + 22) 21676baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman#define SYS_shmget (SYS_ipc_subcall + 23) 21776baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman#define SYS_shmctl (SYS_ipc_subcall + 24) 21876baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman 21976baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman#define SYS_ipc_nsubcalls 25 2200e035502d28ef981636abde3139247e6fb2bfcceMichal Ludvig#endif /* !(ALPHA || MIPS || SPARC || HPPA || X86_64) */ 2217b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman 2227b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman#ifdef IA64 2237b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman /* 2247b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman * IA64 syscall numbers (the only ones available from standard header 2257b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman * files) are disjoint from IA32 syscall numbers. We need to define 2267b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman * some IA32 specific syscalls here. 2277b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman */ 2287b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman# define SYS_fork 2 2297b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman# define SYS_vfork 190 2307b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman# define SYS32_exit 1 2317b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman# define SYS_waitpid 7 2327b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman# define SYS32_wait4 114 2337b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman# define SYS32_execve 11 2347b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman#endif /* IA64 */ 2358b1b40cd8b49151374d0ac2a5b1a4b459f9e0ae5Wichert Akkerman 2368b1b40cd8b49151374d0ac2a5b1a4b459f9e0ae5Wichert Akkerman#if defined(ALPHA) || defined(IA64) 2378b1b40cd8b49151374d0ac2a5b1a4b459f9e0ae5Wichert Akkermanint sys_getpagesize(); 2388b1b40cd8b49151374d0ac2a5b1a4b459f9e0ae5Wichert Akkerman#endif 23976baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman 24076baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman#ifdef ALPHA 241c792698a99b640e7d256e8692c992bd967f0c5b2Wichert Akkermanint osf_statfs(), osf_fstatfs(); 2428b1b40cd8b49151374d0ac2a5b1a4b459f9e0ae5Wichert Akkerman#endif 2438b1b40cd8b49151374d0ac2a5b1a4b459f9e0ae5Wichert Akkerman 2448b1b40cd8b49151374d0ac2a5b1a4b459f9e0ae5Wichert Akkerman#ifdef IA64 2458b1b40cd8b49151374d0ac2a5b1a4b459f9e0ae5Wichert Akkermanint sys_getpmsg(), sys_putpmsg(); /* STREAMS stuff */ 24676baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman#endif 24776baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman 2480cbfb324b54e4c5859c76dd132a7ad942c0f5e77Wichert Akkerman#ifdef MIPS 249d6b924937038457f83b47b26b9163bdfbdc230f2Wichert Akkermanint sys_sysmips(); 2500cbfb324b54e4c5859c76dd132a7ad942c0f5e77Wichert Akkerman#endif 2510cbfb324b54e4c5859c76dd132a7ad942c0f5e77Wichert Akkerman 25276baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_setpgrp(), sys_gethostname(), sys_getdtablesize(), sys_utimes(); 25376baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_capget(), sys_capset(); 25476baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman 2552e2553a534f532a1546ea2b2f3dc3cd2276d020dWichert Akkerman#ifdef M68K 2562e2553a534f532a1546ea2b2f3dc3cd2276d020dWichert Akkermanint sys_cacheflush(); 2572e2553a534f532a1546ea2b2f3dc3cd2276d020dWichert Akkerman#endif 258