summaryrefslogtreecommitdiff
path: root/lib/libpthread/uthread
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2005-10-31 20:48:32 +0000
committerBrad Smith <brad@cvs.openbsd.org>2005-10-31 20:48:32 +0000
commit4566131a4e587274adfde74f60c2c6430c549928 (patch)
tree7a7619a8b20c415b7613bebaec8c81a154159f51 /lib/libpthread/uthread
parentedf5e77e974b2242dd25bc86d2ad5a7b5b551ed9 (diff)
- Prefix MUTEX_TYPE_MAX with PTHREAD_ to avoid namespace pollution.
- Remove the macros MUTEX_TYPE_FAST and MUTEX_TYPE_COUNTING_FAST. From stefanf FreeBSD ok fgsch@
Diffstat (limited to 'lib/libpthread/uthread')
-rw-r--r--lib/libpthread/uthread/uthread_mattr_kind_np.c6
-rw-r--r--lib/libpthread/uthread/uthread_mutex.c4
2 files changed, 5 insertions, 5 deletions
diff --git a/lib/libpthread/uthread/uthread_mattr_kind_np.c b/lib/libpthread/uthread/uthread_mattr_kind_np.c
index ddc9bee01fe..d18bad1ec4a 100644
--- a/lib/libpthread/uthread/uthread_mattr_kind_np.c
+++ b/lib/libpthread/uthread/uthread_mattr_kind_np.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uthread_mattr_kind_np.c,v 1.7 2001/08/10 14:37:20 fgsch Exp $ */
+/* $OpenBSD: uthread_mattr_kind_np.c,v 1.8 2005/10/31 20:48:31 brad Exp $ */
/*
* Copyright (c) 1996 Jeffrey Hsu <hsu@freebsd.org>.
* All rights reserved.
@@ -66,7 +66,7 @@ int
pthread_mutexattr_settype(pthread_mutexattr_t *attr, int type)
{
int ret;
- if (attr == NULL || *attr == NULL || type >= MUTEX_TYPE_MAX) {
+ if (attr == NULL || *attr == NULL || type >= PTHREAD_MUTEX_TYPE_MAX) {
ret = EINVAL;
} else {
(*attr)->m_type = type;
@@ -81,7 +81,7 @@ pthread_mutexattr_gettype(pthread_mutexattr_t *attr, int *type)
int ret;
if (attr == NULL || *attr == NULL || (*attr)->m_type >=
- MUTEX_TYPE_MAX) {
+ PTHREAD_MUTEX_TYPE_MAX) {
ret = EINVAL;
} else {
*type = (*attr)->m_type;
diff --git a/lib/libpthread/uthread/uthread_mutex.c b/lib/libpthread/uthread/uthread_mutex.c
index 14733506ce1..748c6ffd2eb 100644
--- a/lib/libpthread/uthread/uthread_mutex.c
+++ b/lib/libpthread/uthread/uthread_mutex.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uthread_mutex.c,v 1.17 2003/01/31 04:46:17 marc Exp $ */
+/* $OpenBSD: uthread_mutex.c,v 1.18 2005/10/31 20:48:31 brad Exp $ */
/*
* Copyright (c) 1995 John Birrell <jb@cimlogic.com.au>.
* All rights reserved.
@@ -131,7 +131,7 @@ pthread_mutex_init(pthread_mutex_t * mutex,
/* Check mutex type: */
else if (((*mutex_attr)->m_type < PTHREAD_MUTEX_ERRORCHECK) ||
- ((*mutex_attr)->m_type >= MUTEX_TYPE_MAX))
+ ((*mutex_attr)->m_type >= PTHREAD_MUTEX_TYPE_MAX))
/* Return an invalid argument error: */
ret = EINVAL;