[Glibc-bsd-commits] r4698 - trunk/glibc-ports/fbtl/sysdeps/pthread
Petr Salinger
ps-guest at alioth.debian.org
Mon Jul 8 17:15:49 UTC 2013
Author: ps-guest
Date: 2013-07-08 17:15:49 +0000 (Mon, 08 Jul 2013)
New Revision: 4698
Modified:
trunk/glibc-ports/fbtl/sysdeps/pthread/pthread.h
Log:
do not expose outside libc not yet supported interfaces
Modified: trunk/glibc-ports/fbtl/sysdeps/pthread/pthread.h
===================================================================
--- trunk/glibc-ports/fbtl/sysdeps/pthread/pthread.h 2013-07-08 15:37:37 UTC (rev 4697)
+++ trunk/glibc-ports/fbtl/sysdeps/pthread/pthread.h 2013-07-08 17:15:49 UTC (rev 4698)
@@ -59,6 +59,8 @@
};
+#ifdef _LIBC /* not yet supported, so do not expose outside libc */
+
#ifdef __USE_XOPEN2K
/* Robust mutex or not flags. */
enum
@@ -81,6 +83,7 @@
};
#endif
+#endif /* not yet supported, so do not expose outside libc */
/* Mutex initializers. */
#ifdef __PTHREAD_MUTEX_HAVE_PREV
@@ -390,6 +393,9 @@
#endif
#ifdef __USE_GNU
+
+#ifdef _LIBC /* not yet supported, so do not expose outside libc */
+
/* Thread created with attribute ATTR will be limited to run only on
the processors represented in CPUSET. */
extern int pthread_attr_setaffinity_np (pthread_attr_t *__attr,
@@ -413,6 +419,8 @@
extern int pthread_setattr_default_np (const pthread_attr_t *__attr)
__THROW __nonnull ((1));
+#endif /* not yet supported, so do not expose outside libc */
+
/* Initialize thread attribute *ATTR with attributes corresponding to the
already running thread TH. It shall be called on uninitialized ATTR
and destroyed with pthread_attr_destroy when no longer needed. */
@@ -435,6 +443,9 @@
struct sched_param *__restrict __param)
__THROW __nonnull ((2, 3));
+
+#ifdef _LIBC /* not yet supported, so do not expose outside libc */
+
/* Set the scheduling priority for TARGET_THREAD. */
extern int pthread_setschedprio (pthread_t __target_thread, int __prio)
__THROW;
@@ -451,6 +462,7 @@
__THROW __nonnull ((2));
#endif
+#endif /* not yet supported, so do not expose outside libc */
#ifdef __USE_UNIX98
/* Determine level of concurrency. */
@@ -467,6 +479,7 @@
implementation. */
extern int pthread_yield (void) __THROW;
+#ifdef _LIBC /* not yet supported, so do not expose outside libc */
/* Limit specified thread TH to run only on the processors represented
in CPUSET. */
@@ -478,6 +491,9 @@
extern int pthread_getaffinity_np (pthread_t __th, size_t __cpusetsize,
cpu_set_t *__cpuset)
__THROW __nonnull ((3));
+
+#endif /* not yet supported, so do not expose outside libc */
+
#endif
@@ -772,6 +788,7 @@
extern int pthread_mutex_unlock (pthread_mutex_t *__mutex)
__THROWNL __nonnull ((1));
+#ifdef _LIBC /* not yet supported, so do not expose outside libc */
/* Get the priority ceiling of MUTEX. */
extern int pthread_mutex_getprioceiling (const pthread_mutex_t *
@@ -797,6 +814,7 @@
# endif
#endif
+#endif /* not yet supported, so do not expose outside libc */
/* Functions for handling mutex attributes. */
@@ -833,6 +851,8 @@
__THROW __nonnull ((1));
#endif
+#ifdef _LIBC /* not yet supported, so do not expose outside libc */
+
/* Return in *PROTOCOL the mutex protocol attribute in *ATTR. */
extern int pthread_mutexattr_getprotocol (const pthread_mutexattr_t *
__restrict __attr,
@@ -878,6 +898,7 @@
# endif
#endif
+#endif /* not yet supported, so do not expose outside libc */
#if defined __USE_UNIX98 || defined __USE_XOPEN2K
/* Functions for handling read-write locks. */
More information about the Glibc-bsd-commits
mailing list