1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-22 07:20:00 +00:00

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
This commit is contained in:
Dimitry Andric 2013-01-14 18:01:19 +00:00
parent c25ca7790c
commit c0e8ea253f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=245428

View File

@ -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