From owner-freebsd-standards Wed Dec 25 13:50:38 2002 Delivered-To: freebsd-standards@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3157D37B401; Wed, 25 Dec 2002 13:50:37 -0800 (PST) Received: from h00609772adf0.ne.client2.attbi.com (h00609772adf0.ne.client2.attbi.com [24.61.43.152]) by mx1.FreeBSD.org (Postfix) with ESMTP id 946E543EC5; Wed, 25 Dec 2002 13:50:36 -0800 (PST) (envelope-from rodrigc@attbi.com) Received: from h00609772adf0.ne.client2.attbi.com (localhost [127.0.0.1]) by h00609772adf0.ne.client2.attbi.com (8.12.6/8.12.6) with ESMTP id gBPLoip0012808; Wed, 25 Dec 2002 16:50:45 -0500 (EST) (envelope-from rodrigc@h00609772adf0.ne.client2.attbi.com) Received: (from rodrigc@localhost) by h00609772adf0.ne.client2.attbi.com (8.12.6/8.12.6/Submit) id gBPLoidh012807; Wed, 25 Dec 2002 16:50:44 -0500 (EST) Date: Wed, 25 Dec 2002 16:50:44 -0500 From: Craig Rodrigues 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> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="pf9I7BMVVzbSWLtt" Content-Disposition: inline User-Agent: Mutt/1.4i Sender: owner-freebsd-standards@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --pf9I7BMVVzbSWLtt Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, I was looking at and thought that this patch should be applied since _POSIX_THREAD_PROCESS_SHARED is defined as -1 in . 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