require '_h2ph_pre.ph';

unless(defined(&_SYS_SEM_H)) {
    die("Never include <bits/sem.h> directly; use <sys/sem.h> instead.");
}
require 'sys/types.ph';
unless(defined(&SEM_UNDO)) {
    sub SEM_UNDO () {	0x1000;}
}
unless(defined(&GETPID)) {
    sub GETPID () {	11;}
}
unless(defined(&GETVAL)) {
    sub GETVAL () {	12;}
}
unless(defined(&GETALL)) {
    sub GETALL () {	13;}
}
unless(defined(&GETNCNT)) {
    sub GETNCNT () {	14;}
}
unless(defined(&GETZCNT)) {
    sub GETZCNT () {	15;}
}
unless(defined(&SETVAL)) {
    sub SETVAL () {	16;}
}
unless(defined(&SETALL)) {
    sub SETALL () {	17;}
}
unless(defined(&_SEM_SEMUN_UNDEFINED)) {
    sub _SEM_SEMUN_UNDEFINED () {	1;}
}
if(defined(&__USE_MISC)) {
    eval 'sub SEM_STAT () {18;}' unless defined(&SEM_STAT);
    eval 'sub SEM_INFO () {19;}' unless defined(&SEM_INFO);
}
1;
