require '_h2ph_pre.ph';

unless(defined(&_PATH_KERNFS)) {
    sub _PATH_KERNFS () {	"/kern";}
}
if(defined(&_KERNEL)) {
    eval 'sub KTT_NULL () {1;}' unless defined(&KTT_NULL);
    eval 'sub KTT_TIME () {5;}' unless defined(&KTT_TIME);
    eval 'sub KTT_INT () {17;}' unless defined(&KTT_INT);
    eval 'sub KTT_STRING () {31;}' unless defined(&KTT_STRING);
    eval 'sub KTT_HOSTNAME () {47;}' unless defined(&KTT_HOSTNAME);
    eval 'sub KTT_AVENRUN () {53;}' unless defined(&KTT_AVENRUN);
    eval 'sub KTT_DEVICE () {71;}' unless defined(&KTT_DEVICE);
    eval 'sub KTT_MSGBUF () {89;}' unless defined(&KTT_MSGBUF);
    eval 'sub KTT_USERMEM () {91;}' unless defined(&KTT_USERMEM);
    eval 'sub KTT_DOMAIN () {95;}' unless defined(&KTT_DOMAIN);
    if(defined(&IPSEC)) {
	eval 'sub KTT_IPSECSPI () {107;}' unless defined(&KTT_IPSECSPI);
    }
    eval 'sub VFSTOKERNFS {
        local($mp) = @_;
	    eval q(((($mp)-> &mnt_data)));
    }' unless defined(&VFSTOKERNFS);
    eval 'sub VTOKERN {
        local($vp) = @_;
	    eval q((($vp)-> &v_data));
    }' unless defined(&VTOKERN);
    eval 'sub kernfs_fhtovp () {((\'int\' (*)  &__P((\'struct mount\' *, \'struct fid\' *, \'struct vnode\' **))) &eopnotsupp);}' unless defined(&kernfs_fhtovp);
    eval 'sub kernfs_quotactl () {((\'int\' (*)  &__P((\'struct mount\' *, \'int\',  &uid_t, \'caddr_t\', \'struct proc\' *))) &eopnotsupp);}' unless defined(&kernfs_quotactl);
    eval 'sub kernfs_sysctl () {((\'int\' (*)  &__P((\'int\' *, \'u_int\',  &void *,  &size_t *,  &void *,  &size_t, \'struct proc\' *))) &eopnotsupp);}' unless defined(&kernfs_sysctl);
    eval 'sub kernfs_vget () {((\'int\' (*)  &__P((\'struct mount\' *,  &ino_t, \'struct vnode\' **)))  &eopnotsupp);}' unless defined(&kernfs_vget);
    eval 'sub kernfs_vptofh () {((\'int\' (*)  &__P((\'struct vnode\' *, \'struct fid\' *))) &eopnotsupp);}' unless defined(&kernfs_vptofh);
    eval 'sub kernfs_sync () {((\'int\' (*)  &__P((\'struct mount\' *, \'int\', \'struct ucred\' *, \'struct proc\' *))) &nullop);}' unless defined(&kernfs_sync);
    eval 'sub kernfs_checkexp () {((\'int\' (*)  &__P((\'struct mount\' *, \'struct mbuf\' *, \'int\' *, \'struct ucred\' **))) &eopnotsupp);}' unless defined(&kernfs_checkexp);
}
1;
