From owner-freebsd-questions Tue Feb 12 16:31: 7 2002 Delivered-To: freebsd-questions@freebsd.org Received: from albatross.prod.itd.earthlink.net (albatross.mail.pas.earthlink.net [207.217.120.120]) by hub.freebsd.org (Postfix) with ESMTP id C0B3237B404 for ; Tue, 12 Feb 2002 16:31:02 -0800 (PST) Received: from 1cust9.tnt1.pasadena.ca.da.uu.net ([67.224.57.9] helo=ss3) by albatross.prod.itd.earthlink.net with smtp (Exim 3.33 #1) id 16anK8-0002Lg-00; Tue, 12 Feb 2002 16:31:00 -0800 Message-ID: <004701c1b425$429f4b90$4d76cb3f@ss3> From: "Matthew" To: "Kip Macy" Cc: References: Subject: Re: sysv semaphore Date: Tue, 12 Feb 2002 16:27:44 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Thanks for the help. Doesn't look like the code in libc_r using mmap. It uses pthread. I need a mmap coded sem/shm implementation to port a software from UNIX to NT. NT has no sysv sem/shm nor pthread. There's a Linux sysv lib but it's GNU, look like I have to write my own sysv IPC for NT. Well, any more pointers? -------------------------------------------------- WWW.XGFORCE.COM - The Next Generation Server Clustering and Enterprise Firewall/VPN Solutions. -------------------------------------------------- ----- Original Message ----- From: "Kip Macy" To: "Matthew" Cc: Sent: Tuesday, February 12, 2002 4:07 PM Subject: Re: sysv semaphore > This is really a questions for -questions so I'm moving it to that list. > The semaphore code is all tied to libc_r pthreads, and can be found in the > corresponding directory under libc_r, so I din't know if that fits > your needs. The shm code is in /usr/src/lib/libc/gen/posixshm.c . > > Anything not under a GNU directory is BSD licensed as far as I'm aware. > > > -Kip > > > > > On Tue, 12 Feb 2002, Matthew wrote: > > > Thanks for the info. Do you know where I can find the code with a BSD style license? > > -------------------------------------------------- > > WWW.XGFORCE.COM - > > The Next Generation Server Clustering > > and Enterprise Firewall/VPN Solutions. > > -------------------------------------------------- > > ----- Original Message ----- > > From: "k Macy" > > To: "Matthew" ; > > Sent: Monday, February 11, 2002 9:56 PM > > Subject: Re: sysv semaphore > > > > > > > Look at the posix shmem and sem functions: > > > shm_open > > > shm_unlink > > > > > > sem_open, sem_close, sem_post etc. > > > > > > --- Matthew wrote: > > > > Is there a sysv semphore/shmem implementation using > > > > mmap available for FreeBSD? I need a userland > > > > based sysv > > > > sem/shm library to write a little project, any > > > > pointers? > > > > > > > > Many thanks in advance > > > > > > > > Matt > > > > -------------------------------------------------- > > > > WWW.XGFORCE.COM - > > > > The Next Generation Server Clustering > > > > and Enterprise Firewall/VPN Solutions. > > > > -------------------------------------------------- > > > > > > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > > > with "unsubscribe freebsd-hackers" in the body of > > > > the message > > > > > > > > > > > > > > > > > __________________________________________________ > > > Do You Yahoo!? > > > Send FREE Valentine eCards with Yahoo! Greetings! > > > http://greetings.yahoo.com > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > > with "unsubscribe freebsd-hackers" in the body of the message > > > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-hackers" in the body of the message > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message