Date: Mon, 13 Nov 2006 04:28:29 +0000 (UTC) From: Joseph Koshy <jkoshy@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/include ar.h Message-ID: <200611130428.kAD4ST0U093715@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
jkoshy 2006-11-13 04:28:29 UTC
FreeBSD src repository
Modified files:
include ar.h
Log:
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
Revision Changes Path
1.2 +5 -1 src/include/ar.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200611130428.kAD4ST0U093715>
