Date: Mon, 14 Jan 2013 18:01:20 +0000 (UTC) From: Dimitry Andric <dim@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r245428 - head/include Message-ID: <201301141801.r0EI1Kvp074853@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: dim Date: Mon Jan 14 18:01:19 2013 New Revision: 245428 URL: http://svnweb.freebsd.org/changeset/base/245428 Log: 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 X-MFC-With: 239347 Modified: head/include/time.h Modified: head/include/time.h ============================================================================== --- head/include/time.h Mon Jan 14 17:41:04 2013 (r245427) +++ head/include/time.h Mon Jan 14 18:01:19 2013 (r245428) @@ -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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201301141801.r0EI1Kvp074853>