[fpc-devel] Linux gid_t uid_t

Marco van de Voort marcov at stack.nl
Sat Feb 2 17:15:12 CET 2008


I noticed that somewhere since baseunix times Linux/glibc updated all basic
types that were still 16-bit to 32-bit. FPC didn't notice it, since the x86
stat record is a typeless hack. However for e.g. the password functions this
needs to be corrected.

Does sb know when this conversion happened ? *or* if you have a fairly old  or 32-bit non
x86 linux distro, try compiling + running the following program:


#include <sys/types.h>

int main()
{
  printf("%d %d %d",sizeof(uid_t),sizeof(gid_t),sizeof(mode_t));
}


It should print
4 4 4 





More information about the fpc-devel mailing list