# HG changeset patch # User mas01cr # Date 1227799187 0 # Node ID 443c2939e84b88b151b59409049a0c9edcaa4c78 # Parent fb633cac9c3a35a8fe7e84b69f611cac57842bbf off_t in ABI structures is a bad thing. Why? Because its size depends on the compile-time environment. It was OK, ish, when the only off_t was at the end of the struct, because then we only stomped on uninitialized bits of memory; it is terrible when there is more than one off_t kind of field. Use uint64_t for those fields instead. diff -r fb633cac9c3a -r 443c2939e84b audioDB_API.h --- a/audioDB_API.h Thu Nov 27 15:19:45 2008 +0000 +++ b/audioDB_API.h Thu Nov 27 15:19:47 2008 +0000 @@ -1,4 +1,6 @@ #include +#include + /* for API questions contact * Christophe Rhodes c.rhodes@gold.ac.uk * Ian Knopke mas01ik@gold.ac.uk, ian.knopke@gmail.com */ @@ -40,11 +42,11 @@ struct adbstatus { unsigned int numFiles; unsigned int dim; - unsigned int length; unsigned int dudCount; unsigned int nullCount; unsigned int flags; - off_t data_region_size; + uint64_t length; + uint64_t data_region_size; }; typedef struct adbstatus adb_status_t, *adb_status_ptr;