Home | History | Annotate | Line # | Download | only in sunos32
sunos32_syscalls.c revision 1.16.8.1
      1  1.16.8.1     yamt /* $NetBSD: sunos32_syscalls.c,v 1.16.8.1 2006/08/11 15:43:41 yamt Exp $ */
      2       1.1      mrg 
      3       1.1      mrg /*
      4       1.1      mrg  * System call names.
      5       1.1      mrg  *
      6       1.1      mrg  * DO NOT EDIT-- this file is automatically generated.
      7  1.16.8.1     yamt  * created from;	NetBSD: syscalls.master,v 1.13 2006/07/13 23:38:57 pavel Exp
      8       1.1      mrg  */
      9       1.6    lukem 
     10       1.6    lukem #include <sys/cdefs.h>
     11  1.16.8.1     yamt __KERNEL_RCSID(0, "$NetBSD: sunos32_syscalls.c,v 1.16.8.1 2006/08/11 15:43:41 yamt Exp $");
     12       1.1      mrg 
     13       1.5      mrg #if defined(_KERNEL_OPT)
     14       1.5      mrg #if defined(_KERNEL_OPT)
     15       1.1      mrg #include "opt_nfsserver.h"
     16       1.1      mrg #include "opt_sysv.h"
     17      1.15      chs #include "opt_compat_sunos.h"
     18       1.1      mrg #include "fs_nfs.h"
     19       1.1      mrg #endif
     20       1.1      mrg #include <sys/param.h>
     21       1.1      mrg #include <sys/systm.h>
     22       1.1      mrg #include <sys/signal.h>
     23       1.1      mrg #include <sys/mount.h>
     24       1.1      mrg #include <sys/poll.h>
     25      1.10  thorpej #include <sys/sa.h>
     26       1.1      mrg #include <sys/syscallargs.h>
     27       1.1      mrg #include <compat/sunos/sunos.h>
     28       1.1      mrg #include <compat/sunos/sunos_syscallargs.h>
     29       1.1      mrg #include <compat/netbsd32/netbsd32.h>
     30       1.1      mrg #include <compat/netbsd32/netbsd32_syscallargs.h>
     31       1.1      mrg #include <compat/sunos32/sunos32.h>
     32       1.1      mrg #include <compat/sunos32/sunos32_syscallargs.h>
     33       1.5      mrg #endif /* _KERNEL_OPT */
     34       1.1      mrg 
     35       1.1      mrg const char *const sunos32_syscallnames[] = {
     36       1.1      mrg 	"syscall",			/* 0 = syscall */
     37       1.1      mrg 	"netbsd32_exit",			/* 1 = netbsd32_exit */
     38       1.1      mrg 	"fork",			/* 2 = fork */
     39       1.1      mrg 	"netbsd32_read",			/* 3 = netbsd32_read */
     40       1.1      mrg 	"netbsd32_write",			/* 4 = netbsd32_write */
     41       1.1      mrg 	"open",			/* 5 = open */
     42       1.1      mrg 	"netbsd32_close",			/* 6 = netbsd32_close */
     43       1.1      mrg 	"wait4",			/* 7 = wait4 */
     44       1.1      mrg 	"creat",			/* 8 = creat */
     45       1.1      mrg 	"netbsd32_link",			/* 9 = netbsd32_link */
     46       1.1      mrg 	"netbsd32_unlink",			/* 10 = netbsd32_unlink */
     47       1.1      mrg 	"execv",			/* 11 = execv */
     48       1.1      mrg 	"netbsd32_chdir",			/* 12 = netbsd32_chdir */
     49       1.1      mrg 	"#13 (obsolete old_time)",		/* 13 = obsolete old_time */
     50       1.1      mrg 	"mknod",			/* 14 = mknod */
     51       1.1      mrg 	"netbsd32_chmod",			/* 15 = netbsd32_chmod */
     52       1.1      mrg 	"netbsd32_chown",			/* 16 = netbsd32_chown */
     53       1.1      mrg 	"netbsd32_break",			/* 17 = netbsd32_break */
     54       1.1      mrg 	"#18 (obsolete old_stat)",		/* 18 = obsolete old_stat */
     55       1.1      mrg 	"compat_43_netbsd32_olseek",			/* 19 = compat_43_netbsd32_olseek */
     56       1.1      mrg 	"getpid_with_ppid",			/* 20 = getpid_with_ppid */
     57       1.1      mrg 	"#21 (obsolete sunos_old_mount)",		/* 21 = obsolete sunos_old_mount */
     58       1.1      mrg 	"#22 (unimplemented System V umount)",		/* 22 = unimplemented System V umount */
     59       1.1      mrg 	"netbsd32_setuid",			/* 23 = netbsd32_setuid */
     60       1.1      mrg 	"getuid_with_euid",			/* 24 = getuid_with_euid */
     61       1.1      mrg 	"stime",			/* 25 = stime */
     62       1.1      mrg 	"ptrace",			/* 26 = ptrace */
     63       1.1      mrg 	"#27 (unimplemented old_sunos_alarm)",		/* 27 = unimplemented old_sunos_alarm */
     64       1.1      mrg 	"#28 (unimplemented old_sunos_fstat)",		/* 28 = unimplemented old_sunos_fstat */
     65       1.1      mrg 	"#29 (unimplemented old_sunos_pause)",		/* 29 = unimplemented old_sunos_pause */
     66       1.1      mrg 	"#30 (unimplemented old_sunos_utime)",		/* 30 = unimplemented old_sunos_utime */
     67       1.1      mrg 	"#31 (unimplemented old_sunos_stty)",		/* 31 = unimplemented old_sunos_stty */
     68       1.1      mrg 	"#32 (unimplemented old_sunos_gtty)",		/* 32 = unimplemented old_sunos_gtty */
     69       1.1      mrg 	"access",			/* 33 = access */
     70       1.1      mrg 	"#34 (unimplemented old_sunos_nice)",		/* 34 = unimplemented old_sunos_nice */
     71       1.1      mrg 	"#35 (unimplemented old_sunos_ftime)",		/* 35 = unimplemented old_sunos_ftime */
     72       1.1      mrg 	"sync",			/* 36 = sync */
     73       1.1      mrg 	"netbsd32_kill",			/* 37 = netbsd32_kill */
     74       1.1      mrg 	"stat",			/* 38 = stat */
     75       1.1      mrg 	"#39 (unimplemented sunos_setpgrp)",		/* 39 = unimplemented sunos_setpgrp */
     76       1.1      mrg 	"lstat",			/* 40 = lstat */
     77       1.1      mrg 	"netbsd32_dup",			/* 41 = netbsd32_dup */
     78       1.1      mrg 	"pipe",			/* 42 = pipe */
     79       1.1      mrg 	"#43 (unimplemented sunos_times)",		/* 43 = unimplemented sunos_times */
     80       1.1      mrg 	"netbsd32_profil",			/* 44 = netbsd32_profil */
     81       1.1      mrg 	"#45 (unimplemented)",		/* 45 = unimplemented */
     82       1.1      mrg 	"netbsd32_setgid",			/* 46 = netbsd32_setgid */
     83       1.1      mrg 	"getgid_with_egid",			/* 47 = getgid_with_egid */
     84       1.1      mrg 	"#48 (unimplemented sunos_ssig)",		/* 48 = unimplemented sunos_ssig */
     85       1.1      mrg 	"#49 (unimplemented reserved for USG)",		/* 49 = unimplemented reserved for USG */
     86       1.1      mrg 	"#50 (unimplemented reserved for USG)",		/* 50 = unimplemented reserved for USG */
     87       1.1      mrg 	"netbsd32_acct",			/* 51 = netbsd32_acct */
     88       1.1      mrg 	"#52 (unimplemented)",		/* 52 = unimplemented */
     89       1.1      mrg 	"mctl",			/* 53 = mctl */
     90       1.1      mrg 	"ioctl",			/* 54 = ioctl */
     91       1.1      mrg 	"reboot",			/* 55 = reboot */
     92       1.1      mrg 	"#56 (obsolete sunos_owait3)",		/* 56 = obsolete sunos_owait3 */
     93       1.1      mrg 	"netbsd32_symlink",			/* 57 = netbsd32_symlink */
     94       1.1      mrg 	"netbsd32_readlink",			/* 58 = netbsd32_readlink */
     95       1.1      mrg 	"execve",			/* 59 = execve */
     96       1.1      mrg 	"netbsd32_umask",			/* 60 = netbsd32_umask */
     97       1.1      mrg 	"netbsd32_chroot",			/* 61 = netbsd32_chroot */
     98       1.1      mrg 	"compat_43_netbsd32_fstat43",			/* 62 = compat_43_netbsd32_fstat43 */
     99       1.1      mrg 	"#63 (unimplemented)",		/* 63 = unimplemented */
    100       1.1      mrg 	"ogetpagesize",			/* 64 = ogetpagesize */
    101       1.1      mrg 	"omsync",			/* 65 = omsync */
    102       1.1      mrg 	"vfork",			/* 66 = vfork */
    103       1.1      mrg 	"#67 (obsolete vread)",		/* 67 = obsolete vread */
    104       1.1      mrg 	"#68 (obsolete vwrite)",		/* 68 = obsolete vwrite */
    105       1.1      mrg 	"netbsd32_sbrk",			/* 69 = netbsd32_sbrk */
    106       1.1      mrg 	"netbsd32_sstk",			/* 70 = netbsd32_sstk */
    107       1.1      mrg 	"mmap",			/* 71 = mmap */
    108       1.1      mrg 	"vadvise",			/* 72 = vadvise */
    109       1.1      mrg 	"netbsd32_munmap",			/* 73 = netbsd32_munmap */
    110       1.1      mrg 	"netbsd32_mprotect",			/* 74 = netbsd32_mprotect */
    111       1.1      mrg 	"netbsd32_madvise",			/* 75 = netbsd32_madvise */
    112       1.1      mrg 	"vhangup",			/* 76 = vhangup */
    113       1.1      mrg 	"#77 (unimplemented vlimit)",		/* 77 = unimplemented vlimit */
    114       1.1      mrg 	"netbsd32_mincore",			/* 78 = netbsd32_mincore */
    115       1.1      mrg 	"netbsd32_getgroups",			/* 79 = netbsd32_getgroups */
    116       1.1      mrg 	"netbsd32_setgroups",			/* 80 = netbsd32_setgroups */
    117       1.1      mrg 	"getpgrp",			/* 81 = getpgrp */
    118       1.1      mrg 	"setpgrp",			/* 82 = setpgrp */
    119       1.1      mrg 	"netbsd32_setitimer",			/* 83 = netbsd32_setitimer */
    120       1.1      mrg 	"#84 (unimplemented { int sunos32_sys_wait ( void ) ; })",		/* 84 = unimplemented { int sunos32_sys_wait ( void ) ; } */
    121       1.1      mrg 	"compat_12_netbsd32_oswapon",			/* 85 = compat_12_netbsd32_oswapon */
    122       1.1      mrg 	"netbsd32_getitimer",			/* 86 = netbsd32_getitimer */
    123       1.1      mrg 	"compat_43_netbsd32_ogethostname",			/* 87 = compat_43_netbsd32_ogethostname */
    124       1.1      mrg 	"compat_43_netbsd32_osethostname",			/* 88 = compat_43_netbsd32_osethostname */
    125       1.1      mrg 	"ogetdtablesize",			/* 89 = ogetdtablesize */
    126       1.1      mrg 	"netbsd32_dup2",			/* 90 = netbsd32_dup2 */
    127       1.1      mrg 	"#91 (unimplemented getdopt)",		/* 91 = unimplemented getdopt */
    128       1.1      mrg 	"fcntl",			/* 92 = fcntl */
    129       1.4      mrg 	"netbsd32_select",			/* 93 = netbsd32_select */
    130       1.1      mrg 	"#94 (unimplemented setdopt)",		/* 94 = unimplemented setdopt */
    131       1.1      mrg 	"netbsd32_fsync",			/* 95 = netbsd32_fsync */
    132       1.1      mrg 	"netbsd32_setpriority",			/* 96 = netbsd32_setpriority */
    133       1.7      mrg 	"socket",			/* 97 = socket */
    134       1.1      mrg 	"netbsd32_connect",			/* 98 = netbsd32_connect */
    135       1.1      mrg 	"compat_43_netbsd32_oaccept",			/* 99 = compat_43_netbsd32_oaccept */
    136       1.1      mrg 	"netbsd32_getpriority",			/* 100 = netbsd32_getpriority */
    137       1.1      mrg 	"compat_43_netbsd32_osend",			/* 101 = compat_43_netbsd32_osend */
    138       1.1      mrg 	"compat_43_netbsd32_orecv",			/* 102 = compat_43_netbsd32_orecv */
    139       1.1      mrg 	"#103 (unimplemented old socketaddr)",		/* 103 = unimplemented old socketaddr */
    140       1.1      mrg 	"netbsd32_bind",			/* 104 = netbsd32_bind */
    141       1.1      mrg 	"setsockopt",			/* 105 = setsockopt */
    142       1.1      mrg 	"netbsd32_listen",			/* 106 = netbsd32_listen */
    143       1.1      mrg 	"#107 (unimplemented vtimes)",		/* 107 = unimplemented vtimes */
    144       1.1      mrg 	"sigvec",			/* 108 = sigvec */
    145       1.1      mrg 	"compat_43_netbsd32_sigblock",			/* 109 = compat_43_netbsd32_sigblock */
    146       1.1      mrg 	"compat_43_netbsd32_sigsetmask",			/* 110 = compat_43_netbsd32_sigsetmask */
    147       1.1      mrg 	"sigsuspend",			/* 111 = sigsuspend */
    148       1.1      mrg 	"compat_43_netbsd32_osigstack",			/* 112 = compat_43_netbsd32_osigstack */
    149       1.1      mrg 	"compat_43_netbsd32_orecvmsg",			/* 113 = compat_43_netbsd32_orecvmsg */
    150       1.1      mrg 	"compat_43_netbsd32_osendmsg",			/* 114 = compat_43_netbsd32_osendmsg */
    151       1.1      mrg 	"#115 (obsolete vtrace)",		/* 115 = obsolete vtrace */
    152       1.1      mrg 	"netbsd32_gettimeofday",			/* 116 = netbsd32_gettimeofday */
    153       1.1      mrg 	"netbsd32_getrusage",			/* 117 = netbsd32_getrusage */
    154       1.1      mrg 	"netbsd32_getsockopt",			/* 118 = netbsd32_getsockopt */
    155       1.1      mrg 	"#119 (unimplemented)",		/* 119 = unimplemented */
    156       1.1      mrg 	"netbsd32_readv",			/* 120 = netbsd32_readv */
    157       1.1      mrg 	"netbsd32_writev",			/* 121 = netbsd32_writev */
    158       1.1      mrg 	"netbsd32_settimeofday",			/* 122 = netbsd32_settimeofday */
    159       1.1      mrg 	"netbsd32_fchown",			/* 123 = netbsd32_fchown */
    160       1.1      mrg 	"netbsd32_fchmod",			/* 124 = netbsd32_fchmod */
    161       1.1      mrg 	"compat_43_netbsd32_orecvfrom",			/* 125 = compat_43_netbsd32_orecvfrom */
    162       1.1      mrg 	"netbsd32_setreuid",			/* 126 = netbsd32_setreuid */
    163       1.1      mrg 	"netbsd32_setregid",			/* 127 = netbsd32_setregid */
    164       1.1      mrg 	"netbsd32_rename",			/* 128 = netbsd32_rename */
    165       1.1      mrg 	"compat_43_netbsd32_otruncate",			/* 129 = compat_43_netbsd32_otruncate */
    166       1.1      mrg 	"compat_43_netbsd32_oftruncate",			/* 130 = compat_43_netbsd32_oftruncate */
    167       1.1      mrg 	"netbsd32_flock",			/* 131 = netbsd32_flock */
    168       1.1      mrg 	"#132 (unimplemented)",		/* 132 = unimplemented */
    169       1.1      mrg 	"netbsd32_sendto",			/* 133 = netbsd32_sendto */
    170       1.1      mrg 	"netbsd32_shutdown",			/* 134 = netbsd32_shutdown */
    171       1.7      mrg 	"socketpair",			/* 135 = socketpair */
    172       1.1      mrg 	"netbsd32_mkdir",			/* 136 = netbsd32_mkdir */
    173       1.1      mrg 	"netbsd32_rmdir",			/* 137 = netbsd32_rmdir */
    174       1.1      mrg 	"netbsd32_utimes",			/* 138 = netbsd32_utimes */
    175       1.1      mrg 	"sigreturn",			/* 139 = sigreturn */
    176       1.1      mrg 	"netbsd32_adjtime",			/* 140 = netbsd32_adjtime */
    177       1.1      mrg 	"compat_43_netbsd32_ogetpeername",			/* 141 = compat_43_netbsd32_ogetpeername */
    178       1.1      mrg 	"gethostid",			/* 142 = gethostid */
    179       1.1      mrg 	"#143 (unimplemented old sethostid)",		/* 143 = unimplemented old sethostid */
    180       1.1      mrg 	"getrlimit",			/* 144 = getrlimit */
    181       1.1      mrg 	"setrlimit",			/* 145 = setrlimit */
    182       1.1      mrg 	"compat_43_netbsd32_killpg",			/* 146 = compat_43_netbsd32_killpg */
    183       1.1      mrg 	"#147 (unimplemented)",		/* 147 = unimplemented */
    184       1.1      mrg 	"#148 (unimplemented)",		/* 148 = unimplemented */
    185       1.1      mrg 	"#149 (unimplemented)",		/* 149 = unimplemented */
    186       1.1      mrg 	"compat_43_netbsd32_ogetsockname",			/* 150 = compat_43_netbsd32_ogetsockname */
    187       1.1      mrg 	"#151 (unimplemented getmsg)",		/* 151 = unimplemented getmsg */
    188       1.1      mrg 	"#152 (unimplemented putmsg)",		/* 152 = unimplemented putmsg */
    189       1.1      mrg 	"netbsd32_poll",			/* 153 = netbsd32_poll */
    190       1.1      mrg 	"#154 (unimplemented)",		/* 154 = unimplemented */
    191       1.1      mrg #ifdef NFSSERVER
    192       1.1      mrg 	"nfssvc",			/* 155 = nfssvc */
    193       1.1      mrg #else
    194       1.1      mrg 	"#155 (unimplemented)",		/* 155 = unimplemented */
    195       1.1      mrg #endif
    196       1.1      mrg 	"compat_43_netbsd32_ogetdirentries",			/* 156 = compat_43_netbsd32_ogetdirentries */
    197       1.1      mrg 	"statfs",			/* 157 = statfs */
    198       1.1      mrg 	"fstatfs",			/* 158 = fstatfs */
    199       1.1      mrg 	"unmount",			/* 159 = unmount */
    200       1.1      mrg #ifdef NFS
    201       1.1      mrg 	"async_daemon",			/* 160 = async_daemon */
    202       1.1      mrg 	"getfh",			/* 161 = getfh */
    203       1.1      mrg #else
    204       1.1      mrg 	"#160 (unimplemented)",		/* 160 = unimplemented */
    205       1.1      mrg 	"#161 (unimplemented)",		/* 161 = unimplemented */
    206       1.1      mrg #endif
    207       1.1      mrg 	"compat_09_netbsd32_ogetdomainname",			/* 162 = compat_09_netbsd32_ogetdomainname */
    208       1.1      mrg 	"compat_09_netbsd32_osetdomainname",			/* 163 = compat_09_netbsd32_osetdomainname */
    209       1.1      mrg 	"#164 (unimplemented rtschedule)",		/* 164 = unimplemented rtschedule */
    210       1.1      mrg 	"quotactl",			/* 165 = quotactl */
    211       1.1      mrg 	"exportfs",			/* 166 = exportfs */
    212       1.1      mrg 	"mount",			/* 167 = mount */
    213       1.1      mrg 	"ustat",			/* 168 = ustat */
    214       1.1      mrg #ifdef SYSVSEM
    215       1.1      mrg 	"osemsys",			/* 169 = osemsys */
    216       1.1      mrg #else
    217       1.1      mrg 	"#169 (unimplemented semsys)",		/* 169 = unimplemented semsys */
    218       1.1      mrg #endif
    219       1.1      mrg #ifdef SYSVMSG
    220       1.1      mrg 	"omsgsys",			/* 170 = omsgsys */
    221       1.1      mrg #else
    222       1.1      mrg 	"#170 (unimplemented msgsys)",		/* 170 = unimplemented msgsys */
    223       1.1      mrg #endif
    224       1.1      mrg #ifdef SYSVSHM
    225       1.1      mrg 	"oshmsys",			/* 171 = oshmsys */
    226       1.1      mrg #else
    227       1.1      mrg 	"#171 (unimplemented shmsys)",		/* 171 = unimplemented shmsys */
    228       1.1      mrg #endif
    229       1.1      mrg 	"auditsys",			/* 172 = auditsys */
    230       1.1      mrg 	"#173 (unimplemented rfssys)",		/* 173 = unimplemented rfssys */
    231       1.1      mrg 	"getdents",			/* 174 = getdents */
    232       1.1      mrg 	"setsid",			/* 175 = setsid */
    233       1.1      mrg 	"netbsd32_fchdir",			/* 176 = netbsd32_fchdir */
    234       1.1      mrg 	"netbsd32_fchroot",			/* 177 = netbsd32_fchroot */
    235       1.1      mrg 	"#178 (unimplemented vpixsys)",		/* 178 = unimplemented vpixsys */
    236       1.1      mrg 	"#179 (unimplemented aioread)",		/* 179 = unimplemented aioread */
    237       1.1      mrg 	"#180 (unimplemented aiowrite)",		/* 180 = unimplemented aiowrite */
    238       1.1      mrg 	"#181 (unimplemented aiowait)",		/* 181 = unimplemented aiowait */
    239       1.1      mrg 	"#182 (unimplemented aiocancel)",		/* 182 = unimplemented aiocancel */
    240       1.1      mrg 	"sigpending",			/* 183 = sigpending */
    241       1.1      mrg 	"#184 (unimplemented)",		/* 184 = unimplemented */
    242       1.1      mrg 	"netbsd32_setpgid",			/* 185 = netbsd32_setpgid */
    243       1.1      mrg 	"netbsd32_pathconf",			/* 186 = netbsd32_pathconf */
    244       1.1      mrg 	"netbsd32_fpathconf",			/* 187 = netbsd32_fpathconf */
    245       1.1      mrg 	"sysconf",			/* 188 = sysconf */
    246       1.1      mrg 	"uname",			/* 189 = uname */
    247       1.1      mrg };
    248