DOC HOME
SITE MAP
MAN PAGES
GNU INFO
SEARCH
PRINT BOOK
stime(2)
stime -- set time
Synopsis
#include <unistd.h>
int stime(const time_t
tp
);
Description
stime
sets the system's idea of the time and date.
tp
points to the value of time as measured in seconds from 00:00:00 UTC January 1, 1970.
Return values
On success,
stime
returns 0. On failure,
stime
returns -1 and sets
errno
to identify the error.
Errors
In the following conditions,
stime
fails and sets
errno
to:
EPERM
The calling process does not have the appropriate privilege (
P_SYSOPS
).
References
adjtime
(2)
,
gettimeofday
(2)
,
time
(2)
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004