From mboxrd@z Thu Jan 1 00:00:00 1970 From: random832@fastmail.com (Random832) Date: Tue, 03 Jan 2017 09:33:44 -0500 Subject: [TUHS] MacOS X is Unix (tm) In-Reply-To: <8168FD75-9C3E-47C1-9BA8-EADAD7D33C38@kdbarto.org> References: <52C99F50-E24A-4BBF-A129-180A1271B4E3@kdbarto.org> <586a3a23.udW0nRrOopzHoQbP%schily@schily.net> <8168FD75-9C3E-47C1-9BA8-EADAD7D33C38@kdbarto.org> Message-ID: <1483454024.1265981.835921849.4F752F10@webmail.messagingengine.com> On Tue, Jan 3, 2017, at 09:06, David wrote: > MacOS passes this except for the si_status test. MacOS uses a signed int > there. I’m not sure what the standard says. The problem isn't the fact that it's signed, it's the fact that it's only a 24-bit value (i.e. the high 8 bits are replaced with sign-extension of bit 23). Look at the hex - expected 0x499602d2 vs actual 0xff9602d2 However, OSX only claims compliance to Issue 6 (unistd.h _XOPEN_VERSION 600), and the text requiring that the full 32-bit value be preserved is new to Issue 7.