I know that the standard doesn't say anything about the signedness of uid_t or gid_t.
Inconsistency:
Page https://www.gnu.org/software/libc/manual/html_node/Reading-Persona.html says:
In the GNU C Library, this is an alias for unsigned int.
But man setreuid says:
Supplying a value of -1 for either the real or effective user ID forces the system to leave that ID unchanged.
Questions:
So, is
uid_tsigned or unsigned in the GNU Library?How can I supply
-1ifuid_tandgid_tare unsigned (-1will be converted to0xFFFFFFFF)?