Re: C11 conformance: <uchar.h>, TIME_UTC, timespec_get

Brian Inglis <[email protected]>
Newsgroups gmane.comp.lib.newlib
Organization Systematic Software
Message-ID <[email protected]>
On 2022-05-10 09:35, Pavel M wrote:
> Hi all,
> Any updates?

Nobody else has noticed or mentioned those in the last decade, so there 
may not be, as volunteers have limited time and their own interests and 
priorities.

Given that newlib is a freestanding implementation, and gcc does not 
provide that header, those definitions or declarations, these are 
considered platform implementation issues, which someone supporting that 
platform has to decide if they will provide and support.

ICU provides uchar.h which Cygwin libicu-devel maintainer installs under 
/usr/include/unicode/ with Unicode licence under 
/usr/share/icu/<VERSION>/LICENSE.
You could pull those two files from the ICU distro for use in your work.

It also is/will be available on glibc platforms which support it.
Remember that GNU products are GPL licensed with possibly undesirable 
requirements for most commercial products.

Similarly, TIME_UTC may not be available on some newlib 
platforms/targets, so it will be up to platform and/or target 
maintainers to decide if they can support it, and provide implementations.

I don't know what your host platform is, your newlib target, or what 
POSIX time.h CLOCK_/clock_... support is available, but you may wish to 
use that instead, until someone can provide the ISO C equivalent in 
newlib under a BSD licence.

You may also wish to look at what is available in *BSD sources.

-- 
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.
[Data in binary units and prefixes, physical quantities in SI.]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.