Home | History | Annotate | Line # | Download | only in sunos
sunos_syscalls.c revision 1.72.8.2
      1  1.72.8.2      yamt /* $NetBSD: sunos_syscalls.c,v 1.72.8.2 2006/09/03 15:23:47 yamt Exp $ */
      2      1.48   thorpej 
      3       1.1   deraadt /*
      4       1.1   deraadt  * System call names.
      5       1.1   deraadt  *
      6       1.1   deraadt  * DO NOT EDIT-- this file is automatically generated.
      7  1.72.8.2      yamt  * created from	NetBSD: syscalls.master,v 1.65 2006/09/01 20:58:18 matt Exp
      8       1.1   deraadt  */
      9      1.66     lukem 
     10      1.66     lukem #include <sys/cdefs.h>
     11  1.72.8.2      yamt __KERNEL_RCSID(0, "$NetBSD: sunos_syscalls.c,v 1.72.8.2 2006/09/03 15:23:47 yamt Exp $");
     12      1.49   thorpej 
     13      1.65       mrg #if defined(_KERNEL_OPT)
     14      1.65       mrg #if defined(_KERNEL_OPT)
     15      1.51   thorpej #include "opt_nfsserver.h"
     16      1.53      tron #include "opt_sysv.h"
     17      1.49   thorpej #include "fs_nfs.h"
     18      1.62   mycroft #endif
     19      1.49   thorpej #include <sys/param.h>
     20      1.49   thorpej #include <sys/systm.h>
     21      1.49   thorpej #include <sys/signal.h>
     22      1.49   thorpej #include <sys/mount.h>
     23      1.49   thorpej #include <sys/poll.h>
     24      1.68   thorpej #include <sys/sa.h>
     25      1.49   thorpej #include <sys/syscallargs.h>
     26      1.49   thorpej #include <compat/sunos/sunos.h>
     27      1.49   thorpej #include <compat/sunos/sunos_syscallargs.h>
     28      1.65       mrg #endif /* _KERNEL_OPT */
     29       1.1   deraadt 
     30      1.62   mycroft const char *const sunos_syscallnames[] = {
     31       1.5   deraadt 	"syscall",			/* 0 = syscall */
     32       1.1   deraadt 	"exit",			/* 1 = exit */
     33       1.1   deraadt 	"fork",			/* 2 = fork */
     34       1.1   deraadt 	"read",			/* 3 = read */
     35       1.1   deraadt 	"write",			/* 4 = write */
     36      1.33   mycroft 	"open",			/* 5 = open */
     37       1.1   deraadt 	"close",			/* 6 = close */
     38      1.33   mycroft 	"wait4",			/* 7 = wait4 */
     39      1.33   mycroft 	"creat",			/* 8 = creat */
     40       1.1   deraadt 	"link",			/* 9 = link */
     41       1.1   deraadt 	"unlink",			/* 10 = unlink */
     42      1.33   mycroft 	"execv",			/* 11 = execv */
     43       1.1   deraadt 	"chdir",			/* 12 = chdir */
     44      1.59       mrg 	"#13 (obsolete old_time)",		/* 13 = obsolete old_time */
     45      1.33   mycroft 	"mknod",			/* 14 = mknod */
     46       1.1   deraadt 	"chmod",			/* 15 = chmod */
     47       1.1   deraadt 	"chown",			/* 16 = chown */
     48       1.1   deraadt 	"break",			/* 17 = break */
     49      1.59       mrg 	"#18 (obsolete old_stat)",		/* 18 = obsolete old_stat */
     50      1.33   mycroft 	"lseek",			/* 19 = lseek */
     51      1.63   mycroft 	"getpid_with_ppid",			/* 20 = getpid_with_ppid */
     52      1.18   deraadt 	"#21 (obsolete sunos_old_mount)",		/* 21 = obsolete sunos_old_mount */
     53      1.18   deraadt 	"#22 (unimplemented System V umount)",		/* 22 = unimplemented System V umount */
     54      1.18   deraadt 	"setuid",			/* 23 = setuid */
     55      1.63   mycroft 	"getuid_with_euid",			/* 24 = getuid_with_euid */
     56      1.37  christos 	"stime",			/* 25 = stime */
     57      1.33   mycroft 	"ptrace",			/* 26 = ptrace */
     58      1.59       mrg 	"#27 (unimplemented old_sunos_alarm)",		/* 27 = unimplemented old_sunos_alarm */
     59      1.59       mrg 	"#28 (unimplemented old_sunos_fstat)",		/* 28 = unimplemented old_sunos_fstat */
     60      1.59       mrg 	"#29 (unimplemented old_sunos_pause)",		/* 29 = unimplemented old_sunos_pause */
     61      1.59       mrg 	"#30 (unimplemented old_sunos_utime)",		/* 30 = unimplemented old_sunos_utime */
     62      1.59       mrg 	"#31 (unimplemented old_sunos_stty)",		/* 31 = unimplemented old_sunos_stty */
     63      1.59       mrg 	"#32 (unimplemented old_sunos_gtty)",		/* 32 = unimplemented old_sunos_gtty */
     64      1.33   mycroft 	"access",			/* 33 = access */
     65      1.59       mrg 	"#34 (unimplemented old_sunos_nice)",		/* 34 = unimplemented old_sunos_nice */
     66      1.59       mrg 	"#35 (unimplemented old_sunos_ftime)",		/* 35 = unimplemented old_sunos_ftime */
     67       1.1   deraadt 	"sync",			/* 36 = sync */
     68       1.1   deraadt 	"kill",			/* 37 = kill */
     69      1.33   mycroft 	"stat",			/* 38 = stat */
     70      1.18   deraadt 	"#39 (unimplemented sunos_setpgrp)",		/* 39 = unimplemented sunos_setpgrp */
     71      1.33   mycroft 	"lstat",			/* 40 = lstat */
     72       1.1   deraadt 	"dup",			/* 41 = dup */
     73       1.1   deraadt 	"pipe",			/* 42 = pipe */
     74      1.18   deraadt 	"#43 (unimplemented sunos_times)",		/* 43 = unimplemented sunos_times */
     75       1.1   deraadt 	"profil",			/* 44 = profil */
     76      1.18   deraadt 	"#45 (unimplemented)",		/* 45 = unimplemented */
     77      1.23   deraadt 	"setgid",			/* 46 = setgid */
     78      1.63   mycroft 	"getgid_with_egid",			/* 47 = getgid_with_egid */
     79      1.18   deraadt 	"#48 (unimplemented sunos_ssig)",		/* 48 = unimplemented sunos_ssig */
     80      1.18   deraadt 	"#49 (unimplemented reserved for USG)",		/* 49 = unimplemented reserved for USG */
     81      1.18   deraadt 	"#50 (unimplemented reserved for USG)",		/* 50 = unimplemented reserved for USG */
     82       1.1   deraadt 	"acct",			/* 51 = acct */
     83      1.18   deraadt 	"#52 (unimplemented)",		/* 52 = unimplemented */
     84      1.33   mycroft 	"mctl",			/* 53 = mctl */
     85      1.33   mycroft 	"ioctl",			/* 54 = ioctl */
     86      1.33   mycroft 	"reboot",			/* 55 = reboot */
     87      1.18   deraadt 	"#56 (obsolete sunos_owait3)",		/* 56 = obsolete sunos_owait3 */
     88       1.1   deraadt 	"symlink",			/* 57 = symlink */
     89       1.1   deraadt 	"readlink",			/* 58 = readlink */
     90       1.1   deraadt 	"execve",			/* 59 = execve */
     91       1.1   deraadt 	"umask",			/* 60 = umask */
     92       1.1   deraadt 	"chroot",			/* 61 = chroot */
     93      1.33   mycroft 	"fstat",			/* 62 = fstat */
     94      1.18   deraadt 	"#63 (unimplemented)",		/* 63 = unimplemented */
     95      1.33   mycroft 	"getpagesize",			/* 64 = getpagesize */
     96      1.33   mycroft 	"omsync",			/* 65 = omsync */
     97       1.1   deraadt 	"vfork",			/* 66 = vfork */
     98      1.18   deraadt 	"#67 (obsolete vread)",		/* 67 = obsolete vread */
     99      1.18   deraadt 	"#68 (obsolete vwrite)",		/* 68 = obsolete vwrite */
    100       1.1   deraadt 	"sbrk",			/* 69 = sbrk */
    101       1.1   deraadt 	"sstk",			/* 70 = sstk */
    102      1.33   mycroft 	"mmap",			/* 71 = mmap */
    103       1.1   deraadt 	"vadvise",			/* 72 = vadvise */
    104       1.1   deraadt 	"munmap",			/* 73 = munmap */
    105       1.1   deraadt 	"mprotect",			/* 74 = mprotect */
    106       1.1   deraadt 	"madvise",			/* 75 = madvise */
    107      1.33   mycroft 	"vhangup",			/* 76 = vhangup */
    108      1.18   deraadt 	"#77 (unimplemented vlimit)",		/* 77 = unimplemented vlimit */
    109       1.1   deraadt 	"mincore",			/* 78 = mincore */
    110       1.1   deraadt 	"getgroups",			/* 79 = getgroups */
    111       1.1   deraadt 	"setgroups",			/* 80 = setgroups */
    112       1.1   deraadt 	"getpgrp",			/* 81 = getpgrp */
    113      1.33   mycroft 	"setpgrp",			/* 82 = setpgrp */
    114       1.1   deraadt 	"setitimer",			/* 83 = setitimer */
    115      1.33   mycroft 	"#84 (unimplemented { int sunos_sys_wait ( void ) ; })",		/* 84 = unimplemented { int sunos_sys_wait ( void ) ; } */
    116       1.1   deraadt 	"swapon",			/* 85 = swapon */
    117       1.1   deraadt 	"getitimer",			/* 86 = getitimer */
    118      1.33   mycroft 	"gethostname",			/* 87 = gethostname */
    119      1.33   mycroft 	"sethostname",			/* 88 = sethostname */
    120      1.33   mycroft 	"getdtablesize",			/* 89 = getdtablesize */
    121       1.1   deraadt 	"dup2",			/* 90 = dup2 */
    122      1.18   deraadt 	"#91 (unimplemented getdopt)",		/* 91 = unimplemented getdopt */
    123       1.1   deraadt 	"fcntl",			/* 92 = fcntl */
    124       1.1   deraadt 	"select",			/* 93 = select */
    125      1.18   deraadt 	"#94 (unimplemented setdopt)",		/* 94 = unimplemented setdopt */
    126       1.1   deraadt 	"fsync",			/* 95 = fsync */
    127       1.1   deraadt 	"setpriority",			/* 96 = setpriority */
    128       1.1   deraadt 	"socket",			/* 97 = socket */
    129       1.1   deraadt 	"connect",			/* 98 = connect */
    130      1.33   mycroft 	"accept",			/* 99 = accept */
    131       1.1   deraadt 	"getpriority",			/* 100 = getpriority */
    132      1.33   mycroft 	"send",			/* 101 = send */
    133      1.33   mycroft 	"recv",			/* 102 = recv */
    134      1.18   deraadt 	"#103 (unimplemented old socketaddr)",		/* 103 = unimplemented old socketaddr */
    135       1.1   deraadt 	"bind",			/* 104 = bind */
    136      1.33   mycroft 	"setsockopt",			/* 105 = setsockopt */
    137       1.1   deraadt 	"listen",			/* 106 = listen */
    138      1.18   deraadt 	"#107 (unimplemented vtimes)",		/* 107 = unimplemented vtimes */
    139      1.33   mycroft 	"sigvec",			/* 108 = sigvec */
    140      1.33   mycroft 	"sigblock",			/* 109 = sigblock */
    141      1.33   mycroft 	"sigsetmask",			/* 110 = sigsetmask */
    142       1.1   deraadt 	"sigsuspend",			/* 111 = sigsuspend */
    143      1.33   mycroft 	"sigstack",			/* 112 = sigstack */
    144      1.33   mycroft 	"recvmsg",			/* 113 = recvmsg */
    145      1.33   mycroft 	"sendmsg",			/* 114 = sendmsg */
    146      1.18   deraadt 	"#115 (obsolete vtrace)",		/* 115 = obsolete vtrace */
    147       1.1   deraadt 	"gettimeofday",			/* 116 = gettimeofday */
    148       1.1   deraadt 	"getrusage",			/* 117 = getrusage */
    149       1.1   deraadt 	"getsockopt",			/* 118 = getsockopt */
    150      1.18   deraadt 	"#119 (unimplemented)",		/* 119 = unimplemented */
    151       1.1   deraadt 	"readv",			/* 120 = readv */
    152       1.1   deraadt 	"writev",			/* 121 = writev */
    153       1.1   deraadt 	"settimeofday",			/* 122 = settimeofday */
    154       1.1   deraadt 	"fchown",			/* 123 = fchown */
    155       1.1   deraadt 	"fchmod",			/* 124 = fchmod */
    156      1.33   mycroft 	"recvfrom",			/* 125 = recvfrom */
    157      1.33   mycroft 	"setreuid",			/* 126 = setreuid */
    158      1.33   mycroft 	"setregid",			/* 127 = setregid */
    159       1.1   deraadt 	"rename",			/* 128 = rename */
    160      1.33   mycroft 	"truncate",			/* 129 = truncate */
    161      1.33   mycroft 	"ftruncate",			/* 130 = ftruncate */
    162       1.1   deraadt 	"flock",			/* 131 = flock */
    163      1.18   deraadt 	"#132 (unimplemented)",		/* 132 = unimplemented */
    164       1.1   deraadt 	"sendto",			/* 133 = sendto */
    165       1.1   deraadt 	"shutdown",			/* 134 = shutdown */
    166       1.1   deraadt 	"socketpair",			/* 135 = socketpair */
    167       1.1   deraadt 	"mkdir",			/* 136 = mkdir */
    168       1.1   deraadt 	"rmdir",			/* 137 = rmdir */
    169       1.1   deraadt 	"utimes",			/* 138 = utimes */
    170      1.33   mycroft 	"sigreturn",			/* 139 = sigreturn */
    171       1.1   deraadt 	"adjtime",			/* 140 = adjtime */
    172      1.33   mycroft 	"getpeername",			/* 141 = getpeername */
    173      1.33   mycroft 	"gethostid",			/* 142 = gethostid */
    174      1.18   deraadt 	"#143 (unimplemented old sethostid)",		/* 143 = unimplemented old sethostid */
    175      1.33   mycroft 	"getrlimit",			/* 144 = getrlimit */
    176      1.33   mycroft 	"setrlimit",			/* 145 = setrlimit */
    177      1.33   mycroft 	"killpg",			/* 146 = killpg */
    178      1.18   deraadt 	"#147 (unimplemented)",		/* 147 = unimplemented */
    179      1.18   deraadt 	"#148 (unimplemented)",		/* 148 = unimplemented */
    180      1.18   deraadt 	"#149 (unimplemented)",		/* 149 = unimplemented */
    181      1.33   mycroft 	"getsockname",			/* 150 = getsockname */
    182      1.18   deraadt 	"#151 (unimplemented getmsg)",		/* 151 = unimplemented getmsg */
    183      1.18   deraadt 	"#152 (unimplemented putmsg)",		/* 152 = unimplemented putmsg */
    184      1.33   mycroft 	"poll",			/* 153 = poll */
    185      1.18   deraadt 	"#154 (unimplemented)",		/* 154 = unimplemented */
    186       1.9   deraadt #ifdef NFSSERVER
    187      1.33   mycroft 	"nfssvc",			/* 155 = nfssvc */
    188       1.9   deraadt #else
    189      1.18   deraadt 	"#155 (unimplemented)",		/* 155 = unimplemented */
    190       1.9   deraadt #endif
    191       1.1   deraadt 	"getdirentries",			/* 156 = getdirentries */
    192      1.33   mycroft 	"statfs",			/* 157 = statfs */
    193      1.33   mycroft 	"fstatfs",			/* 158 = fstatfs */
    194      1.33   mycroft 	"unmount",			/* 159 = unmount */
    195      1.40   thorpej #ifdef NFS
    196       1.9   deraadt 	"async_daemon",			/* 160 = async_daemon */
    197       1.9   deraadt 	"getfh",			/* 161 = getfh */
    198       1.9   deraadt #else
    199      1.18   deraadt 	"#160 (unimplemented)",		/* 160 = unimplemented */
    200      1.18   deraadt 	"#161 (unimplemented)",		/* 161 = unimplemented */
    201       1.9   deraadt #endif
    202      1.33   mycroft 	"getdomainname",			/* 162 = getdomainname */
    203      1.33   mycroft 	"setdomainname",			/* 163 = setdomainname */
    204      1.18   deraadt 	"#164 (unimplemented rtschedule)",		/* 164 = unimplemented rtschedule */
    205      1.33   mycroft 	"quotactl",			/* 165 = quotactl */
    206      1.33   mycroft 	"exportfs",			/* 166 = exportfs */
    207      1.33   mycroft 	"mount",			/* 167 = mount */
    208      1.33   mycroft 	"ustat",			/* 168 = ustat */
    209       1.6   deraadt #ifdef SYSVSEM
    210      1.33   mycroft 	"semsys",			/* 169 = semsys */
    211       1.6   deraadt #else
    212      1.33   mycroft 	"#169 (unimplemented semsys)",		/* 169 = unimplemented semsys */
    213       1.6   deraadt #endif
    214       1.6   deraadt #ifdef SYSVMSG
    215      1.33   mycroft 	"msgsys",			/* 170 = msgsys */
    216       1.6   deraadt #else
    217      1.33   mycroft 	"#170 (unimplemented msgsys)",		/* 170 = unimplemented msgsys */
    218       1.6   deraadt #endif
    219       1.1   deraadt #ifdef SYSVSHM
    220      1.33   mycroft 	"shmsys",			/* 171 = shmsys */
    221       1.1   deraadt #else
    222      1.33   mycroft 	"#171 (unimplemented shmsys)",		/* 171 = unimplemented shmsys */
    223       1.1   deraadt #endif
    224      1.33   mycroft 	"auditsys",			/* 172 = auditsys */
    225      1.18   deraadt 	"#173 (unimplemented rfssys)",		/* 173 = unimplemented rfssys */
    226      1.33   mycroft 	"getdents",			/* 174 = getdents */
    227       1.1   deraadt 	"setsid",			/* 175 = setsid */
    228       1.1   deraadt 	"fchdir",			/* 176 = fchdir */
    229      1.33   mycroft 	"fchroot",			/* 177 = fchroot */
    230      1.18   deraadt 	"#178 (unimplemented vpixsys)",		/* 178 = unimplemented vpixsys */
    231      1.18   deraadt 	"#179 (unimplemented aioread)",		/* 179 = unimplemented aioread */
    232      1.18   deraadt 	"#180 (unimplemented aiowrite)",		/* 180 = unimplemented aiowrite */
    233      1.18   deraadt 	"#181 (unimplemented aiowait)",		/* 181 = unimplemented aiowait */
    234      1.18   deraadt 	"#182 (unimplemented aiocancel)",		/* 182 = unimplemented aiocancel */
    235      1.33   mycroft 	"sigpending",			/* 183 = sigpending */
    236      1.18   deraadt 	"#184 (unimplemented)",		/* 184 = unimplemented */
    237       1.1   deraadt 	"setpgid",			/* 185 = setpgid */
    238      1.23   deraadt 	"pathconf",			/* 186 = pathconf */
    239      1.23   deraadt 	"fpathconf",			/* 187 = fpathconf */
    240      1.33   mycroft 	"sysconf",			/* 188 = sysconf */
    241      1.33   mycroft 	"uname",			/* 189 = uname */
    242       1.1   deraadt };
    243