require '_h2ph_pre.ph';

unless(defined(&_LINUX_SYSV_FS_H)) {
    eval 'sub _LINUX_SYSV_FS_H () {1;}' unless defined(&_LINUX_SYSV_FS_H);
    if(defined(&__GNUC__)) {
	eval 'sub __packed2__ () { &__attribute__ (( &packed,  &aligned(2)));}' unless defined(&__packed2__);
    } else {
	die("I\ want\ gcc\!");
    }
    require 'linux/stat.ph';
    require 'linux/sched.ph';
    require 'linux/sysv_fs_sb.ph';
    if(defined(&__LITTLE_ENDIAN)) {
    } else {
	if(defined(&__BIG_ENDIAN)) {
	} else {
	    die("BYTESEX");
	}
    }
    eval 'sub SYSV_BADBL_INO () {1;}' unless defined(&SYSV_BADBL_INO);
    eval 'sub SYSV_ROOT_INO () {2;}' unless defined(&SYSV_ROOT_INO);
    eval 'sub XENIX_NICINOD () {100;}' unless defined(&XENIX_NICINOD);
    eval 'sub XENIX_NICFREE () {100;}' unless defined(&XENIX_NICFREE);
    eval 'sub SYSV_NICINOD () {100;}' unless defined(&SYSV_NICINOD);
    eval 'sub SYSV_NICFREE () {50;}' unless defined(&SYSV_NICFREE);
    eval 'sub V7_NICINOD () {100;}' unless defined(&V7_NICINOD);
    eval 'sub V7_NICFREE () {50;}' unless defined(&V7_NICFREE);
    eval 'sub COH_NICINOD () {100;}' unless defined(&COH_NICINOD);
    eval 'sub COH_NICFREE () {64;}' unless defined(&COH_NICFREE);
    eval 'sub COH_KLUDGE_SYMLINK_MODE () {( &S_IFREG |  &S_ISVTX);}' unless defined(&COH_KLUDGE_SYMLINK_MODE);
    eval 'sub COH_KLUDGE_NOT_SYMLINK () {( &S_IFREG |  &S_ISVTX |  &S_IRUSR);}' unless defined(&COH_KLUDGE_NOT_SYMLINK);
    eval("sub XENIX_LINK_MAX () { 126; }") unless defined(&XENIX_LINK_MAX);
    eval("sub SYSV_LINK_MAX () { 126; }") unless defined(&SYSV_LINK_MAX);
    eval("sub V7_LINK_MAX () { 126; }") unless defined(&V7_LINK_MAX);
    eval("sub COH_LINK_MAX () { 10000; }") unless defined(&COH_LINK_MAX);
    eval 'sub SYSV_NAMELEN () {14;}' unless defined(&SYSV_NAMELEN);
    eval 'sub SYSV_DIRSIZE () {$sizeof{\'struct sysv_dir_entry\'};}' unless defined(&SYSV_DIRSIZE);
    eval("sub FSTYPE_NONE () { 0; }") unless defined(&FSTYPE_NONE);
    eval("sub FSTYPE_XENIX () { 1; }") unless defined(&FSTYPE_XENIX);
    eval("sub FSTYPE_SYSV4 () { 2; }") unless defined(&FSTYPE_SYSV4);
    eval("sub FSTYPE_SYSV2 () { 3; }") unless defined(&FSTYPE_SYSV2);
    eval("sub FSTYPE_COH () { 4; }") unless defined(&FSTYPE_COH);
    eval("sub FSTYPE_V7 () { 5; }") unless defined(&FSTYPE_V7);
    eval("sub FSTYPE_AFS () { 6; }") unless defined(&FSTYPE_AFS);
    eval("sub FSTYPE_END () { 7; }") unless defined(&FSTYPE_END);
    eval 'sub SYSV_MAGIC_BASE () {0x12ff7b3;}' unless defined(&SYSV_MAGIC_BASE);
    eval 'sub XENIX_SUPER_MAGIC () {( &SYSV_MAGIC_BASE+ &FSTYPE_XENIX);}' unless defined(&XENIX_SUPER_MAGIC);
    eval 'sub SYSV4_SUPER_MAGIC () {( &SYSV_MAGIC_BASE+ &FSTYPE_SYSV4);}' unless defined(&SYSV4_SUPER_MAGIC);
    eval 'sub SYSV2_SUPER_MAGIC () {( &SYSV_MAGIC_BASE+ &FSTYPE_SYSV2);}' unless defined(&SYSV2_SUPER_MAGIC);
    eval 'sub COH_SUPER_MAGIC () {( &SYSV_MAGIC_BASE+ &FSTYPE_COH);}' unless defined(&COH_SUPER_MAGIC);
}
1;
