Proper RTEMS value for _POSIX_VERSION and _POSIX2_VERSION
Tue Jun 1 19:35:43 GMT 2021
The RTEMS _POSIX_VERSION define is hard-coded to 199309L which reflects the
POSIX version the initial RTEMS support was implemented to. Since then,
RTEMS has picked up features from newer versions.
RTEMS has never and is not fully conforming to the POSIX standard. Being a
single process, there will always be capabilities missing. I don't think
Cygwin is fully conforming either but has a series of conditional logic to
set _POSIX_VERSION based on the value of __POSIX_VISIBLE
I am thinking RTEMS should use similar logic. Question: Does that sound
more correct than the current hard-coded value?
And since we don't have a POSIX shell, we still should not set
Thanks for the advice..
More information about the Newlib