Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 9 May 2009 19:42:31 +0200
From:      Gary Jennejohn <gary.jennejohn@freenet.de>
To:        Lothar Scholz <scholz@scriptolutions.com>
Cc:        freebsd-arch@freebsd.org
Subject:   Re: Are named posix semaphores not implemented?
Message-ID:  <20090509194231.57543f41@lap.jennejohn.org>
In-Reply-To: <976698487.20090509182307@scriptolutions.com>
References:  <976698487.20090509182307@scriptolutions.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 9 May 2009 18:23:07 +0200
Lothar Scholz <scholz@scriptolutions.com> wrote:

> Hello,
> 
> i tried to port a program using PCBSD based on FreeBSD 7.1
> and the small test program
> 
> #include <semaphore>
> #include <stdio.h>
> #include <fcntl.h>
> 
> int main() {
>    sem_t* s = sem_open("foobar", O_CREAT|O_EXCL);
>    if (s == SEM_FAILED) perror("sem_open");
> }
> 
> raises a "bad system call 12" signal
> But from the manpage of sem_open tells me that it should
> be there since FreeBSD 5.0?
> 
> Please don't tell me that i have to rewrite the code.
> 

According to the man page name MUST start with '/'.

---
Gary Jennejohn



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