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