Files
haiku-beta6/src/kernel/libroot/os/system_info.c
T
Axel Dörfler e08a79330a Renamed systeminfo.c into system_info.c
Added syscall for _kern_get_system_info().


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7288 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-21 22:41:00 +00:00

34 lines
462 B
C

/*
** Copyright 2002-2004, Axel Dörfler, [email protected]. All rights reserved.
** Distributed under the terms of the OpenBeOS License.
*/
#include <OS.h>
#include "syscalls.h"
status_t
_get_system_info(system_info *info, size_t size)
{
if (info == NULL || size != sizeof(system_info))
return B_BAD_VALUE;
return _kern_get_system_info(info, size);
}
int32
is_computer_on(void)
{
return 1;
}
double
is_computer_on_fire(void)
{
return 0;
}