syscall.h revision 2c71e0da7e531494f4ea21f8b8e9730a26789154
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();
5576baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_oldselect(), sys_symlink(), sys_oldlstat(), sys_readlink();
5676baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_uselib(), sys_swapon(), sys_reboot(), sys_readdir();
5776baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_mmap(), sys_munmap(), sys_truncate(), sys_ftruncate();
5876baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_fchmod(), sys_fchown(), sys_getpriority();
5976baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_setpriority(), sys_profil(), sys_statfs(), sys_fstatfs();
6076baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_ioperm(), sys_socketcall(), sys_syslog(), sys_setitimer();
6176baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_getitimer(), sys_stat(), sys_lstat(), sys_fstat();
6276baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_uname(), sys_iopl(), sys_vhangup(), sys_idle(), sys_vm86();
6376baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_wait4(), sys_swapoff(), sys_ipc(), sys_sigreturn();
6476baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_fsync(), sys_clone(), sys_setdomainname(), sys_sysinfo();
6576baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_modify_ldt(), sys_adjtimex(), sys_mprotect();
6676baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_sigprocmask(), sys_create_module(), sys_init_module();
6776baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_delete_module(), sys_get_kernel_syms(), sys_quotactl();
6876baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_getpgid(), sys_fchdir(), sys_bdflush();
6976baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_sysfs(), sys_personality(), sys_afs_syscall();
7076baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_setfsuid(), sys_setfsgid(), sys_llseek();
7176baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_getdents(), sys_flock(), sys_msync();
7276baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_readv(), sys_writev(), sys_select();
7376baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_getsid(), sys_fdatasync(), sys_sysctl();
74c792698a99b640e7d256e8692c992bd967f0c5b2Wichert Akkermanint sys_mlock(), sys_munlock(), sys_mlockall(), sys_munlockall(), sys_madvise();
7576baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_sched_setparam(), sys_sched_getparam();
7676baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_sched_setscheduler(), sys_sched_getscheduler(), sys_sched_yield();
7776baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_sched_get_priority_max(), sys_sched_get_priority_min();
7876baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_sched_rr_get_interval(), sys_nanosleep(), sys_mremap();
7976baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_sendmsg(), sys_recvmsg(), sys_setresuid(), sys_setresgid();
8076baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_getresuid(), sys_getresgid(), sys_pread(), sys_pwrite(), sys_getcwd();
8176baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_sigaltstack(), sys_rt_sigprocmask(), sys_rt_sigaction();
8276baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_rt_sigpending(), sys_rt_sigsuspend(), sys_rt_sigqueueinfo();
8376baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_rt_sigtimedwait(), sys_prctl(), sys_poll(), sys_vfork();
8475bb37c8a82fff91874b26a914c551ab6b48e103Ulrich Drepperint sys_sendfile(), sys_old_mmap(), sys_stat64(), sys_lstat64(), sys_fstat64();
85c792698a99b640e7d256e8692c992bd967f0c5b2Wichert Akkermanint sys_truncate64(), sys_ftruncate64(), sys_pivotroot();
8653b320f61f9c5f4278db227ed21db5a1937d58c3Michal Ludvigint sys_getdents64(), sys_clone2();
872c71e0da7e531494f4ea21f8b8e9730a26789154Roland McGrathint sys_getpmsg(), sys_putpmsg(), sys_readahead(), sys_sendfile64();
882c71e0da7e531494f4ea21f8b8e9730a26789154Roland McGrathint sys_setxattr(), sys_fsetxattr(), sys_getxattr(), sys_fgetxattr();
892c71e0da7e531494f4ea21f8b8e9730a26789154Roland McGrathint sys_listxattr(), sys_flistxattr(), sys_removexattr(), sys_fremovexattr();
902c71e0da7e531494f4ea21f8b8e9730a26789154Roland McGrathint sys_sched_setaffinity(), sys_sched_getaffinity(), sys_futex();
912c71e0da7e531494f4ea21f8b8e9730a26789154Roland McGrathint sys_set_thread_area(), sys_get_thread_area();
9276baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman
9376baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman
9476baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman/* sys_socketcall subcalls */
9576baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman
9676baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_socket(), sys_bind(), sys_connect(), sys_listen();
9776baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_accept(), sys_getsockname(), sys_getpeername(), sys_socketpair();
9876baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_send(), sys_recv(), sys_sendto(), sys_recvfrom();
9976baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_shutdown(), sys_setsockopt(), sys_getsockopt();
10076baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman
10176baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman/* new ones */
10276baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_query_module();
10376baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_poll();
10410a88d09ebe283d0dd2ba5deccfe50dc20ea5821Michal Ludvigint sys_mincore();
10576baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman
1060ae852b90b116aaac2c0c7816dce2e1365ad271eWichert Akkerman/* architecture-specific calls */
1070ae852b90b116aaac2c0c7816dce2e1365ad271eWichert Akkerman#ifdef ALPHA
108221f54f721a2f74e629bb70e34888205f68e95ccWichert Akkermanint sys_osf_select();
109221f54f721a2f74e629bb70e34888205f68e95ccWichert Akkermanint sys_osf_gettimeofday();
110221f54f721a2f74e629bb70e34888205f68e95ccWichert Akkermanint sys_osf_settimeofday();
111221f54f721a2f74e629bb70e34888205f68e95ccWichert Akkermanint sys_osf_getitimer();
112221f54f721a2f74e629bb70e34888205f68e95ccWichert Akkermanint sys_osf_setitimer();
113221f54f721a2f74e629bb70e34888205f68e95ccWichert Akkermanint sys_osf_getrusage();
114221f54f721a2f74e629bb70e34888205f68e95ccWichert Akkermanint sys_osf_wait4();
115221f54f721a2f74e629bb70e34888205f68e95ccWichert Akkermanint sys_osf_utimes();
1160ae852b90b116aaac2c0c7816dce2e1365ad271eWichert Akkerman#endif
1170ae852b90b116aaac2c0c7816dce2e1365ad271eWichert Akkerman
1180ae852b90b116aaac2c0c7816dce2e1365ad271eWichert Akkerman
1190e035502d28ef981636abde3139247e6fb2bfcceMichal Ludvig#if !defined(ALPHA) && !defined(MIPS) && !defined(HPPA) && !defined(X86_64)
1207b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman# ifdef	IA64
1217b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman/*
1227b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman *  IA64 syscall numbers (the only ones available from standard header
1237b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman *  files) are disjoint from IA32 syscall numbers.  We need to define
1247b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman *  the IA32 socket call number here.
1257b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman */
1267b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman#  define SYS_socketcall	102
1277b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman
1287b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman#  undef SYS_socket
1297b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman#  undef SYS_bind
1307b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman#  undef SYS_connect
1317b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman#  undef SYS_listen
1327b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman#  undef SYS_accept
1337b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman#  undef SYS_getsockname
1347b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman#  undef SYS_getpeername
1357b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman#  undef SYS_socketpair
1367b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman#  undef SYS_send
1377b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman#  undef SYS_recv
1387b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman#  undef SYS_sendto
1397b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman#  undef SYS_recvfrom
1407b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman#  undef SYS_shutdown
1417b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman#  undef SYS_setsockopt
1427b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman#  undef SYS_getsockopt
1437b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman#  undef SYS_sendmsg
1447b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman#  undef SYS_recvmsg
1457b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman#endif /* IA64 */
1462c71e0da7e531494f4ea21f8b8e9730a26789154Roland McGrath#define SYS_socket_subcall	256
14776baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman#define SYS_socket		(SYS_socket_subcall + 1)
14876baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman#define SYS_bind		(SYS_socket_subcall + 2)
14976baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman#define SYS_connect		(SYS_socket_subcall + 3)
15076baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman#define SYS_listen		(SYS_socket_subcall + 4)
15176baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman#define SYS_accept		(SYS_socket_subcall + 5)
15276baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman#define SYS_getsockname		(SYS_socket_subcall + 6)
15376baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman#define SYS_getpeername		(SYS_socket_subcall + 7)
15476baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman#define SYS_socketpair		(SYS_socket_subcall + 8)
15576baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman#define SYS_send		(SYS_socket_subcall + 9)
15676baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman#define SYS_recv		(SYS_socket_subcall + 10)
15776baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman#define SYS_sendto		(SYS_socket_subcall + 11)
15876baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman#define SYS_recvfrom		(SYS_socket_subcall + 12)
15976baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman#define SYS_shutdown		(SYS_socket_subcall + 13)
16076baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman#define SYS_setsockopt		(SYS_socket_subcall + 14)
16176baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman#define SYS_getsockopt		(SYS_socket_subcall + 15)
1620ae852b90b116aaac2c0c7816dce2e1365ad271eWichert Akkerman#define SYS_sendmsg		(SYS_socket_subcall + 16)
1630ae852b90b116aaac2c0c7816dce2e1365ad271eWichert Akkerman#define SYS_recvmsg		(SYS_socket_subcall + 17)
16476baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman
1650ae852b90b116aaac2c0c7816dce2e1365ad271eWichert Akkerman#define SYS_socket_nsubcalls	18
1660e035502d28ef981636abde3139247e6fb2bfcceMichal Ludvig#endif /* !(ALPHA || MIPS || HPPA || X86_64) */
16776baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman
16876baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman/* sys_ipc subcalls */
16976baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman
170e5be0de04471219a85a6ca0e37d21ef6d0d18cafWichert Akkermanint sys_semget(), sys_semctl(), sys_semop();
17176baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_msgsnd(), sys_msgrcv(), sys_msgget(), sys_msgctl();
17276baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_shmat(), sys_shmdt(), sys_shmget(), sys_shmctl();
17376baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman
1740e035502d28ef981636abde3139247e6fb2bfcceMichal Ludvig#if !defined(ALPHA) && !defined(MIPS) && !defined(SPARC) && !defined(HPPA) && !defined(X86_64)
1757b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman# ifdef	IA64
1767b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman   /*
1777b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman    * IA64 syscall numbers (the only ones available from standard
1787b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman    * header files) are disjoint from IA32 syscall numbers.  We need
1797b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman    * to define the IA32 socket call number here.  Fortunately, this
1807b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman    * symbol, `SYS_ipc', is not used by any of the IA64 code so
1817b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman    * re-defining this symbol will not cause a problem.
1827b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman   */
1837b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman#  undef SYS_ipc
1847b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman#  define SYS_ipc		117
1857b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman#  undef SYS_semop
1867b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman#  undef SYS_semget
1877b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman#  undef SYS_semctl
1887b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman#  undef SYS_msgsnd
1897b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman#  undef SYS_msgrcv
1907b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman#  undef SYS_msgget
1917b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman#  undef SYS_msgctl
1927b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman#  undef SYS_shmat
1937b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman#  undef SYS_shmdt
1947b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman#  undef SYS_shmget
1957b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman#  undef SYS_shmctl
1967b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman# endif /* IA64 */
1972c71e0da7e531494f4ea21f8b8e9730a26789154Roland McGrath#define SYS_ipc_subcall		((SYS_socket_subcall)+(SYS_socket_nsubcalls))
19876baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman#define SYS_semop		(SYS_ipc_subcall + 1)
19976baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman#define SYS_semget		(SYS_ipc_subcall + 2)
20076baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman#define SYS_semctl		(SYS_ipc_subcall + 3)
20176baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman#define SYS_msgsnd		(SYS_ipc_subcall + 11)
20276baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman#define SYS_msgrcv		(SYS_ipc_subcall + 12)
20376baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman#define SYS_msgget		(SYS_ipc_subcall + 13)
20476baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman#define SYS_msgctl		(SYS_ipc_subcall + 14)
20576baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman#define SYS_shmat		(SYS_ipc_subcall + 21)
20676baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman#define SYS_shmdt		(SYS_ipc_subcall + 22)
20776baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman#define SYS_shmget		(SYS_ipc_subcall + 23)
20876baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman#define SYS_shmctl		(SYS_ipc_subcall + 24)
20976baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman
21076baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman#define SYS_ipc_nsubcalls	25
2110e035502d28ef981636abde3139247e6fb2bfcceMichal Ludvig#endif /* !(ALPHA || MIPS || SPARC || HPPA || X86_64) */
2127b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman
2137b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman#ifdef IA64
2147b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman  /*
2157b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman   * IA64 syscall numbers (the only ones available from standard header
2167b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman   * files) are disjoint from IA32 syscall numbers.  We need to define
2177b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman   * some IA32 specific syscalls here.
2187b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman   */
2197b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman# define SYS_fork	2
2207b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman# define SYS_vfork	190
2217b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman# define SYS32_exit	1
2227b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman# define SYS_waitpid	7
2237b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman# define SYS32_wait4	114
2247b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman# define SYS32_execve	11
2257b3346be42d6a1f539e95d385ee498f8b3c529f8Wichert Akkerman#endif /* IA64 */
2268b1b40cd8b49151374d0ac2a5b1a4b459f9e0ae5Wichert Akkerman
2278b1b40cd8b49151374d0ac2a5b1a4b459f9e0ae5Wichert Akkerman#if defined(ALPHA) || defined(IA64)
2288b1b40cd8b49151374d0ac2a5b1a4b459f9e0ae5Wichert Akkermanint sys_getpagesize();
2298b1b40cd8b49151374d0ac2a5b1a4b459f9e0ae5Wichert Akkerman#endif
23076baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman
23176baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman#ifdef ALPHA
232c792698a99b640e7d256e8692c992bd967f0c5b2Wichert Akkermanint osf_statfs(), osf_fstatfs();
2338b1b40cd8b49151374d0ac2a5b1a4b459f9e0ae5Wichert Akkerman#endif
2348b1b40cd8b49151374d0ac2a5b1a4b459f9e0ae5Wichert Akkerman
2358b1b40cd8b49151374d0ac2a5b1a4b459f9e0ae5Wichert Akkerman#ifdef IA64
2368b1b40cd8b49151374d0ac2a5b1a4b459f9e0ae5Wichert Akkermanint sys_getpmsg(), sys_putpmsg();	/* STREAMS stuff */
23776baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman#endif
23876baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman
2390cbfb324b54e4c5859c76dd132a7ad942c0f5e77Wichert Akkerman#ifdef MIPS
240d6b924937038457f83b47b26b9163bdfbdc230f2Wichert Akkermanint sys_sysmips();
2410cbfb324b54e4c5859c76dd132a7ad942c0f5e77Wichert Akkerman#endif
2420cbfb324b54e4c5859c76dd132a7ad942c0f5e77Wichert Akkerman
24376baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_setpgrp(), sys_gethostname(), sys_getdtablesize(), sys_utimes();
24476baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkermanint sys_capget(), sys_capset();
24576baf7c9f6dd61a15524ad43c1b690c252cf5b7Wichert Akkerman
2462e2553a534f532a1546ea2b2f3dc3cd2276d020dWichert Akkerman#ifdef M68K
2472e2553a534f532a1546ea2b2f3dc3cd2276d020dWichert Akkermanint sys_cacheflush();
2482e2553a534f532a1546ea2b2f3dc3cd2276d020dWichert Akkerman#endif
249