From owner-freebsd-questions Tue Apr 6 13:52:57 1999 Delivered-To: freebsd-questions@freebsd.org Received: from rgate2.ricochet.net (rgate2.ricochet.net [204.179.143.3]) by hub.freebsd.org (Postfix) with ESMTP id 3E63B15620 for ; Tue, 6 Apr 1999 13:52:42 -0700 (PDT) (envelope-from boshea@ricochet.net) Received: from beastie.localdomain (mg128-016.ricochet.net [204.179.128.16]) by rgate2.ricochet.net (8.9.3/8.9.3) with ESMTP id PAA24653; Tue, 6 Apr 1999 15:50:33 -0500 (CDT) Received: (from brian@localhost) by beastie.localdomain (8.8.8/8.8.7) id NAA12657; Tue, 6 Apr 1999 13:59:41 -0700 (PDT) (envelope-from brian) Message-ID: <19990406135940.K2844@localdomain> Date: Tue, 6 Apr 1999 13:59:40 -0700 From: "Brian O'Shea" To: "Richard Seaman, Jr." Cc: freebsd-questions@freebsd.org Subject: Re: Semaphores References: <19990406113121.J2844@localdomain> <19990406134144.E467@tar.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.1i In-Reply-To: <19990406134144.E467@tar.com>; from Richard Seaman, Jr. on Tue, Apr 06, 1999 at 01:41:44PM -0500 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I should correct part of my last posting here: I wrote: > > 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). I meant to say "semaphore", not "threads". I have also run programs in Linux emulation that used LinuxThreads, but I ran into the known problem with libpthread (in the Linux emulation libs) failing to free the internal linux thread structures. On Tue, Apr 06, 1999 at 01:41:44PM -0500, Richard Seaman, Jr. wrote: > 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 > Excellent! Thank you. I have been to the http://lt.tar.com/ site and read about the FreeBSD kernel thread implementation, however I did not notice the POSIX semaphore library there. I have been looking for this for some time and was considering making wrapper functions around the System V semaphore system calls just to save myself the trouble of porting some of my programs. You have saved me a lot of work! Thanks, -brian -- Brian O'Shea boshea@ricochet.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message