Subject: Re: Trouble with semaphores
To: tld <tld@tld.digitalcurse.com>
From: =?iso-8859-2?Q?Micha=B3?= Pasternak <doc@lublin.t1.pl>
List: tech-pkg
Date: 04/20/2002 12:54:54
tld [Sat, Apr 20, 2002 at 01:49:15PM +0100]:
> Hello.
> I'm trying to port a package from FreeBSD, and I'm having troubles 
> finding mappings for semaphores calls.
> The package (freevrrpd) includes <semaphore.h> and uses (at least):
> sem_t
> sem_post()
> sem_init()
> sem_wait()

FreeBSD box$ man sem_wait
NAME
     sem_wait, sem_trywait - decrement (lock) a semaphore
     
LIBRARY
      Reentrant C Library (libc_r, -pthread)
	  
Add pth package to your NetBSD box, s/sem/pth/, off you go.

But I may be very wrong here, use my advice at your own risk.

-- 
/* Micha³ Pasternak, http://pasternak.w.lub.pl, +48606570000 */