Thread (2 messages) flat view 2 messages, 2 authors, 2005-09-14

RE: How to support LFS on ppc

From: Fillod Stephane <hidden>
Date: 2005-09-14 10:20:03

I have a problem about Large File System on ppc. The following is my =
example code:

Actually not problem with LFS, but with int types.
#define _FILE_OFFSET_BITS 64
#include <sys/stat.h>
#include <unistd.h>
Int main()
{
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 struct stat buf;
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 stat64("/3G",&buf);
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 printf("size of test =3D %ld =
\n",buf.st_size);
                                   ^^^
Try %lld instead. Or to be portable, #include <inttypes.h>
and printf("size of test =3D %" PRId64 "\n", buf.st_size);

--=20
Stephane
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help