Subject: Re: pkg/13033: samba under 1.5
To: Johnny C. Lam <>
From: Martin Husemann <>
List: netbsd-bugs
Date: 05/24/2001 23:44:52
> Hmmm...this is troubling, since the shmget(2) manpage suggests that
> IPC_{R,W} are part of the interface exported by <sys/shm.h> and not
> protected y _KERNEL.  I'll make another fix for samba, but this may be
> something wrong in NetBSD 1.5.

The man page is misleading (or even wrong). Just use octal constants with the
well known meanings, #ifndef SHM_R. Current only recently got the SHM_R and
SHM_W defines, and IPC_R/IPC_W are #ifdef _KERNEL there still. But note
the comment on the SHM_R/SHM_W definition:

 * Provided for source compatibility only; do not use in new code!