summaryrefslogtreecommitdiff
path: root/lib/librthread/rthread_sync.c
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2005-12-31 20:07:42 +0000
committerBrad Smith <brad@cvs.openbsd.org>2005-12-31 20:07:42 +0000
commit93e7b990dfd7bc7474563892c833abc193095059 (patch)
tree1bb648660356f0d907f13264972731baab35f472 /lib/librthread/rthread_sync.c
parent896c1d17abe7f23f42954fa049bcb8fad39f6590 (diff)
add pthread_mutexattr_gettype.
ok otto@
Diffstat (limited to 'lib/librthread/rthread_sync.c')
-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
*/