Modernize time.h functions - Inria - Institut national de recherche en sciences et technologies du numérique Accéder directement au contenu
Rapport (Rapport De Recherche) Année : 2019

Modernize time.h functions

Résumé

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
Origine : Fichiers produits par l'(les) auteur(s)

Dates et versions

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

Identifiants

  • HAL Id : hal-02311454 , version 1

Citer

Jens Gustedt. Modernize time.h functions. [Research Report] N2417, ISO JCT1/SC22/WG14. 2019. ⟨hal-02311454⟩
51 Consultations
125 Téléchargements

Partager

Gmail Facebook X LinkedIn More