Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 May 2009 14:15:59 +0200
From:      =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@des.no>
To:        Nikos Ntarmos <ntarmos@cs.uoi.gr>
Cc:        arch@freebsd.org
Subject:   Re: Posix shared memory problem
Message-ID:  <86prefomww.fsf@ds4.des.no>
In-Reply-To: <20090510194133.GG20749@ace.cs.uoi.gr> (Nikos Ntarmos's message of "Sun, 10 May 2009 22:41:33 %2B0300")
References:  <mit.lcs.mail.freebsd-arch/588815840.20090509203115@scriptolutions.com> <mit.lcs.mail.freebsd-arch/20090509200724.GA25714@stack.nl> <200905100500.n4A50GOa050728@hergotha.csail.mit.edu> <20090510194133.GG20749@ace.cs.uoi.gr>

next in thread | previous in thread | raw e-mail | index | archive | help
Nikos Ntarmos <ntarmos@cs.uoi.gr> writes:
> FWIW the test code in the original email still fails even if an absolute
> path is used as a sem name, ie:
> 	sem_t *s =3D sem_open("/path/to/foobar", O_CREAT | O_EXCL, S_IWUSR, 0);
> with /path/to/foobar pointing to a user writable directory, segfaults
> with "invalid system call".

As previously mentioned, 'kldload sem'.

To forestall any further gripes about the POSIX IPC system calls not
being compiled in by default: they are very rarely used, because the
SysV IPC API is almost universally available and is generally considered
superior to the POSIX API, which it predates by more than ten years.
The SysV IPC system calls are in GENERIC, and are used by e.g. Sendmail,
X.org and PostgreSQL.

DES
--=20
Dag-Erling Sm=C3=B8rgrav - des@des.no



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