require '_h2ph_pre.ph';

unless(defined(&_LINUX_MSG_H)) {
    eval 'sub _LINUX_MSG_H () {1;}' unless defined(&_LINUX_MSG_H);
    require 'linux/ipc.ph';
    eval 'sub MSG_STAT () {11;}' unless defined(&MSG_STAT);
    eval 'sub MSG_INFO () {12;}' unless defined(&MSG_INFO);
    eval 'sub MSG_NOERROR () {010000;}' unless defined(&MSG_NOERROR);
    eval 'sub MSG_EXCEPT () {020000;}' unless defined(&MSG_EXCEPT);
    require 'asm/msgbuf.ph';
    eval 'sub MSGMNI () {16;}' unless defined(&MSGMNI);
    eval 'sub MSGMAX () {8192;}' unless defined(&MSGMAX);
    eval 'sub MSGMNB () {16384;}' unless defined(&MSGMNB);
    eval 'sub MSGPOOL () {( &MSGMNI* &MSGMNB/1024);}' unless defined(&MSGPOOL);
    eval 'sub MSGTQL () { &MSGMNB;}' unless defined(&MSGTQL);
    eval 'sub MSGMAP () { &MSGMNB;}' unless defined(&MSGMAP);
    eval 'sub MSGSSZ () {16;}' unless defined(&MSGSSZ);
    eval 'sub __MSGSEG () {(( &MSGPOOL*1024)/  &MSGSSZ);}' unless defined(&__MSGSEG);
    eval 'sub MSGSEG () {( &__MSGSEG <= 0xffff ?  &__MSGSEG : 0xffff);}' unless defined(&MSGSEG);
}
1;
