Data Structures | |
| struct | _AlpNotifyEventSystemChangeTime |
| struct | _AlpNotifyEventSystemChangeZone |
| #define | ALP_MAX_TIMEZONE_LEN 64 |
System time change notifications | |
| #define | ALP_NOTIFY_EVENT_SYSTEM_CHANGE "/alp/system/change/" |
| #define | ALP_NOTIFY_EVENT_SYSTEM_CHANGE_TIME "/alp/system/change/time" |
| #define | ALP_NOTIFY_EVENT_SYSTEM_CHANGE_ZONE "/alp/system/change/zone" |
| typedef _AlpNotifyEventSystemChangeTime | AlpNotifyEventSystemChangeTime |
| typedef _AlpNotifyEventSystemChangeZone | AlpNotifyEventSystemChangeZone |
System Time Error Codes | |
| #define | ALP_STATUS_SYSTEM_TIME_BAD_PARAM (ALP_CLASS_SYSTEM_TIME | 0x00010000) |
| Invalid parameter value. | |
| #define | ALP_STATUS_SYSTEM_TIME_NO_MEMORY (ALP_CLASS_SYSTEM_TIME | 0x00020000) |
| Memory allocation failed. | |
| #define | ALP_STATUS_SYSTEM_TIME_NO_PERM (ALP_CLASS_SYSTEM_TIME | 0x00040000) |
| Operation not allowed. | |
| #define | ALP_STATUS_SYSTEM_TIME_NO_SERVER (ALP_CLASS_SYSTEM_TIME | 0x00030000) |
| Unable to connect to daemon. | |
Time functions | |
| int | alp_sys_adjtime (const struct timeval *delta, struct timeval *old_delta) |
| Change system clock time with gradual adjustments. | |
| int | alp_sys_settimeofday (const struct timeval *tv, const struct timezone *tz) |
Set the system time given the number of seconds and microseconds since the Epoch.
| |
| int | alp_sys_stime (const time_t *when) |
| Set the system time given the number of seconds since the Epoch. | |
Timezone functions | |
| int | alp_sys_gettimezone (char *name, int len) |
| Get the default system timezone. | |
| int | alp_sys_settimezone (const char *zonename) |
| Set the default system timezone. | |
| int | alp_sys_settimezone_from_offset (int offset, const char *zone) |
| Set default system timezone from offset information. | |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Invalid parameter value.
|
|
|
Memory allocation failed.
|
|
|
Operation not allowed.
|
|
|
Unable to connect to daemon.
|
|
|
|
|
|
|
|
||||||||||||
|
Change system clock time with gradual adjustments.
|
|
||||||||||||
|
Get the default system timezone.
alp_sys_gettimezone() will return current default timezone in the array
|
|
||||||||||||
|
Set the system time given the number of seconds and microseconds since the Epoch.
Only processes that are allowed by the ALP Security Policy Framework may use this call. At completion of the time change, an ALP_NOTIFY_EVENT_SYSTEM_CHANGE_TIME notify will be broadcasted for any interested parties.
|
|
|
Set the default system timezone.
|
|
||||||||||||
|
Set default system timezone from offset information. alp_sys_settimezone_from_offset() takes an integer offset value which represent the number of quarter hours offset from UTC.
|
|
|
Set the system time given the number of seconds since the Epoch.
Set system time with the time pointed to by Only processes that are allowed by the ALP Security Policy Framework may use call. At completion of the time change, an ALP_NOTIFY_EVENT_SYSTEM_CHANGE_TIME notify will be broadcasted for any interested parties.
|
Copyright © 1999-2008 ACCESS CO., LTD. All rights reserved.