sys_settimeofday  [kernel/time.c]


Sets time and timezone.

Arguments

eax 79
ebx Pointer to a properly initialized timeval structure (this parameter can be 0):
struc timeval
{
.tv_sec  rd 1 ; seconds
.tv_usec rd 1 ; microseconds
}
ecx Pointer to a properly initialized timezone structure (this parameter can be 0):
struc timezone
{
.tz_minuteswest rd 1
.tz_dsttime     rd 1
}

timezone members:

tz_minuteswest
Number of minutes west of UTC.
tz_dsttime
Contains a symbolic constant (values are given below) that indicates in which part of the year Daylight Saving Time is in force. (Note: its value is constant throughout the year: it does not indicate that DST is in force, it just selects an algorithm.) The daylight saving time algorithms defined are as follows :

DST_NONE    - not on dst
DST_USA     - USA style dst
DST_AUST    - Australian style dst
DST_WET     - Western European dst
DST_MET     - Middle European dst
DST_EET     - Eastern European dst
DST_CAN     - Canada
DST_GB      - Great Britain and Eire
DST_RUM     - Rumania
DST_TUR     - Turkey
DST_AUSTALT - Australian style with shift in 1986

Return values

If the system call succeeds the return value is 0.
If the system call fails the return value is one of the following errno values:

-EFAULT One of ecx or edx pointed outside the accessible address space.
-EINVAL Timezone (or something else) is invalid.
-EPERM The calling process has insufficient privilege to call sys_settimeofday (CAP_SYS_TIME capability is required).

Remarks

n/a

Compatibility

n/a