COHERENT manpages

This page displays the COHERENT manpage for stime() [Set the time].

List of available manpages
Index


stime() -- System Call (libc)

Set the time
#include
int stime(timep)
time_t *timep;

stime() sets the  system time.  timep points to a  variable of type time_t,
which contains the number of seconds since midnight GMT of January 1, 1970.

If all goes well, stime() zero.  If a problem occurs, it returns -1.

stime() is restricted to the superuser.

Files

<sys/types.h>

See Also

ctime(),
date,
ftime(),
libc,
stat(),
utime()