sys_stime  [kernel/time.c]


Sets system's time.

Arguments

eax 25
ebx A pointer to a properly initialized timespec structure. Time is measured in seconds starting from 00:00:00 GMT January 1, 1970.

struc timespec
{
.tv_sec  rd 1 ; seconds
.tv_nsec rd 1 ; nanoseconds
}

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 Error in getting information from user space.
-EPERM The calling process has insufficient privilege (the CAP_SYS_TIME privilege is required).

Remarks

n/a

Compatibility

n/a