require '_h2ph_pre.ph';

unless(defined(&_AFFS_FS_I)) {
    eval 'sub _AFFS_FS_I () {1;}' unless defined(&_AFFS_FS_I);
    require 'linux/a.out.ph';
    require 'linux/time.ph';
    eval 'sub AFFS_CACHE_SIZE () { &PAGE_SIZE;}' unless defined(&AFFS_CACHE_SIZE);
    eval 'sub AFFS_MAX_PREALLOC () {32;}' unless defined(&AFFS_MAX_PREALLOC);
    eval 'sub AFFS_LC_SIZE () {( &AFFS_CACHE_SIZE/$sizeof{ &u32}/2);}' unless defined(&AFFS_LC_SIZE);
    eval 'sub AFFS_AC_SIZE () {( &AFFS_CACHE_SIZE/$sizeof{\'struct affs_ext_key\'}/2);}' unless defined(&AFFS_AC_SIZE);
    eval 'sub AFFS_AC_MASK () {( &AFFS_AC_SIZE-1);}' unless defined(&AFFS_AC_MASK);
    eval 'sub i_hash_lock () { &i_ext_lock;}' unless defined(&i_hash_lock);
    if(0) {
    }
    eval 'sub AFFS_INODE () {( ($inode->{u}->{affs_i}));}' unless defined(&AFFS_INODE);
    eval 'sub AFFS_DIR () {( ($dir->{u}->{affs_i}));}' unless defined(&AFFS_DIR);
}
1;
