The Kernel Kit: System Information
http://www.tycomsystems.com/beos/BeBook/The%20Kernel%20Kit/System.html
is_computer_on() と is_computer_on_fire() を思い出した
> is_computer_on()
>
> int32 is_computer_on(void)
>
> Returns 1 if the computer is on. If the computer isn't on, the value returned by this function is undefined.
> is_computer_on_fire()
>
> double is_computer_on_fire(void)
>
> Returns the temperature of the motherboard if the computer is currently on fire. If the computer isn't on fire, the function returns some other value.