From 93e7b990dfd7bc7474563892c833abc193095059 Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Sat, 31 Dec 2005 20:07:42 +0000 Subject: add pthread_mutexattr_gettype. ok otto@ --- lib/librthread/rthread_sync.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'lib/librthread/rthread_sync.c') 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 * 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 */ -- cgit v1.2.3