Photograph of the same copy of the Be Developer’s Guide, opened to pages 802 and 803, in Chapter 5: Kernel Kit. The functions is_computer_on(), and is_computer_on_fire() are documented on page 802. All of the text on page 802 as detected by OCR follows. The first text is a continuation of the definition of the enumeration cpu_type from the previous page. B_CPU_HPPA, B_CPU_M68K, B_CPU_ARM, B_CPU_SH, B_CPU_SPARC } cpu type; The platform_type constants are: typedef enum B_BEBOX PLATFORM = 0, B_MAC_ PLATFORM, B_AT_ CLONE_PLATFORM, B_ENIAC_PLATFORM, B_APPLE_ II_PLATFORM, B_CRAY_ PLATFORM, B_LISA PLATFORM, B_TI_ 994A_ PLATFORM, B_TIMEX_ SINCLAIR PLATFORM, B_ORAC_1_ PLATFORM, B_HAL_ PLATFORM } platform type: T haven't tried it, but I really don't think the BeOS would work at all well on a Times Sinclair (see 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. Smoldering doesn't count. If the computer isn't on fire, the function returns some other value. Time Functions real_time_clock, real_time_clock_usecs), set_real_time_clock0 uint32 real_time_clock (void) bigtime_t real_time_clock_usecs (void) void set_ real time_clock (int32 secs_since_jan_1_1970)
https://files.mastodon.social/media_attachments/files/112/921/590/934/809/018/original/452d1c9926f7ab31.jpeg