[Date Prev][Date Next] [Chronological] [Thread] [Top]

(ITS#6262) Wrap gmtime(3) for re-entrancy

Full_Name: Pierangelo Masarati
Version: HEAD
OS: irrelevant
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (
Submitted by: ando

gmtime(3)/gmtime_r(3), localtime(3)/localtime_r(3) can be wrapped in a single
place, getting rid of lots of #defines and so.

A patch is ready that either provides a re-entrant wrapper or defines the
re-entrant functions as macros.

Open issues:

- check for re-entrancy of the WIN32 version of lutil_gettime()

- allow apps to use gmtime(3)/localtime(3) in re-entrant manner when the _r
replacements are not available (the mutex is no longer exposed)