diff options
Diffstat (limited to 'lang/gccAda-3.4/files/dummy_pthreads.c')
-rw-r--r-- | lang/gccAda-3.4/files/dummy_pthreads.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/lang/gccAda-3.4/files/dummy_pthreads.c b/lang/gccAda-3.4/files/dummy_pthreads.c deleted file mode 100644 index 73a1608b3eb..00000000000 --- a/lang/gccAda-3.4/files/dummy_pthreads.c +++ /dev/null @@ -1,30 +0,0 @@ -#include <pthread.h> -#include <errno.h> - -/* These are some dummy replacements for functions missing in the pthread library */ - -int pthread_mutexattr_setprotocol(pthread_mutexattr_t *attr, int protocol) { - return 0; -} - -int pthread_mutexattr_getprioceiling(const pthread_mutexattr_t *attr, int *prioceiling) { - return 0; -} - -int -pthread_setschedparam(pthread_t thread, int policy, - const struct sched_param *param) -{ - if (param == NULL || policy < SCHED_FIFO || policy > SCHED_RR) - return EINVAL; - if (param->sched_priority > 0 || policy != SCHED_RR) - return ENOTSUP; - return 0; -} - - -int pthread_mutexattr_setprioceiling(pthread_mutexattr_t *attr, - int prioceiling) -{ - return 0; -} |