require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&_SYS_SYSCTL_H_)) {
    eval 'sub _SYS_SYSCTL_H_ () {1;}' unless defined(&_SYS_SYSCTL_H_);
    unless(defined(&_KERNEL)) {
	require 'sys/proc.ph';
	require 'sys/resource.ph';
    }
    require 'uvm/uvm_extern.ph';
    eval 'sub CTL_MAXNAME () {12;}' unless defined(&CTL_MAXNAME);
    eval 'sub CTLTYPE_NODE () {1;}' unless defined(&CTLTYPE_NODE);
    eval 'sub CTLTYPE_INT () {2;}' unless defined(&CTLTYPE_INT);
    eval 'sub CTLTYPE_STRING () {3;}' unless defined(&CTLTYPE_STRING);
    eval 'sub CTLTYPE_QUAD () {4;}' unless defined(&CTLTYPE_QUAD);
    eval 'sub CTLTYPE_STRUCT () {5;}' unless defined(&CTLTYPE_STRUCT);
    eval 'sub CTL_UNSPEC () {0;}' unless defined(&CTL_UNSPEC);
    eval 'sub CTL_KERN () {1;}' unless defined(&CTL_KERN);
    eval 'sub CTL_VM () {2;}' unless defined(&CTL_VM);
    eval 'sub CTL_FS () {3;}' unless defined(&CTL_FS);
    eval 'sub CTL_NET () {4;}' unless defined(&CTL_NET);
    eval 'sub CTL_DEBUG () {5;}' unless defined(&CTL_DEBUG);
    eval 'sub CTL_HW () {6;}' unless defined(&CTL_HW);
    eval 'sub CTL_MACHDEP () {7;}' unless defined(&CTL_MACHDEP);
    eval 'sub CTL_USER () {8;}' unless defined(&CTL_USER);
    eval 'sub CTL_DDB () {9;}' unless defined(&CTL_DDB);
    eval 'sub CTL_VFS () {10;}' unless defined(&CTL_VFS);
    eval 'sub CTL_MAXID () {11;}' unless defined(&CTL_MAXID);
    eval 'sub CTL_NAMES () {{ { 0, 0}, { "kern",  &CTLTYPE_NODE }, { "vm",  &CTLTYPE_NODE }, { "fs",  &CTLTYPE_NODE }, { "net",  &CTLTYPE_NODE }, { "debug",  &CTLTYPE_NODE }, { "hw",  &CTLTYPE_NODE }, { "machdep",  &CTLTYPE_NODE }, { "user",  &CTLTYPE_NODE }, { "ddb",  &CTLTYPE_NODE }, { "vfs",  &CTLTYPE_NODE }, };}' unless defined(&CTL_NAMES);
    eval 'sub KERN_OSTYPE () {1;}' unless defined(&KERN_OSTYPE);
    eval 'sub KERN_OSRELEASE () {2;}' unless defined(&KERN_OSRELEASE);
    eval 'sub KERN_OSREV () {3;}' unless defined(&KERN_OSREV);
    eval 'sub KERN_VERSION () {4;}' unless defined(&KERN_VERSION);
    eval 'sub KERN_MAXVNODES () {5;}' unless defined(&KERN_MAXVNODES);
    eval 'sub KERN_MAXPROC () {6;}' unless defined(&KERN_MAXPROC);
    eval 'sub KERN_MAXFILES () {7;}' unless defined(&KERN_MAXFILES);
    eval 'sub KERN_ARGMAX () {8;}' unless defined(&KERN_ARGMAX);
    eval 'sub KERN_SECURELVL () {9;}' unless defined(&KERN_SECURELVL);
    eval 'sub KERN_HOSTNAME () {10;}' unless defined(&KERN_HOSTNAME);
    eval 'sub KERN_HOSTID () {11;}' unless defined(&KERN_HOSTID);
    eval 'sub KERN_CLOCKRATE () {12;}' unless defined(&KERN_CLOCKRATE);
    eval 'sub KERN_VNODE () {13;}' unless defined(&KERN_VNODE);
    eval 'sub KERN_FILE () {15;}' unless defined(&KERN_FILE);
    eval 'sub KERN_PROF () {16;}' unless defined(&KERN_PROF);
    eval 'sub KERN_POSIX1 () {17;}' unless defined(&KERN_POSIX1);
    eval 'sub KERN_NGROUPS () {18;}' unless defined(&KERN_NGROUPS);
    eval 'sub KERN_JOB_CONTROL () {19;}' unless defined(&KERN_JOB_CONTROL);
    eval 'sub KERN_SAVED_IDS () {20;}' unless defined(&KERN_SAVED_IDS);
    eval 'sub KERN_BOOTTIME () {21;}' unless defined(&KERN_BOOTTIME);
    eval 'sub KERN_DOMAINNAME () {22;}' unless defined(&KERN_DOMAINNAME);
    eval 'sub KERN_MAXPARTITIONS () {23;}' unless defined(&KERN_MAXPARTITIONS);
    eval 'sub KERN_RAWPARTITION () {24;}' unless defined(&KERN_RAWPARTITION);
    eval 'sub KERN_OSVERSION () {27;}' unless defined(&KERN_OSVERSION);
    eval 'sub KERN_SOMAXCONN () {28;}' unless defined(&KERN_SOMAXCONN);
    eval 'sub KERN_SOMINCONN () {29;}' unless defined(&KERN_SOMINCONN);
    eval 'sub KERN_USERMOUNT () {30;}' unless defined(&KERN_USERMOUNT);
    eval 'sub KERN_RND () {31;}' unless defined(&KERN_RND);
    eval 'sub KERN_NOSUIDCOREDUMP () {32;}' unless defined(&KERN_NOSUIDCOREDUMP);
    eval 'sub KERN_FSYNC () {33;}' unless defined(&KERN_FSYNC);
    eval 'sub KERN_SYSVMSG () {34;}' unless defined(&KERN_SYSVMSG);
    eval 'sub KERN_SYSVSEM () {35;}' unless defined(&KERN_SYSVSEM);
    eval 'sub KERN_SYSVSHM () {36;}' unless defined(&KERN_SYSVSHM);
    eval 'sub KERN_ARND () {37;}' unless defined(&KERN_ARND);
    eval 'sub KERN_MSGBUFSIZE () {38;}' unless defined(&KERN_MSGBUFSIZE);
    eval 'sub KERN_MALLOCSTATS () {39;}' unless defined(&KERN_MALLOCSTATS);
    eval 'sub KERN_CPTIME () {40;}' unless defined(&KERN_CPTIME);
    eval 'sub KERN_NCHSTATS () {41;}' unless defined(&KERN_NCHSTATS);
    eval 'sub KERN_FORKSTAT () {42;}' unless defined(&KERN_FORKSTAT);
    eval 'sub KERN_NSELCOLL () {43;}' unless defined(&KERN_NSELCOLL);
    eval 'sub KERN_TTY () {44;}' unless defined(&KERN_TTY);
    eval 'sub KERN_CCPU () {45;}' unless defined(&KERN_CCPU);
    eval 'sub KERN_FSCALE () {46;}' unless defined(&KERN_FSCALE);
    eval 'sub KERN_NPROCS () {47;}' unless defined(&KERN_NPROCS);
    eval 'sub KERN_MSGBUF () {48;}' unless defined(&KERN_MSGBUF);
    eval 'sub KERN_POOL () {49;}' unless defined(&KERN_POOL);
    eval 'sub KERN_STACKGAPRANDOM () {50;}' unless defined(&KERN_STACKGAPRANDOM);
    eval 'sub KERN_SYSVIPC_INFO () {51;}' unless defined(&KERN_SYSVIPC_INFO);
    eval 'sub KERN_USERCRYPTO () {52;}' unless defined(&KERN_USERCRYPTO);
    eval 'sub KERN_CRYPTODEVALLOWSOFT () {53;}' unless defined(&KERN_CRYPTODEVALLOWSOFT);
    eval 'sub KERN_SPLASSERT () {54;}' unless defined(&KERN_SPLASSERT);
    eval 'sub KERN_PROC_ARGS () {55;}' unless defined(&KERN_PROC_ARGS);
    eval 'sub KERN_NFILES () {56;}' unless defined(&KERN_NFILES);
    eval 'sub KERN_TTYCOUNT () {57;}' unless defined(&KERN_TTYCOUNT);
    eval 'sub KERN_NUMVNODES () {58;}' unless defined(&KERN_NUMVNODES);
    eval 'sub KERN_MBSTAT () {59;}' unless defined(&KERN_MBSTAT);
    eval 'sub KERN_USERASYMCRYPTO () {60;}' unless defined(&KERN_USERASYMCRYPTO);
    eval 'sub KERN_SEMINFO () {61;}' unless defined(&KERN_SEMINFO);
    eval 'sub KERN_SHMINFO () {62;}' unless defined(&KERN_SHMINFO);
    eval 'sub KERN_INTRCNT () {63;}' unless defined(&KERN_INTRCNT);
    eval 'sub KERN_WATCHDOG () {64;}' unless defined(&KERN_WATCHDOG);
    eval 'sub KERN_EMUL () {65;}' unless defined(&KERN_EMUL);
    eval 'sub KERN_PROC () {66;}' unless defined(&KERN_PROC);
    eval 'sub KERN_MAXCLUSTERS () {67;}' unless defined(&KERN_MAXCLUSTERS);
    eval 'sub KERN_EVCOUNT () {68;}' unless defined(&KERN_EVCOUNT);
    eval 'sub KERN_TIMECOUNTER () {69;}' unless defined(&KERN_TIMECOUNTER);
    eval 'sub KERN_MAXLOCKSPERUID () {70;}' unless defined(&KERN_MAXLOCKSPERUID);
    eval 'sub KERN_CPTIME2 () {71;}' unless defined(&KERN_CPTIME2);
    eval 'sub KERN_CACHEPCT () {72;}' unless defined(&KERN_CACHEPCT);
    eval 'sub KERN_FILE2 () {73;}' unless defined(&KERN_FILE2);
    eval 'sub KERN_RTHREADS () {74;}' unless defined(&KERN_RTHREADS);
    eval 'sub KERN_CONSDEV () {75;}' unless defined(&KERN_CONSDEV);
    eval 'sub KERN_NETLIVELOCKS () {76;}' unless defined(&KERN_NETLIVELOCKS);
    eval 'sub KERN_POOL_DEBUG () {77;}' unless defined(&KERN_POOL_DEBUG);
    eval 'sub KERN_PROC_CWD () {78;}' unless defined(&KERN_PROC_CWD);
    eval 'sub KERN_MAXID () {79;}' unless defined(&KERN_MAXID);
    eval 'sub CTL_KERN_NAMES () {{ { 0, 0}, { "ostype",  &CTLTYPE_STRING }, { "osrelease",  &CTLTYPE_STRING }, { "osrevision",  &CTLTYPE_INT }, { "version",  &CTLTYPE_STRING }, { "maxvnodes",  &CTLTYPE_INT }, { "maxproc",  &CTLTYPE_INT }, { "maxfiles",  &CTLTYPE_INT }, { "argmax",  &CTLTYPE_INT }, { "securelevel",  &CTLTYPE_INT }, { "hostname",  &CTLTYPE_STRING }, { "hostid",  &CTLTYPE_INT }, { "clockrate",  &CTLTYPE_STRUCT }, { "vnode",  &CTLTYPE_STRUCT }, { "gap", 0}, { "file",  &CTLTYPE_STRUCT }, { "profiling",  &CTLTYPE_NODE }, { "posix1version",  &CTLTYPE_INT }, { "ngroups",  &CTLTYPE_INT }, { "job_control",  &CTLTYPE_INT }, { "saved_ids",  &CTLTYPE_INT }, { "boottime",  &CTLTYPE_STRUCT }, { "domainname",  &CTLTYPE_STRING }, { "maxpartitions",  &CTLTYPE_INT }, { "rawpartition",  &CTLTYPE_INT }, { "gap", 0}, { "gap", 0}, { "osversion",  &CTLTYPE_STRING }, { "somaxconn",  &CTLTYPE_INT }, { "sominconn",  &CTLTYPE_INT }, { "usermount",  &CTLTYPE_INT }, { "random",  &CTLTYPE_STRUCT }, { "nosuidcoredump",  &CTLTYPE_INT }, { "fsync",  &CTLTYPE_INT }, { "sysvmsg",  &CTLTYPE_INT }, { "sysvsem",  &CTLTYPE_INT }, { "sysvshm",  &CTLTYPE_INT }, { "arandom",  &CTLTYPE_INT }, { "msgbufsize",  &CTLTYPE_INT }, { "malloc",  &CTLTYPE_NODE }, { "cp_time",  &CTLTYPE_STRUCT }, { "nchstats",  &CTLTYPE_STRUCT }, { "forkstat",  &CTLTYPE_STRUCT }, { "nselcoll",  &CTLTYPE_INT }, { "tty",  &CTLTYPE_NODE }, { "ccpu",  &CTLTYPE_INT }, { "fscale",  &CTLTYPE_INT }, { "nprocs",  &CTLTYPE_INT }, { "msgbuf",  &CTLTYPE_STRUCT }, { "pool",  &CTLTYPE_NODE }, { "stackgap_random",  &CTLTYPE_INT }, { "sysvipc_info",  &CTLTYPE_INT }, { "usercrypto",  &CTLTYPE_INT }, { "cryptodevallowsoft",  &CTLTYPE_INT }, { "splassert",  &CTLTYPE_INT }, { "procargs",  &CTLTYPE_NODE }, { "nfiles",  &CTLTYPE_INT }, { "ttycount",  &CTLTYPE_INT }, { "numvnodes",  &CTLTYPE_INT }, { "mbstat",  &CTLTYPE_STRUCT }, { "userasymcrypto",  &CTLTYPE_INT }, { "seminfo",  &CTLTYPE_STRUCT }, { "shminfo",  &CTLTYPE_STRUCT }, { "intrcnt",  &CTLTYPE_NODE }, { "watchdog",  &CTLTYPE_NODE }, { "emul",  &CTLTYPE_NODE }, { "proc",  &CTLTYPE_STRUCT }, { "maxclusters",  &CTLTYPE_INT }, { "evcount",  &CTLTYPE_NODE }, { "timecounter",  &CTLTYPE_NODE }, { "maxlocksperuid",  &CTLTYPE_INT }, { "cp_time2",  &CTLTYPE_STRUCT }, { "bufcachepercent",  &CTLTYPE_INT }, { "file2",  &CTLTYPE_STRUCT }, { "rthreads",  &CTLTYPE_INT }, { "consdev",  &CTLTYPE_STRUCT }, { "netlivelocks",  &CTLTYPE_INT }, { "pool_debug",  &CTLTYPE_INT }, { "proc_cwd",  &CTLTYPE_NODE }, };}' unless defined(&CTL_KERN_NAMES);
    eval 'sub KERN_EMUL_NUM () {0;}' unless defined(&KERN_EMUL_NUM);
    eval 'sub KERN_EMUL_NAME () {0;}' unless defined(&KERN_EMUL_NAME);
    eval 'sub KERN_EMUL_ENABLED () {1;}' unless defined(&KERN_EMUL_ENABLED);
    eval 'sub KERN_PROC_ALL () {0;}' unless defined(&KERN_PROC_ALL);
    eval 'sub KERN_PROC_PID () {1;}' unless defined(&KERN_PROC_PID);
    eval 'sub KERN_PROC_PGRP () {2;}' unless defined(&KERN_PROC_PGRP);
    eval 'sub KERN_PROC_SESSION () {3;}' unless defined(&KERN_PROC_SESSION);
    eval 'sub KERN_PROC_TTY () {4;}' unless defined(&KERN_PROC_TTY);
    eval 'sub KERN_PROC_UID () {5;}' unless defined(&KERN_PROC_UID);
    eval 'sub KERN_PROC_RUID () {6;}' unless defined(&KERN_PROC_RUID);
    eval 'sub KERN_PROC_KTHREAD () {7;}' unless defined(&KERN_PROC_KTHREAD);
    eval 'sub KERN_SYSVIPC_MSG_INFO () {1;}' unless defined(&KERN_SYSVIPC_MSG_INFO);
    eval 'sub KERN_SYSVIPC_SEM_INFO () {2;}' unless defined(&KERN_SYSVIPC_SEM_INFO);
    eval 'sub KERN_SYSVIPC_SHM_INFO () {3;}' unless defined(&KERN_SYSVIPC_SHM_INFO);
    eval 'sub KERN_PROC_ARGV () {1;}' unless defined(&KERN_PROC_ARGV);
    eval 'sub KERN_PROC_NARGV () {2;}' unless defined(&KERN_PROC_NARGV);
    eval 'sub KERN_PROC_ENV () {3;}' unless defined(&KERN_PROC_ENV);
    eval 'sub KERN_PROC_NENV () {4;}' unless defined(&KERN_PROC_NENV);
    eval 'sub KI_NGROUPS () {16;}' unless defined(&KI_NGROUPS);
    eval 'sub KI_MAXCOMLEN () {24;}' unless defined(&KI_MAXCOMLEN);
    eval 'sub KI_WMESGLEN () {8;}' unless defined(&KI_WMESGLEN);
    eval 'sub KI_MAXLOGNAME () {32;}' unless defined(&KI_MAXLOGNAME);
    eval 'sub KI_EMULNAMELEN () {8;}' unless defined(&KI_EMULNAMELEN);
    eval 'sub KI_NOCPU () {(~( &u_int64_t)0);}' unless defined(&KI_NOCPU);
    eval 'sub EPROC_CTTY () {0x1;}' unless defined(&EPROC_CTTY);
    eval 'sub EPROC_SLEADER () {0x2;}' unless defined(&EPROC_SLEADER);
    if(defined(&_KERNEL) || defined(&_LIBKVM)) {
	eval 'sub PTRTOINT64 {
	    my($_x) = @_;
    	    eval q((( &u_int64_t)($_x)));
	}' unless defined(&PTRTOINT64);
	eval 'sub FILL_KPROC {
	    my($kp, $copy_str, $p, $pr, $pc, $uc, $pg, $paddr, $praddr, $sess, $vm, $lim, $ps, $sa) = @_;
    	    eval q( &do {  &memset(, 0, $sizeof{}); -> &p_paddr =  &PTRTOINT64; -> &p_fd =  &PTRTOINT64(-> &p_fd); -> &p_stats =  &PTRTOINT64(-> &p_stats); -> &p_limit =  &PTRTOINT64(-> &ps_limit); -> &p_vmspace =  &PTRTOINT64(-> &p_vmspace); -> &p_sigacts =  &PTRTOINT64(-> &p_sigacts); -> &p_sess =  &PTRTOINT64(-> &pg_session); -> &p_ru =  &PTRTOINT64(-> &p_ru); -> &p_exitsig = -> &p_exitsig; -> &p_flag = -> &p_flag | -> &ps_flags |  &P_INMEM; -> &p__pgid = -> &pg_id; -> &p_uid = -> &cr_uid; -> &p_ruid = -> &p_ruid; -> &p_gid = -> &cr_gid; -> &p_rgid = -> &p_rgid; -> &p_svuid = -> &p_svuid; -> &p_svgid = -> &p_svgid;  &memcpy(-> &p_groups, -> &cr_groups,  &MIN($sizeof{-> &p_groups}, $sizeof{-> &cr_groups})); -> &p_ngroups = -> &cr_ngroups; -> &p_jobc = -> &pg_jobc; -> &p_estcpu = -> &p_estcpu; -> &p_rtime_sec = -> ($p_rtime->{tv_sec}); -> &p_rtime_usec = -> ($p_rtime->{tv_usec}); -> &p_cpticks = -> &p_cpticks; -> &p_pctcpu = -> &p_pctcpu; -> &p_uticks = -> &p_uticks; -> &p_sticks = -> &p_sticks; -> &p_iticks = -> &p_iticks; -> &p_tracep =  &PTRTOINT64(-> &ps_tracevp); -> &p_traceflag = -> &ps_traceflag; -> &p_siglist = -> &p_siglist; -> &p_sigmask = -> &p_sigmask; -> &p_sigignore = ? -> &ps_sigignore : 0; -> &p_sigcatch = ? -> &ps_sigcatch : 0; -> &p_stat = -> &p_stat; -> &p_nice = -> &ps_nice; -> &p_xstat = -> &p_xstat; -> &p_acflag = -> &p_acflag; $copy_str(-> &p_emul, ($p)-> &p_emul +  &offsetof(\'struct emul\',  &e_name), $sizeof{($kp)-> &p_emul});  &strlcpy(($kp)-> &p_comm, ($p)-> &p_comm, $sizeof{($kp)-> &p_comm});  &strlcpy(($kp)-> &p_login, ($sess)-> &s_login,  &MIN($sizeof{($kp)-> &p_login}, $sizeof{($sess)-> &s_login}));  &if (($sess)-> &s_ttyvp) ($kp)-> &p_eflag |=  &EPROC_CTTY;  &if (($sess)-> &s_leader == ($praddr)) ($kp)-> &p_eflag |=  &EPROC_SLEADER;  &if (($p)-> &p_stat !=  &SIDL  && ! &P_ZOMBIE($p)) {  &if (($vm) !=  &NULL) { ($kp)-> &p_vm_rssize = ($vm)-> &vm_rssize; ($kp)-> &p_vm_tsize = ($vm)-> &vm_tsize; ($kp)-> &p_vm_dsize = ($vm)-> &vm_dused; ($kp)-> &p_vm_ssize = ($vm)-> &vm_ssize; } ($kp)-> &p_addr =  &PTRTOINT64(($p)-> &p_addr); ($kp)-> &p_stat = ($p)-> &p_stat; ($kp)-> &p_swtime = ($p)-> &p_swtime; ($kp)-> &p_slptime = ($p)-> &p_slptime; ($kp)-> &p_holdcnt = 1; ($kp)-> &p_priority = ($p)-> &p_priority; ($kp)-> &p_usrpri = ($p)-> &p_usrpri;  &if (($p)-> &p_wmesg) $copy_str(($kp)-> &p_wmesg, ($p)-> &p_wmesg, $sizeof{($kp)-> &p_wmesg}); ($kp)-> &p_wchan =  &PTRTOINT64(($p)-> &p_wchan); }  &if ($lim) ($kp)-> &p_rlim_rss_cur = ($lim)-> ($pl_rlimit[&RLIMIT_RSS]->{r$lim_cur});  &if (! &P_ZOMBIE($p)  && ($ps) !=  &NULL) { \'struct timeval\'  &tv; ($kp)-> &p_uvalid = 1; ($kp)-> &p_ustart_sec = ($ps)-> ($p_start->{tv_sec}); ($kp)-> &p_ustart_usec = ($ps)-> ($p_start->{tv_usec}); ($kp)-> &p_uru_maxrss = ($ps)-> ($p_ru->{ru_maxrss}); ($kp)-> &p_uru_ixrss = ($ps)-> ($p_ru->{ru_ixrss}); ($kp)-> &p_uru_idrss = ($ps)-> ($p_ru->{ru_idrss}); ($kp)-> &p_uru_isrss = ($ps)-> ($p_ru->{ru_isrss}); ($kp)-> &p_uru_minflt = ($ps)-> ($p_ru->{ru_minflt}); ($kp)-> &p_uru_majflt = ($ps)-> ($p_ru->{ru_majflt}); ($kp)-> &p_uru_nswap = ($ps)-> ($p_ru->{ru_nswap}); ($kp)-> &p_uru_inblock = ($ps)-> ($p_ru->{ru_inblock}); ($kp)-> &p_uru_oublock = ($ps)-> ($p_ru->{ru_oublock}); ($kp)-> &p_uru_msgsnd = ($ps)-> ($p_ru->{ru_msgsnd}); ($kp)-> &p_uru_msgrcv = ($ps)-> ($p_ru->{ru_msgrcv}); ($kp)-> &p_uru_nsignals = ($ps)-> ($p_ru->{ru_nsignals}); ($kp)-> &p_uru_nvcsw = ($ps)-> ($p_ru->{ru_nvcsw}); ($kp)-> &p_uru_nivcsw = ($ps)-> ($p_ru->{ru_nivcsw});  &timeradd(($ps)-> ($p_cru->{ru_utime}), ($ps)-> ($p_cru->{ru_stime}),  &tv); ($kp)-> &p_uctime_sec =  ($tv->{tv_sec}); ($kp)-> &p_uctime_usec =  ($tv->{tv_usec}); } ($kp)-> &p_cpuid =  &KI_NOCPU; ($kp)-> &p_tid = ($p)-> &p_pid +  &THREAD_PID_OFFSET; ($kp)-> &p_rtableid = ($pr)-> &ps_rtableid; }  &while (0));
	}' unless defined(&FILL_KPROC);
    }
    eval 'sub KERN_FILE_BYFILE () {1;}' unless defined(&KERN_FILE_BYFILE);
    eval 'sub KERN_FILE_BYPID () {2;}' unless defined(&KERN_FILE_BYPID);
    eval 'sub KERN_FILE_BYUID () {3;}' unless defined(&KERN_FILE_BYUID);
    eval 'sub KERN_FILESLOP () {10;}' unless defined(&KERN_FILESLOP);
    eval 'sub KERN_FILE_TEXT () {-1;}' unless defined(&KERN_FILE_TEXT);
    eval 'sub KERN_FILE_CDIR () {-2;}' unless defined(&KERN_FILE_CDIR);
    eval 'sub KERN_FILE_RDIR () {-3;}' unless defined(&KERN_FILE_RDIR);
    eval 'sub KERN_FILE_TRACE () {-4;}' unless defined(&KERN_FILE_TRACE);
    eval 'sub KI_MNAMELEN () {96;}' unless defined(&KI_MNAMELEN);
    eval 'sub KERN_INTRCNT_NUM () {1;}' unless defined(&KERN_INTRCNT_NUM);
    eval 'sub KERN_INTRCNT_CNT () {2;}' unless defined(&KERN_INTRCNT_CNT);
    eval 'sub KERN_INTRCNT_NAME () {3;}' unless defined(&KERN_INTRCNT_NAME);
    eval 'sub KERN_INTRCNT_VECTOR () {4;}' unless defined(&KERN_INTRCNT_VECTOR);
    eval 'sub KERN_INTRCNT_MAXID () {5;}' unless defined(&KERN_INTRCNT_MAXID);
    eval 'sub CTL_KERN_INTRCNT_NAMES () {{ { 0, 0}, { "nintrcnt",  &CTLTYPE_INT }, { "intrcnt",  &CTLTYPE_NODE }, { "intrname",  &CTLTYPE_NODE }, };}' unless defined(&CTL_KERN_INTRCNT_NAMES);
    eval 'sub KERN_WATCHDOG_PERIOD () {1;}' unless defined(&KERN_WATCHDOG_PERIOD);
    eval 'sub KERN_WATCHDOG_AUTO () {2;}' unless defined(&KERN_WATCHDOG_AUTO);
    eval 'sub KERN_WATCHDOG_MAXID () {3;}' unless defined(&KERN_WATCHDOG_MAXID);
    eval 'sub CTL_KERN_WATCHDOG_NAMES () {{ { 0, 0}, { "period",  &CTLTYPE_INT }, { "auto",  &CTLTYPE_INT }, };}' unless defined(&CTL_KERN_WATCHDOG_NAMES);
    eval 'sub KERN_TIMECOUNTER_TICK () {1;}' unless defined(&KERN_TIMECOUNTER_TICK);
    eval 'sub KERN_TIMECOUNTER_TIMESTEPWARNINGS () {2;}' unless defined(&KERN_TIMECOUNTER_TIMESTEPWARNINGS);
    eval 'sub KERN_TIMECOUNTER_HARDWARE () {3;}' unless defined(&KERN_TIMECOUNTER_HARDWARE);
    eval 'sub KERN_TIMECOUNTER_CHOICE () {4;}' unless defined(&KERN_TIMECOUNTER_CHOICE);
    eval 'sub KERN_TIMECOUNTER_MAXID () {5;}' unless defined(&KERN_TIMECOUNTER_MAXID);
    eval 'sub CTL_KERN_TIMECOUNTER_NAMES () {{ { 0, 0}, { "tick",  &CTLTYPE_INT }, { "timestepwarnings",  &CTLTYPE_INT }, { "hardware",  &CTLTYPE_STRING }, { "choice",  &CTLTYPE_STRING }, };}' unless defined(&CTL_KERN_TIMECOUNTER_NAMES);
    eval 'sub FS_POSIX () {1;}' unless defined(&FS_POSIX);
    eval 'sub FS_MAXID () {2;}' unless defined(&FS_MAXID);
    eval 'sub CTL_FS_NAMES () {{ { 0, 0}, { "posix",  &CTLTYPE_NODE }, };}' unless defined(&CTL_FS_NAMES);
    eval 'sub FS_POSIX_SETUID () {1;}' unless defined(&FS_POSIX_SETUID);
    eval 'sub FS_POSIX_MAXID () {2;}' unless defined(&FS_POSIX_MAXID);
    eval 'sub CTL_FS_POSIX_NAMES () {{ { 0, 0}, { "setuid",  &CTLTYPE_INT }, };}' unless defined(&CTL_FS_POSIX_NAMES);
    eval 'sub HW_MACHINE () {1;}' unless defined(&HW_MACHINE);
    eval 'sub HW_MODEL () {2;}' unless defined(&HW_MODEL);
    eval 'sub HW_NCPU () {3;}' unless defined(&HW_NCPU);
    eval 'sub HW_BYTEORDER () {4;}' unless defined(&HW_BYTEORDER);
    eval 'sub HW_PHYSMEM () {5;}' unless defined(&HW_PHYSMEM);
    eval 'sub HW_USERMEM () {6;}' unless defined(&HW_USERMEM);
    eval 'sub HW_PAGESIZE () {7;}' unless defined(&HW_PAGESIZE);
    eval 'sub HW_DISKNAMES () {8;}' unless defined(&HW_DISKNAMES);
    eval 'sub HW_DISKSTATS () {9;}' unless defined(&HW_DISKSTATS);
    eval 'sub HW_DISKCOUNT () {10;}' unless defined(&HW_DISKCOUNT);
    eval 'sub HW_SENSORS () {11;}' unless defined(&HW_SENSORS);
    eval 'sub HW_CPUSPEED () {12;}' unless defined(&HW_CPUSPEED);
    eval 'sub HW_SETPERF () {13;}' unless defined(&HW_SETPERF);
    eval 'sub HW_VENDOR () {14;}' unless defined(&HW_VENDOR);
    eval 'sub HW_PRODUCT () {15;}' unless defined(&HW_PRODUCT);
    eval 'sub HW_VERSION () {16;}' unless defined(&HW_VERSION);
    eval 'sub HW_SERIALNO () {17;}' unless defined(&HW_SERIALNO);
    eval 'sub HW_UUID () {18;}' unless defined(&HW_UUID);
    eval 'sub HW_PHYSMEM64 () {19;}' unless defined(&HW_PHYSMEM64);
    eval 'sub HW_USERMEM64 () {20;}' unless defined(&HW_USERMEM64);
    eval 'sub HW_NCPUFOUND () {21;}' unless defined(&HW_NCPUFOUND);
    eval 'sub HW_ALLOWPOWERDOWN () {22;}' unless defined(&HW_ALLOWPOWERDOWN);
    eval 'sub HW_MAXID () {23;}' unless defined(&HW_MAXID);
    eval 'sub CTL_HW_NAMES () {{ { 0, 0}, { "machine",  &CTLTYPE_STRING }, { "model",  &CTLTYPE_STRING }, { "ncpu",  &CTLTYPE_INT }, { "byteorder",  &CTLTYPE_INT }, { "gap", 0}, { "gap", 0}, { "pagesize",  &CTLTYPE_INT }, { "disknames",  &CTLTYPE_STRING }, { "diskstats",  &CTLTYPE_STRUCT }, { "diskcount",  &CTLTYPE_INT }, { "sensors",  &CTLTYPE_NODE}, { "cpuspeed",  &CTLTYPE_INT }, { "setperf",  &CTLTYPE_INT }, { "vendor",  &CTLTYPE_STRING }, { "product",  &CTLTYPE_STRING }, { "version",  &CTLTYPE_STRING }, { "serialno",  &CTLTYPE_STRING }, { "uuid",  &CTLTYPE_STRING }, { "physmem",  &CTLTYPE_QUAD }, { "usermem",  &CTLTYPE_QUAD }, { "ncpufound",  &CTLTYPE_INT }, { "allowpowerdown",  &CTLTYPE_INT }, };}' unless defined(&CTL_HW_NAMES);
    eval 'sub USER_CS_PATH () {1;}' unless defined(&USER_CS_PATH);
    eval 'sub USER_BC_BASE_MAX () {2;}' unless defined(&USER_BC_BASE_MAX);
    eval 'sub USER_BC_DIM_MAX () {3;}' unless defined(&USER_BC_DIM_MAX);
    eval 'sub USER_BC_SCALE_MAX () {4;}' unless defined(&USER_BC_SCALE_MAX);
    eval 'sub USER_BC_STRING_MAX () {5;}' unless defined(&USER_BC_STRING_MAX);
    eval 'sub USER_COLL_WEIGHTS_MAX () {6;}' unless defined(&USER_COLL_WEIGHTS_MAX);
    eval 'sub USER_EXPR_NEST_MAX () {7;}' unless defined(&USER_EXPR_NEST_MAX);
    eval 'sub USER_LINE_MAX () {8;}' unless defined(&USER_LINE_MAX);
    eval 'sub USER_RE_DUP_MAX () {9;}' unless defined(&USER_RE_DUP_MAX);
    eval 'sub USER_POSIX2_VERSION () {10;}' unless defined(&USER_POSIX2_VERSION);
    eval 'sub USER_POSIX2_C_BIND () {11;}' unless defined(&USER_POSIX2_C_BIND);
    eval 'sub USER_POSIX2_C_DEV () {12;}' unless defined(&USER_POSIX2_C_DEV);
    eval 'sub USER_POSIX2_CHAR_TERM () {13;}' unless defined(&USER_POSIX2_CHAR_TERM);
    eval 'sub USER_POSIX2_FORT_DEV () {14;}' unless defined(&USER_POSIX2_FORT_DEV);
    eval 'sub USER_POSIX2_FORT_RUN () {15;}' unless defined(&USER_POSIX2_FORT_RUN);
    eval 'sub USER_POSIX2_LOCALEDEF () {16;}' unless defined(&USER_POSIX2_LOCALEDEF);
    eval 'sub USER_POSIX2_SW_DEV () {17;}' unless defined(&USER_POSIX2_SW_DEV);
    eval 'sub USER_POSIX2_UPE () {18;}' unless defined(&USER_POSIX2_UPE);
    eval 'sub USER_STREAM_MAX () {19;}' unless defined(&USER_STREAM_MAX);
    eval 'sub USER_TZNAME_MAX () {20;}' unless defined(&USER_TZNAME_MAX);
    eval 'sub USER_MAXID () {21;}' unless defined(&USER_MAXID);
    eval 'sub CTL_USER_NAMES () {{ { 0, 0}, { "cs_path",  &CTLTYPE_STRING }, { "bc_base_max",  &CTLTYPE_INT }, { "bc_dim_max",  &CTLTYPE_INT }, { "bc_scale_max",  &CTLTYPE_INT }, { "bc_string_max",  &CTLTYPE_INT }, { "coll_weights_max",  &CTLTYPE_INT }, { "expr_nest_max",  &CTLTYPE_INT }, { "line_max",  &CTLTYPE_INT }, { "re_dup_max",  &CTLTYPE_INT }, { "posix2_version",  &CTLTYPE_INT }, { "posix2_c_bind",  &CTLTYPE_INT }, { "posix2_c_dev",  &CTLTYPE_INT }, { "posix2_char_term",  &CTLTYPE_INT }, { "posix2_fort_dev",  &CTLTYPE_INT }, { "posix2_fort_run",  &CTLTYPE_INT }, { "posix2_localedef",  &CTLTYPE_INT }, { "posix2_sw_dev",  &CTLTYPE_INT }, { "posix2_upe",  &CTLTYPE_INT }, { "stream_max",  &CTLTYPE_INT }, { "tzname_max",  &CTLTYPE_INT }, };}' unless defined(&CTL_USER_NAMES);
    eval 'sub CTL_DEBUG_NAME () {0;}' unless defined(&CTL_DEBUG_NAME);
    eval 'sub CTL_DEBUG_VALUE () {1;}' unless defined(&CTL_DEBUG_VALUE);
    eval 'sub CTL_DEBUG_MAXID () {20;}' unless defined(&CTL_DEBUG_MAXID);
    if(defined(&_KERNEL)) {
	if(defined(&DEBUG)) {
	}
	if(defined(&GPROF)) {
	}
	if(defined(&DEBUG)) {
	}
    } else {
	require 'sys/cdefs.ph';
    }
}
1;
