Branch
Hash :
074fcd0a
Author :
Date :
2024-12-27T23:41:36
Rename module sys_time to sys_time-h. * modules/sys_time-h: Renamed from modules/sys_time. * modules/sys_time-h-tests: Renamed from modules/sys_time-tests. * modules/sys_time-h-c++-tests: Renamed from modules/sys_time-c++-tests. * tests/test-sys_time-h.c: Renamed from tests/test-sys_time.c. * tests/test-sys_time-h-c++.cc: Renamed from tests/test-sys_time-c++.cc. * doc/posix-headers/sys_time.texi: Update. * modules/* (Depends-on): Update. * modules/sys_time: New file.
@node sys/time.h
@section @file{sys/time.h}
POSIX specification:@* @url{https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/sys_time.h.html}
Gnulib module: sys_time-h
@mindex sys_time-h
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