Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 3 Feb 1996 13:53:23 +1100 (EST)
From:      John Birrell <cimaxp1!jb@werple.net.au>
To:        hackers@FreeBSD.org
Cc:        jb@cimlogic.com.au
Subject:   timespec definition
Message-ID:  <199602030254.NAA26705@werple.net.au>

next in thread | raw e-mail | index | archive | help
G'day,

Last week I posted a message to a NetBSD mailing list concerning their
definition of timespec. I should have sent the same message to FreeBSD,
so here it is...

For some time I've been annoyed by the FreeBSD definition of timespec
(which uses ts_sec and ts_nsec where other systems use tv_sec and tv_nsec).
We use timespec a lot and I'm tired of doing...

#ifdef __FreeBSD__
code for non-standard timespec
#else
code for standard timespec
#endif

The FreeBSD <sys/time.h> header file refers to POSIX 1003.4 which has been
replaced by POSIX 1003.1b-1993. Section 14.1.1 says that timespec includes
at least tv_sec and tv_nsec and implementations may add extensions.

The feedback I get from NetBSD is that their change will happen RSN.
Can someone please make the change to FreeBSD too?

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?199602030254.NAA26705>