require '_h2ph_pre.ph';

no warnings 'redefine';

require 'machine/pcb.ph';
unless(defined(&_KERNEL)) {
    require 'errno.ph';
    require 'sys/time.ph';
    require 'sys/resource.ph';
    require 'sys/ucred.ph';
    require 'sys/uio.ph';
}
require 'sys/resourcevar.ph';
require 'uvm/uvm_extern.ph';
require 'sys/sysctl.ph';
unless(defined(&U_ar0)) {
    sub U_ar0 () {	 ($u_kproc->{kp_proc}->{p_md}->{md_regs});}
}
unless(defined(&U_tsize)) {
    sub U_tsize () {	 ($u_kproc->{kp_eproc}->{e_vm}->{vm_tsize});}
}
unless(defined(&U_dsize)) {
    sub U_dsize () {	 ($u_kproc->{kp_eproc}->{e_vm}->{vm_dsize});}
}
unless(defined(&U_ssize)) {
    sub U_ssize () {	 ($u_kproc->{kp_eproc}->{e_vm}->{vm_ssize});}
}
unless(defined(&_KERNEL)) {
    eval 'sub u_ar0 () { &U_ar0;}' unless defined(&u_ar0);
    eval 'sub u_tsize () { &U_tsize;}' unless defined(&u_tsize);
    eval 'sub u_dsize () { &U_dsize;}' unless defined(&u_dsize);
    eval 'sub u_ssize () { &U_ssize;}' unless defined(&u_ssize);
}
1;
