The set_read_time_clock() syscall now returns a status_t to be able to
indicate failure. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9803 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
c345d00db1
commit
4ce0cb439a
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
** Copyright 2003, Jeff Ward, jeff@r2d2.stcloudstate.edu. All rights reserved.
|
** Copyright 2003, Jeff Ward, jeff@r2d2.stcloudstate.edu. All rights reserved.
|
||||||
** Distributed under the terms of the OpenBeOS License.
|
** Distributed under the terms of the Haiku License.
|
||||||
*/
|
*/
|
||||||
#ifndef _KERNEL_REAL_TIME_CLOCK_H
|
#ifndef _KERNEL_REAL_TIME_CLOCK_H
|
||||||
#define _KERNEL_REAL_TIME_CLOCK_H
|
#define _KERNEL_REAL_TIME_CLOCK_H
|
||||||
@ -13,13 +13,11 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
status_t rtc_init(kernel_args *ka);
|
status_t rtc_init(kernel_args *args);
|
||||||
// Initialize the real-time clock.
|
|
||||||
|
|
||||||
bigtime_t rtc_boot_time(void);
|
bigtime_t rtc_boot_time(void);
|
||||||
// Returns the time at which the system was booted in microseconds since Jan 1, 1970.
|
// Returns the time at which the system was booted in microseconds since Jan 1, 1970.
|
||||||
|
|
||||||
void _user_set_real_time_clock(uint32 time);
|
status_t _user_set_real_time_clock(uint32 time);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
@ -183,7 +183,7 @@ extern status_t _kern_stop_watching(dev_t device, ino_t node, uint32 flags,
|
|||||||
port_id port, uint32 token);
|
port_id port, uint32 token);
|
||||||
|
|
||||||
// time functions
|
// time functions
|
||||||
extern void _kern_set_real_time_clock(uint32 time);
|
extern status_t _kern_set_real_time_clock(uint32 time);
|
||||||
|
|
||||||
// area functions
|
// area functions
|
||||||
area_id _kern_create_area(const char *name, void **address, uint32 addressSpec,
|
area_id _kern_create_area(const char *name, void **address, uint32 addressSpec,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user