blob: 502e8eb5a861dbf550517c66ddc46d5c5aa0708e [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.
Wichert Akkerman76baf7c1999-02-19 00:21:36 +000027 */
28
29#include "dummy.h"
30
Dmitry V. Levina12c70d2011-11-28 23:41:58 +000031/* common syscalls */
Wichert Akkerman76baf7c1999-02-19 00:21:36 +000032
Dmitry V. Levina12c70d2011-11-28 23:41:58 +000033int sys_accept();
34int sys_accept4();
35int sys_access();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +000036int sys_adjtimex();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +000037int sys_arch_prctl();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +000038int sys_bind();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +000039int sys_brk();
40int sys_capget();
41int sys_capset();
Dmitry V. Levindd760852011-11-28 23:25:13 +000042int sys_chdir();
Dmitry V. Levindd760852011-11-28 23:25:13 +000043int sys_chmod();
44int sys_chown();
Dmitry V. Levin73215472012-03-11 21:25:51 +000045int sys_clock_adjtime();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +000046int sys_clock_gettime();
47int sys_clock_nanosleep();
48int sys_clock_settime();
49int sys_clone();
50int sys_close();
51int sys_connect();
52int sys_creat();
53int sys_create_module();
Dmitry V. Levindd760852011-11-28 23:25:13 +000054int sys_dup2();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +000055int sys_dup3();
56int sys_epoll_create();
57int sys_epoll_create1();
58int sys_epoll_ctl();
59int sys_epoll_pwait();
60int sys_epoll_wait();
61int sys_eventfd();
62int sys_eventfd2();
63int sys_execve();
64int sys_exit();
65int sys_faccessat();
66int sys_fadvise64();
67int sys_fadvise64_64();
68int sys_fallocate();
69int sys_fchmod();
70int sys_fchmodat();
71int sys_fchown();
72int sys_fchownat();
73int sys_fcntl();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +000074int sys_fgetxattr();
75int sys_flistxattr();
76int sys_flock();
77int sys_fork();
78int sys_fremovexattr();
79int sys_fsetxattr();
80int sys_fstat();
81int sys_fstat64();
82int sys_fstatfs();
83int sys_fstatfs64();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +000084int sys_ftruncate();
85int sys_ftruncate64();
86int sys_futex();
87int sys_futimesat();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +000088int sys_get_mempolicy();
Dmitry V. Levin1b0bae22012-03-11 22:32:26 +000089int sys_get_robust_list();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +000090int sys_get_thread_area();
91int sys_getcpu();
92int sys_getcwd();
93int sys_getdents();
94int sys_getdents64();
95int sys_getdtablesize();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +000096int sys_getgroups();
97int sys_getgroups32();
98int sys_gethostname();
99int sys_getitimer();
100int sys_getpeername();
Denys Vlasenkoe7db4652013-03-05 16:17:46 +0100101int sys_getpmsg(); /* TODO: non-Linux, remove? */
Dmitry V. Levina12c70d2011-11-28 23:41:58 +0000102int sys_getpriority();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +0000103int sys_getresuid();
Dmitry V. Levindd760852011-11-28 23:25:13 +0000104int sys_getrlimit();
105int sys_getrusage();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +0000106int sys_getsockname();
107int sys_getsockopt();
108int sys_gettimeofday();
109int sys_getuid();
110int sys_getxattr();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +0000111int sys_init_module();
112int sys_inotify_add_watch();
113int sys_inotify_init1();
114int sys_inotify_rm_watch();
115int sys_io_cancel();
116int sys_io_destroy();
117int sys_io_getevents();
118int sys_io_setup();
119int sys_io_submit();
120int sys_ioctl();
Dmitry V. Levinb5e88d42012-02-20 17:02:38 +0000121int sys_ipc();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +0000122int sys_kill();
123int sys_link();
124int sys_linkat();
125int sys_listen();
126int sys_listxattr();
127int sys_llseek();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +0000128int sys_lseek();
Dmitry V. Levindd760852011-11-28 23:25:13 +0000129int sys_madvise();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +0000130int sys_mbind();
Dmitry V. Levin64d0e712012-03-11 22:44:14 +0000131int sys_migrate_pages();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +0000132int sys_mincore();
133int sys_mkdir();
134int sys_mkdirat();
135int sys_mknod();
136int sys_mknodat();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +0000137int sys_mlockall();
138int sys_mmap();
Denys Vlasenko1ba85432013-02-19 11:28:20 +0100139int sys_mmap_pgoff();
140int sys_mmap_4koff();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +0000141int sys_modify_ldt();
142int sys_mount();
143int sys_move_pages();
144int sys_mprotect();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +0000145int sys_mq_getsetattr();
146int sys_mq_notify();
147int sys_mq_open();
148int sys_mq_timedreceive();
149int sys_mq_timedsend();
Dmitry V. Levindd760852011-11-28 23:25:13 +0000150int sys_mremap();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +0000151int sys_msgctl();
152int sys_msgget();
153int sys_msgrcv();
154int sys_msgsnd();
155int sys_msync();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +0000156int sys_munmap();
157int sys_nanosleep();
158int sys_newfstatat();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +0000159int sys_old_mmap();
Denys Vlasenko1ba85432013-02-19 11:28:20 +0100160int sys_old_mmap_pgoff();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +0000161int sys_oldfstat();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +0000162int sys_oldselect();
163int sys_oldstat();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +0000164int sys_open();
165int sys_openat();
Ben Noordhuis88eafd82013-02-04 00:04:57 +0100166int sys_perf_event_open();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +0000167int sys_personality();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +0000168int sys_pipe();
169int sys_pipe2();
170int sys_poll();
171int sys_poll();
172int sys_ppoll();
173int sys_prctl();
Dmitry V. Levindd760852011-11-28 23:25:13 +0000174int sys_pread();
Dmitry V. Levindd760852011-11-28 23:25:13 +0000175int sys_preadv();
Dmitry V. Levinb468f232012-03-16 23:05:21 +0400176int sys_prlimit64();
Denys Vlasenko3af224c2012-01-28 01:46:33 +0100177int sys_process_vm_readv();
Dmitry V. Levin03952102012-03-10 14:14:49 +0000178int sys_process_vm_writev();
Dmitry V. Levinb468f232012-03-16 23:05:21 +0400179int sys_pselect6();
180int sys_ptrace();
Denys Vlasenkoe7db4652013-03-05 16:17:46 +0100181int sys_putpmsg(); /* TODO: non-Linux, remove? */
Dmitry V. Levina12c70d2011-11-28 23:41:58 +0000182int sys_pwrite();
Dmitry V. Levindd760852011-11-28 23:25:13 +0000183int sys_pwritev();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +0000184int sys_query_module();
185int sys_quotactl();
186int sys_read();
187int sys_readahead();
188int sys_readdir();
189int sys_readlink();
190int sys_readlinkat();
191int sys_readv();
192int sys_reboot();
193int sys_recv();
194int sys_recvfrom();
195int sys_recvmmsg();
196int sys_recvmsg();
197int sys_remap_file_pages();
198int sys_removexattr();
199int sys_renameat();
200int sys_restart_syscall();
Dmitry V. Levindd760852011-11-28 23:25:13 +0000201int sys_rt_sigaction();
202int sys_rt_sigpending();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +0000203int sys_rt_sigprocmask();
Dmitry V. Levindd760852011-11-28 23:25:13 +0000204int sys_rt_sigqueueinfo();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +0000205int sys_rt_sigsuspend();
Dmitry V. Levindd760852011-11-28 23:25:13 +0000206int sys_rt_sigtimedwait();
Dmitry V. Levin297632b2012-03-13 15:51:13 +0000207int sys_rt_tgsigqueueinfo();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +0000208int sys_sched_get_priority_min();
Dmitry V. Levindd760852011-11-28 23:25:13 +0000209int sys_sched_getaffinity();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +0000210int sys_sched_getparam();
211int sys_sched_getscheduler();
Dmitry V. Levin1ff463d2012-03-11 23:00:11 +0000212int sys_sched_rr_get_interval();
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();
Dmitry V. Levin7af9f352012-03-11 23:59:29 +0000224int sys_sendmmsg();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +0000225int sys_sendmsg();
226int sys_sendto();
227int sys_set_mempolicy();
Dmitry V. Levindd760852011-11-28 23:25:13 +0000228int sys_set_thread_area();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +0000229int sys_setdomainname();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +0000230int sys_setfsuid();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +0000231int sys_setgroups();
232int sys_setgroups32();
233int sys_sethostname();
234int sys_setitimer();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +0000235int sys_setpriority();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +0000236int sys_setresuid();
237int sys_setreuid();
238int sys_setrlimit();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +0000239int sys_setsockopt();
240int sys_settimeofday();
241int sys_setuid();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +0000242int sys_setxattr();
243int sys_shmat();
244int sys_shmctl();
245int sys_shmdt();
246int sys_shmget();
247int sys_shutdown();
248int sys_sigaction();
249int sys_sigaltstack();
250int sys_siggetmask();
251int sys_signal();
252int sys_signalfd();
253int sys_signalfd4();
254int sys_sigpending();
255int sys_sigprocmask();
256int sys_sigreturn();
257int sys_sigsetmask();
258int sys_sigsuspend();
259int sys_socket();
Dmitry V. Levinb5e88d42012-02-20 17:02:38 +0000260int sys_socketcall();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +0000261int sys_socketpair();
262int sys_splice();
263int sys_stat();
264int sys_stat64();
265int sys_statfs();
266int sys_statfs64();
267int sys_stime();
Dmitry V. Levin88293652012-03-09 21:02:19 +0000268int sys_swapon();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +0000269int sys_symlinkat();
William Manley16b9dcf2013-08-09 18:04:11 +0100270int sys_sync_file_range();
271int sys_sync_file_range2();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +0000272int sys_sysctl();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +0000273int sys_sysinfo();
Dmitry V. Levinee3c22c2012-03-13 15:28:01 +0000274int sys_syslog();
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
Dmitry V. Levina12c70d2011-11-28 23:41:58 +0000318#if defined(ALPHA) || defined(IA64) || defined(SPARC) || defined(SPARC64)
Wichert Akkerman8b1b40c2000-02-03 21:58:30 +0000319int sys_getpagesize();
320#endif
Wichert Akkerman76baf7c1999-02-19 00:21:36 +0000321
Wichert Akkerman0cbfb322001-02-19 13:35:53 +0000322#ifdef MIPS
Wichert Akkermand6b92492001-04-07 21:37:12 +0000323int sys_sysmips();
Wichert Akkerman0cbfb322001-02-19 13:35:53 +0000324#endif
325
Carmelo AMOROSOf8e56502010-12-01 14:27:07 +0100326#if defined M68K || defined SH
Wichert Akkerman2e2553a1999-05-09 00:29:58 +0000327int sys_cacheflush();
328#endif
Roland McGrath542c2c62008-05-20 01:11:56 +0000329
Christian Svensson492f81f2013-02-14 13:26:27 +0100330#if defined OR1K
331int sys_or1k_atomic();
332#endif
333
Roland McGrath4a6f6522008-08-25 03:09:16 +0000334#ifdef POWERPC
335int sys_subpage_prot();
336#endif
Dmitry V. Levin87ea1f42008-11-10 22:21:41 +0000337
338#ifdef BFIN
Mike Frysinger260e5712010-09-11 15:04:18 -0400339int sys_cacheflush();
Dmitry V. Levina12c70d2011-11-28 23:41:58 +0000340int sys_sram_alloc();
Dmitry V. Levin87ea1f42008-11-10 22:21:41 +0000341#endif
Mike Frysinger330a8952011-02-19 15:48:52 -0500342
343#if defined SPARC || defined SPARC64
344#include "sparc/syscall1.h"
345int sys_execv();
Dmitry V. Levindd760852011-11-28 23:25:13 +0000346int sys_getmsg();
347int sys_putmsg();
Mike Frysinger330a8952011-02-19 15:48:52 -0500348#endif