[Bug libc/28730] Extend posix_spawnattr_* interface with more useful features

crrodriguez at opensuse dot org sourceware-bugzilla@sourceware.org
Sun Jan 9 14:07:56 GMT 2022


https://sourceware.org/bugzilla/show_bug.cgi?id=28730

--- Comment #5 from Cristian Rodríguez <crrodriguez at opensuse dot org> ---
(In reply to Adhemerval Zanella from comment #4)
> (In reply to Cristian Rodríguez from comment #3)
> > do you know by any chance why it was decided to make posix_spawnattr_t and
> > posix_spawn_file_actions_t transparent ? posix says otherwise..
> > 
> > "for extensibility and consistency with the newer POSIX interfaces, the
> > attributes interface has been changed to an opaque data type. This interface
> > now consists of the type posix_spawnattr_t.."  
> > 
> > MacOS and opebsd at least do it this way..
> 
> POSIX states posix_spawnattr_t and posix_spawn_file_actions_t must be actual
> types, it does not imposes any restriction to on how it is actually
> implemented. The example provided does use a struct with some internal
> fields [1].
> 


So the best way way would be to use the pad space to introduce a an internal
opaque struct  which we can modify or extend at will ? even with all
implementation-defined leisure we still shouldn't break the ABI..

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Glibc-bugs mailing list