newlib/libc/include/sys/features.h: Update RTEMS section

Message ID 20251003214956.2996271-1-joel@rtems.org
State New
Headers
Series newlib/libc/include/sys/features.h: Update RTEMS section |

Commit Message

Joel Sherrill Oct. 3, 2025, 9:49 p.m. UTC
  The RTEMS section defined macros for features RTEMS does not have.
---
 newlib/libc/include/sys/features.h | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)
  

Comments

Joel Sherrill Oct. 13, 2025, 7:08 p.m. UTC | #1
This was posted Oct 3 and has no feedback. OK to commit?

Thanks.

--joel

On Fri, Oct 3, 2025 at 4:50 PM Joel Sherrill <joel@rtems.org> wrote:

> The RTEMS section defined macros for features RTEMS does not have.
> ---
>  newlib/libc/include/sys/features.h | 15 +++++++++------
>  1 file changed, 9 insertions(+), 6 deletions(-)
>
> diff --git a/newlib/libc/include/sys/features.h
> b/newlib/libc/include/sys/features.h
> index 325acdf5f..2a5da45ab 100644
> --- a/newlib/libc/include/sys/features.h
> +++ b/newlib/libc/include/sys/features.h
> @@ -366,18 +366,21 @@ extern "C" {
>  #  define __SSP_FORTIFY_LEVEL 0
>  #endif
>
> -/* RTEMS adheres to POSIX -- 1003.1b with some features from annexes.  */
> +/*
> + * RTEMS adheres to POSIX -- 1003.1b with some features from annexes.
> + * Unsupported features are commented out.
> + */
>
>  #ifdef __rtems__
> -#define _POSIX_JOB_CONTROL             1
> -#define _POSIX_SAVED_IDS               1
> +/* #define _POSIX_JOB_CONTROL          1 */
> +/* #define _POSIX_SAVED_IDS            1 */
>  #define _POSIX_VERSION                 199309L
>  #define _POSIX_ASYNCHRONOUS_IO         1
>  #define _POSIX_FSYNC                   1
>  #define _POSIX_MAPPED_FILES            1
> -#define _POSIX_MEMLOCK                 1
> -#define _POSIX_MEMLOCK_RANGE           1
> -#define _POSIX_MEMORY_PROTECTION       1
> +/* #define _POSIX_MEMLOCK                      1 */
> +/* #define _POSIX_MEMLOCK_RANGE                1 */
> +/* #define _POSIX_MEMORY_PROTECTION    1 */
>  #define _POSIX_MESSAGE_PASSING         1
>  #define _POSIX_MONOTONIC_CLOCK         200112L
>  #define _POSIX_CLOCK_SELECTION         200112L
> --
> 2.47.3
>
>
  
Joel Sherrill Oct. 28, 2025, 3:32 p.m. UTC | #2
This was posted on Oct 3 and there has been no feedback. OK to commit?

Also https://sourceware.org/pipermail/newlib/2025/022120.html is v3 of a
patch to setjmp.h. v3 was also posted on 3 Oct.

I hope everyone is doing well. This delay is not usual for newlib.

Thanks.

--joel

On Mon, Oct 13, 2025 at 2:08 PM Joel Sherrill <joel@rtems.org> wrote:

> This was posted Oct 3 and has no feedback. OK to commit?
>
> Thanks.
>
> --joel
>
> On Fri, Oct 3, 2025 at 4:50 PM Joel Sherrill <joel@rtems.org> wrote:
>
>> The RTEMS section defined macros for features RTEMS does not have.
>> ---
>>  newlib/libc/include/sys/features.h | 15 +++++++++------
>>  1 file changed, 9 insertions(+), 6 deletions(-)
>>
>> diff --git a/newlib/libc/include/sys/features.h
>> b/newlib/libc/include/sys/features.h
>> index 325acdf5f..2a5da45ab 100644
>> --- a/newlib/libc/include/sys/features.h
>> +++ b/newlib/libc/include/sys/features.h
>> @@ -366,18 +366,21 @@ extern "C" {
>>  #  define __SSP_FORTIFY_LEVEL 0
>>  #endif
>>
>> -/* RTEMS adheres to POSIX -- 1003.1b with some features from annexes.  */
>> +/*
>> + * RTEMS adheres to POSIX -- 1003.1b with some features from annexes.
>> + * Unsupported features are commented out.
>> + */
>>
>>  #ifdef __rtems__
>> -#define _POSIX_JOB_CONTROL             1
>> -#define _POSIX_SAVED_IDS               1
>> +/* #define _POSIX_JOB_CONTROL          1 */
>> +/* #define _POSIX_SAVED_IDS            1 */
>>  #define _POSIX_VERSION                 199309L
>>  #define _POSIX_ASYNCHRONOUS_IO         1
>>  #define _POSIX_FSYNC                   1
>>  #define _POSIX_MAPPED_FILES            1
>> -#define _POSIX_MEMLOCK                 1
>> -#define _POSIX_MEMLOCK_RANGE           1
>> -#define _POSIX_MEMORY_PROTECTION       1
>> +/* #define _POSIX_MEMLOCK                      1 */
>> +/* #define _POSIX_MEMLOCK_RANGE                1 */
>> +/* #define _POSIX_MEMORY_PROTECTION    1 */
>>  #define _POSIX_MESSAGE_PASSING         1
>>  #define _POSIX_MONOTONIC_CLOCK         200112L
>>  #define _POSIX_CLOCK_SELECTION         200112L
>> --
>> 2.47.3
>>
>>
  
Jeff Johnston Oct. 28, 2025, 3:48 p.m. UTC | #3
Please go ahead Joel.  Sorry for the delays.  The V3 patch had so many
comments before I was waiting for
a response that it was ok, but then forgot about it.  Corinna is on PTO.

Regards,

-- Jeff J.

On Tue, Oct 28, 2025 at 11:36 AM Joel Sherrill <joel@rtems.org> wrote:

> This was posted on Oct 3 and there has been no feedback. OK to commit?
>
> Also https://sourceware.org/pipermail/newlib/2025/022120.html is v3 of a
> patch to setjmp.h. v3 was also posted on 3 Oct.
>
> I hope everyone is doing well. This delay is not usual for newlib.
>
> Thanks.
>
> --joel
>
> On Mon, Oct 13, 2025 at 2:08 PM Joel Sherrill <joel@rtems.org> wrote:
>
>> This was posted Oct 3 and has no feedback. OK to commit?
>>
>> Thanks.
>>
>> --joel
>>
>> On Fri, Oct 3, 2025 at 4:50 PM Joel Sherrill <joel@rtems.org> wrote:
>>
>>> The RTEMS section defined macros for features RTEMS does not have.
>>> ---
>>>  newlib/libc/include/sys/features.h | 15 +++++++++------
>>>  1 file changed, 9 insertions(+), 6 deletions(-)
>>>
>>> diff --git a/newlib/libc/include/sys/features.h
>>> b/newlib/libc/include/sys/features.h
>>> index 325acdf5f..2a5da45ab 100644
>>> --- a/newlib/libc/include/sys/features.h
>>> +++ b/newlib/libc/include/sys/features.h
>>> @@ -366,18 +366,21 @@ extern "C" {
>>>  #  define __SSP_FORTIFY_LEVEL 0
>>>  #endif
>>>
>>> -/* RTEMS adheres to POSIX -- 1003.1b with some features from annexes.
>>> */
>>> +/*
>>> + * RTEMS adheres to POSIX -- 1003.1b with some features from annexes.
>>> + * Unsupported features are commented out.
>>> + */
>>>
>>>  #ifdef __rtems__
>>> -#define _POSIX_JOB_CONTROL             1
>>> -#define _POSIX_SAVED_IDS               1
>>> +/* #define _POSIX_JOB_CONTROL          1 */
>>> +/* #define _POSIX_SAVED_IDS            1 */
>>>  #define _POSIX_VERSION                 199309L
>>>  #define _POSIX_ASYNCHRONOUS_IO         1
>>>  #define _POSIX_FSYNC                   1
>>>  #define _POSIX_MAPPED_FILES            1
>>> -#define _POSIX_MEMLOCK                 1
>>> -#define _POSIX_MEMLOCK_RANGE           1
>>> -#define _POSIX_MEMORY_PROTECTION       1
>>> +/* #define _POSIX_MEMLOCK                      1 */
>>> +/* #define _POSIX_MEMLOCK_RANGE                1 */
>>> +/* #define _POSIX_MEMORY_PROTECTION    1 */
>>>  #define _POSIX_MESSAGE_PASSING         1
>>>  #define _POSIX_MONOTONIC_CLOCK         200112L
>>>  #define _POSIX_CLOCK_SELECTION         200112L
>>> --
>>> 2.47.3
>>>
>>>
  

Patch

diff --git a/newlib/libc/include/sys/features.h b/newlib/libc/include/sys/features.h
index 325acdf5f..2a5da45ab 100644
--- a/newlib/libc/include/sys/features.h
+++ b/newlib/libc/include/sys/features.h
@@ -366,18 +366,21 @@  extern "C" {
 #  define __SSP_FORTIFY_LEVEL 0
 #endif
 
-/* RTEMS adheres to POSIX -- 1003.1b with some features from annexes.  */
+/*
+ * RTEMS adheres to POSIX -- 1003.1b with some features from annexes.
+ * Unsupported features are commented out.
+ */
 
 #ifdef __rtems__
-#define _POSIX_JOB_CONTROL		1
-#define _POSIX_SAVED_IDS		1
+/* #define _POSIX_JOB_CONTROL		1 */
+/* #define _POSIX_SAVED_IDS		1 */
 #define _POSIX_VERSION			199309L
 #define _POSIX_ASYNCHRONOUS_IO		1
 #define _POSIX_FSYNC			1
 #define _POSIX_MAPPED_FILES		1
-#define _POSIX_MEMLOCK			1
-#define _POSIX_MEMLOCK_RANGE		1
-#define _POSIX_MEMORY_PROTECTION	1
+/* #define _POSIX_MEMLOCK			1 */
+/* #define _POSIX_MEMLOCK_RANGE		1 */
+/* #define _POSIX_MEMORY_PROTECTION	1 */
 #define _POSIX_MESSAGE_PASSING		1
 #define _POSIX_MONOTONIC_CLOCK		200112L
 #define _POSIX_CLOCK_SELECTION		200112L