From: Ian L. <il...@us...> - 2005-01-16 21:01:28
|
On Sun, 16 Jan 2005, David Leonard wrote: >I think the only thing needed was to network-endianize the index structure... >is that right? Yep, and make the fields fixed size (which I think you've done on your personal dev branch). I think this is accurate, except perhaps not the parenthesised section: >See the structs in src/mailt/index.h (and probably others). They are >mmap()'d in from the index file and accessed directly. Thus their contents >are always in machine endianness. They would need to be converted on read >and write e.g. with ntohl() and friends, which also requires making them >sized types. The current (lack of) type sizing is also a portability >issue, although less difficult to deal with than the endianness. David has >done part of the work on his leonard-dev branch, but I don't know how far >he's got. Ian |