1sys_time.h(0P)             POSIX Programmer's Manual            sys_time.h(0P)
2
3
4

PROLOG

6       This  manual  page is part of the POSIX Programmer's Manual.  The Linux
7       implementation of this interface may differ (consult the  corresponding
8       Linux  manual page for details of Linux behavior), or the interface may
9       not be implemented on Linux.
10

NAME

12       sys/time.h — time types
13

SYNOPSIS

15       #include <sys/time.h>
16

DESCRIPTION

18       The <sys/time.h> header shall define the timeval structure, which shall
19       include at least the following members:
20
21
22           time_t         tv_sec      Seconds.
23           suseconds_t    tv_usec     Microseconds.
24
25       The  <sys/time.h>  header  shall  define the itimerval structure, which
26       shall include at least the following members:
27
28
29           struct timeval it_interval Timer interval.
30           struct timeval it_value    Current value.
31
32       The <sys/time.h> header shall define the time_t and  suseconds_t  types
33       as described in <sys/types.h>.
34
35       The  <sys/time.h>  header  shall define the fd_set type as described in
36       <sys/select.h>.
37
38       The <sys/time.h> header shall define the following  symbolic  constants
39       for the which argument of getitimer() and setitimer():
40
41       ITIMER_REAL   Decrements in real time.
42
43       ITIMER_VIRTUAL
44                     Decrements in process virtual time.
45
46       ITIMER_PROF   Decrements both in process virtual time and when the sys‐
47                     tem is running on behalf of the process.
48
49       The <sys/time.h> header shall define  the  following  as  described  in
50       <sys/select.h>: FD_CLR() FD_ISSET() FD_SET() FD_ZERO() FD_SETSIZE
51
52       The following shall be declared as functions and may also be defined as
53       macros. Function prototypes shall be provided.
54
55
56           int   getitimer(int, struct itimerval *);
57           int   gettimeofday(struct timeval *restrict, void *restrict);
58           int   setitimer(int, const struct itimerval *restrict,
59                     struct itimerval *restrict);
60           int   select(int, fd_set *restrict, fd_set *restrict, fd_set *restrict,
61                     struct timeval *restrict);
62           int   utimes(const char *, const struct timeval [2]);
63
64       Inclusion of the <sys/time.h> header may make visible all symbols  from
65       the <sys/select.h> header.
66
67       The following sections are informative.
68

APPLICATION USAGE

70       None.
71

RATIONALE

73       None.
74

FUTURE DIRECTIONS

76       None.
77

SEE ALSO

79       <sys_select.h>, <sys_types.h>
80
81       The  System Interfaces volume of POSIX.1‐2017, futimens(), getitimer(),
82       gettimeofday(), pselect()
83
85       Portions of this text are reprinted and reproduced in  electronic  form
86       from  IEEE Std 1003.1-2017, Standard for Information Technology -- Por‐
87       table Operating System Interface (POSIX), The Open Group Base  Specifi‐
88       cations  Issue  7, 2018 Edition, Copyright (C) 2018 by the Institute of
89       Electrical and Electronics Engineers, Inc and The Open Group.   In  the
90       event of any discrepancy between this version and the original IEEE and
91       The Open Group Standard, the original IEEE and The Open Group  Standard
92       is  the  referee document. The original Standard can be obtained online
93       at http://www.opengroup.org/unix/online.html .
94
95       Any typographical or formatting errors that appear  in  this  page  are
96       most likely to have been introduced during the conversion of the source
97       files to man page format. To report such errors,  see  https://www.ker
98       nel.org/doc/man-pages/reporting_bugs.html .
99
100
101
102IEEE/The Open Group                  2017                       sys_time.h(0P)
Impressum