Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Aug 2005 21:33:35 +0200
From:      Stefan Farfeleder <stefanf@FreeBSD.org>
To:        standards@FreeBSD.org, threads@FreeBSD.org
Subject:   <pthread.h>/2
Message-ID:  <20050819193333.GF77069@wombat.fafoe.narf.at>

next in thread | raw e-mail | index | archive | help

--VS++wcV0S1rZb1Fb
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Hi,

any objections to this patch?  It moves the identifiers starting with
MUTEX_ into the BSD namespace.

Stefan

--VS++wcV0S1rZb1Fb
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="pthread.h-3.diff"

Index: src/include/pthread.h
===================================================================
RCS file: /b/ncvs/src/include/pthread.h,v
retrieving revision 1.37
diff -u -r1.37 pthread.h
--- src/include/pthread.h	19 Aug 2005 08:37:16 -0000	1.37
+++ src/include/pthread.h	19 Aug 2005 19:23:37 -0000
@@ -130,12 +133,15 @@
 	PTHREAD_MUTEX_ERRORCHECK	= 1,	/* Default POSIX mutex */
 	PTHREAD_MUTEX_RECURSIVE		= 2,	/* Recursive mutex */
 	PTHREAD_MUTEX_NORMAL		= 3,	/* No error checking */
-	MUTEX_TYPE_MAX
+	PTHREAD_MUTEX_TYPE_MAX
 };
 
 #define PTHREAD_MUTEX_DEFAULT		PTHREAD_MUTEX_ERRORCHECK
+#if __BSD_VISIBLE
 #define MUTEX_TYPE_FAST			PTHREAD_MUTEX_NORMAL
 #define MUTEX_TYPE_COUNTING_FAST	PTHREAD_MUTEX_RECURSIVE
+#define MUTEX_TYPE_MAX			PTHREAD_MUTEX_TYPE_MAX
+#endif
 
 /*
  * Thread function prototype definitions:

--VS++wcV0S1rZb1Fb--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050819193333.GF77069>