Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ stime(2) — AIX PS/2 1.2.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

time



STIME(2,L)                  AIX Technical Reference                  STIME(2,L)



-------------------------------------------------------------------------------
stime



PURPOSE

Sets the time.

SYNTAX

int stime (tp)
time_t *tp;

DESCRIPTION

The stime system call sets the system's time and date.  The tp parameter points
to the time as measured in seconds from 00:00:00 GMT January 1, 1970.

RETURN VALUE

Upon successful completion, a value of 0 is returned.  If the stime system call
fails, a value of -1 is returned and errno is set to indicate the error.

ERROR CONDITIONS

The stime system call fails if the following is true:

EFAULT  Invalid pointer to tp.

EPERM   The effective user ID of the calling process is not superuser.

RELATED INFORMATION

In this book:  "time."




















Processed November 7, 1990        STIME(2,L)                                  1



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026