Changeset View
Changeset View
Standalone View
Standalone View
usr.sbin/powerd/powerd.c
Show First 20 Lines • Show All 287 Lines • ▼ Show 20 Lines | |||||
{ | { | ||||
acline_mib_len = 4; | acline_mib_len = 4; | ||||
acline_status = SRC_UNKNOWN; | acline_status = SRC_UNKNOWN; | ||||
if (sysctlnametomib(ACPIAC, acline_mib, &acline_mib_len) == 0) { | if (sysctlnametomib(ACPIAC, acline_mib, &acline_mib_len) == 0) { | ||||
acline_mode = ac_sysctl; | acline_mode = ac_sysctl; | ||||
if (vflag) | if (vflag) | ||||
warnx("using sysctl for AC line status"); | warnx("using sysctl for AC line status"); | ||||
#if __powerpc__ | #ifdef __powerpc__ | ||||
} else if (sysctlnametomib(PMUAC, acline_mib, &acline_mib_len) == 0) { | } else if (sysctlnametomib(PMUAC, acline_mib, &acline_mib_len) == 0) { | ||||
acline_mode = ac_sysctl; | acline_mode = ac_sysctl; | ||||
if (vflag) | if (vflag) | ||||
warnx("using sysctl for AC line status"); | warnx("using sysctl for AC line status"); | ||||
#endif | #endif | ||||
#ifdef USE_APM | #ifdef USE_APM | ||||
} else if ((apm_fd = open(APMDEV, O_RDONLY)) >= 0) { | } else if ((apm_fd = open(APMDEV, O_RDONLY)) >= 0) { | ||||
if (vflag) | if (vflag) | ||||
▲ Show 20 Lines • Show All 491 Lines • Show Last 20 Lines |