Moving C11 Functions from winsup to newlib

Joel Sherrill <[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <CAF9ehCV0u28dzSZocDOm5tqNsh4vfJLB0JCzsU9Jo159o7AKow@mail.gmail.com>
Hi

In looking at what's missing from RTEMS for C11, I noticed that these from
uchar.h are in winsup (as .cc) but not in newlib.

size_t c16rtomb(char *restrict, char16_t, mbstate_t *restrict);
size_t c32rtomb(char *restrict, char32_t, mbstate_t *restrict);
size_t mbrtoc16(char16_t *restrict, const char *restrict, size_t, mbstate_t
*restrict);
size_t mbrtoc32(char32_t *restrict, const char *restrict, size_t, mbstate_t
*restrict);

Would it be ok to move them to the newlib side? Add a uchar directory? Or
where?

What about converting the implementation to C? Is that needed?

Thanks.

--joel
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.