tcl-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason Brazile <ja...@netcetera.ch>
Subject Re: insidious stat vs stat64 bug on Linux
Date Sun, 06 Jan 2002 14:46:22 GMT
Hi David,

> Observe:
> 
> #include "httpd.h"
> #include <tcl.h>
>
> [...]
> 
> #include <tcl.h>
> #include "httpd.h"
> 
> int main() {
>     struct stat foo;
>     printf("size of stat __pad1 is %d\n", sizeof(foo.__pad1));
> }

That is pretty awful. I would have thought that POSIX would have
defined exactly what a "struct stat" is.

If in doubt, I wouldn't trust Tcl on 64 bit issues. From recent
newsgroup postings, it seems there are still known problems.

Jason

------------------------------------------------------------------------
Jason Brazile                                 jason.brazile@netcetera.ch
Netcetera AG, 8040 Zuerich    phone +41 1 247 70 70  fax +41 1 247 70 75


Mime
View raw message