64-bit bugs in new ovdb

Tom Kacvinsky tjk at ams.org
Thu Oct 5 19:07:34 UTC 2000



> 
> Hi, thanks for your report.  I hadn't considered the padding issue.
> Are alphas big-endian?  There's another potential problem, in that
> htonl() and ntohl() macros are used on ARTNUM datatypes.  Are those
> macros safe to use on 64-bit ints?
> 

alphas are little-endian

for the second question, htonl() and ntohl() are designed to work on
32 bit ints, or so say the man oages for these functions.

> If not, I'll have to change the artnum's so that they are u_int32_t.
> If there are two 32-bit ints, there won't be padding between them,
> right? (on a 64-bit system, I mean).
> 
> 
> -heath
> 
> 
> 




More information about the inn-workers mailing list