require '_h2ph_pre.ph';

require 'sys/queue.ph';
unless(defined(&ATTACHED)) {
    sub ATTACHED () {	0x1;}
}
unless(defined(&UNDONE)) {
    sub UNDONE () {	0x2;}
}
unless(defined(&COMPLETE)) {
    sub COMPLETE () {	0x4;}
}
unless(defined(&DEPCOMPLETE)) {
    sub DEPCOMPLETE () {	0x8;}
}
unless(defined(&MKDIR_PARENT)) {
    sub MKDIR_PARENT () {	0x10;}
}
unless(defined(&MKDIR_BODY)) {
    sub MKDIR_BODY () {	0x20;}
}
unless(defined(&RMDIR)) {
    sub RMDIR () {	0x40;}
}
unless(defined(&DIRCHG)) {
    sub DIRCHG () {	0x80;}
}
unless(defined(&GOINGAWAY)) {
    sub GOINGAWAY () {	0x100;}
}
unless(defined(&IOSTARTED)) {
    sub IOSTARTED () {	0x200;}
}
unless(defined(&ONWORKLIST)) {
    sub ONWORKLIST () {	0x8000;}
}
unless(defined(&ALLCOMPLETE)) {
    sub ALLCOMPLETE () {	( &ATTACHED |  &COMPLETE |  &DEPCOMPLETE);}
}
unless(defined(&WK_DATA)) {
    sub WK_DATA {
	local($wk) = @_;
	eval q((($wk)));
    }
}
unless(defined(&WK_PAGEDEP)) {
    sub WK_PAGEDEP {
	local($wk) = @_;
	eval q((($wk)));
    }
}
unless(defined(&WK_INODEDEP)) {
    sub WK_INODEDEP {
	local($wk) = @_;
	eval q((($wk)));
    }
}
unless(defined(&WK_NEWBLK)) {
    sub WK_NEWBLK {
	local($wk) = @_;
	eval q((($wk)));
    }
}
unless(defined(&WK_BMSAFEMAP)) {
    sub WK_BMSAFEMAP {
	local($wk) = @_;
	eval q((($wk)));
    }
}
unless(defined(&WK_ALLOCDIRECT)) {
    sub WK_ALLOCDIRECT {
	local($wk) = @_;
	eval q((($wk)));
    }
}
unless(defined(&WK_INDIRDEP)) {
    sub WK_INDIRDEP {
	local($wk) = @_;
	eval q((($wk)));
    }
}
unless(defined(&WK_ALLOCINDIR)) {
    sub WK_ALLOCINDIR {
	local($wk) = @_;
	eval q((($wk)));
    }
}
unless(defined(&WK_FREEFRAG)) {
    sub WK_FREEFRAG {
	local($wk) = @_;
	eval q((($wk)));
    }
}
unless(defined(&WK_FREEBLKS)) {
    sub WK_FREEBLKS {
	local($wk) = @_;
	eval q((($wk)));
    }
}
unless(defined(&WK_FREEFILE)) {
    sub WK_FREEFILE {
	local($wk) = @_;
	eval q((($wk)));
    }
}
unless(defined(&WK_DIRADD)) {
    sub WK_DIRADD {
	local($wk) = @_;
	eval q((($wk)));
    }
}
unless(defined(&WK_MKDIR)) {
    sub WK_MKDIR {
	local($wk) = @_;
	eval q((($wk)));
    }
}
unless(defined(&WK_DIRREM)) {
    sub WK_DIRREM {
	local($wk) = @_;
	eval q((($wk)));
    }
}
unless(defined(&DAHASHSZ)) {
    sub DAHASHSZ () {	6;}
}
unless(defined(&DIRADDHASH)) {
    sub DIRADDHASH {
	local($offset) = @_;
	eval q(((($offset) >> 2) %  &DAHASHSZ));
    }
}
unless(defined(&pd_state)) {
    sub pd_state () {	 ($pd_list->{wk_state});}
}
unless(defined(&id_state)) {
    sub id_state () {	 ($id_list->{wk_state});}
}
unless(defined(&ad_state)) {
    sub ad_state () {	 ($ad_list->{wk_state});}
}
unless(defined(&ir_state)) {
    sub ir_state () {	 ($ir_list->{wk_state});}
}
unless(defined(&ai_state)) {
    sub ai_state () {	 ($ai_list->{wk_state});}
}
unless(defined(&ff_state)) {
    sub ff_state () {	 ($ff_list->{wk_state});}
}
unless(defined(&da_state)) {
    sub da_state () {	 ($da_list->{wk_state});}
}
unless(defined(&da_previous)) {
    sub da_previous () {	 ($da_un->{dau_previous});}
}
unless(defined(&da_pagedep)) {
    sub da_pagedep () {	 ($da_un->{dau_pagedep});}
}
unless(defined(&md_state)) {
    sub md_state () {	 ($md_list->{wk_state});}
}
unless(defined(&dm_state)) {
    sub dm_state () {	 ($dm_list->{wk_state});}
}
unless(defined(&dm_pagedep)) {
    sub dm_pagedep () {	 ($dm_un->{dmu_pagedep});}
}
unless(defined(&dm_dirinum)) {
    sub dm_dirinum () {	 ($dm_un->{dmu_dirinum});}
}
1;
