What\'s the logic behind calls like getpid() returning a value of type pid_t instead of an unsigned int? Or int? How does
getpid()
pid_t
unsigned int
int
I think it's the opposite: making the program portable across platforms, regardless of whether, e.g., a PID is 16 or 32 bits (or even longer).