From owner-freebsd-standards Sun Nov 24 21:52:16 2002 Delivered-To: freebsd-standards@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4854E37B401; Sun, 24 Nov 2002 21:52:14 -0800 (PST) Received: from angelica.unixdaemons.com (angelica.unixdaemons.com [209.148.64.135]) by mx1.FreeBSD.org (Postfix) with ESMTP id EB0C343E4A; Sun, 24 Nov 2002 21:52:12 -0800 (PST) (envelope-from hiten@unixdaemons.com) Received: from unixdaemons.com (pc3-nfds1-5-cust242.nott-b.cable.ntl.com [80.5.196.242]) (authenticated bits=0) by angelica.unixdaemons.com (8.12.5/8.12.1) with ESMTP id gAP5pnU9065005; Mon, 25 Nov 2002 00:51:50 -0500 (EST) X-Authentication-Warning: angelica.unixdaemons.com: Host pc3-nfds1-5-cust242.nott-b.cable.ntl.com [80.5.196.242] claimed to be unixdaemons.com Message-ID: <3DE1BA5A.5020302@unixdaemons.com> Date: Mon, 25 Nov 2002 05:51:22 +0000 From: Hiten Pandya Reply-To: hiten@unixdaemons.com User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Bruce Evans Cc: Mike Barcroft , freebsd-standards@FreeBSD.ORG Subject: Re: CLOCK_REALTIME and TIME_ABSTIME missing from time.h References: <20021124160549.G52232-100000@gamplex.bde.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-standards@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Bruce Evans wrote: > On Sat, 23 Nov 2002, Mike Barcroft wrote: > > >>Hiten Pandya writes: >> >>>Hello. >>> >>>After doing some work on posixtest, I have found out, that time.h is >>>missing CLOCK_REALTIME, and TIME_ABSTIME. Is there a reason to why >>>we dont have these #define's? >> >>They are listed as TMR (Timer) options in POSIX. We don't currently >>support this option. > > > TIME_ABSTIME seems to be a misspelling of TIMER_ABSTIME. Neither is > supported, so they probably shouldn't be defined. But TIMER_ABSTIME > is defined in a wrong place (). > > CLOCK_REALTIME is the only CLOCK_* timer that is supported. It is > defined in a wrong place (). In needed to "fix" this when > I fixed the namespace pollution of including in > . The following patch doesn't fix the misplacement of > things in : > > %%% > Index: time.h > =================================================================== > RCS file: /home/ncvs/src/include/time.h,v > retrieving revision 1.30 > diff -u -2 -r1.30 time.h > --- time.h 6 Sep 2002 11:23:32 -0000 1.30 > +++ time.h 6 Sep 2002 12:43:56 -0000 > @@ -64,4 +62,13 @@ > #endif > > +#if __POSIX_VISIBLE >= 199309 > +#define CLOCK_REALTIME 0 > +#define CLOCK_VIRTUAL 1 > +#define CLOCK_PROF 2 > + > +#define TIMER_RELTIME 0x0 /* relative timer */ > +#define TIMER_ABSTIME 0x1 /* absolute timer */ > +#endif > + > #ifndef _CLOCK_T_DECLARED > typedef __clock_t clock_t; > %%% > > Bruce > > . Hi Bruce Is this going to be committed, or ...? -- Hiten hiten@unixdaemons.com, hiten@uk.FreeBSD.org, hiten@softweyr.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-standards" in the body of the message