This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: pthread_attr_[gs]etcputime


On Tue, 2008-01-29 at 11:42 -0600, Joel Sherrill wrote:
> While doing some RTEMS maintenance, we noticed the following
> routines which appear to have been proposed but never approved.
> 
> pthread_attr_getcputime
> pthread_attr_setcputime
> 
> When we went searching for definitions in the current
> OpenGroup and POSIX specification, we couldn't find
> any.  The comments in RTEMS indicate they were from
> a draft specification.
> 
> The only references I can find are RTEMS and the newlib
> pthread.h which I submitted so there is no proof of
> existence. :)
> 
> Before we delete them, can anyone add some insight?

Jeff, could you please apply the patch below?

It's the technical side of Joel's request back from January (!), we use
in rtems since then.

TIA,
	Ralf

Index: newlib/libc/include/pthread.h
===================================================================
RCS file: /cvs/src/src/newlib/libc/include/pthread.h,v
retrieving revision 1.5
diff -u -r1.5 pthread.h
--- newlib/libc/include/pthread.h	26 Sep 2008 16:15:50 -0000	1.5
+++ newlib/libc/include/pthread.h	19 Nov 2008 11:01:52 -0000
@@ -294,14 +294,6 @@
 int	_EXFUN(pthread_getcpuclockid,
 	(pthread_t __pthread_id, clockid_t *__clock_id));
  
-/* CPU-time Clock Thread Creation Attribute, P1003.4b/D8, p. 59 */
-
-int	_EXFUN(pthread_attr_setcputime,
-	(pthread_attr_t *__attr, int __clock_allowed));
-
-int	_EXFUN(pthread_attr_getcputime,
-	(pthread_attr_t *__attr, int *__clock_allowed));
-
 #endif /* defined(_POSIX_THREAD_CPUTIME) */
 
 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]