summaryrefslogtreecommitdiff
path: root/mutex.c
diff options
context:
space:
mode:
authorbje <bje>1998-07-12 10:34:21 +0000
committerbje <bje>1998-07-12 10:34:21 +0000
commitf4b8643f938cbf3a2e381459a28bd3f7a9e9b206 (patch)
treecfbdfada5f39cd35b22c9c9138736924333b664b /mutex.c
parentba45985bb3a28170fe742a4812145b7058960ea8 (diff)
1998-07-12 Ben Elliston <bje@cygnus.com>
* mutex.c (pthread_mutexattr_setprotocol): Implement. (pthread_mutexattr_getprotocol): Likewise. (pthread_mutexattr_setprioceiling): Likewise. (pthread_mutexattr_getprioceiling): Likewise.
Diffstat (limited to 'mutex.c')
-rw-r--r--mutex.c40
1 files changed, 40 insertions, 0 deletions
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;
+}