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
This commit is contained in:
@@ -10,7 +10,7 @@ KernelMergeObject os_main.o :
|
|||||||
<$(SOURCE_GRIST)>image.c
|
<$(SOURCE_GRIST)>image.c
|
||||||
<$(SOURCE_GRIST)>port.c
|
<$(SOURCE_GRIST)>port.c
|
||||||
<$(SOURCE_GRIST)>sem.c
|
<$(SOURCE_GRIST)>sem.c
|
||||||
<$(SOURCE_GRIST)>systeminfo.c
|
<$(SOURCE_GRIST)>system_info.c
|
||||||
<$(SOURCE_GRIST)>team.c
|
<$(SOURCE_GRIST)>team.c
|
||||||
<$(SOURCE_GRIST)>thread.c
|
<$(SOURCE_GRIST)>thread.c
|
||||||
<$(SOURCE_GRIST)>time.c
|
<$(SOURCE_GRIST)>time.c
|
||||||
|
|||||||
@@ -166,6 +166,7 @@ SYSCALL6(sys_sysctl, 71)
|
|||||||
SYSCALL3(sys_setenv, 79)
|
SYSCALL3(sys_setenv, 79)
|
||||||
SYSCALL2(sys_getenv, 80)
|
SYSCALL2(sys_getenv, 80)
|
||||||
SYSCALL1(_kern_debug_output, 139)
|
SYSCALL1(_kern_debug_output, 139)
|
||||||
|
SYSCALL2(_kern_get_system_info, 140);
|
||||||
|
|
||||||
/* atomic calls */
|
/* atomic calls */
|
||||||
SYSCALL2(_kern_atomic_set, 126)
|
SYSCALL2(_kern_atomic_set, 126)
|
||||||
|
|||||||
@@ -0,0 +1,33 @@
|
|||||||
|
/*
|
||||||
|
** 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;
|
||||||
|
}
|
||||||
|
|
||||||
@@ -1,31 +0,0 @@
|
|||||||
/*
|
|
||||||
** Copyright 2002, 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 *returned_info, size_t size)
|
|
||||||
{
|
|
||||||
// ToDo: _get_system_info()
|
|
||||||
return B_ERROR;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
int32
|
|
||||||
is_computer_on(void)
|
|
||||||
{
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
double
|
|
||||||
is_computer_on_fire(void)
|
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user