diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2005-12-31 20:07:42 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2005-12-31 20:07:42 +0000 |
commit | 93e7b990dfd7bc7474563892c833abc193095059 (patch) | |
tree | 1bb648660356f0d907f13264972731baab35f472 /lib | |
parent | 896c1d17abe7f23f42954fa049bcb8fad39f6590 (diff) |
add pthread_mutexattr_gettype.
ok otto@
Diffstat (limited to 'lib')
-rw-r--r-- | lib/librthread/rthread_sync.c | 10 |
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 */ |