Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Sep 2013 15:38:40 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-releng@freebsd.org
Subject:   svn commit: r255308 - releng/9.2/include
Message-ID:  <201309061538.r86FceJe078327@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dim
Date: Fri Sep  6 15:38:40 2013
New Revision: 255308
URL: http://svnweb.freebsd.org/changeset/base/255308

Log:
  MFS9 r255306:
  MFC r245428:
  
  Add CLOCK_PROCESS_CPUTIME_ID to <time.h>, to synchronize the CLOCK_*
  values with those in <sys/time.h>.  Otherwise, if a program includes
  <time.h> before <sys/time.h>, the CLOCK_PROCESS_CPUTIME_ID macro never
  gets defined.
  
  Reviewed by:	davidxu
  Approved by:	re (kib)

Modified:
  releng/9.2/include/time.h
Directory Properties:
  releng/9.2/include/   (props changed)

Modified: releng/9.2/include/time.h
==============================================================================
--- releng/9.2/include/time.h	Fri Sep  6 15:19:57 2013	(r255307)
+++ releng/9.2/include/time.h	Fri Sep  6 15:38:40 2013	(r255308)
@@ -105,6 +105,7 @@ typedef	__timer_t	timer_t;
 #define CLOCK_MONOTONIC_FAST	12	/* FreeBSD-specific. */
 #define CLOCK_SECOND	13		/* FreeBSD-specific. */
 #define CLOCK_THREAD_CPUTIME_ID	14
+#define	CLOCK_PROCESS_CPUTIME_ID	15
 #endif /* !defined(CLOCK_REALTIME) && __POSIX_VISIBLE >= 200112 */
 
 #if !defined(TIMER_ABSTIME) && __POSIX_VISIBLE >= 200112



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201309061538.r86FceJe078327>