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