Posix shared memory problem

Dag-Erling Smørgrav des at des.no
Mon May 11 12:16:01 UTC 2009

Nikos Ntarmos <ntarmos at 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 = 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.

Dag-Erling Smørgrav - des at des.no

More information about the freebsd-arch mailing list