Re: Question about the definition of _XOPEN_SOURCE

2021-01-03 Thread Joel Sherrill
The file says/features.h defines the defaults for RTEMS. Some methods are not visible at the default standard level because they are extensions maybe GNU or BSD specific. The defaults are modified by the selection of the programming language standard and the feature macros your program defines. I

Re: Question about the definition of _XOPEN_SOURCE

2021-01-03 Thread Sebastian Huber
On 03/01/2021 18:06, Heinz Junkes wrote: _XOPEN_SOURCE is not set anywhere in the RTEMS header files etc.. Yes, and this is how it should be. This define is supposed to be defined by your application if necessary: https://www.gnu.org/software/libc/manual/html_node/Feature-Test-Macros.html

Re: Question about the definition of _XOPEN_SOURCE

2021-01-03 Thread Heinz Junkes
Hi Sebastian, _XOPEN_SOURCE is not set anywhere in the RTEMS header files etc.. Heinz > On 3. Jan 2021, at 11:04, Sebastian Huber > wrote: > > Hello Heinz, > > On 01/01/2021 18:46, Heinz Junkes wrote: >> Please excuse me if this question has already been answered. But >> unfortunately I have

Re: Question about the definition of _XOPEN_SOURCE

2021-01-03 Thread Sebastian Huber
Hello Heinz, On 01/01/2021 18:46, Heinz Junkes wrote: Please excuse me if this question has already been answered. But unfortunately I have not been able to find a clear statement. Why is RTEMS _XOPEN_SOURCE not set with a value when building a BSP with --enable-posix? in the rtems-libbsd