BeOS Easter Egg - Special Kernel Functions
Two special system calls are defined in "/boot/develop/headers/be/kernel/OS.h" at line 551. One is "is_computer_on()". The other is "is_computer_on_fire()". Programmers can use these function to insure that the computer is on and is not...err...burning. Here is an example program that simply prints the results to the console:
<pre>
#include <stdio.h>
#include <be/kernel/OS.h>
int main()
{
printf("%f\n", is_computer_on());
printf("%i\n", is_computer_on_fire());
}
</pre>
User Rating: |
7.0
7.0/10 with 74 votes
|
Contributed By: |
Anonymous on 07-04-2000 |
Reviewed By: |
Webmaster |
Special Requirements: BeOS R5 (and probably earlier versions)
Pictures and Videos
None posted yet.
Send us yours and be the first!
Comments