-----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