From f4b8643f938cbf3a2e381459a28bd3f7a9e9b206 Mon Sep 17 00:00:00 2001 From: bje Date: Sun, 12 Jul 1998 10:34:21 +0000 Subject: 1998-07-12 Ben Elliston * mutex.c (pthread_mutexattr_setprotocol): Implement. (pthread_mutexattr_getprotocol): Likewise. (pthread_mutexattr_setprioceiling): Likewise. (pthread_mutexattr_getprioceiling): Likewise. --- mutex.c | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 mutex.c diff --git a/mutex.c b/mutex.c new file mode 100644 index 0000000..b9739b9 --- /dev/null +++ b/mutex.c @@ -0,0 +1,40 @@ +/* + * mutex.c + * + * Description: + * This translation unit implements mutual exclusion (mutex) primitives. + */ + +#include "pthread.h" + +int +pthread_mutexattr_setprotocol(pthread_mutexattr_t *attr, + int protocol) +{ + /* This function is not supported. */ + return ENOSYS; +} + +int +pthread_mutexattr_getprotocol(const pthread_mutexattr_t *attr, + int *protocol) +{ + /* This function is not supported. */ + return ENOSYS; +} + +int +pthread_mutexattr_setprioceiling(pthread_mutexattr_t *attr, + int ceiling) +{ + /* This function is not supported. */ + return ENOSYS; +} + +int +pthread_mutexattr_getprioceiling(const pthread_mutexattr_t *attr, + int *ceiling) +{ + /* This function is not supported. */ + return ENOSYS; +} -- cgit v1.2.3