// SDB-CGEN V2.6.2
#include <ctype.h>
#include <stdio.h>
#include <string.h>

struct kv { const char *name; const char *value; };
static const struct kv kvs[] = {
// gcc -DMAIN=1 openbsd_x86_64.c ; ./a.out > openbsd_x86_64.h
	{"_", "0x80"},
	{"__getcwd", "0x80,304,2,pi buf len"},
	{"0x80.304", "__getcwd"},
	{"__semctl", "0x80,295,4,iixp semid semnum cmd arg"},
	{"0x80.295", "__semctl"},
	{"__syscall", "0x80,198,2,ii arg0 arg1"},
	{"0x80.198", "__syscall"},
	{"__sysctl", "0x80,202,6,pipppi name namelen old oldlenp new newlen"},
	{"0x80.202", "__sysctl"},
	{"accept", "0x80,30,3,ipp s name anamelen"},
	{"0x80.30", "accept"},
	{"access", "0x80,33,2,zx path amode"},
	{"0x80.33", "access"},
	{"acct", "0x80,51,1,z path"},
	{"0x80.51", "acct"},
	{"adjfreq", "0x80,305,2,pp freq oldfreq"},
	{"0x80.305", "adjfreq"},
	{"adjtime", "0x80,140,2,pp delta olddelta"},
	{"0x80.140", "adjtime"},
	{"bind", "0x80,104,3,ipi s name namelen"},
	{"0x80.104", "bind"},
	{"break", "0x80,17,1,p nsize"},
	{"0x80.17", "break"},
	{"chdir", "0x80,12,1,z path"},
	{"0x80.12", "chdir"},
	{"chflags", "0x80,34,2,zx path flags"},
	{"0x80.34", "chflags"},
	{"chmod", "0x80,15,2,zx path mode"},
	{"0x80.15", "chmod"},
	{"chown", "0x80,16,3,zii path uid gid"},
	{"0x80.16", "chown"},
	{"chroot", "0x80,61,1,z path"},
	{"0x80.61", "chroot"},
	{"clock_getres", "0x80,234,2,ip clock_id tp"},
	{"0x80.234", "clock_getres"},
	{"clock_gettime", "0x80,232,2,ip clock_id tp"},
	{"0x80.232", "clock_gettime"},
	{"clock_settime", "0x80,233,2,ip clock_id tp"},
	{"0x80.233", "clock_settime"},
	{"close", "0x80,6,1,i fd"},
	{"0x80.6", "close"},
	{"closefrom", "0x80,287,1,i fd"},
	{"0x80.287", "closefrom"},
	{"connect", "0x80,98,3,ipi s name namelen"},
	{"0x80.98", "connect"},
	{"dup", "0x80,41,1,i fd"},
	{"0x80.41", "dup"},
	{"dup2", "0x80,90,2,ii from to"},
	{"0x80.90", "dup2"},
	{"execve", "0x80,59,3,zpp path argp envp"},
	{"0x80.59", "execve"},
	{"exit", "0x80,1,1,i rval"},
	{"0x80.1", "exit"},
	{"fchdir", "0x80,13,1,i fd"},
	{"0x80.13", "fchdir"},
	{"fchflags", "0x80,35,2,ix fd flags"},
	{"0x80.35", "fchflags"},
	{"fchmod", "0x80,124,2,ix fd mode"},
	{"0x80.124", "fchmod"},
	{"fchown", "0x80,123,3,iii fd uid gid"},
	{"0x80.123", "fchown"},
	{"fcntl", "0x80,92,3,ixp fd cmd arg"},
	{"0x80.92", "fcntl"},
	{"fhopen", "0x80,264,2,px fhp flags"},
	{"0x80.264", "fhopen"},
	{"fhstat", "0x80,294,2,pp fhp sb"},
	{"0x80.294", "fhstat"},
	{"fhstatfs", "0x80,309,2,pp fhp buf"},
	{"0x80.309", "fhstatfs"},
	{"flock", "0x80,131,2,ix fd how"},
	{"0x80.131", "flock"},
	{"fork", "0x80,2,0,"},
	{"0x80.2", "fork"},
	{"fpathconf", "0x80,192,2,ii fd name"},
	{"0x80.192", "fpathconf"},
	{"fstat", "0x80,292,2,ip fd sb"},
	{"0x80.292", "fstat"},
	{"fstatfs", "0x80,308,2,ip fd buf"},
	{"0x80.308", "fstatfs"},
	{"fsync", "0x80,95,1,i fd"},
	{"0x80.95", "fsync"},
	{"ftruncate", "0x80,201,2,ii fd length"},
	{"0x80.201", "ftruncate"},
	{"futimes", "0x80,206,2,ip fd tptr"},
	{"0x80.206", "futimes"},
	{"getdirentries", "0x80,196,4,iiii arg0 arg1 arg2 arg3"},
	{"0x80.196", "getdirentries"},
	{"getegid", "0x80,43,0,"},
	{"0x80.43", "getegid"},
	{"geteuid", "0x80,25,0,"},
	{"0x80.25", "geteuid"},
	{"getfh", "0x80,161,2,zp fname fhp"},
	{"0x80.161", "getfh"},
	{"getfsstat", "0x80,306,3,pix buf bufsize flags"},
	{"0x80.306", "getfsstat"},
	{"getgid", "0x80,47,0,"},
	{"0x80.47", "getgid"},
	{"getgroups", "0x80,79,2,ip gidsetsize gidset"},
	{"0x80.79", "getgroups"},
	{"getitimer", "0x80,86,2,ip which itv"},
	{"0x80.86", "getitimer"},
	{"getlogin", "0x80,49,6,pixxii addr len prot flags fd pos"},
	{"0x80.49", "getlogin"},
	{"getpeereid", "0x80,273,3,iii arg0 arg1 arg2"},
	{"0x80.273", "getpeereid"},
	{"getpeername", "0x80,31,3,ipp fdes asa alen"},
	{"0x80.31", "getpeername"},
	{"getpgid", "0x80,207,1,i pid"},
	{"0x80.207", "getpgid"},
	{"getpgrp", "0x80,81,0,"},
	{"0x80.81", "getpgrp"},
	{"getpid", "0x80,20,0,"},
	{"0x80.20", "getpid"},
	{"getppid", "0x80,39,0,"},
	{"0x80.39", "getppid"},
	{"getpriority", "0x80,100,2,ii which who"},
	{"0x80.100", "getpriority"},
	{"getresgid", "0x80,283,3,ppp rgid egid sgid"},
	{"0x80.283", "getresgid"},
	{"getresuid", "0x80,281,3,ppp ruid euid suid"},
	{"0x80.281", "getresuid"},
	{"getrlimit", "0x80,194,2,ip which rlp"},
	{"0x80.194", "getrlimit"},
	{"getrtable", "0x80,311,0,"},
	{"0x80.311", "getrtable"},
	{"getrusage", "0x80,117,2,ip who rusage"},
	{"0x80.117", "getrusage"},
	{"getsid", "0x80,255,1,i pid"},
	{"0x80.255", "getsid"},
	{"getsockname", "0x80,32,3,ipp fdes asa alen"},
	{"0x80.32", "getsockname"},
	{"getsockopt", "0x80,118,5,iiipp s level name val avalsize"},
	{"0x80.118", "getsockopt"},
	{"getthrid", "0x80,299,0,"},
	{"0x80.299", "getthrid"},
	{"gettimeofday", "0x80,116,2,pp tp tzp"},
	{"0x80.116", "gettimeofday"},
	{"getuid", "0x80,24,0,"},
	{"0x80.24", "getuid"},
	{"ioctl", "0x80,54,3,iip fd com data"},
	{"0x80.54", "ioctl"},
	{"issetugid", "0x80,253,0,"},
	{"0x80.253", "issetugid"},
	{"kevent", "0x80,270,6,ipipxp fd changelist nchanges eventlist nevents timeout"},
	{"0x80.270", "kevent"},
	{"kill", "0x80,37,2,ii pid signum"},
	{"0x80.37", "kill"},
	{"kqueue", "0x80,269,0,"},
	{"0x80.269", "kqueue"},
	{"ktrace", "0x80,45,4,zxii fname ops facs pid"},
	{"0x80.45", "ktrace"},
	{"lchown", "0x80,254,3,zii path uid gid"},
	{"0x80.254", "lchown"},
	{"lfs_bmapv", "0x80,184,3,iii arg0 arg1 arg2"},
	{"0x80.184", "lfs_bmapv"},
	{"lfs_markv", "0x80,185,3,iii arg0 arg1 arg2"},
	{"0x80.185", "lfs_markv"},
	{"lfs_segclean", "0x80,186,2,ii arg0 arg1"},
	{"0x80.186", "lfs_segclean"},
	{"lfs_segwait", "0x80,187,2,ii arg0 arg1"},
	{"0x80.187", "lfs_segwait"},
	{"link", "0x80,9,2,zp path link"},
	{"0x80.9", "link"},
	{"listen", "0x80,106,2,ii s backlog"},
	{"0x80.106", "listen"},
	{"lseek", "0x80,199,3,iix fd offset whence"},
	{"0x80.199", "lseek"},
	{"lstat", "0x80,293,2,zp path ub"},
	{"0x80.293", "lstat"},
	{"madvise", "0x80,75,3,pii addr len behav"},
	{"0x80.75", "madvise"},
	{"mincore", "0x80,78,6,pixxii addr len prot flags fd pos"},
	{"0x80.78", "mincore"},
	{"minherit", "0x80,250,3,pii addr len inherit"},
	{"0x80.250", "minherit"},
	{"mkdir", "0x80,136,2,zx path mode"},
	{"0x80.136", "mkdir"},
	{"mkfifo", "0x80,132,2,zx path mode"},
	{"0x80.132", "mkfifo"},
	{"mknod", "0x80,14,3,zxi path mode dev"},
	{"0x80.14", "mknod"},
	{"mlock", "0x80,203,2,pi addr len"},
	{"0x80.203", "mlock"},
	{"mlockall", "0x80,271,1,x flags"},
	{"0x80.271", "mlockall"},
	{"mmap", "0x80,197,6,pixxii addr len prot flags fd pos"},
	{"0x80.197", "mmap"},
	{"mount", "0x80,21,4,pzxp type path flags data"},
	{"0x80.21", "mount"},
	{"mprotect", "0x80,74,3,pix addr len prot"},
	{"0x80.74", "mprotect"},
	{"mquery", "0x80,286,6,pixxii addr len prot flags fd pos"},
	{"0x80.286", "mquery"},
	{"msgctl", "0x80,297,3,ixp msqid cmd buf"},
	{"0x80.297", "msgctl"},
	{"msgget", "0x80,225,2,ii key msgflg"},
	{"0x80.225", "msgget"},
	{"msgrcv", "0x80,227,5,ipiii msqid msgp msgsz msgtyp msgflg"},
	{"0x80.227", "msgrcv"},
	{"msgsnd", "0x80,226,4,ipii msqid msgp msgsz msgflg"},
	{"0x80.226", "msgsnd"},
	{"msync", "0x80,256,3,pix addr len flags"},
	{"0x80.256", "msync"},
	{"munlock", "0x80,204,2,pi addr len"},
	{"0x80.204", "munlock"},
	{"munlockall", "0x80,272,0,"},
	{"0x80.272", "munlockall"},
	{"munmap", "0x80,73,2,pi addr len"},
	{"0x80.73", "munmap"},
	{"nanosleep", "0x80,240,2,pp rqtp rmtp"},
	{"0x80.240", "nanosleep"},
	{"nfssvc", "0x80,155,2,xp flag argp"},
	{"0x80.155", "nfssvc"},
	{"nnpfspioctl", "0x80,208,5,iiiii arg0 arg1 arg2 arg3 arg4"},
	{"0x80.208", "nnpfspioctl"},
	{"open", "0x80,5,3,zxx path flags mode"},
	{"0x80.5", "open"},
	{"opipe", "0x80,42,4,izpx fd path buf flag"},
	{"0x80.42", "opipe"},
	{"osigaltstack", "0x80,53,2,ip fd sb"},
	{"0x80.53", "osigaltstack"},
	{"pathconf", "0x80,191,2,zi path name"},
	{"0x80.191", "pathconf"},
	{"pipe", "0x80,263,1,p fdp"},
	{"0x80.263", "pipe"},
	{"poll", "0x80,252,3,pii fds nfds timeout"},
	{"0x80.252", "poll"},
	{"pread", "0x80,173,4,ipii fd buf nbyte offset"},
	{"0x80.173", "pread"},
	{"preadv", "0x80,267,4,ipii fd iovp iovcnt offset"},
	{"0x80.267", "preadv"},
	{"profil", "0x80,44,6,piiiii buf buflen samplesize offset scale dirfd"},
	{"0x80.44", "profil"},
	{"ptrace", "0x80,26,4,xipi req pid addr data"},
	{"0x80.26", "ptrace"},
	{"pwrite", "0x80,174,4,ipii fd buf nbyte offset"},
	{"0x80.174", "pwrite"},
	{"pwritev", "0x80,268,4,ipii fd iovp iovcnt offset"},
	{"0x80.268", "pwritev"},
	{"quotactl", "0x80,148,4,zxip path cmd uid arg"},
	{"0x80.148", "quotactl"},
	{"read", "0x80,3,3,ipi fd buf nbyte"},
	{"0x80.3", "read"},
	{"readlink", "0x80,58,3,zpi path buf count"},
	{"0x80.58", "readlink"},
	{"readv", "0x80,120,3,ipi fd iovp iovcnt"},
	{"0x80.120", "readv"},
	{"reboot", "0x80,55,1,x opt"},
	{"0x80.55", "reboot"},
	{"recvfrom", "0x80,29,6,ipixpp s buf len flags from fromlenaddr"},
	{"0x80.29", "recvfrom"},
	{"recvmsg", "0x80,27,3,ipx s msg flags"},
	{"0x80.27", "recvmsg"},
	{"rename", "0x80,128,2,pp from to"},
	{"0x80.128", "rename"},
	{"revoke", "0x80,56,1,z path"},
	{"0x80.56", "revoke"},
	{"rfork", "0x80,251,1,i arg0"},
	{"0x80.251", "rfork"},
	{"rmdir", "0x80,137,1,z path"},
	{"0x80.137", "rmdir"},
	{"sbrk", "0x80,69,3,ipp which itv oitv"},
	{"0x80.69", "sbrk"},
	{"sched_yield", "0x80,298,0,"},
	{"0x80.298", "sched_yield"},
	{"select", "0x80,93,5,ipppp nd in ou ex tv"},
	{"0x80.93", "select"},
	{"semget", "0x80,221,3,iii key nsems semflg"},
	{"0x80.221", "semget"},
	{"semop", "0x80,290,3,ipx semid sops nsops"},
	{"0x80.290", "semop"},
	{"sendmsg", "0x80,28,3,ipx s msg flags"},
	{"0x80.28", "sendmsg"},
	{"sendto", "0x80,133,6,ipixpi s buf len flags to tolen"},
	{"0x80.133", "sendto"},
	{"setegid", "0x80,182,1,i egid"},
	{"0x80.182", "setegid"},
	{"seteuid", "0x80,183,1,i euid"},
	{"0x80.183", "seteuid"},
	{"setgid", "0x80,181,1,i gid"},
	{"0x80.181", "setgid"},
	{"setgroups", "0x80,80,2,ip gidsetsize gidset"},
	{"0x80.80", "setgroups"},
	{"setitimer", "0x80,83,3,ipp which itv oitv"},
	{"0x80.83", "setitimer"},
	{"setlogin", "0x80,50,1,p namebuf"},
	{"0x80.50", "setlogin"},
	{"setpgid", "0x80,82,2,ii pid pgid"},
	{"0x80.82", "setpgid"},
	{"setpriority", "0x80,96,3,iii which who prio"},
	{"0x80.96", "setpriority"},
	{"setregid", "0x80,127,2,ii rgid egid"},
	{"0x80.127", "setregid"},
	{"setresgid", "0x80,284,3,iii rgid egid sgid"},
	{"0x80.284", "setresgid"},
	{"setresuid", "0x80,282,3,iii ruid euid suid"},
	{"0x80.282", "setresuid"},
	{"setreuid", "0x80,126,2,ii ruid euid"},
	{"0x80.126", "setreuid"},
	{"setrlimit", "0x80,195,2,ip which rlp"},
	{"0x80.195", "setrlimit"},
	{"setrtable", "0x80,310,1,i rtableid"},
	{"0x80.310", "setrtable"},
	{"setsid", "0x80,147,0,"},
	{"0x80.147", "setsid"},
	{"setsockopt", "0x80,105,5,iiipi s level name val valsize"},
	{"0x80.105", "setsockopt"},
	{"settimeofday", "0x80,122,2,pp tv tzp"},
	{"0x80.122", "settimeofday"},
	{"setuid", "0x80,23,1,i uid"},
	{"0x80.23", "setuid"},
	{"shmat", "0x80,228,3,ipi shmid shmaddr shmflg"},
	{"0x80.228", "shmat"},
	{"shmctl", "0x80,296,3,ixp shmid cmd buf"},
	{"0x80.296", "shmctl"},
	{"shmdt", "0x80,230,1,p shmaddr"},
	{"0x80.230", "shmdt"},
	{"shmget", "0x80,289,3,iii key size shmflg"},
	{"0x80.289", "shmget"},
	{"shutdown", "0x80,134,2,ix s how"},
	{"0x80.134", "shutdown"},
	{"sigaction", "0x80,46,3,ipp signum nsa osa"},
	{"0x80.46", "sigaction"},
	{"sigaltstack", "0x80,288,2,pp nss oss"},
	{"0x80.288", "sigaltstack"},
	{"sigpending", "0x80,52,0,"},
	{"0x80.52", "sigpending"},
	{"sigprocmask", "0x80,48,2,xx how mask"},
	{"0x80.48", "sigprocmask"},
	{"sigreturn", "0x80,103,1,p sigcntxp"},
	{"0x80.103", "sigreturn"},
	{"sigsuspend", "0x80,111,1,x mask"},
	{"0x80.111", "sigsuspend"},
	{"socket", "0x80,97,3,ixx domain type protocol"},
	{"0x80.97", "socket"},
	{"socketpair", "0x80,135,4,ixxp domain type protocol rsv"},
	{"0x80.135", "socketpair"},
	{"sstk", "0x80,70,2,ip which itv"},
	{"0x80.70", "sstk"},
	{"stat", "0x80,291,2,zp path ub"},
	{"0x80.291", "stat"},
	{"statfs", "0x80,307,2,zp path buf"},
	{"0x80.307", "statfs"},
	{"swapctl", "0x80,193,3,xpi cmd arg misc"},
	{"0x80.193", "swapctl"},
	{"symlink", "0x80,57,2,zp path link"},
	{"0x80.57", "symlink"},
	{"sync", "0x80,36,0,"},
	{"0x80.36", "sync"},
	{"sysarch", "0x80,165,2,xp op parms"},
	{"0x80.165", "sysarch"},
	{"syscall", "0x80,0,2,ii arg0 arg1"},
	{"0x80.0", "syscall"},
	{"threxit", "0x80,302,1,p notdead"},
	{"0x80.302", "threxit"},
	{"thrsigdivert", "0x80,303,3,xpp sigmask info timeout"},
	{"0x80.303", "thrsigdivert"},
	{"thrsleep", "0x80,300,4,iiii arg0 arg1 arg2 arg3"},
	{"0x80.300", "thrsleep"},
	{"thrwakeup", "0x80,301,2,pi ident n"},
	{"0x80.301", "thrwakeup"},
	{"truncate", "0x80,200,2,zi path length"},
	{"0x80.200", "truncate"},
	{"umask", "0x80,60,1,x newmask"},
	{"0x80.60", "umask"},
	{"unlink", "0x80,10,1,z path"},
	{"0x80.10", "unlink"},
	{"unmount", "0x80,22,2,zx path flags"},
	{"0x80.22", "unmount"},
	{"utimes", "0x80,138,2,zp path tptr"},
	{"0x80.138", "utimes"},
	{"vfork", "0x80,66,0,"},
	{"0x80.66", "vfork"},
	{"wait4", "0x80,7,4,ipxp pid status options rusage"},
	{"0x80.7", "wait4"},
	{"write", "0x80,4,3,ipi fd buf nbyte"},
	{"0x80.4", "write"},
	{"writev", "0x80,121,3,ipi fd iovp iovcnt"},
	{"0x80.121", "writev"},
  {NULL, NULL}
};
typedef int (*GperfForeachCallback)(void *user, const char *k, const char *v);
int gperf_openbsd_x86_64_foreach(GperfForeachCallback cb, void *user) {
  int i = 0; while (kvs[i].name) {
  cb (user, kvs[i].name, kvs[i].value);
  i++;}
  return 0;
}
const char *gperf_openbsd_x86_64_get(const char *s) {
  int i = 0; while (kvs[i].name) {
  if (!strcmp (s, kvs[i].name)) return kvs[i].value;
  i++;}
  return NULL;
}
#define sdb_hash_c_openbsd_x86_64(x,y) gperf_openbsd_x86_64_hash(x)
const unsigned int gperf_openbsd_x86_64_hash(const char *s) {
  int sum = strlen (s);
  while (*s) { sum += *s; s++; }
  return sum;
}
struct {const char *name;void *get;void *hash;void *foreach;} gperf_openbsd_x86_64 = {
  .name = "openbsd-x86-64",
  .get = &gperf_openbsd_x86_64_get,
  .hash = &gperf_openbsd_x86_64_hash,
  .foreach = &gperf_openbsd_x86_64_foreach
};

#if MAIN
int main () {
	const char *s = ((char*(*)(char*))gperf_openbsd_x86_64.get)("foo");
	printf ("%s\n", s);
}
#endif
