libc icon indicating copy to clipboard operation
libc copied to clipboard

POSIX_SPAWN_SETPGROUP et al should be of type `c_short`

Open godmar opened this issue 4 years ago • 1 comments

The constants POSIX_SPAWN_* are for the __flags field in posix_spawnattr_t and are set via posix_spawnattr_setflags, both of which use c_short.

Should they be of type c_short as well?

godmar avatar Jul 03 '21 02:07 godmar

I was thinking this was a case like https://github.com/rust-lang/libc/issues/1619, where the struct takes a short but the signature takes an int. However, this seems to be a case where the function and the struct are both short - are there any counterexamples?

If not, we can do this for 1.0.

tgross35 avatar Aug 29 '24 05:08 tgross35