On Wed, 19 Nov 2025, Rainer Orth wrote: > This patch fixes this by providing a Solaris definition instead. At the > same time, it introduces __PID_TYPE__ etc. macros matching e.g. wint_t > as well as two testcases.
The point of those macros is for use in the implementation of <stdint.h> (because that's a header in the C standard that doesn't involve any library functions and so is provided by GCC). Since pid_t isn't part of ISO C, I don't think there's a good basis for adding such macros for pid_t to GCC. (Tests can use __typeof (__builtin_fork ()) or similar so __PID_TYPE__ shouldn't even be needed there.) -- Joseph S. Myers [email protected]
