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