Date: Sat, 10 Feb 1996 09:28:38 +1100 (EST) From: John Birrell <cimaxp1!jb@werple.net.au> To: hackers@FreeBSD.org Cc: jb@cimlogic.com.au Subject: POSIX 1003.1b compliance (timespec revisited) Message-ID: <199602092229.JAA18304@werple.net.au>
next in thread | raw e-mail | index | archive | help
G'day,
I recently posted a note to this list about the FreeBSD definition of
timespec and the fact that it does not comply with IEEE 1003.1b-1993.
I noted that NetBSD was about to make the change. Well the NetBSD change
has happened and has found its way to at least a mirror at this end of the
earth. So how about making the change to FreeBSD too?
In /usr/src/sys/src/time.h FreeBSD defines:
/*
* Structure defined by POSIX.4 to be like a timeval.
*/
struct timespec {
long ts_sec; /* seconds */
long ts_nsec; /* and nanoseconds */
};
NetBSD now defines:
/*
* Structure defined by POSIX.1b to be like a timeval.
*/
struct timespec {
time_t tv_sec; /* seconds */
long tv_nsec; /* and nanoseconds */
};
which complies with IEEE 1003.1b-1993 14.1.1
I've just taken out all the NetBSD #if defined()'s from our code, but
all the non-standard code is still required because of FreeBSD. Grrrr.
I hope someone with commit privileges and an up-to-date cvs tree can
spend 15 minutes fixing this. I don't see any point in me preparing
diffs for this (just grep for ts_sec and ts_nsec!).
Regards,
--
John Birrell CIMlogic Pty Ltd
jb@cimlogic.com.au 119 Cecil Street
Ph +61 3 9690 6900 South Melbourne Vic 3205
Fax +61 3 9690 6650 Australia
Mob +61 18 353 137
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199602092229.JAA18304>
