On Thu, Dec 30, 1999 at 12:17:45PM -0500, Nicolas Pitre wrote:

> With gcc on i386, sizeof(struct NodeDescriptor) = 14.

with __attribute__((packed)) it becomes 14 on ARM
(as Russell and Dave suggested. Thanks)

having patched quite a few structures with __attribute__((packed)) it now
seems to be successfully mounting a floppy and showing correct file lengths
(and even contents of the 1 text file I've so far found on my floppy).

Patch might appear soon...
(although it won't be very tested as I've only got 2 floppies and no Mac)

Am I right in thinking that the only "correct" portable way to read binary
structures off disk is into a char array, and then decode it from there?

Nick

unsubscribe: body of `unsubscribe linux-arm' to [EMAIL PROTECTED]
++        Please use [EMAIL PROTECTED] for           ++
++                        kernel-related discussions.                      ++

Reply via email to