[Glibc-bsd-commits] r5133 - trunk/glibc-ports/fbtl
Petr Salinger
ps-guest at alioth.debian.org
Fri Nov 8 17:39:32 UTC 2013
Author: ps-guest
Date: 2013-11-08 17:39:32 +0000 (Fri, 08 Nov 2013)
New Revision: 5133
Modified:
trunk/glibc-ports/fbtl/Makefile
trunk/glibc-ports/fbtl/Versions
trunk/glibc-ports/fbtl/pthread_setattr_default_np.c
Log:
add preliminary version of pthread_{g,s}etattr_default_np
Modified: trunk/glibc-ports/fbtl/Makefile
===================================================================
--- trunk/glibc-ports/fbtl/Makefile 2013-11-08 17:34:46 UTC (rev 5132)
+++ trunk/glibc-ports/fbtl/Makefile 2013-11-08 17:39:32 UTC (rev 5133)
@@ -120,6 +120,7 @@
pthread_attr_getaffinity pthread_attr_setaffinity \
cleanup_routine unwind-forcedunwind \
pthread_setname pthread_getname \
+ pthread_setattr_default_np pthread_getattr_default_np
# lowlevelrobustlock
# pthread_sigqueue
@@ -134,7 +135,6 @@
# pthread_mutexattr_setprioceiling tpp \
# pthread_mutex_getprioceiling \
# pthread_mutex_setprioceiling \
-# pthread_setattr_default_np pthread_getattr_default_np
# commented out also in nptl
Modified: trunk/glibc-ports/fbtl/Versions
===================================================================
--- trunk/glibc-ports/fbtl/Versions 2013-11-08 17:34:46 UTC (rev 5132)
+++ trunk/glibc-ports/fbtl/Versions 2013-11-08 17:39:32 UTC (rev 5133)
@@ -237,6 +237,11 @@
pthread_setname_np; pthread_getname_np;
};
+ GLIBC_2.18 {
+ pthread_getattr_default_np;
+ pthread_setattr_default_np;
+ }
+
GLIBC_PRIVATE {
__pthread_initialize_minimal;
__pthread_clock_gettime; __pthread_clock_settime;
Modified: trunk/glibc-ports/fbtl/pthread_setattr_default_np.c
===================================================================
--- trunk/glibc-ports/fbtl/pthread_setattr_default_np.c 2013-11-08 17:34:46 UTC (rev 5132)
+++ trunk/glibc-ports/fbtl/pthread_setattr_default_np.c 2013-11-08 17:39:32 UTC (rev 5133)
@@ -32,6 +32,10 @@
assert (sizeof (*in) >= sizeof (struct pthread_attr));
real_in = (struct pthread_attr *) in;
+#if 1
+#warning scheduling attributes not yet supported
+#else
+
/* Catch invalid values. */
int policy = real_in->schedpolicy;
ret = check_sched_policy_attr (policy);
@@ -49,6 +53,7 @@
ret = check_cpuset_attr (real_in->cpuset, real_in->cpusetsize);
if (ret)
return ret;
+#endif
/* stacksize == 0 is fine. It means that we don't change the current
value. */
More information about the Glibc-bsd-commits
mailing list