Added the syscall for set_real_time_clock().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5187 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
939f7fbaca
commit
9699c52992
@ -147,6 +147,7 @@ enum {
|
||||
SYSCALL_ATOMIC_AND64, /* 135 */
|
||||
SYSCALL_ATOMIC_OR64,
|
||||
SYSCALL_ATOMIC_GET64,
|
||||
SYSCALL_SET_REAL_TIME_CLOCK,
|
||||
};
|
||||
|
||||
int syscall_dispatcher(unsigned long call_num, void *arg_buffer, uint64 *call_ret);
|
||||
|
@ -19,6 +19,8 @@ status_t rtc_init(kernel_args *ka);
|
||||
bigtime_t rtc_boot_time(void);
|
||||
// Returns the time at which the system was booted in microseconds since Jan 1, 1970.
|
||||
|
||||
void _user_set_real_time_clock(uint32 time);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
@ -77,6 +77,9 @@ status_t sys_start_watching(dev_t device, ino_t node, uint32 flags,
|
||||
status_t sys_stop_watching(dev_t device, ino_t node, uint32 flags,
|
||||
port_id port, uint32 token);
|
||||
|
||||
// time functions
|
||||
void _kern_set_real_time_clock(uint32 time);
|
||||
|
||||
// area functions
|
||||
area_id _kern_create_area(const char *name, void **address, uint32 addressSpec,
|
||||
size_t size, uint32 lock, uint32 protection);
|
||||
|
Loading…
Reference in New Issue
Block a user