Date: Sun, 22 Jun 1997 12:04:04 -0700 (PDT) From: Sean Eric Fagan <sef@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 Message-ID: <199706221904.MAA19073@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199706221904.MAA19073>
