Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Dec 2002 16:50:44 -0500
From:      Craig Rodrigues <rodrigc@attbi.com>
To:        freebsd-current@freebsd.org
Cc:        freebsd-standards@freebsd.org
Subject:   pthread.h: improved _POSIX_THREAD_PROCESS_SHARED check
Message-ID:  <20021225215044.GA12788@attbi.com>

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

--pf9I7BMVVzbSWLtt
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Hi,

I was looking at <pthread.h> and thought that this patch should be
applied since _POSIX_THREAD_PROCESS_SHARED is defined as -1 in <unistd.h>.

Is it OK?

-- 
Craig Rodrigues        
http://www.gis.net/~craigr    
rodrigc@attbi.com

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

Index: pthread.h
===================================================================
RCS file: /home/ncvs/src/include/pthread.h,v
retrieving revision 1.25
diff -u -r1.25 pthread.h
--- pthread.h	2002/03/23 17:24:53	1.25
+++ pthread.h	2002/12/25 21:47:43
@@ -204,7 +204,7 @@
 int		pthread_condattr_destroy(pthread_condattr_t *);
 int		pthread_condattr_init(pthread_condattr_t *);
 
-#if defined(_POSIX_THREAD_PROCESS_SHARED)
+#if defined(_POSIX_THREAD_PROCESS_SHARED) && _POSIX_THREAD_PROCESS_SHARED != -1
 int		pthread_condattr_getpshared(pthread_condattr_t *, int *);
 int		pthread_condattr_setpshared(pthread_condattr_t *, int);
 #endif

--pf9I7BMVVzbSWLtt--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-standards" in the body of the message




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