summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
+}