svn commit: r255306 - stable/9/include

Dimitry Andric dim at FreeBSD.org
Fri Sep 6 15:17:25 UTC 2013


Author: dim
Date: Fri Sep  6 15:17:25 2013
New Revision: 255306
URL: http://svnweb.freebsd.org/changeset/base/255306

Log:
  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

Modified:
  stable/9/include/time.h
Directory Properties:
  stable/9/include/   (props changed)

Modified: stable/9/include/time.h
==============================================================================
--- stable/9/include/time.h	Fri Sep  6 14:34:20 2013	(r255305)
+++ stable/9/include/time.h	Fri Sep  6 15:17:25 2013	(r255306)
@@ -112,6 +112,7 @@ typedef	__pid_t		pid_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


More information about the svn-src-all mailing list