include/hiker/systime.h File Reference

#include <sys/types.h>
#include <sys/time.h>
#include <hiker/sysclass.h>
#include <hiker/types.h>

Go to the source code of this file.

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.
See also:
settime.

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.


Generated on Wed Jul 30 07:06:40 2008 by Doxygen 1.4.6 for ALP SDK + Hiker Documentation

Copyright © 1999-2008 ACCESS CO., LTD. All rights reserved.