From owner-cvs-sys Sun Jun 22 12:05:15 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id MAA17803 for cvs-sys-outgoing; Sun, 22 Jun 1997 12:05:15 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id MAA17751; Sun, 22 Jun 1997 12:04:47 -0700 (PDT) From: Sean Eric Fagan Received: (from sef@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id MAA19073; Sun, 22 Jun 1997 12:04:04 -0700 (PDT) Date: Sun, 22 Jun 1997 12:04:04 -0700 (PDT) Message-Id: <199706221904.MAA19073@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-sys@FreeBSD.ORG Subject: cvs commit: src/sys/i386/ibcs2 ibcs2_xenix.c Sender: owner-cvs-sys@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk sef 1997/06/22 12:04:04 PDT Modified files: sys/i386/ibcs2 ibcs2_xenix.c Log: For the xenix_ftime() routine, don't use the native version of the struct -- the XENIX version is packed, and two bytes smaller than ours. So, define the structure, and have it packed. I used the __attribte__((packed)) modifier for this; I could also have surrounded the struct definition with #pragma pack(2) -- but that would have meant making ibcs2_timeb's definition outside the function. This may need to be revisited if we ever want to compile with a compiler other than gcc. (I also used 'unsigned long' instead of 'time_t' because I am writing to match an external specification -- and the definition of time_t could change.) Reviewed by: Steven Wallace Revision Changes Path 1.12 +8 -3 src/sys/i386/ibcs2/ibcs2_xenix.c