is_computer_on() lives again as a true syscall.

Replaced the _kern_null syscall with _kern_is_computer_on.
is_computer_on_fire is a bit harder, since it returns a float from kernelland, which
at the moment isn't supported in haiku.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20069 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Travis Geiselbrecht 2007-02-04 21:08:35 +00:00
parent 10c69bce7b
commit ea4ff0f689
3 changed files with 4 additions and 5 deletions

View File

@ -43,7 +43,7 @@ struct user_disk_system_info;
#pragma syscalls begin
#endif
extern int _kern_null();
extern int _kern_is_computer_on(void);
extern status_t _kern_generic_syscall(const char *subsystem, uint32 function,
void *buffer, size_t bufferSize);

View File

@ -147,12 +147,11 @@ out:
static inline int
_user_null()
_user_is_computer_on(void)
{
return 0;
return 1;
}
// map to the arch specific call
static inline int64

View File

@ -21,7 +21,7 @@ _get_system_info(system_info *info, size_t size)
int32
is_computer_on(void)
{
return 1;
return _kern_is_computer_on();
}