Use is_computer_on() as test syscall.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23044 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
4a241f2ac3
commit
ccaac177f6
@ -9,8 +9,6 @@
|
||||
|
||||
#ifdef __HAIKU__
|
||||
# include <syscalls.h>
|
||||
#else
|
||||
extern "C" void _kclose_(int fd);
|
||||
#endif
|
||||
|
||||
|
||||
@ -22,10 +20,9 @@ main(int argc, char **argv)
|
||||
|
||||
for (int32 i = 0; i < loops; i++) {
|
||||
#ifdef __HAIKU__
|
||||
// _kern_null();
|
||||
_kern_close(-1);
|
||||
_kern_is_computer_on();
|
||||
#else
|
||||
_kclose_(-1);
|
||||
is_computer_on();
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user