From owner-freebsd-stable Mon Aug 7 10:48:42 2000 Delivered-To: freebsd-stable@freebsd.org Received: from magnesium.net (toxic.magnesium.net [207.154.84.15]) by hub.freebsd.org (Postfix) with SMTP id 297E637B988 for ; Mon, 7 Aug 2000 10:48:30 -0700 (PDT) (envelope-from jasone@magnesium.net) Received: (qmail 94351 invoked by uid 1142); 7 Aug 2000 17:48:28 -0000 Date: 7 Aug 2000 10:48:28 -0700 Date: Mon, 7 Aug 2000 10:48:06 -0700 From: Jason Evans To: Jan Conrad Cc: freebsd-stable@freebsd.org Subject: Re: 3.5-STABLE and posix4/semaphore.h? Message-ID: <20000807104806.N711@blitz.canonware.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: ; from conrad@th.physik.uni-bonn.de on Sun, Aug 06, 2000 at 06:39:00PM +0200 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, Aug 06, 2000 at 06:39:00PM +0200, Jan Conrad wrote: > sorry for asking, but is it correct that semaphore calls like sem_destroy, > even though defined in semaphore.h, are not implemented under 3.5-STABLE? You should be looking for the _POSIX_SEMAPHORES feature macro in unistd.h. It turns out that the feature macros are (incorrectly) located in pthread.h on RELENG_3, but nonetheless, _POSIX_SEMAPHORES does not show up anywhere, so you shouldn't use them on RELENG_3. Note that the feature macros are in the correct place in RELENG_4, and POSIX semaphores are implemented as well, so you may want to upgrade to RELENG_4. Jason To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message