From owner-cvs-all@FreeBSD.ORG Mon Nov 13 04:28:30 2006 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3F4F116A403; Mon, 13 Nov 2006 04:28:30 +0000 (UTC) (envelope-from jkoshy@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id A312043D4C; Mon, 13 Nov 2006 04:28:29 +0000 (GMT) (envelope-from jkoshy@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id kAD4STBC093716; Mon, 13 Nov 2006 04:28:29 GMT (envelope-from jkoshy@repoman.freebsd.org) Received: (from jkoshy@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id kAD4ST0U093715; Mon, 13 Nov 2006 04:28:29 GMT (envelope-from jkoshy) Message-Id: <200611130428.kAD4ST0U093715@repoman.freebsd.org> From: Joseph Koshy Date: Mon, 13 Nov 2006 04:28:29 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/include ar.h X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Nov 2006 04:28:30 -0000 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