Modernize time.h functions - Archive ouverte HAL Access content directly
Reports (Research Report) Year : 2019

Modernize time.h functions

(1)
1

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
Fichier principal
Vignette du fichier
n2417+appendix.pdf (475.76 Ko) Télécharger le fichier
Origin : Files produced by the author(s)

Dates and versions

hal-02311454 , version 1 (10-10-2019)

Identifiers

  • HAL Id : hal-02311454 , version 1

Cite

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

Share

Gmail Facebook Twitter LinkedIn More