From owner-freebsd-standards Thu Dec 26 11:28:50 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 5FA5037B405 for ; Thu, 26 Dec 2002 11:28:49 -0800 (PST) Received: from khavrinen.lcs.mit.edu (khavrinen.lcs.mit.edu [18.24.4.193]) by mx1.FreeBSD.org (Postfix) with ESMTP id C1BBF43ED1 for ; Thu, 26 Dec 2002 11:28:48 -0800 (PST) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: from khavrinen.lcs.mit.edu (localhost [IPv6:::1]) by khavrinen.lcs.mit.edu (8.12.6/8.12.6) with ESMTP id gBQJShY2049279 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Thu, 26 Dec 2002 14:28:43 -0500 (EST) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: (from wollman@localhost) by khavrinen.lcs.mit.edu (8.12.6/8.12.6/Submit) id gBQJShrr049276; Thu, 26 Dec 2002 14:28:43 -0500 (EST) (envelope-from wollman) Date: Thu, 26 Dec 2002 14:28:43 -0500 (EST) From: Garrett Wollman Message-Id: <200212261928.gBQJShrr049276@khavrinen.lcs.mit.edu> To: Craig Rodrigues Cc: freebsd-standards@FreeBSD.ORG Subject: Re: pthread.h: improved _POSIX_THREAD_PROCESS_SHARED check In-Reply-To: <20021225221430.GA12969@attbi.com> References: <20021225215044.GA12788@attbi.com> <20021225221430.GA12969@attbi.com> 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 < said: > I missed one macro, here is an updated patch. This patch is probably in the wrong direction. The functions should either be declared unconditionally, or they should not be declared at all (depending on how close we are to having support for these interfaces). Since these are trivial interfaces, I think the correct approach is probably as follows: 1) Implement *_getpshared() as always returning PTHREAD_PROCESS_PRIVATE. 2) Implement *_setpshared() to return success if pshared is PTHREAD_PROCESS_PRIVATE and [EINVAL] otherwise. -GAWollman To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-standards" in the body of the message