[PD] Large File Support on Linux

IOhannes m zmoelnig zmoelnig at iem.at
Thu Mar 21 09:24:53 CET 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 2013-03-21 04:22, Ivica Ico Bukvic wrote:
> Could one simply redefine lseek and fstat to use lseek64 and
> fstat64 instead and be done with it (again, assuming one is not
> concerned with backwards and/or x-platform compatibility)?

if you are talking about redefining (as in "#define open open64") in
m_pd.h, than please: no NO!

that will break compilation of a number of externals immediately.
one that comes to my mind is any C++-external (including Gem) that
uses "open" methods in classes.
e.g.
 foo::open(s);
will expand to
 foo::open64(s);
which will break binary compatibility when linking to any library
providing foo::open() simply by including m_pd.h

gfmasdr
IOhannes
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAlFKw88ACgkQkX2Xpv6ydvTaoQCePKd61yXxx88XAUP/n1KGDTVQ
v0MAnjHVvlDkaewjStLr5vov8xyZNF/6
=wWiI
-----END PGP SIGNATURE-----



More information about the Pd-list mailing list