[PD] Large File Support on Linux

IOhannes m zmoelnig zmoelnig at iem.at
Thu Mar 21 13:36:00 CET 2013


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

On 2013-03-21 09:37, Charles Goyard wrote:
> Note than open_via_file returns int and not off_t, so the
> automagic stuff will fail.

that's wrong.
the declaration of open64 is:
> int open64(const char *pathname, int oflag,...);
so it returns an int, not an off_t, just like open_via_file().

iiuc, the problem is, that the file descriptor cannot be used by an
ordinary lseek(), but only with lseek64().

that's what i was referring to when i said that one would need to
provide sys_lseek().

if you go the way of simply defining _FILE_OFFSET_BITS=64 for
compiling Pd, you must compile all externals using
_FILE_OFFSET_BITS=64 as well, else they won't be able to the
file-handle internally.
i think this is **very** bad style, as it forces the use of some
obscure and potentially harmful compiler flags in order get externals
to work.

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

iEYEARECAAYFAlFK/qsACgkQkX2Xpv6ydvTAbgCgxWfPNZniRrsQ5vYLjcHtzQ3t
2g0An0I6ELjXXHJNTWcMu/mYLCz6kYqQ
=43Zn
-----END PGP SIGNATURE-----



More information about the Pd-list mailing list