Subject: Re: Trouble with semaphores
To: Eric Jacoboni <jaco@teaser.fr>
From: =?iso-8859-2?Q?Micha=B3?= Pasternak <doc@lublin.t1.pl>
List: tech-pkg
Date: 04/20/2002 13:56:17
Eric Jacoboni [Sat, Apr 20, 2002 at 03:43:38PM +0200]:
> >>>>> "Micha?" == Micha? Pasternak <doc@lublin.t1.pl> writes:
> 
> 
> Micha?> FreeBSD box$ man sem_wait
> Micha?> NAME
> Micha?>      sem_wait, sem_trywait - decrement (lock) a semaphore
>      
> Micha?> LIBRARY
> Micha?>       Reentrant C Library (libc_r, -pthread)
> 	  
> Yes, semaphore.h is part of FreeBSD/OpenBSD/Linux systems...
> 
> Micha?> Add pth package to your NetBSD box, s/sem/pth/, off you go.
> 
> I'm afraid i've not understood what you mean : i do have pth on my
> NetBSD box but, afaik, pth is about pthread, not POSIX semaphores.

Oh, sorry, I just got wrong conclusions after reading FreeBSD manpage.

man 2 semop should give some good clues about semaphores on Net. Sorry.
-- 
/* Micha³ Pasternak, http://pasternak.w.lub.pl, +48606570000 */