summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/librthread/rthread_sync.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/librthread/rthread_sync.c b/lib/librthread/rthread_sync.c
index 0353466336d..5f1f8a6c388 100644
--- a/lib/librthread/rthread_sync.c
+++ b/lib/librthread/rthread_sync.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rthread_sync.c,v 1.14 2005/12/30 04:05:55 tedu Exp $ */
+/* $OpenBSD: rthread_sync.c,v 1.15 2005/12/31 20:07:41 brad Exp $ */
/*
* Copyright (c) 2004,2005 Ted Unangst <tedu@openbsd.org>
* All Rights Reserved.
@@ -339,6 +339,14 @@ pthread_mutexattr_settype(pthread_mutexattr_t *attrp, int type)
return (0);
}
+int
+pthread_mutexattr_gettype(pthread_mutexattr_t *attrp, int *type)
+{
+ *type = (*attrp)->type;
+
+ return (0);
+}
+
/*
* condition variables
*/