Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Apr 1999 13:41:44 -0500
From:      "Richard Seaman, Jr." <dick@tar.com>
To:        "Brian O'Shea" <boshea@ricochet.net>
Cc:        Aldrin L <aldrin@americasnet.com>, freebsd-questions@FreeBSD.ORG
Subject:   Re: Semaphores
Message-ID:  <19990406134144.E467@tar.com>
In-Reply-To: <19990406113121.J2844@localdomain>; from Brian O'Shea on Tue, Apr 06, 1999 at 11:31:21AM -0700
References:  <Pine.BSF.4.05.9904061145220.353-100000@athome.logicStudios.org> <19990406113121.J2844@localdomain>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <semaphore.h> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990406134144.E467>