summaryrefslogtreecommitdiffstats
path: root/libpthread/nptl/pthread_getschedparam.c
diff options
context:
space:
mode:
author"Steven J. Hill" <sjhill@realitydiluted.com>2005-07-22 07:27:02 +0000
committer"Steven J. Hill" <sjhill@realitydiluted.com>2005-07-22 07:27:02 +0000
commit4ace63889357f5ffc8b96a8a6144352e7ce56eec (patch)
tree21cae77af0719690b1255038635714a30e4f073d /libpthread/nptl/pthread_getschedparam.c
parentf5faeff83458b4dc618ca83edd2dd33dbe63c15d (diff)
downloaduClibc-alpine-4ace63889357f5ffc8b96a8a6144352e7ce56eec.tar.bz2
uClibc-alpine-4ace63889357f5ffc8b96a8a6144352e7ce56eec.tar.xz
Big set of various patches to get the NPTL libraries to build and link.
Diffstat (limited to 'libpthread/nptl/pthread_getschedparam.c')
-rw-r--r--libpthread/nptl/pthread_getschedparam.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/libpthread/nptl/pthread_getschedparam.c b/libpthread/nptl/pthread_getschedparam.c
index 434d86777..b9808bb68 100644
--- a/libpthread/nptl/pthread_getschedparam.c
+++ b/libpthread/nptl/pthread_getschedparam.c
@@ -51,7 +51,11 @@ __pthread_getschedparam (threadid, policy, param)
not yet been retrieved do it now. */
if ((pd->flags & ATTR_FLAG_SCHED_SET) == 0)
{
+#ifdef __UCLIBC__
+ if (sched_getparam (pd->tid, &pd->schedparam) != 0)
+#else
if (__sched_getparam (pd->tid, &pd->schedparam) != 0)
+#endif
result = 1;
else
pd->flags |= ATTR_FLAG_SCHED_SET;
@@ -59,7 +63,11 @@ __pthread_getschedparam (threadid, policy, param)
if ((pd->flags & ATTR_FLAG_POLICY_SET) == 0)
{
+#ifdef __UCLIBC__
+ pd->schedpolicy = sched_getscheduler (pd->tid);
+#else
pd->schedpolicy = __sched_getscheduler (pd->tid);
+#endif
if (pd->schedpolicy == -1)
result = 1;
else