about summary refs log tree commit diff
path: root/linuxthreads/sysdeps/pthread/timer_create.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-06-09 04:33:59 +0000
committerUlrich Drepper <drepper@redhat.com>2000-06-09 04:33:59 +0000
commit165ab1d78d209289a971f121cd3331475b340692 (patch)
tree1723e822a23bbc2cbaa1ba89a915cc2b204f1191 /linuxthreads/sysdeps/pthread/timer_create.c
parentf2a5974b324203d7db39d9261dd802a35fec55ef (diff)
downloadglibc-165ab1d78d209289a971f121cd3331475b340692.tar.gz
glibc-165ab1d78d209289a971f121cd3331475b340692.tar.xz
glibc-165ab1d78d209289a971f121cd3331475b340692.zip
Update.
	* sysdeps/pthread/timer_create.c (timer_create): Correct names of
	CPUTIME clock ID.  Add support for thread clocks.
Diffstat (limited to 'linuxthreads/sysdeps/pthread/timer_create.c')
-rw-r--r--linuxthreads/sysdeps/pthread/timer_create.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/linuxthreads/sysdeps/pthread/timer_create.c b/linuxthreads/sysdeps/pthread/timer_create.c
index 84e5cfed2f..d6d756d2a6 100644
--- a/linuxthreads/sysdeps/pthread/timer_create.c
+++ b/linuxthreads/sysdeps/pthread/timer_create.c
@@ -21,6 +21,7 @@
 #include <signal.h>
 #include <pthread.h>
 #include <time.h>
+#include <unistd.h>
 
 #include "posix-timer.h"
 
@@ -38,7 +39,10 @@ timer_create (clock_id, evp, timerid)
 
   if (clock_id != CLOCK_REALTIME
 #ifdef _POSIX_CPUTIME
-      && clock_id != CLOCK_CPUTIME
+      && clock_id != CLOCK_PROCESS_CPUTIME_ID
+#endif
+#ifdef _POSIX_THREAD_CPUTIME
+      && clock_id != CLOCK_THREAD_CPUTIME_ID
 #endif
       )
     {