[PATCH 2/2] posix: Add POSIX posix_spawn_file_actions_add{,f}chdir

Adhemerval Zanella Netto adhemerval.zanella@linaro.org
Mon Sep 28 13:35:21 GMT 2026



On 19/09/26 16:31, Andreas K. Huettel wrote:
> Am Montag, 31. August 2026, 18:09:37 Mitteleuropäische Sommerzeit schrieb Adhemerval Zanella:
>> Use proper symbols instead of alias to the *_np counterpart.
>>
>> Checked on x86_64-linux-gnu.
> 
> 
> One more minor nitpick about XSI (but that was in there before), see below.
> Otherwise fine.

> 
>> diff --git a/posix/spawn.h b/posix/spawn.h
>> index 5e68752a66..da0cabbf42 100644
>> --- a/posix/spawn.h
>> +++ b/posix/spawn.h
>> @@ -200,17 +200,31 @@ extern int posix_spawn_file_actions_adddup2 (posix_spawn_file_actions_t *
>>  					     int __fd, int __newfd)
>>       __THROW __nonnull ((1));
>>  
>> -#ifdef __USE_MISC
>> +#ifdef __USE_XOPEN2K24XSI
> 
> Are you sure this is actually an XSI extension? I think it's in the base standard.
> (this was also in there before?)

You are correct, the POSIX.1-2024 page for posix_spawn_file_actions_addchdir
marks both functions with only the [SPN] (Spawn) option. these should be
__USE_XOPEN2K24, I will fix them.


More information about the Libc-alpha mailing list