4 ms·
For the curious minds: https://github.com/haiku/haiku/blob/master/src/system/libroot/os/system_info.cpp#L215 https://github.com/haiku/haiku/blob/master/src/syst
by yomimiva 1y ago
For the curious minds:
https://github.com/haiku/haiku/blob/master/src/system/libroot/os/system_info.cpp#L215 https://github.com/haiku/haiku/blob/master/src/system/libroo...
- tomn 1y agolooking around a bit, it's used as an example in the documentation: https://github.com/haiku/haiku/blob/7d07c4bc739dbf90159a5c02e48b9118c47ebbcd/docs/develop/kernel/system_calls.rst https://github.com/haiku/haiku/blob/7d07c4bc739dbf90159a5c02... This is actually a great reason to keep it around; it's as simple as possible, and nothing uses it so it's easy to find the relevant bits of code.
- vjvjvjvjghv 1y agoMakes sense: is_computer_on() 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.