Hi!
Currently ne_get_range() is unusable with 64bit file offsets. There is
no 64bit counterpart of this specific function. The structure
ne_content_range contains variables of type "off_t" whose size differs
depending on _FILE_OFFSET_BITS. This creates all kinds of strange bugs
when linking different libs where some have been compiled with that
define and others have not. (And most modern software defines
_FILE_OFFSET_BITS to 64 these days)
May i suggest changing neon to use 64 bit offsets if available? I
prepared a fairly simple patch for that:
http://0pointer.de/public/neon-off_t-64.patch
If this is not acceptable, please consider not using off_t in header
files at all. Instead use uint64_t or uint32_t from inttypes.h and
define it to an ne_ name based on the compilation settings of the
library.
Debian already has a bug report about this:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=350619
Thanks,
Lennart
--
Lennart Poettering; lennart [at] poettering [dot] net
ICQ# 11060553; GPG 0x1A015CC4; http://0pointer.net/lennart/
_______________________________________________
neon mailing list
[email protected]
http://mailman.webdav.org/mailman/listinfo/neon