[fpc-devel] Linux gid_t uid_t

ik idokan at gmail.com
Sat Feb 2 17:20:14 CET 2008


It does on my buntu amd64.

Ido

On Feb 2, 2008 6:15 PM, Marco van de Voort <marcov at stack.nl> wrote:
>
> 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
>
>
> _______________________________________________
> fpc-devel maillist  -  fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-devel
>



-- 
http://ik.homelinux.org/



More information about the fpc-devel mailing list