[uClibc-cvs] CVS update of uClibc/include (pthread.h)
Erik Andersen
andersen at codepoet.org
Mon Aug 16 22:55:02 UTC 2004
Date: Monday, August 16, 2004 @ 16:55:02
Author: andersen
Path: /var/cvs/uClibc/include
Modified: pthread.h (1.4 -> 1.5)
Audit pthread.h and exclude prototypes for pthread functions
that are not presently implemented in uClibc's libpthread.
-Erik
Index: uClibc/include/pthread.h
diff -u uClibc/include/pthread.h:1.4 uClibc/include/pthread.h:1.5
--- uClibc/include/pthread.h:1.4 Sat Dec 27 16:30:30 2003
+++ uClibc/include/pthread.h Mon Aug 16 16:55:01 2004
@@ -268,6 +268,9 @@
__attr, void **__restrict __stackaddr)
__THROW;
+#if 0
+/* Not yet implemented in uClibc! */
+
#ifdef __USE_XOPEN2K
/* The following two interfaces are intended to replace the last two. They
require setting the address as well as the size since only setting the
@@ -280,6 +283,7 @@
void **__restrict __stackaddr,
size_t *__restrict __stacksize) __THROW;
#endif
+#endif
/* Add information about the minimum stack size needed for the thread
to be started. This size must never be less than PTHREAD_STACK_SIZE
@@ -292,10 +296,14 @@
__attr, size_t *__restrict __stacksize)
__THROW;
+#if 0
+/* Not yet implemented in uClibc! */
+
#ifdef __USE_GNU
/* Get thread attributes corresponding to the already running thread TH. */
extern int pthread_getattr_np (pthread_t __th, pthread_attr_t *__attr) __THROW;
#endif
+#endif
/* Functions for scheduling control. */
@@ -319,6 +327,9 @@
extern int pthread_setconcurrency (int __level) __THROW;
#endif
+#if 0
+/* Not yet implemented in uClibc! */
+
#ifdef __USE_GNU
/* Yield the processor to another thread or process.
This function is similar to the POSIX `sched_yield' function but
@@ -326,6 +337,7 @@
implementation. */
extern int pthread_yield (void) __THROW;
#endif
+#endif
/* Functions for mutex handling. */
@@ -453,25 +465,27 @@
/* Try to acquire read lock for RWLOCK. */
extern int pthread_rwlock_tryrdlock (pthread_rwlock_t *__rwlock) __THROW;
-#ifdef __USE_XOPEN2K
-/* Try to acquire read lock for RWLOCK or return after specfied time. */
-extern int pthread_rwlock_timedrdlock (pthread_rwlock_t *__restrict __rwlock,
- __const struct timespec *__restrict
- __abstime) __THROW;
-#endif
-
/* Acquire write lock for RWLOCK. */
extern int pthread_rwlock_wrlock (pthread_rwlock_t *__rwlock) __THROW;
/* Try to acquire write lock for RWLOCK. */
extern int pthread_rwlock_trywrlock (pthread_rwlock_t *__rwlock) __THROW;
+#if 0
+/* Not yet implemented in uClibc! */
+
#ifdef __USE_XOPEN2K
+/* Try to acquire read lock for RWLOCK or return after specfied time. */
+extern int pthread_rwlock_timedrdlock (pthread_rwlock_t *__restrict __rwlock,
+ __const struct timespec *__restrict
+ __abstime) __THROW;
/* Try to acquire write lock for RWLOCK or return after specfied time. */
extern int pthread_rwlock_timedwrlock (pthread_rwlock_t *__restrict __rwlock,
__const struct timespec *__restrict
__abstime) __THROW;
#endif
+#endif
+
/* Unlock RWLOCK. */
extern int pthread_rwlock_unlock (pthread_rwlock_t *__rwlock) __THROW;
@@ -503,6 +517,9 @@
int __pref) __THROW;
#endif
+#if 0
+/* Not yet implemented in uClibc! */
+
#ifdef __USE_XOPEN2K
/* The IEEE Std. 1003.1j-2000 introduces functions to implement
spinlocks. */
@@ -546,6 +563,7 @@
extern int pthread_barrier_wait (pthread_barrier_t *__barrier) __THROW;
#endif
+#endif
/* Functions for handling thread-specific data. */
@@ -647,11 +665,15 @@
#endif
+#if 0
+/* Not yet implemented in uClibc! */
+
#ifdef __USE_XOPEN2K
/* Get ID of CPU-time clock for thread THREAD_ID. */
extern int pthread_getcpuclockid (pthread_t __thread_id,
clockid_t *__clock_id) __THROW;
#endif
+#endif
/* Functions for handling signals. */
More information about the uClibc-cvs
mailing list