require '_h2ph_pre.ph';

unless(defined(&_LINUX_NCP_H)) {
    eval 'sub _LINUX_NCP_H () {1;}' unless defined(&_LINUX_NCP_H);
    require 'linux/types.ph';
    eval 'sub NCP_PTYPE () {(0x11);}' unless defined(&NCP_PTYPE);
    eval 'sub NCP_PORT () {(0x451);}' unless defined(&NCP_PORT);
    eval 'sub NCP_ALLOC_SLOT_REQUEST () {(0x1111);}' unless defined(&NCP_ALLOC_SLOT_REQUEST);
    eval 'sub NCP_REQUEST () {(0x2222);}' unless defined(&NCP_REQUEST);
    eval 'sub NCP_DEALLOC_SLOT_REQUEST () {(0x5555);}' unless defined(&NCP_DEALLOC_SLOT_REQUEST);
    eval 'sub NCP_REPLY () {(0x3333);}' unless defined(&NCP_REPLY);
    eval 'sub NCP_POSITIVE_ACK () {(0x9999);}' unless defined(&NCP_POSITIVE_ACK);
    eval 'sub NCP_VOLNAME_LEN () {(16);}' unless defined(&NCP_VOLNAME_LEN);
    eval 'sub NCP_NUMBER_OF_VOLUMES () {(64);}' unless defined(&NCP_NUMBER_OF_VOLUMES);
    eval 'sub AR_READ () {( &ntohs(0x100));}' unless defined(&AR_READ);
    eval 'sub AR_WRITE () {( &ntohs(0x200));}' unless defined(&AR_WRITE);
    eval 'sub AR_EXCLUSIVE () {( &ntohs(0x2000));}' unless defined(&AR_EXCLUSIVE);
    eval 'sub NCP_FILE_ID_LEN () {6;}' unless defined(&NCP_FILE_ID_LEN);
    eval 'sub NW_NS_DOS () {0;}' unless defined(&NW_NS_DOS);
    eval 'sub NW_NS_MAC () {1;}' unless defined(&NW_NS_MAC);
    eval 'sub NW_NS_NFS () {2;}' unless defined(&NW_NS_NFS);
    eval 'sub NW_NS_FTAM () {3;}' unless defined(&NW_NS_FTAM);
    eval 'sub NW_NS_OS2 () {4;}' unless defined(&NW_NS_OS2);
    eval 'sub RIM_NAME () {( &ntohl(0x1000000));}' unless defined(&RIM_NAME);
    eval 'sub RIM_SPACE_ALLOCATED () {( &ntohl(0x2000000));}' unless defined(&RIM_SPACE_ALLOCATED);
    eval 'sub RIM_ATTRIBUTES () {( &ntohl(0x4000000));}' unless defined(&RIM_ATTRIBUTES);
    eval 'sub RIM_DATA_SIZE () {( &ntohl(0x8000000));}' unless defined(&RIM_DATA_SIZE);
    eval 'sub RIM_TOTAL_SIZE () {( &ntohl(0x10000000));}' unless defined(&RIM_TOTAL_SIZE);
    eval 'sub RIM_EXT_ATTR_INFO () {( &ntohl(0x20000000));}' unless defined(&RIM_EXT_ATTR_INFO);
    eval 'sub RIM_ARCHIVE () {( &ntohl(0x40000000));}' unless defined(&RIM_ARCHIVE);
    eval 'sub RIM_MODIFY () {( &ntohl(0x80000000));}' unless defined(&RIM_MODIFY);
    eval 'sub RIM_CREATION () {( &ntohl(0x10000));}' unless defined(&RIM_CREATION);
    eval 'sub RIM_OWNING_NAMESPACE () {( &ntohl(0x20000));}' unless defined(&RIM_OWNING_NAMESPACE);
    eval 'sub RIM_DIRECTORY () {( &ntohl(0x40000));}' unless defined(&RIM_DIRECTORY);
    eval 'sub RIM_RIGHTS () {( &ntohl(0x80000));}' unless defined(&RIM_RIGHTS);
    eval 'sub RIM_ALL () {( &ntohl(0xff0f0000));}' unless defined(&RIM_ALL);
    eval 'sub RIM_COMPRESSED_INFO () {( &ntohl(0x80));}' unless defined(&RIM_COMPRESSED_INFO);
    eval 'sub OC_MODE_OPEN () {0x1;}' unless defined(&OC_MODE_OPEN);
    eval 'sub OC_MODE_TRUNCATE () {0x2;}' unless defined(&OC_MODE_TRUNCATE);
    eval 'sub OC_MODE_REPLACE () {0x2;}' unless defined(&OC_MODE_REPLACE);
    eval 'sub OC_MODE_CREATE () {0x8;}' unless defined(&OC_MODE_CREATE);
    eval 'sub OC_ACTION_NONE () {0x;}' unless defined(&OC_ACTION_NONE);
    eval 'sub OC_ACTION_OPEN () {0x1;}' unless defined(&OC_ACTION_OPEN);
    eval 'sub OC_ACTION_CREATE () {0x2;}' unless defined(&OC_ACTION_CREATE);
    eval 'sub OC_ACTION_TRUNCATE () {0x4;}' unless defined(&OC_ACTION_TRUNCATE);
    eval 'sub OC_ACTION_REPLACE () {0x4;}' unless defined(&OC_ACTION_REPLACE);
    unless(defined(&AR_READ_ONLY)) {
	eval 'sub AR_READ_ONLY () {0x1;}' unless defined(&AR_READ_ONLY);
	eval 'sub AR_WRITE_ONLY () {0x2;}' unless defined(&AR_WRITE_ONLY);
	eval 'sub AR_DENY_READ () {0x4;}' unless defined(&AR_DENY_READ);
	eval 'sub AR_DENY_WRITE () {0x8;}' unless defined(&AR_DENY_WRITE);
	eval 'sub AR_COMPATIBILITY () {0x10;}' unless defined(&AR_COMPATIBILITY);
	eval 'sub AR_WRITE_THROUGH () {0x40;}' unless defined(&AR_WRITE_THROUGH);
	eval 'sub AR_OPEN_COMPRESSED () {0x100;}' unless defined(&AR_OPEN_COMPRESSED);
    }
    eval 'sub DM_ATTRIBUTES () {( &ntohl(0x2000000));}' unless defined(&DM_ATTRIBUTES);
    eval 'sub DM_CREATE_DATE () {( &ntohl(0x4000000));}' unless defined(&DM_CREATE_DATE);
    eval 'sub DM_CREATE_TIME () {( &ntohl(0x8000000));}' unless defined(&DM_CREATE_TIME);
    eval 'sub DM_CREATOR_ID () {( &ntohl(0x10000000));}' unless defined(&DM_CREATOR_ID);
    eval 'sub DM_ARCHIVE_DATE () {( &ntohl(0x20000000));}' unless defined(&DM_ARCHIVE_DATE);
    eval 'sub DM_ARCHIVE_TIME () {( &ntohl(0x40000000));}' unless defined(&DM_ARCHIVE_TIME);
    eval 'sub DM_ARCHIVER_ID () {( &ntohl(0x80000000));}' unless defined(&DM_ARCHIVER_ID);
    eval 'sub DM_MODIFY_DATE () {( &ntohl(0x10000));}' unless defined(&DM_MODIFY_DATE);
    eval 'sub DM_MODIFY_TIME () {( &ntohl(0x20000));}' unless defined(&DM_MODIFY_TIME);
    eval 'sub DM_MODIFIER_ID () {( &ntohl(0x40000));}' unless defined(&DM_MODIFIER_ID);
    eval 'sub DM_LAST_ACCESS_DATE () {( &ntohl(0x80000));}' unless defined(&DM_LAST_ACCESS_DATE);
    eval 'sub DM_INHERITED_RIGHTS_MASK () {( &ntohl(0x100000));}' unless defined(&DM_INHERITED_RIGHTS_MASK);
    eval 'sub DM_MAXIMUM_SPACE () {( &ntohl(0x200000));}' unless defined(&DM_MAXIMUM_SPACE);
}
1;
