From owner-freebsd-hackers Fri Feb 2 19:27:19 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id TAA09827 for hackers-outgoing; Fri, 2 Feb 1996 19:27:19 -0800 (PST) Received: from werple.net.au (werple.mira.net.au [203.9.190.18]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id TAA09807 for ; Fri, 2 Feb 1996 19:27:10 -0800 (PST) Received: from cimaxp1.UUCP (Ucimlogi@localhost) by werple.net.au (8.7/8.7.1) with UUCP id NAA26705 for hackers@FreeBSD.org; Sat, 3 Feb 1996 13:54:25 +1100 (EST) Message-Id: <199602030254.NAA26705@werple.net.au> X-Authentication-Warning: werple.net.au: Ucimlogi set sender to cimaxp1!jb using -f Received: by cimaxp1.cimlogic.com.au; (5.65/1.1.8.2/10Sep95-0953AM) id AA07431; Sat, 3 Feb 1996 13:53:23 +1100 From: John Birrell Subject: timespec definition To: hackers@FreeBSD.org Date: Sat, 3 Feb 1996 13:53:23 +1100 (EST) Cc: jb@cimlogic.com.au X-Mailer: ELM [version 2.4 PL23] Content-Type: text Sender: owner-hackers@FreeBSD.org Precedence: bulk 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 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