summaryrefslogtreecommitdiff
path: root/doc/posix-headers/sys_time.texi
blob: 01283ca66059399533f5bcf40454aae240e62e59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
@node sys/time.h
@section @file{sys/time.h}

POSIX specification:@* @url{https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_time.h.html}

Gnulib module: sys_time

Portability problems fixed by Gnulib:
@itemize
@item
This header file is missing on some platforms:
MSVC 14.
@item
@samp{struct timeval} is not defined on some platforms.
@item
@samp{struct timeval} is defined with a @code{tv_sec} type that is
narrower than @code{time_t}
on some native Windows platforms:
mingw64 in 64-bit mode,
mingw64 in 32-bit mode when @code{__MINGW_USE_VC2005_COMPAT} is defined,
MSVC 14 in 64-bit mode,
MSVC 14 in 32-bit mode when @code{_USE_32BIT_TIME_T} is not defined.
@end itemize

@xref{Avoiding the year 2038 problem}, for portability issues with
@code{time_t} and the @code{time_t} component of @code{struct timeval}.

Portability problems not fixed by Gnulib:
@itemize
@item
@samp{struct timeval} is defined with a @code{tv_sec} type that is
wider than @code{time_t}:
OpenBSD 5.1 in 64-bit mode.
@end itemize