Skip to Main content Skip to Navigation
Reports

Modernize time.h functions

Jens Gustedt 1
1 CAMUS - Compilation pour les Architectures MUlti-coeurS
Inria Nancy - Grand Est, ICube - Laboratoire des sciences de l'ingénieur, de l'informatique et de l'imagerie
Abstract : The interfaces in time.h are inconsistent, partially underspecified, subject to undetectable overflow, not thread-safe and present security issues. Along the lines of ISO 9945 (POSIX), we propose to modernize the interfaces to avoid these problems. Changes in v2-properly distinguish calendar time and elapsed time-the _r functions are not reentrant and may have races if the time environment is changed-avoid to use the tm buffer where it is not allowed-define offset macros for the tm structure-relate the monotonic clock to system suspension-change from pointer to array notation-better explanation why overflow of clock values is a user space problem
Complete list of metadatas

https://hal.inria.fr/hal-02311454
Contributor : Jens Gustedt <>
Submitted on : Thursday, October 10, 2019 - 10:09:44 PM
Last modification on : Thursday, December 19, 2019 - 3:58:53 PM

File

n2417+appendix.pdf
Files produced by the author(s)

Identifiers

  • HAL Id : hal-02311454, version 1

Citation

Jens Gustedt. Modernize time.h functions. [Research Report] N2417, ISO JCT1/SC22/WG14. 2019. ⟨hal-02311454⟩

Share

Metrics

Record views

60

Files downloads

217