From: Sebastian Huber <sebastian.huber@embedded-brains.de>
To: newlib <newlib@sourceware.org>
Subject: timegm() and other time related functions
Date: Wed, 25 Jan 2023 14:57:47 +0100 [thread overview]
Message-ID: <998a95d4-98c6-f434-f34d-f53ea2bea6d9@embedded-brains.de> (raw)
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/
next reply other threads:[~2023-01-25 13:57 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-25 13:57 Sebastian Huber [this message]
2023-01-25 14:23 ` R. Diez
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=998a95d4-98c6-f434-f34d-f53ea2bea6d9@embedded-brains.de \
--to=sebastian.huber@embedded-brains.de \
--cc=newlib@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).