require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&_MNTOPTS_H_)) {
    eval 'sub _MNTOPTS_H_ () {1;}' unless defined(&_MNTOPTS_H_);
    require 'sys/cdefs.ph';
    eval 'sub MOPT_ACLS () {{ "acls", 0,  &MNT_ACLS, 0};}' unless defined(&MOPT_ACLS);
    eval 'sub MOPT_NFS4ACLS () {{ "nfs4acls", 0,  &MNT_NFS4ACLS, 0};}' unless defined(&MOPT_NFS4ACLS);
    eval 'sub MOPT_POSIX1EACLS () {{ "posix1eacls",0,  &MNT_POSIX1EACLS, 0};}' unless defined(&MOPT_POSIX1EACLS);
    eval 'sub MOPT_ASYNC () {{ "async", 0,  &MNT_ASYNC, 0};}' unless defined(&MOPT_ASYNC);
    eval 'sub MOPT_NOCOREDUMP () {{ "coredump", 1,  &MNT_NOCOREDUMP, 0};}' unless defined(&MOPT_NOCOREDUMP);
    eval 'sub MOPT_NODEV () {{ "dev", 1,  &MNT_NODEV, 0};}' unless defined(&MOPT_NODEV);
    eval 'sub MOPT_NODEVMTIME () {{ "devmtime", 1,  &MNT_NODEVMTIME, 0};}' unless defined(&MOPT_NODEVMTIME);
    eval 'sub MOPT_NOEXEC () {{ "exec", 1,  &MNT_NOEXEC, 0};}' unless defined(&MOPT_NOEXEC);
    eval 'sub MOPT_NOSUID () {{ "suid", 1,  &MNT_NOSUID, 0};}' unless defined(&MOPT_NOSUID);
    eval 'sub MOPT_RDONLY () {{ "rdonly", 0,  &MNT_RDONLY, 0};}' unless defined(&MOPT_RDONLY);
    eval 'sub MOPT_SYNC () {{ "sync", 0,  &MNT_SYNCHRONOUS, 0};}' unless defined(&MOPT_SYNC);
    eval 'sub MOPT_UNION () {{ "union", 0,  &MNT_UNION, 0};}' unless defined(&MOPT_UNION);
    eval 'sub MOPT_USERQUOTA () {{ "userquota", 0, 0, 0};}' unless defined(&MOPT_USERQUOTA);
    eval 'sub MOPT_GROUPQUOTA () {{ "groupquota", 0, 0, 0};}' unless defined(&MOPT_GROUPQUOTA);
    eval 'sub MOPT_NOATIME () {{ "atime", 1,  &MNT_NOATIME, 0};}' unless defined(&MOPT_NOATIME);
    eval 'sub MOPT_RELATIME () {{ "relatime", 0,  &MNT_RELATIME, 0};}' unless defined(&MOPT_RELATIME);
    eval 'sub MOPT_SYMPERM () {{ "symperm", 0,  &MNT_SYMPERM, 0};}' unless defined(&MOPT_SYMPERM);
    eval 'sub MOPT_SOFTDEP () {{ "softdep", 0,  &MNT_SOFTDEP, 0};}' unless defined(&MOPT_SOFTDEP);
    eval 'sub MOPT_LOG () {{ "log", 0,  &MNT_LOG, 0};}' unless defined(&MOPT_LOG);
    eval 'sub MOPT_IGNORE () {{ "hidden", 0,  &MNT_IGNORE, 0};}' unless defined(&MOPT_IGNORE);
    eval 'sub MOPT_EXTATTR () {{ "extattr", 0,  &MNT_EXTATTR, 0};}' unless defined(&MOPT_EXTATTR);
    eval 'sub MOPT_DISCARD () {{ "discard", 0,  &MNT_DISCARD, 0};}' unless defined(&MOPT_DISCARD);
    eval 'sub MOPT_AUTOMOUNTED () {{ "automounted",0,  &MNT_AUTOMOUNTED, 0};}' unless defined(&MOPT_AUTOMOUNTED);
    eval 'sub MOPT_FORCE () {{ "force", 0,  &MNT_FORCE, 0};}' unless defined(&MOPT_FORCE);
    eval 'sub MOPT_UPDATE () {{ "update", 0,  &MNT_UPDATE, 0};}' unless defined(&MOPT_UPDATE);
    eval 'sub MOPT_RELOAD () {{ "reload", 0,  &MNT_RELOAD, 0};}' unless defined(&MOPT_RELOAD);
    eval 'sub MOPT_GETARGS () {{ "getargs", 0,  &MNT_GETARGS, 0};}' unless defined(&MOPT_GETARGS);
    eval 'sub MOPT_RO () {{ "ro", 0,  &MNT_RDONLY, 0};}' unless defined(&MOPT_RO);
    eval 'sub MOPT_RW () {{ "rw", 1,  &MNT_RDONLY, 0};}' unless defined(&MOPT_RW);
    eval 'sub MOPT_AUTO () {{ "auto", 0, 0, 0};}' unless defined(&MOPT_AUTO);
    eval 'sub MOPT_RUMP () {{ "rump", 0, 0, 0};}' unless defined(&MOPT_RUMP);
    eval 'sub MOPT_NULL () {{  &NULL, 0, 0, 0};}' unless defined(&MOPT_NULL);
    eval 'sub MOPT_FSTAB_COMPAT () { &MOPT_RO,  &MOPT_RW,  &MOPT_AUTO;}' unless defined(&MOPT_FSTAB_COMPAT);
    eval 'sub MOPT_STDOPTS () { &MOPT_USERQUOTA,  &MOPT_GROUPQUOTA,  &MOPT_FSTAB_COMPAT,  &MOPT_NOCOREDUMP,  &MOPT_NODEV,  &MOPT_NOEXEC,  &MOPT_NOSUID,  &MOPT_RDONLY,  &MOPT_UNION,  &MOPT_IGNORE,  &MOPT_SYMPERM,  &MOPT_RUMP,  &MOPT_AUTOMOUNTED;}' unless defined(&MOPT_STDOPTS);
}
1;
