Home | History | Annotate | Download | only in linux
      1 /*
      2  * Copyright (c) 1993 Branko Lankester <branko (at) hacktic.nl>
      3  * Copyright (c) 1993, 1994, 1995 Rick Sladkey <jrs (at) 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 
     29 #include "dummy.h"
     30 
     31 /* common syscalls */
     32 
     33 int sys_accept();
     34 int sys_accept4();
     35 int sys_access();
     36 int sys_add_key();
     37 int sys_adjtimex();
     38 int sys_arch_prctl();
     39 int sys_bind();
     40 int sys_brk();
     41 int sys_capget();
     42 int sys_capset();
     43 int sys_chdir();
     44 int sys_chmod();
     45 int sys_chown();
     46 int sys_clock_adjtime();
     47 int sys_clock_gettime();
     48 int sys_clock_nanosleep();
     49 int sys_clock_settime();
     50 int sys_clone();
     51 int sys_close();
     52 int sys_connect();
     53 int sys_creat();
     54 int sys_create_module();
     55 int sys_delete_module();
     56 int sys_dup();
     57 int sys_dup2();
     58 int sys_dup3();
     59 int sys_epoll_create();
     60 int sys_epoll_create1();
     61 int sys_epoll_ctl();
     62 int sys_epoll_pwait();
     63 int sys_epoll_wait();
     64 int sys_eventfd();
     65 int sys_eventfd2();
     66 int sys_execve();
     67 int sys_exit();
     68 int sys_faccessat();
     69 int sys_fadvise64();
     70 int sys_fadvise64_64();
     71 int sys_fallocate();
     72 int sys_fanotify_init();
     73 int sys_fanotify_mark();
     74 int sys_fchmod();
     75 int sys_fchmodat();
     76 int sys_fchown();
     77 int sys_fchownat();
     78 int sys_fcntl();
     79 int sys_fgetxattr();
     80 int sys_finit_module();
     81 int sys_flistxattr();
     82 int sys_flock();
     83 int sys_fork();
     84 int sys_fremovexattr();
     85 int sys_fsetxattr();
     86 int sys_fstat();
     87 int sys_fstat64();
     88 int sys_fstatfs();
     89 int sys_fstatfs64();
     90 int sys_ftruncate();
     91 int sys_ftruncate64();
     92 int sys_futex();
     93 int sys_futimesat();
     94 int sys_get_mempolicy();
     95 int sys_get_robust_list();
     96 int sys_get_thread_area();
     97 int sys_getcpu();
     98 int sys_getcwd();
     99 int sys_getdents();
    100 int sys_getdents64();
    101 int sys_getdtablesize();
    102 int sys_getgroups();
    103 int sys_getgroups32();
    104 int sys_gethostname();
    105 int sys_getitimer();
    106 int sys_getpeername();
    107 int sys_getpmsg(); /* TODO: non-Linux, remove? */
    108 int sys_getpriority();
    109 int sys_getresuid();
    110 int sys_getrlimit();
    111 int sys_getrusage();
    112 int sys_getsockname();
    113 int sys_getsockopt();
    114 int sys_gettimeofday();
    115 int sys_getuid();
    116 int sys_getxattr();
    117 int sys_init_module();
    118 int sys_inotify_add_watch();
    119 int sys_inotify_init1();
    120 int sys_inotify_rm_watch();
    121 int sys_io_cancel();
    122 int sys_io_destroy();
    123 int sys_io_getevents();
    124 int sys_io_setup();
    125 int sys_io_submit();
    126 int sys_ioctl();
    127 int sys_ioprio_get();
    128 int sys_ioprio_set();
    129 int sys_ipc();
    130 int sys_keyctl();
    131 int sys_kexec_load();
    132 int sys_kill();
    133 int sys_link();
    134 int sys_linkat();
    135 int sys_listen();
    136 int sys_listxattr();
    137 int sys_llseek();
    138 int sys_lseek();
    139 int sys_madvise();
    140 int sys_mbind();
    141 int sys_migrate_pages();
    142 int sys_mincore();
    143 int sys_mkdir();
    144 int sys_mkdirat();
    145 int sys_mknod();
    146 int sys_mknodat();
    147 int sys_mlockall();
    148 int sys_mmap();
    149 int sys_mmap_pgoff();
    150 int sys_mmap_4koff();
    151 int sys_modify_ldt();
    152 int sys_mount();
    153 int sys_move_pages();
    154 int sys_mprotect();
    155 int sys_mq_getsetattr();
    156 int sys_mq_notify();
    157 int sys_mq_open();
    158 int sys_mq_timedreceive();
    159 int sys_mq_timedsend();
    160 int sys_mremap();
    161 int sys_msgctl();
    162 int sys_msgget();
    163 int sys_msgrcv();
    164 int sys_msgsnd();
    165 int sys_msync();
    166 int sys_munmap();
    167 int sys_nanosleep();
    168 int sys_newfstatat();
    169 int sys_old_mmap();
    170 int sys_old_mmap_pgoff();
    171 int sys_oldfstat();
    172 int sys_oldselect();
    173 int sys_oldstat();
    174 int sys_open();
    175 int sys_openat();
    176 int sys_perf_event_open();
    177 int sys_personality();
    178 int sys_pipe();
    179 int sys_pipe2();
    180 int sys_poll();
    181 int sys_poll();
    182 int sys_ppoll();
    183 int sys_prctl();
    184 int sys_pread();
    185 int sys_preadv();
    186 int sys_prlimit64();
    187 int sys_process_vm_readv();
    188 int sys_process_vm_writev();
    189 int sys_pselect6();
    190 int sys_ptrace();
    191 int sys_putpmsg(); /* TODO: non-Linux, remove? */
    192 int sys_pwrite();
    193 int sys_pwritev();
    194 int sys_query_module();
    195 int sys_quotactl();
    196 int sys_read();
    197 int sys_readahead();
    198 int sys_readdir();
    199 int sys_readlink();
    200 int sys_readlinkat();
    201 int sys_readv();
    202 int sys_reboot();
    203 int sys_recv();
    204 int sys_recvfrom();
    205 int sys_recvmmsg();
    206 int sys_recvmsg();
    207 int sys_remap_file_pages();
    208 int sys_removexattr();
    209 int sys_renameat();
    210 int sys_request_key();
    211 int sys_restart_syscall();
    212 int sys_rt_sigaction();
    213 int sys_rt_sigpending();
    214 int sys_rt_sigprocmask();
    215 int sys_rt_sigqueueinfo();
    216 int sys_rt_sigsuspend();
    217 int sys_rt_sigtimedwait();
    218 int sys_rt_tgsigqueueinfo();
    219 int sys_sched_get_priority_min();
    220 int sys_sched_getaffinity();
    221 int sys_sched_getparam();
    222 int sys_sched_getscheduler();
    223 int sys_sched_rr_get_interval();
    224 int sys_sched_setaffinity();
    225 int sys_sched_setparam();
    226 int sys_sched_setscheduler();
    227 int sys_select();
    228 int sys_semctl();
    229 int sys_semget();
    230 int sys_semop();
    231 int sys_semtimedop();
    232 int sys_send();
    233 int sys_sendfile();
    234 int sys_sendfile64();
    235 int sys_sendmmsg();
    236 int sys_sendmsg();
    237 int sys_sendto();
    238 int sys_set_mempolicy();
    239 int sys_set_thread_area();
    240 int sys_setdomainname();
    241 int sys_setfsuid();
    242 int sys_setgroups();
    243 int sys_setgroups32();
    244 int sys_sethostname();
    245 int sys_setitimer();
    246 int sys_setns();
    247 int sys_setpriority();
    248 int sys_setresuid();
    249 int sys_setreuid();
    250 int sys_setrlimit();
    251 int sys_setsockopt();
    252 int sys_settimeofday();
    253 int sys_setuid();
    254 int sys_setxattr();
    255 int sys_shmat();
    256 int sys_shmctl();
    257 int sys_shmdt();
    258 int sys_shmget();
    259 int sys_shutdown();
    260 int sys_sigaction();
    261 int sys_sigaltstack();
    262 int sys_siggetmask();
    263 int sys_signal();
    264 int sys_signalfd();
    265 int sys_signalfd4();
    266 int sys_sigpending();
    267 int sys_sigprocmask();
    268 int sys_sigreturn();
    269 int sys_sigsetmask();
    270 int sys_sigsuspend();
    271 int sys_socket();
    272 int sys_socketcall();
    273 int sys_socketpair();
    274 int sys_splice();
    275 int sys_stat();
    276 int sys_stat64();
    277 int sys_statfs();
    278 int sys_statfs64();
    279 int sys_stime();
    280 int sys_swapon();
    281 int sys_symlinkat();
    282 int sys_sync_file_range();
    283 int sys_sync_file_range2();
    284 int sys_sysctl();
    285 int sys_sysinfo();
    286 int sys_syslog();
    287 int sys_tee();
    288 int sys_tgkill();
    289 int sys_time();
    290 int sys_timer_create();
    291 int sys_timer_gettime();
    292 int sys_timer_settime();
    293 int sys_timerfd();
    294 int sys_timerfd_create();
    295 int sys_timerfd_gettime();
    296 int sys_timerfd_settime();
    297 int sys_times();
    298 int sys_truncate();
    299 int sys_truncate64();
    300 int sys_umask();
    301 int sys_umount2();
    302 int sys_uname();
    303 int sys_unlinkat();
    304 int sys_unshare();
    305 int sys_utime();
    306 int sys_utimensat();
    307 int sys_utimes();
    308 int sys_vmsplice();
    309 int sys_wait4();
    310 int sys_waitid();
    311 int sys_waitpid();
    312 int sys_write();
    313 int sys_writev();
    314 
    315 /* architecture-specific calls */
    316 #ifdef ALPHA
    317 int osf_statfs();
    318 int osf_fstatfs();
    319 int sys_osf_getitimer();
    320 int sys_osf_getrusage();
    321 int sys_osf_gettimeofday();
    322 int sys_osf_select();
    323 int sys_osf_setitimer();
    324 int sys_osf_settimeofday();
    325 int sys_osf_utimes();
    326 int sys_osf_wait4();
    327 #endif
    328 
    329 #if defined(ALPHA) || defined(IA64) || defined(SPARC) || defined(SPARC64)
    330 int sys_getpagesize();
    331 #endif
    332 
    333 #ifdef MIPS
    334 int sys_sysmips();
    335 #endif
    336 
    337 #if defined M68K || defined SH
    338 int sys_cacheflush();
    339 #endif
    340 
    341 #if defined OR1K
    342 int sys_or1k_atomic();
    343 #endif
    344 
    345 #ifdef POWERPC
    346 int sys_subpage_prot();
    347 #endif
    348 
    349 #ifdef BFIN
    350 int sys_cacheflush();
    351 int sys_sram_alloc();
    352 #endif
    353 
    354 #if defined SPARC || defined SPARC64
    355 #include "sparc/syscall1.h"
    356 int sys_execv();
    357 int sys_getmsg();
    358 int sys_putmsg();
    359 #endif
    360