PERFORCE change 95285 for review

Robert Watson rwatson at FreeBSD.org
Sat Apr 15 01:58:18 UTC 2006


On Fri, 14 Apr 2006, John Birrell wrote:

> http://perforce.freebsd.org/chv.cgi?CH=95285
>
> Change 95285 by jb at jb_freebsd2 on 2006/04/14 22:39:13
>
> 	The newest CLOCK_ defines in sys/time.h are supposed to be in time.h
> 	too, otherwise they can't be accessed in an code which happens to
> 	include time.h first.

Hmm.  Indeed.  And it looks like SUSv3 thinks so too.  Could you merge this to 
CVS when you get a chance?

Thanks,

Robert N M Watson

>
> Affected files ...
>
> .. //depot/projects/dtrace/src/include/time.h#2 edit
>
> Differences ...
>
> ==== //depot/projects/dtrace/src/include/time.h#2 (text+ko) ====
>
> @@ -100,6 +100,14 @@
> #define CLOCK_PROF	2
> #endif
> #define CLOCK_MONOTONIC	4
> +#define CLOCK_UPTIME	5		/* FreeBSD-specific. */
> +#define CLOCK_UPTIME_PRECISE	7	/* FreeBSD-specific. */
> +#define CLOCK_UPTIME_FAST	8	/* FreeBSD-specific. */
> +#define CLOCK_REALTIME_PRECISE	9	/* FreeBSD-specific. */
> +#define CLOCK_REALTIME_FAST	10	/* FreeBSD-specific. */
> +#define CLOCK_MONOTONIC_PRECISE	11	/* FreeBSD-specific. */
> +#define CLOCK_MONOTONIC_FAST	12	/* FreeBSD-specific. */
> +#define CLOCK_SECOND	13		/* FreeBSD-specific. */
> #endif /* !defined(CLOCK_REALTIME) && __POSIX_VISIBLE >= 200112 */
>
> #if !defined(TIMER_ABSTIME) && __POSIX_VISIBLE >= 200112
>


More information about the p4-projects mailing list