Searched hist:164244 (Results 1 - 1 of 1) sorted by relevance

/freebsd-10-stable/include/
H A Dar.hdiff 164244 Mon Nov 13 02:28:29 MST 2006 jkoshy Attempt to improve application portability by marking `struct ar_hdr'
as `packed'.

The C standard leaves the alignment of individual members of a C
struct upto the implementation, so pedantically speaking portable
code cannot assume that the layout of a `struct ar_hdr' in memory
will match its layout in a file. Using a __packed attribute
declaration forces file and memory layouts for this structure to
match.

Submitted by: ru

Completed in 35 milliseconds