timegm() and other time related functions

Sebastian Huber sebastian.huber@embedded-brains.de
Wed Jan 25 13:57:47 GMT 2023


Hello,

while porting nats.c to RTEMS I noticed that Newlib doesn't provide a 
timegm() function. There a couple of related patches and discussions on 
the Newlib mailing list in the last years.

In order to add support for timegm() I would replace the Newlib time 
function implementation with the version of a more actively maintained 
platform, for example OpenBSD, FreeBSD or bionic. It seems that the 
upstream for the bionic code is OpenBSD. The OpenBSD and FreeBSD code 
diverged a bit, however, FreeBSD seems to integrate changes from OpenBSD 
occasionally. The FreeBSD looks to be closer to the original tzcode and 
uses the pthread API. I tend to use the FreeBSD code. Would that be 
acceptable?

Kind regards,
	Sebastian

-- 
embedded brains GmbH
Herr Sebastian HUBER
Dornierstr. 4
82178 Puchheim
Germany
email: sebastian.huber@embedded-brains.de
phone: +49-89-18 94 741 - 16
fax:   +49-89-18 94 741 - 08

Registergericht: Amtsgericht München
Registernummer: HRB 157899
Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
Unsere Datenschutzerklärung finden Sie hier:
https://embedded-brains.de/datenschutzerklaerung/


More information about the Newlib mailing list