Home > fun > is_computer_on()


The following function is from the BeBook, which details the API of the BeOS operating system.

The Be Book – Classes And Methods – The Kernel Kit / System Information:

int32 is_computer_on();

“Returns 1 if the computer is on. If the computer isn’t on, the value returned by this function is undefined.”

Found here in a comment.

Categories: fun Tags: , ,
  1. December 5, 2011 at 14:32


  2. Jaume
    December 5, 2011 at 21:29

    outstanding. How is that BeOS didnt succeed?

  3. December 6, 2011 at 08:23

    I think the is_computer_on_fire() function also deserves an “honourable mention”.

  4. Ashley Yakeley
    January 9, 2014 at 17:30

    Every BeOS program is supposed to check the result of this function before doing anything else, to verify that the computer is switched on. This is because, if the computer is not switched on, the program cannot proceed.

    Obviously this makes the assumption that if the computer is switched on at the beginning of program execution, it will remain on until the program terminates. To be able to drop this assumption, the BeOS team planned a computer_switched_off callback so that the program could be notified when the computer that was running it was switched off, and take appropriate action. Unfortunately it was never implemented.

  1. No trackbacks yet.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: