From owner-freebsd-current@FreeBSD.ORG Wed Jul 21 16:44:52 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4ADC916A4CE for ; Wed, 21 Jul 2004 16:44:52 +0000 (GMT) Received: from pi.codefab.com (pi.codefab.com [199.103.21.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id DC0D943D66 for ; Wed, 21 Jul 2004 16:44:51 +0000 (GMT) (envelope-from cswiger@mac.com) Received: from [10.1.1.193] (nfw1.codefab.com [199.103.21.225]) by pi.codefab.com (8.12.11/8.12.11) with ESMTP id i6LGillX092419; Wed, 21 Jul 2004 12:44:48 -0400 (EDT) In-Reply-To: <84539.1090427579@critter.freebsd.dk> References: <84539.1090427579@critter.freebsd.dk> Mime-Version: 1.0 (Apple Message framework v618) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <4691F91E-DB35-11D8-BD53-003065ABFD92@mac.com> Content-Transfer-Encoding: 7bit From: Charles Swiger Date: Wed, 21 Jul 2004 12:44:47 -0400 To: Poul-Henning Kamp X-Mailer: Apple Mail (2.618) X-Spam-Status: No, hits=0.0 required=5.5 tests=none autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on pi.codefab.com cc: current@freebsd.org Subject: Re: Any idea why timespec* is _KERNEL stuff only? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jul 2004 16:44:52 -0000 On Jul 21, 2004, at 12:32 PM, Poul-Henning Kamp wrote: >> The timespec struct is POSIX standard. POSIX has the correct number >> of >> functions for operating on timespec structs (none). > > I am not in agreement [h]ere. As much as I hate timespec, we'll have > to live with it, and rather than have people make their own mistakes > I'd prefer to expose some functions/macros that do it right. Doesn't Paul Vixie's eventlib expose (struct timespec)s anyway, as well as providing conversion functions to and from (struct timeval)s? -- -Chuck