DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

stime(S-osr5)


stime -- set time

Syntax

cc . . . -lc

int stime (tp)
long *tp;

Description

The stime system call sets the system's idea of the time and date. tp points to the value of time as measured in seconds from 1970-01-01 00:00 UTC.


[EPERM]
stime fails if the effective user ID of the calling process is not super-user.

Diagnostics

Upon successful completion, a value of 0 is returned. Otherwise, a value of -1 is returned, and errno is set to indicate the error.

See also

ctime(S-osr5), difftime(S-osr5), mktime(S-osr5), nl_cxtime(S-osr5), time(S-osr5)

Standards conformance

stime is not part of any currently supported standard; it was developed by UNIX System Laboratories, Inc. and is maintained by The SCO Group.
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 -- 02 June 2005