From owner-freebsd-questions Tue Apr 6 11:43:57 1999 Delivered-To: freebsd-questions@freebsd.org Received: from ns.tar.com (ns.tar.com [204.95.187.2]) by hub.freebsd.org (Postfix) with ESMTP id 97E45156B7 for ; Tue, 6 Apr 1999 11:43:55 -0700 (PDT) (envelope-from dick@ns.tar.com) Received: (from dick@localhost) by ns.tar.com (8.9.3/8.9.3) id NAA06187; Tue, 6 Apr 1999 13:41:45 -0500 (CDT) (envelope-from dick) Date: Tue, 6 Apr 1999 13:41:44 -0500 From: "Richard Seaman, Jr." To: "Brian O'Shea" Cc: Aldrin L , freebsd-questions@FreeBSD.ORG Subject: Re: Semaphores Message-ID: <19990406134144.E467@tar.com> References: <19990406113121.J2844@localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i In-Reply-To: <19990406113121.J2844@localdomain>; from Brian O'Shea on Tue, Apr 06, 1999 at 11:31:21AM -0700 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, Apr 06, 1999 at 11:31:21AM -0700, Brian O'Shea wrote: > Unfortunately the POSIX semaphore library functions (sem_init(), > sem_wait(), sem_post(), etc.) don't seem to exist on my 3.1-RELEASE > system or any of the previous releases that I have used (going back to > 2.2.1-R), despite the fact that the header file exists > containing their prototypes. This interface has many of the features > of SysV semaphores (for instance if you need to initialize a semaphore > to valued greater than 1). If these library functions are added in the > future, they may be what you are looking for. > > Linux has an implementation of POSIX semaphores, although process-shared > semaphores are not supported. I have run Linux programs on FreeBSD > (under Linux emulation) that I wrote using the POSIX threads functions > and they worked just fine (although I didn't test them extensively). The linux threads "port", which provides native FreeBSD 1-1 "kernel threads", also includes the linux POSIX semaphore library you mention. See http://lt.tar.com -- Richard Seaman, Jr. email: dick@tar.com 5182 N. Maple Lane phone: 414-367-5450 Chenequa WI 53058 fax: 414-367-5852 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message