Home | History | Annotate | Download | only in sparc
      1 /*
      2  * Copyright (c) 1991, 1992 Paul Kranenburg <pk (at) cs.few.eur.nl>
      3  * Copyright (c) 1993, 1994, 1995, 1996 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  *	$Id: syscall.h,v 1.10 2005/02/02 20:32:13 roland Exp $
     29  */
     30 #include "dummy.h"
     31 
     32 int	sys_nosys();
     33 int	sys_nullsys();
     34 int	sys_errsys();
     35 
     36 /* 1.1 processes and protection */
     37 int	sys_gethostid(),sys_sethostname(),sys_gethostname(),sys_getpid();
     38 int	sys_setdomainname(),sys_getdomainname();
     39 int	sys_fork(),sys_clone(),sys_exit(),sys_execv(),sys_execve(),sys_wait4(),sys_waitpid();
     40 int	sys_setuid(),sys_setgid(),sys_getuid(),sys_setreuid(),sys_getgid(),sys_getgroups(),sys_setregid(),sys_setgroups();
     41 int	sys_getpgrp(),sys_setpgrp();
     42 int	sys_setsid(), sys_setpgid();
     43 int	sys_uname(), sys_sysinfo();
     44 
     45 /* 1.2 memory management */
     46 int	sys_brk(),sys_sbrk(),sys_sstk();
     47 int	sys_getpagesize(),sys_mmap(),sys_mctl(),sys_munmap(),sys_mprotect(),sys_mincore(), sys_mremap();
     48 int	sys_omsync(),sys_omadvise(), sys_madvise(),sys_mlockall();
     49 
     50 /* 1.3 signals */
     51 int	sys_sigvec(),sys_sigblock(),sys_sigsetmask(),sys_sigpause(),sys_sigstack(),sys_sigcleanup(), sys_sigreturn();
     52 int	sys_kill(), sys_killpg(), sys_sigpending(), sys_signal(), sys_sigaction(), sys_sigsuspend(), sys_sigprocmask();
     53 
     54 /* 1.4 timing and statistics */
     55 int	sys_gettimeofday(),sys_settimeofday();
     56 int	sys_adjtime(), sys_adjtimex();
     57 int	sys_getitimer(),sys_setitimer();
     58 
     59 /* 1.5 descriptors */
     60 int	sys_getdtablesize(),sys_dup(),sys_dup2(),sys_close();
     61 int	sys_oldselect(),sys_select(),sys_getdopt(),sys_setdopt(),sys_fcntl(),sys_flock();
     62 int	sys_epoll_create(), sys_epoll_ctl(), sys_epoll_wait();
     63 
     64 /* 1.6 resource controls */
     65 int	sys_getpriority(),sys_setpriority(),sys_getrusage(),sys_getrlimit(),sys_setrlimit();
     66 int	sys_oldquota(), sys_quotactl();
     67 int	sys_rtschedule(), sys_personality();
     68 
     69 /* 1.7 system operation support */
     70 int	sys_mount(),sys_unmount(),sys_swapon(),sys_pivotroot();
     71 int	sys_sync(),sys_reboot();
     72 int	sys_sysacct();
     73 int	sys_auditsys();
     74 
     75 /* 2.1 generic operations */
     76 int	sys_read(),sys_write(),sys_readv(),sys_writev(),sys_ioctl();
     77 
     78 /* 2.1.1 asynch operations */
     79 int	sys_aioread(), sys_aiowrite(), sys_aiowait(), sys_aiocancel();
     80 
     81 /* 2.2 file system */
     82 int	sys_chdir(),sys_chroot();
     83 int	sys_fchdir(),sys_fchroot();
     84 int	sys_mkdir(),sys_rmdir(),sys_getdirentries();
     85 int	sys_getdents(), sys_getdents64(), sys_readdir();
     86 int	sys_creat(),sys_open(),sys_mknod(),sys_unlink(),sys_stat(),sys_fstat(),sys_lstat();
     87 int	sys_chown(),sys_fchown(),sys_chmod(),sys_fchmod(),sys_utimes();
     88 int	sys_link(),sys_symlink(),sys_readlink(),sys_rename();
     89 int	sys_lseek(), sys_llseek();
     90 int	sys_truncate(),sys_ftruncate(),sys_access(),sys_fsync(),sys_sysctl();
     91 int	sys_statfs(),sys_fstatfs(),sys_msync();
     92 int sys_stat64(), sys_lstat64(), sys_fstat64();
     93 int sys_truncate64(), sys_ftruncate64();
     94 
     95 
     96 /* 2.3 communications */
     97 int	sys_socket(),sys_bind(),sys_listen(),sys_accept(),sys_connect();
     98 int	sys_socketpair(),sys_sendto(),sys_send(),sys_recvfrom(),sys_recv();
     99 int	sys_sendmsg(),sys_recvmsg(),sys_shutdown(),sys_setsockopt(),sys_getsockopt();
    100 int	sys_getsockname(),sys_getpeername(),sys_pipe();
    101 
    102 int sys_setresuid(), sys_setresgid(), sys_getresuid(), sys_getresgid(), sys_pread();
    103 int sys_pwrite(), sys_getcwd();
    104 int sys_sigaltstack(), sys_rt_sigprocmask(), sys_rt_sigaction();
    105 int sys_rt_sigpending(), sys_rt_sigsuspend(), sys_rt_sigqueueinfo();
    106 int sys_rt_sigtimedwait(), sys_prctl(), sys_poll();
    107 int sys_sendfile(), sys_query_module(), sys_capget(), sys_capset();
    108 int sys_create_module(), sys_init_module();
    109 
    110 int	sys_umask();		/* XXX */
    111 
    112 int sys_sched_setparam(), sys_sched_getparam();
    113 int sys_sched_setscheduler(), sys_sched_getscheduler(), sys_sched_yield();
    114 int sys_sched_get_priority_max(), sys_sched_get_priority_min();
    115 
    116 /* 2.3.1 SystemV-compatible IPC */
    117 int	sys_semsys(), sys_semctl(), sys_semget();
    118 #define SYS_semsys_subcall	200
    119 #define SYS_semsys_nsubcalls	3
    120 #define SYS_semctl		(SYS_semsys_subcall + 0)
    121 #define SYS_semget		(SYS_semsys_subcall + 1)
    122 #define SYS_semop		(SYS_semsys_subcall + 2)
    123 int	sys_msgsys(), sys_msgget(), sys_msgctl(), sys_msgrcv(), sys_msgsnd();
    124 #define SYS_msgsys_subcall	203
    125 #define SYS_msgsys_nsubcalls	4
    126 #define SYS_msgget		(SYS_msgsys_subcall + 0)
    127 #define SYS_msgctl		(SYS_msgsys_subcall + 1)
    128 #define SYS_msgrcv		(SYS_msgsys_subcall + 2)
    129 #define SYS_msgsnd		(SYS_msgsys_subcall + 3)
    130 int	sys_shmsys(), sys_shmat(), sys_shmctl(), sys_shmdt(), sys_shmget();
    131 #define SYS_shmsys_subcall	207
    132 #define SYS_shmsys_nsubcalls	4
    133 #define	SYS_shmat		(SYS_shmsys_subcall + 0)
    134 #define SYS_shmctl		(SYS_shmsys_subcall + 1)
    135 #define SYS_shmdt		(SYS_shmsys_subcall + 2)
    136 #define SYS_shmget		(SYS_shmsys_subcall + 3)
    137 
    138 /* 2.4 processes */
    139 int	sys_ptrace();
    140 
    141 /* 2.5 terminals */
    142 
    143 /* emulations for backwards compatibility */
    144 int	sys_otime();		/* now use gettimeofday */
    145 int	sys_ostime();		/* now use settimeofday */
    146 int	sys_oalarm();		/* now use setitimer */
    147 int	sys_outime();		/* now use utimes */
    148 int	sys_opause();		/* now use sigpause */
    149 int	sys_onice();		/* now use setpriority,getpriority */
    150 int	sys_oftime();		/* now use gettimeofday */
    151 int	sys_osetpgrp();		/* ??? */
    152 int	sys_otimes();		/* now use getrusage */
    153 int	sys_ossig();		/* now use sigvec, etc */
    154 int	sys_ovlimit();		/* now use setrlimit,getrlimit */
    155 int	sys_ovtimes();		/* now use getrusage */
    156 int	sys_osetuid();		/* now use setreuid */
    157 int	sys_osetgid();		/* now use setregid */
    158 int	sys_ostat();		/* now use stat */
    159 int	sys_ofstat();		/* now use fstat */
    160 
    161 /* BEGIN JUNK */
    162 int	sys_profil();		/* 'cuz sys calls are interruptible */
    163 int	sys_vhangup();		/* should just do in sys_exit() */
    164 int	sys_vfork();		/* XXX - was awaiting fork w/ copy on write */
    165 int	sys_ovadvise();		/* awaiting new madvise */
    166 int	sys_indir();		/* indirect system call */
    167 int	sys_ustat();		/* System V compatibility */
    168 int	sys_owait();		/* should use wait4 interface */
    169 int	sys_owait3();		/* should use wait4 interface */
    170 int	sys_umount();		/* still more Sys V (and 4.2?) compatibility */
    171 int	sys_umount2();
    172 int	sys_pathconf();		/* posix */
    173 int	sys_fpathconf();		/* posix */
    174 int	sys_sysconf();		/* posix */
    175 int     sys_delete_module();
    176 int sys_debug();
    177 /* END JUNK */
    178 
    179 int	sys_vtrace();		/* kernel event tracing */
    180 
    181 /* nfs */
    182 int	sys_async_daemon();		/* client async daemon */
    183 int	sys_nfs_svc();		/* run nfs server */
    184 int	sys_nfs_getfh();		/* get file handle */
    185 int	sys_exportfs();		/* export file systems */
    186 
    187 int  	sys_rfssys();		/* RFS-related calls */
    188 
    189 int	sys_getmsg();
    190 int	sys_putmsg();
    191 int	sys_poll();
    192 
    193 int	sys_vpixsys();		/* VP/ix system calls */
    194 
    195 int	sys_sendfile64(), sys_futex(), sys_gettid(), sys_sched_setaffinity();
    196 int	sys_sched_getaffinity(), sys_setxattr(), sys_lsetxattr();
    197 int	sys_fsetxattr(), sys_getxattr(), sys_lgetxattr(), sys_fgetxattr();
    198 int	sys_listxattr(), sys_llistxattr(), sys_flistxattr();
    199 int	sys_removexattr(), sys_lremovexattr(), sys_fremovexattr();
    200 int	sys_remap_file_pages(), sys_readahead(), sys_tgkill(), sys_statfs64();
    201 int	sys_fstatfs64(), sys_clock_settime(), sys_clock_gettime();
    202 int	sys_clock_getres(), sys_clock_nanosleep();
    203 int	sys_timer_create(), sys_timer_settime(), sys_timer_gettime();
    204 
    205 #include "syscall1.h"
    206