added timezone_offset and dst_observed fields to real_time_data
added prototypes for set_tzspecs, used for setting these fields git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10132 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -17,7 +17,10 @@ status_t rtc_init(kernel_args *args);
|
|||||||
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.
|
||||||
|
|
||||||
|
status_t set_tzspecs(int32 timezone_offset, bool dst_observed);
|
||||||
|
|
||||||
status_t _user_set_real_time_clock(uint32 time);
|
status_t _user_set_real_time_clock(uint32 time);
|
||||||
|
status_t _user_set_tzspecs(int32 timezone_offset, bool dst_observed);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,6 +15,8 @@
|
|||||||
struct real_time_data {
|
struct real_time_data {
|
||||||
uint64 boot_time;
|
uint64 boot_time;
|
||||||
uint32 system_time_conversion_factor;
|
uint32 system_time_conversion_factor;
|
||||||
|
bigtime_t timezone_offset;
|
||||||
|
bool dst_observed;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* _KERNEL_REAL_TIME_DATA_H */
|
#endif /* _KERNEL_REAL_TIME_DATA_H */
|
||||||
|
|||||||
@@ -184,6 +184,7 @@ extern status_t _kern_stop_watching(dev_t device, ino_t node, uint32 flags,
|
|||||||
|
|
||||||
// time functions
|
// time functions
|
||||||
extern status_t _kern_set_real_time_clock(uint32 time);
|
extern status_t _kern_set_real_time_clock(uint32 time);
|
||||||
|
extern status_t _kern_set_tzspecs(int32 timezone_offset, bool dst_observed);
|
||||||
|
|
||||||
// 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,
|
||||||
|
|||||||
Reference in New Issue
Block a user