blob: fda85ed6cf35d95e6873203784e6af32ce4bf4d2 [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
Dmitry V. Levina12c70d2011-11-28 23:41:58 +000033/* common syscalls */
Wichert Akkerman76baf7c1999-02-19 00:21:36 +000034
Dmitry V. Levina12c70d2011-11-28 23:41:58 +000035int sys_accept();
36int sys_accept4();
37int sys_access();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +000038int sys_adjtimex();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +000039int sys_alarm();
40int sys_arch_prctl();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +000041int sys_bind();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +000042int sys_brk();
43int sys_capget();
44int sys_capset();
Dmitry V. Levindd760852011-11-28 23:25:13 +000045int sys_chdir();
Dmitry V. Levindd760852011-11-28 23:25:13 +000046int sys_chmod();
47int sys_chown();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +000048int sys_clock_gettime();
49int sys_clock_nanosleep();
50int sys_clock_settime();
51int sys_clone();
52int sys_close();
53int sys_connect();
54int sys_creat();
55int sys_create_module();
Dmitry V. Levindd760852011-11-28 23:25:13 +000056int sys_dup2();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +000057int sys_dup3();
58int sys_epoll_create();
59int sys_epoll_create1();
60int sys_epoll_ctl();
61int sys_epoll_pwait();
62int sys_epoll_wait();
63int sys_eventfd();
64int sys_eventfd2();
65int sys_execve();
66int sys_exit();
67int sys_faccessat();
68int sys_fadvise64();
69int sys_fadvise64_64();
70int sys_fallocate();
71int sys_fchmod();
72int sys_fchmodat();
73int sys_fchown();
74int sys_fchownat();
75int sys_fcntl();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +000076int sys_fgetxattr();
77int sys_flistxattr();
78int sys_flock();
79int sys_fork();
80int sys_fremovexattr();
81int sys_fsetxattr();
82int sys_fstat();
83int sys_fstat64();
84int sys_fstatfs();
85int sys_fstatfs64();
86int sys_fsync();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +000087int sys_ftruncate();
88int sys_ftruncate64();
89int sys_futex();
90int sys_futimesat();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +000091int sys_get_mempolicy();
92int sys_get_thread_area();
93int sys_getcpu();
94int sys_getcwd();
95int sys_getdents();
96int sys_getdents64();
97int sys_getdtablesize();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +000098int sys_getgroups();
99int sys_getgroups32();
100int sys_gethostname();
101int sys_getitimer();
102int sys_getpeername();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +0000103int sys_getpmsg();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +0000104int sys_getpriority();
105int sys_getresgid();
106int sys_getresuid();
Dmitry V. Levindd760852011-11-28 23:25:13 +0000107int sys_getrlimit();
108int sys_getrusage();
Dmitry V. Levindd760852011-11-28 23:25:13 +0000109int sys_getsid();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +0000110int sys_getsockname();
111int sys_getsockopt();
112int sys_gettimeofday();
113int sys_getuid();
114int sys_getxattr();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +0000115int sys_init_module();
116int sys_inotify_add_watch();
117int sys_inotify_init1();
118int sys_inotify_rm_watch();
119int sys_io_cancel();
120int sys_io_destroy();
121int sys_io_getevents();
122int sys_io_setup();
123int sys_io_submit();
124int sys_ioctl();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +0000125int sys_kill();
126int sys_link();
127int sys_linkat();
128int sys_listen();
129int sys_listxattr();
130int sys_llseek();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +0000131int sys_lseek();
132int sys_lstat();
133int sys_lstat64();
Dmitry V. Levindd760852011-11-28 23:25:13 +0000134int sys_madvise();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +0000135int sys_mbind();
136int sys_mincore();
137int sys_mkdir();
138int sys_mkdirat();
139int sys_mknod();
140int sys_mknodat();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +0000141int sys_mlockall();
142int sys_mmap();
143int sys_modify_ldt();
144int sys_mount();
145int sys_move_pages();
146int sys_mprotect();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +0000147int sys_mq_getsetattr();
148int sys_mq_notify();
149int sys_mq_open();
150int sys_mq_timedreceive();
151int sys_mq_timedsend();
Dmitry V. Levindd760852011-11-28 23:25:13 +0000152int sys_mremap();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +0000153int sys_msgctl();
154int sys_msgget();
155int sys_msgrcv();
156int sys_msgsnd();
157int sys_msync();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +0000158int sys_munmap();
159int sys_nanosleep();
160int sys_newfstatat();
161int sys_nice();
162int sys_old_mmap();
163int sys_oldfstat();
164int sys_oldlstat();
165int sys_oldselect();
166int sys_oldstat();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +0000167int sys_open();
168int sys_openat();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +0000169int sys_personality();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +0000170int sys_pipe();
171int sys_pipe2();
172int sys_poll();
173int sys_poll();
174int sys_ppoll();
175int sys_prctl();
Dmitry V. Levindd760852011-11-28 23:25:13 +0000176int sys_pread();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +0000177int sys_pread64();
Dmitry V. Levindd760852011-11-28 23:25:13 +0000178int sys_preadv();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +0000179int sys_pselect6();
180int sys_ptrace();
Denys Vlasenko3af224c2012-01-28 01:46:33 +0100181int sys_process_vm_readv();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +0000182int sys_putpmsg();
183int sys_pwrite();
184int sys_pwrite64();
Dmitry V. Levindd760852011-11-28 23:25:13 +0000185int sys_pwritev();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +0000186int sys_query_module();
187int sys_quotactl();
188int sys_read();
189int sys_readahead();
190int sys_readdir();
191int sys_readlink();
192int sys_readlinkat();
193int sys_readv();
194int sys_reboot();
195int sys_recv();
196int sys_recvfrom();
197int sys_recvmmsg();
198int sys_recvmsg();
199int sys_remap_file_pages();
200int sys_removexattr();
201int sys_renameat();
202int sys_restart_syscall();
Dmitry V. Levindd760852011-11-28 23:25:13 +0000203int sys_rt_sigaction();
204int sys_rt_sigpending();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +0000205int sys_rt_sigprocmask();
Dmitry V. Levindd760852011-11-28 23:25:13 +0000206int sys_rt_sigqueueinfo();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +0000207int sys_rt_sigsuspend();
Dmitry V. Levindd760852011-11-28 23:25:13 +0000208int sys_rt_sigtimedwait();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +0000209int sys_sched_get_priority_min();
Dmitry V. Levindd760852011-11-28 23:25:13 +0000210int sys_sched_getaffinity();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +0000211int sys_sched_getparam();
212int sys_sched_getscheduler();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +0000213int sys_sched_setaffinity();
214int sys_sched_setparam();
215int sys_sched_setscheduler();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +0000216int sys_select();
217int sys_semctl();
218int sys_semget();
219int sys_semop();
220int sys_semtimedop();
221int sys_send();
222int sys_sendfile();
223int sys_sendfile64();
224int sys_sendmsg();
225int sys_sendto();
226int sys_set_mempolicy();
Dmitry V. Levindd760852011-11-28 23:25:13 +0000227int sys_set_thread_area();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +0000228int sys_setdomainname();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +0000229int sys_setfsuid();
230int sys_setgid();
231int sys_setgroups();
232int sys_setgroups32();
233int sys_sethostname();
234int sys_setitimer();
235int sys_setpgid();
236int sys_setpgrp();
237int sys_setpriority();
238int sys_setregid();
239int sys_setresgid();
240int sys_setresuid();
241int sys_setreuid();
242int sys_setrlimit();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +0000243int sys_setsockopt();
244int sys_settimeofday();
245int sys_setuid();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +0000246int sys_setxattr();
247int sys_shmat();
248int sys_shmctl();
249int sys_shmdt();
250int sys_shmget();
251int sys_shutdown();
252int sys_sigaction();
253int sys_sigaltstack();
254int sys_siggetmask();
255int sys_signal();
256int sys_signalfd();
257int sys_signalfd4();
258int sys_sigpending();
259int sys_sigprocmask();
260int sys_sigreturn();
261int sys_sigsetmask();
262int sys_sigsuspend();
263int sys_socket();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +0000264int sys_socketpair();
265int sys_splice();
266int sys_stat();
267int sys_stat64();
268int sys_statfs();
269int sys_statfs64();
270int sys_stime();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +0000271int sys_swapon();
272int sys_symlinkat();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +0000273int sys_sysctl();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +0000274int sys_sysinfo();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +0000275int sys_tee();
276int sys_tgkill();
277int sys_time();
Dmitry V. Levindd760852011-11-28 23:25:13 +0000278int sys_timer_create();
Dmitry V. Levindd760852011-11-28 23:25:13 +0000279int sys_timer_gettime();
280int sys_timer_settime();
Dmitry V. Levindd760852011-11-28 23:25:13 +0000281int sys_timerfd();
Dmitry V. Levindd760852011-11-28 23:25:13 +0000282int sys_timerfd_create();
Dmitry V. Levindd760852011-11-28 23:25:13 +0000283int sys_timerfd_gettime();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +0000284int sys_timerfd_settime();
285int sys_times();
286int sys_truncate();
287int sys_truncate64();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +0000288int sys_umask();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +0000289int sys_umount2();
290int sys_uname();
Dmitry V. Levin95ebf5a2006-10-13 20:25:12 +0000291int sys_unlinkat();
Dmitry V. Levin95ebf5a2006-10-13 20:25:12 +0000292int sys_unshare();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +0000293int sys_utime();
294int sys_utimensat();
295int sys_utimes();
296int sys_vfork();
Dmitry V. Levind99e48c2011-10-11 17:07:05 +0000297int sys_vmsplice();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +0000298int sys_wait4();
299int sys_waitid();
300int sys_waitpid();
301int sys_write();
302int sys_writev();
Wichert Akkerman76baf7c1999-02-19 00:21:36 +0000303
Wichert Akkerman0ae852b1999-11-18 17:12:55 +0000304/* architecture-specific calls */
305#ifdef ALPHA
Dmitry V. Levina12c70d2011-11-28 23:41:58 +0000306int osf_statfs();
307int osf_fstatfs();
Wichert Akkerman221f54f1999-11-18 17:26:45 +0000308int sys_osf_getitimer();
Wichert Akkerman221f54f1999-11-18 17:26:45 +0000309int sys_osf_getrusage();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +0000310int sys_osf_gettimeofday();
311int sys_osf_select();
312int sys_osf_setitimer();
313int sys_osf_settimeofday();
Wichert Akkerman221f54f1999-11-18 17:26:45 +0000314int sys_osf_utimes();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +0000315int sys_osf_wait4();
Wichert Akkerman0ae852b1999-11-18 17:12:55 +0000316#endif
317
Roland McGrathe69b6272005-06-07 23:21:28 +0000318#ifndef SYS_waitid
319# ifdef I386
320# define SYS_waitid 284
321# elif defined ALPHA
322# define SYS_waitid 438
323# elif defined ARM
324# define SYS_waitid (NR_SYSCALL_BASE + 280)
325# elif defined IA64
326# define SYS_waitid 1270
327# elif defined M68K
328# define SYS_waitid 277
329# elif defined POWERPC
330# define SYS_waitid 272
331# elif defined S390 || defined S390X
332# define SYS_waitid 281
333# elif defined SH64
334# define SYS_waitid 312
335# elif defined SH64
336# define SYS_waitid 312
337# elif defined SH
338# define SYS_waitid 284
339# elif defined SPARC || defined SPARC64
340# define SYS_waitid 279
341# elif defined X86_64
342# define SYS_waitid 247
343# endif
344#endif
345
Roland McGrathd94020f2008-08-25 03:15:43 +0000346#if !defined(ALPHA) && !defined(MIPS) && !defined(HPPA) && \
347 !defined(__ARM_EABI__)
Wichert Akkerman7b3346b2001-10-09 23:47:38 +0000348# ifdef IA64
349/*
350 * IA64 syscall numbers (the only ones available from standard header
351 * files) are disjoint from IA32 syscall numbers. We need to define
352 * the IA32 socket call number here.
353 */
354# define SYS_socketcall 102
355
356# undef SYS_socket
357# undef SYS_bind
358# undef SYS_connect
359# undef SYS_listen
360# undef SYS_accept
361# undef SYS_getsockname
362# undef SYS_getpeername
363# undef SYS_socketpair
364# undef SYS_send
365# undef SYS_recv
366# undef SYS_sendto
367# undef SYS_recvfrom
368# undef SYS_shutdown
369# undef SYS_setsockopt
370# undef SYS_getsockopt
371# undef SYS_sendmsg
372# undef SYS_recvmsg
Roland McGrath09f0d1d2002-12-22 03:34:39 +0000373# endif /* IA64 */
Mike Frysinger330a8952011-02-19 15:48:52 -0500374# if defined(SPARC) || defined(SPARC64)
375# define SYS_socket_subcall 353
376# else
Roland McGrathfeb83812006-08-22 06:06:12 +0000377# define SYS_socket_subcall 400
Mike Frysinger330a8952011-02-19 15:48:52 -0500378# endif
Roland McGrathe69b6272005-06-07 23:21:28 +0000379#define SYS_sub_socket (SYS_socket_subcall + 1)
380#define SYS_sub_bind (SYS_socket_subcall + 2)
381#define SYS_sub_connect (SYS_socket_subcall + 3)
382#define SYS_sub_listen (SYS_socket_subcall + 4)
383#define SYS_sub_accept (SYS_socket_subcall + 5)
384#define SYS_sub_getsockname (SYS_socket_subcall + 6)
385#define SYS_sub_getpeername (SYS_socket_subcall + 7)
386#define SYS_sub_socketpair (SYS_socket_subcall + 8)
387#define SYS_sub_send (SYS_socket_subcall + 9)
388#define SYS_sub_recv (SYS_socket_subcall + 10)
389#define SYS_sub_sendto (SYS_socket_subcall + 11)
390#define SYS_sub_recvfrom (SYS_socket_subcall + 12)
391#define SYS_sub_shutdown (SYS_socket_subcall + 13)
392#define SYS_sub_setsockopt (SYS_socket_subcall + 14)
393#define SYS_sub_getsockopt (SYS_socket_subcall + 15)
394#define SYS_sub_sendmsg (SYS_socket_subcall + 16)
395#define SYS_sub_recvmsg (SYS_socket_subcall + 17)
Paolo Bonzini8a56b8a2009-08-14 12:34:06 +0200396#define SYS_sub_accept4 (SYS_socket_subcall + 18)
Andreas Schwab0873f292010-02-12 21:39:12 +0100397#define SYS_sub_recvmmsg (SYS_socket_subcall + 19)
Wichert Akkerman76baf7c1999-02-19 00:21:36 +0000398
Andreas Schwab0873f292010-02-12 21:39:12 +0100399#define SYS_socket_nsubcalls 20
Roland McGrathe69b6272005-06-07 23:21:28 +0000400#endif /* !(ALPHA || MIPS || HPPA) */
Wichert Akkerman76baf7c1999-02-19 00:21:36 +0000401
Mike Frysinger330a8952011-02-19 15:48:52 -0500402#if !defined(ALPHA) && !defined(MIPS) && !defined(HPPA) && \
Roland McGrathd94020f2008-08-25 03:15:43 +0000403 !defined(__ARM_EABI__)
Wichert Akkerman7b3346b2001-10-09 23:47:38 +0000404# ifdef IA64
405 /*
406 * IA64 syscall numbers (the only ones available from standard
407 * header files) are disjoint from IA32 syscall numbers. We need
408 * to define the IA32 socket call number here. Fortunately, this
409 * symbol, `SYS_ipc', is not used by any of the IA64 code so
410 * re-defining this symbol will not cause a problem.
411 */
412# undef SYS_ipc
413# define SYS_ipc 117
414# undef SYS_semop
415# undef SYS_semget
416# undef SYS_semctl
Roland McGrathf01185e2005-02-02 03:42:51 +0000417# undef SYS_semtimedop
Wichert Akkerman7b3346b2001-10-09 23:47:38 +0000418# undef SYS_msgsnd
419# undef SYS_msgrcv
420# undef SYS_msgget
421# undef SYS_msgctl
422# undef SYS_shmat
423# undef SYS_shmdt
424# undef SYS_shmget
425# undef SYS_shmctl
426# endif /* IA64 */
Roland McGrath2c71e0d2002-12-15 23:58:19 +0000427#define SYS_ipc_subcall ((SYS_socket_subcall)+(SYS_socket_nsubcalls))
Roland McGrathe69b6272005-06-07 23:21:28 +0000428#define SYS_sub_semop (SYS_ipc_subcall + 1)
429#define SYS_sub_semget (SYS_ipc_subcall + 2)
430#define SYS_sub_semctl (SYS_ipc_subcall + 3)
431#define SYS_sub_semtimedop (SYS_ipc_subcall + 4)
432#define SYS_sub_msgsnd (SYS_ipc_subcall + 11)
433#define SYS_sub_msgrcv (SYS_ipc_subcall + 12)
434#define SYS_sub_msgget (SYS_ipc_subcall + 13)
435#define SYS_sub_msgctl (SYS_ipc_subcall + 14)
436#define SYS_sub_shmat (SYS_ipc_subcall + 21)
437#define SYS_sub_shmdt (SYS_ipc_subcall + 22)
438#define SYS_sub_shmget (SYS_ipc_subcall + 23)
439#define SYS_sub_shmctl (SYS_ipc_subcall + 24)
Wichert Akkerman76baf7c1999-02-19 00:21:36 +0000440
441#define SYS_ipc_nsubcalls 25
Mike Frysinger330a8952011-02-19 15:48:52 -0500442#endif /* !(ALPHA || MIPS || HPPA) */
Roland McGrathe69b6272005-06-07 23:21:28 +0000443
444#if defined SYS_ipc_subcall && !defined SYS_ipc
445# define SYS_ipc SYS_ipc_subcall
446#endif
447#if defined SYS_socket_subcall && !defined SYS_socketcall
448# define SYS_socketcall SYS_socket_subcall
449#endif
Wichert Akkerman7b3346b2001-10-09 23:47:38 +0000450
451#ifdef IA64
452 /*
453 * IA64 syscall numbers (the only ones available from standard header
454 * files) are disjoint from IA32 syscall numbers. We need to define
455 * some IA32 specific syscalls here.
456 */
457# define SYS_fork 2
458# define SYS_vfork 190
459# define SYS32_exit 1
460# define SYS_waitpid 7
461# define SYS32_wait4 114
462# define SYS32_execve 11
463#endif /* IA64 */
Wichert Akkerman8b1b40c2000-02-03 21:58:30 +0000464
Dmitry V. Levina12c70d2011-11-28 23:41:58 +0000465#if defined(ALPHA) || defined(IA64) || defined(SPARC) || defined(SPARC64)
Wichert Akkerman8b1b40c2000-02-03 21:58:30 +0000466int sys_getpagesize();
467#endif
Wichert Akkerman76baf7c1999-02-19 00:21:36 +0000468
Wichert Akkerman8b1b40c2000-02-03 21:58:30 +0000469#ifdef IA64
Dmitry V. Levindd760852011-11-28 23:25:13 +0000470/* STREAMS stuff */
471int sys_getpmsg();
472int sys_putpmsg();
Wichert Akkerman76baf7c1999-02-19 00:21:36 +0000473#endif
474
Wichert Akkerman0cbfb322001-02-19 13:35:53 +0000475#ifdef MIPS
Wichert Akkermand6b92492001-04-07 21:37:12 +0000476int sys_sysmips();
Wichert Akkerman0cbfb322001-02-19 13:35:53 +0000477#endif
478
Carmelo AMOROSOf8e56502010-12-01 14:27:07 +0100479#if defined M68K || defined SH
Wichert Akkerman2e2553a1999-05-09 00:29:58 +0000480int sys_cacheflush();
481#endif
Roland McGrath542c2c62008-05-20 01:11:56 +0000482
Roland McGrath4a6f6522008-08-25 03:09:16 +0000483#ifdef POWERPC
484int sys_subpage_prot();
485#endif
Dmitry V. Levin87ea1f42008-11-10 22:21:41 +0000486
487#ifdef BFIN
Mike Frysinger260e5712010-09-11 15:04:18 -0400488int sys_cacheflush();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +0000489int sys_sram_alloc();
Dmitry V. Levin87ea1f42008-11-10 22:21:41 +0000490#endif
Mike Frysinger330a8952011-02-19 15:48:52 -0500491
492#if defined SPARC || defined SPARC64
493#include "sparc/syscall1.h"
494int sys_execv();
Dmitry V. Levindd760852011-11-28 23:25:13 +0000495int sys_getmsg();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +0000496int sys_msgsys();
Dmitry V. Levindd760852011-11-28 23:25:13 +0000497int sys_putmsg();
Dmitry V. Levindd760852011-11-28 23:25:13 +0000498int sys_semsys();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +0000499int sys_shmsys();
Mike Frysinger330a8952011-02-19 15:48:52 -0500500#define SYS_semsys_subcall 200
501#define SYS_semsys_nsubcalls 3
502#define SYS_semctl (SYS_semsys_subcall + 0)
503#define SYS_semget (SYS_semsys_subcall + 1)
504#define SYS_semop (SYS_semsys_subcall + 2)
Mike Frysinger330a8952011-02-19 15:48:52 -0500505#define SYS_msgsys_subcall 203
506#define SYS_msgsys_nsubcalls 4
507#define SYS_msgget (SYS_msgsys_subcall + 0)
508#define SYS_msgctl (SYS_msgsys_subcall + 1)
509#define SYS_msgrcv (SYS_msgsys_subcall + 2)
510#define SYS_msgsnd (SYS_msgsys_subcall + 3)
Mike Frysinger330a8952011-02-19 15:48:52 -0500511#define SYS_shmsys_subcall 207
512#define SYS_shmsys_nsubcalls 4
513#define SYS_shmat (SYS_shmsys_subcall + 0)
514#define SYS_shmctl (SYS_shmsys_subcall + 1)
515#define SYS_shmdt (SYS_shmsys_subcall + 2)
516#define SYS_shmget (SYS_shmsys_subcall + 3)
517#endif