require '_h2ph_pre.ph';

unless(defined(&_PATH_LOG)) {
    sub _PATH_LOG () {	"/dev/log";}
}
unless(defined(&LOG_EMERG)) {
    sub LOG_EMERG () {	0;}
}
unless(defined(&LOG_ALERT)) {
    sub LOG_ALERT () {	1;}
}
unless(defined(&LOG_CRIT)) {
    sub LOG_CRIT () {	2;}
}
unless(defined(&LOG_ERR)) {
    sub LOG_ERR () {	3;}
}
unless(defined(&LOG_WARNING)) {
    sub LOG_WARNING () {	4;}
}
unless(defined(&LOG_NOTICE)) {
    sub LOG_NOTICE () {	5;}
}
unless(defined(&LOG_INFO)) {
    sub LOG_INFO () {	6;}
}
unless(defined(&LOG_DEBUG)) {
    sub LOG_DEBUG () {	7;}
}
unless(defined(&LOG_PRIMASK)) {
    sub LOG_PRIMASK () {	0x07;}
}
unless(defined(&LOG_PRI)) {
    sub LOG_PRI {
	local($p) = @_;
	eval q((($p) &  &LOG_PRIMASK));
    }
}
unless(defined(&LOG_MAKEPRI)) {
    sub LOG_MAKEPRI {
	local($fac, $pri) = @_;
	eval q(((($fac) << 3) | ($pri)));
    }
}
if(defined(&SYSLOG_NAMES)) {
    eval 'sub INTERNAL_NOPRI () {0x10;}' unless defined(&INTERNAL_NOPRI);
    eval 'sub INTERNAL_MARK () { &LOG_MAKEPRI( &LOG_NFACILITIES, 0);}' unless defined(&INTERNAL_MARK);
}
unless(defined(&LOG_KERN)) {
    sub LOG_KERN () {	(0<<3);}
}
unless(defined(&LOG_USER)) {
    sub LOG_USER () {	(1<<3);}
}
unless(defined(&LOG_MAIL)) {
    sub LOG_MAIL () {	(2<<3);}
}
unless(defined(&LOG_DAEMON)) {
    sub LOG_DAEMON () {	(3<<3);}
}
unless(defined(&LOG_AUTH)) {
    sub LOG_AUTH () {	(4<<3);}
}
unless(defined(&LOG_SYSLOG)) {
    sub LOG_SYSLOG () {	(5<<3);}
}
unless(defined(&LOG_LPR)) {
    sub LOG_LPR () {	(6<<3);}
}
unless(defined(&LOG_NEWS)) {
    sub LOG_NEWS () {	(7<<3);}
}
unless(defined(&LOG_UUCP)) {
    sub LOG_UUCP () {	(8<<3);}
}
unless(defined(&LOG_CRON)) {
    sub LOG_CRON () {	(9<<3);}
}
unless(defined(&LOG_AUTHPRIV)) {
    sub LOG_AUTHPRIV () {	(10<<3);}
}
unless(defined(&LOG_FTP)) {
    sub LOG_FTP () {	(11<<3);}
}
unless(defined(&LOG_LOCAL0)) {
    sub LOG_LOCAL0 () {	(16<<3);}
}
unless(defined(&LOG_LOCAL1)) {
    sub LOG_LOCAL1 () {	(17<<3);}
}
unless(defined(&LOG_LOCAL2)) {
    sub LOG_LOCAL2 () {	(18<<3);}
}
unless(defined(&LOG_LOCAL3)) {
    sub LOG_LOCAL3 () {	(19<<3);}
}
unless(defined(&LOG_LOCAL4)) {
    sub LOG_LOCAL4 () {	(20<<3);}
}
unless(defined(&LOG_LOCAL5)) {
    sub LOG_LOCAL5 () {	(21<<3);}
}
unless(defined(&LOG_LOCAL6)) {
    sub LOG_LOCAL6 () {	(22<<3);}
}
unless(defined(&LOG_LOCAL7)) {
    sub LOG_LOCAL7 () {	(23<<3);}
}
unless(defined(&LOG_NFACILITIES)) {
    sub LOG_NFACILITIES () {	24;}
}
unless(defined(&LOG_FACMASK)) {
    sub LOG_FACMASK () {	0x03f8;}
}
unless(defined(&LOG_FAC)) {
    sub LOG_FAC {
	local($p) = @_;
	eval q(((($p) &  &LOG_FACMASK) >> 3));
    }
}
if(defined(&SYSLOG_NAMES)) {
}
if(defined(&_KERNEL)) {
    eval 'sub LOG_PRINTF () {-1;}' unless defined(&LOG_PRINTF);
}
unless(defined(&LOG_MASK)) {
    sub LOG_MASK {
	local($pri) = @_;
	eval q((1<< ($pri)));
    }
}
unless(defined(&LOG_UPTO)) {
    sub LOG_UPTO {
	local($pri) = @_;
	eval q(((1<< (($pri)+1)) - 1));
    }
}
unless(defined(&LOG_PID)) {
    sub LOG_PID () {	0x01;}
}
unless(defined(&LOG_CONS)) {
    sub LOG_CONS () {	0x02;}
}
unless(defined(&LOG_ODELAY)) {
    sub LOG_ODELAY () {	0x04;}
}
unless(defined(&LOG_NDELAY)) {
    sub LOG_NDELAY () {	0x08;}
}
unless(defined(&LOG_NOWAIT)) {
    sub LOG_NOWAIT () {	0x10;}
}
unless(defined(&LOG_PERROR)) {
    sub LOG_PERROR () {	0x20;}
}
unless(defined(&_KERNEL)) {
    require 'machine/ansi.ph';
    require 'sys/cdefs.ph';
} else {
}
1;
