summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/dietlibc/libpthread/pthread_attr_setschedpolicy.c
diff options
context:
space:
mode:
authorMystery Man <unknown@mandriva.org>2002-07-21 16:17:21 +0000
committerMystery Man <unknown@mandriva.org>2002-07-21 16:17:21 +0000
commit44367b004bf899c07a6cc0ceec8b25e867996439 (patch)
treec5f60a00b24fba0db77ad255ca60ab80411a5f51 /mdk-stage1/dietlibc/libpthread/pthread_attr_setschedpolicy.c
parent38b509596410b559a4ba2718cbffa8ee65d81a6b (diff)
downloaddrakx-44367b004bf899c07a6cc0ceec8b25e867996439.tar
drakx-44367b004bf899c07a6cc0ceec8b25e867996439.tar.gz
drakx-44367b004bf899c07a6cc0ceec8b25e867996439.tar.bz2
drakx-44367b004bf899c07a6cc0ceec8b25e867996439.tar.xz
drakx-44367b004bf899c07a6cc0ceec8b25e867996439.zip
This commit was manufactured by cvs2svn to create tag 'V1_1_8_8mdk'.V1_1_8_8mdk
Diffstat (limited to 'mdk-stage1/dietlibc/libpthread/pthread_attr_setschedpolicy.c')
-rw-r--r--mdk-stage1/dietlibc/libpthread/pthread_attr_setschedpolicy.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/mdk-stage1/dietlibc/libpthread/pthread_attr_setschedpolicy.c b/mdk-stage1/dietlibc/libpthread/pthread_attr_setschedpolicy.c
deleted file mode 100644
index e845bca32..000000000
--- a/mdk-stage1/dietlibc/libpthread/pthread_attr_setschedpolicy.c
+++ /dev/null
@@ -1,25 +0,0 @@
-#include <unistd.h>
-#include <errno.h>
-
-#include <pthread.h>
-#include "thread_internal.h"
-
-int pthread_attr_setschedpolicy(pthread_attr_t *attr, int policy)
-{
- __THREAD_INIT();
-
- if (policy==SCHED_OTHER) {
- attr->__schedpolicy=policy;
- return 0;
- }
- if ((policy==SCHED_FIFO) || (policy==SCHED_RR)) {
- if (geteuid()==0) {
- attr->__schedpolicy=policy;
- return 0;
- }
- (*(__errno_location()))=ENOTSUP;
- }
- else
- (*(__errno_location()))=EINVAL;
- return -1;
-}