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:
Axel Dörfler 2003-10-28 13:30:10 +00:00
parent 939f7fbaca
commit 9699c52992
3 changed files with 6 additions and 0 deletions

View File

@ -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);

View File

@ -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

View File

@ -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);