From owner-freebsd-stable Fri Mar 29 16:39:48 2002 Delivered-To: freebsd-stable@freebsd.org Received: from motgate.mot.com (motgate.mot.com [129.188.136.100]) by hub.freebsd.org (Postfix) with ESMTP id 7DC6037B419 for ; Fri, 29 Mar 2002 16:39:44 -0800 (PST) Received: [from pobox3.mot.com (pobox3.mot.com [10.64.251.242]) by motgate.mot.com (motgate 2.1) with ESMTP id RAA20665; Fri, 29 Mar 2002 17:39:43 -0700 (MST)] Received: [from latour.rsch.comm.mot.com (latour.rsch.comm.mot.com [145.1.80.116]) by pobox3.mot.com (MOT-pobox3 2.0) with ESMTP id RAA11091; Fri, 29 Mar 2002 17:27:33 -0700 (MST)] Received: (from rittle@localhost) by latour.rsch.comm.mot.com (8.11.6/8.11.6) id g2U0dg213975; Fri, 29 Mar 2002 18:39:42 -0600 (CST) (envelope-from rittle) Date: Fri, 29 Mar 2002 18:39:42 -0600 (CST) From: Loren James Rittle Message-Id: <200203300039.g2U0dg213975@latour.rsch.comm.mot.com> To: stable@freebsd.org Subject: Re: shm & pthreads In-Reply-To: <3CA4ED81.F0B9307F@prism.gatech.edu> Organization: Networks and Infrastructure Lab (IL02/2240), Motorola Labs Cc: gte733p@prism.gatech.edu Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In article <3CA4ED81.F0B9307F@prism.gatech.edu> you write: > I searched for the answer to this, but couldn't find any > information. I'm writing a program that uses shared memory (via > shm_*) to communicate between two processes, each multithreaded. I > need some way to synchronize the two processes, and while other > methods are available (pipe, etc), I'd like to use pthreads mutexes, > as it makes my coding much easier. FreeBSD 4-STABLE doesn't implement this feature (according to various POSIX standards, this is the symbol an implementation must define): /usr/include/sys/unistd.h:/* #define _POSIX_THREAD_PROCESS_SHARED */ Regards, Loren To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message