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