Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ sys_time(5) — Reliant UNIX 5.44c4

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

time(1)

utimes(3)

getitimer(3C)

gettimeofday(3C)

select(3C)

setitimer(3C)

settimeofday(3C)

sys_time(5)                                                     sys_time(5)

NAME
     systime - time types

SYNOPSIS
     #include <sys/time.h>

DESCRIPTION
     The <sys/time.h> header defines the timeval structure that includes at
     least the following members:

     timet  tvsec      Seconds since Jan. 1, 1970

     long    tvusec     Microseconds

     The <sys/time.h> header defines the itimerval structure that includes
     at least the following members:

     struct timeval itinterval    Timer interval

     struct timeval itvalue       Current value

     The timet type is defined as described in <sys/types.h>.

     The <sys/time.h> header defines the fdset type as a structure that
     includes at least the following member:

     long fdsbits[]     Bit mask for open file descriptions

     The <sys/time.h> header defines the following values for the which
     argument of getitimer() and setitimer():

     ITIMERREAL         Decrements in real time.

     ITIMERVIRTUAL      Decrements in process virtual time (user mode).

     ITIMERPROF         Decrements both in process virtual time and when
                         the system is running on behalf of the process
                         (user and system mode).

     The following macros are defined:

     void FDCLR(int fd, fdset *fdset)
          Clears the bit for the file descriptor fd in the file descriptor
          set fdset.

     int  FDISSET(int fd, fdset *fdset)
          Returns a non-zero value if the bit for the file descriptor fd is
          set in the file descriptor set by fdset, and 0 otherwise.

     void FDSET(int fd, fdset *fdset)
          Sets the bit for the file descriptor fd in the file descriptor
          set fdset.



Page 1                       Reliant UNIX 5.44                Printed 11/98

sys_time(5)                                                     sys_time(5)

     void FDZERO(fdset *fdset)
          Initializes the file descriptor set fdset to have zero bits for
          all file descriptors.

     FDSETSIZE
          Maximum number of file descriptors in an fdset structure.

     The following are declared as functions and may also be defined as
     macros:

     int   getitimer(int which, struct itimerval *value);
     int   setitimer(int which, const struct itimerval *value,
             struct itimerval *ovalue);
     int   gettimeofday(struct timeval *tp, void * tzp);
     int   select(int nfds, fdset *readfds, fdset *writefds,
             fdset *errorfds, struct timeval *timeout);
     int   utimes(const char *path, const struct timeval times[2]);

SEE ALSO
     time(1), utimes(3), getitimer(3C), gettimeofday(3C), select(3C),
     setitimer(3C), settimeofday(3C).

































Page 2                       Reliant UNIX 5.44                Printed 11/98

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