1/*
2 * Copyright 2002-2008, Axel D��rfler, axeld@pinc-software.de.
3 * Distributed under the terms of the MIT License.
4 */
5
6
7#include <OS.h>
8
9#include <syscalls.h>
10#include <system_info.h>
11
12
13status_t
14_get_system_info(system_info *info, size_t size)
15{
16	if (info == NULL || size != sizeof(system_info))
17		return B_BAD_VALUE;
18
19	return _kern_get_system_info(info, size);
20}
21
22
23status_t
24__get_system_info_etc(int32 id, void *info, size_t size)
25{
26	if (info == NULL || size == 0 || id < 0)
27		return B_BAD_VALUE;
28
29	return _kern_get_system_info_etc(id, info, size);
30}
31
32
33status_t
34__start_watching_system(int32 object, uint32 flags, port_id port, int32 token)
35{
36	return _kern_start_watching_system(object, flags, port, token);
37}
38
39
40status_t
41__stop_watching_system(int32 object, uint32 flags, port_id port, int32 token)
42{
43	return _kern_stop_watching_system(object, flags, port, token);
44}
45
46
47int32
48is_computer_on(void)
49{
50	return _kern_is_computer_on();
51}
52
53
54double
55is_computer_on_fire(void)
56{
57	return 0.63739;
58}
59
60