#include <stdio.h>
#include <sys/types.h>
int main()
{
printf("pid_t: %zu\n", sizeof(pid_t));
printf("uid_t: %zu\n", sizeof(uid_t));
printf("gid_t: %zu\n", sizeof(gid_t));
}
每个受欢迎的请求EDIT:个(因为,实际上,99%的回答这个问题的人将运行x86或x86_64)...
On an i686 and x86_64 (so, 32-bit and 64-bit) processor running Linux >= 3.0.0, the answer is:
pid_t: 4
uid_t: 4
gid_t: 4