summaryrefslogtreecommitdiff
path: root/mutex.c
diff options
context:
space:
mode:
Diffstat (limited to 'mutex.c')
-rw-r--r--mutex.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/mutex.c b/mutex.c
index 61add6e..e03f070 100644
--- a/mutex.c
+++ b/mutex.c
@@ -81,25 +81,14 @@ pthread_mutexattr_init(pthread_mutexattr_t *attr)
return EINVAL;
}
- attr->ptr = malloc(sizeof(_pthread_mutexattr_t));
- if (attr->ptr == NULL)
- {
- return ENOMEM;
- }
-
- (_pthread_mutexattr_t *) (attr->ptr).proc_shared = PTHREAD_PROCESS_PRIVATE;
+ /* None of the optional attributes are supported yet. */
return 0;
}
int
pthread_mutexattr_destroy(pthread_mutexattr_t *attr)
{
- if (is_attr(attr) != 0)
- {
- return EINVAL;
- }
-
- free(attr->ptr);
+ /* Nothing to do. */
return 0;
}