Date: Wed, 10 Apr 1996 10:27:44 -0700 (PDT) From: Cove Schneider <cove@brazil.nbn.com> To: questions@freebsd.org Subject: shmget(2) question. Message-ID: <199604101727.KAA10102@brazil.nbn.com>
next in thread | raw e-mail | index | archive | help
In the shmget() man page it says:
SHMGET(2) UNIX Programmer's Manual SHMGET(2)
NAME
shmget - obtain a shared memory identifier
SYNOPSIS
#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/shm.h>
int
shmget(key_t key, int size, int flag)
[....]
The mode of a newly created IPC object is determined by OR'ing the fol-
lowing constants into the flag parameter:
SHM_R Read access for user.
SHM_W Write access for user.
(SHM_R>>3) Read access for group.
[....]
But SHM_R and SHM_W are never defined in sys/shm.h or anywhere
else. Stevens APUE p. 467: uses SHM_R and SHM_W. Is this a bug in
the shmget(2) man page, are these missing from the header files?
I discovered that the defines existed under Solaris.
This doesn't seem very nice.. Can any one help me out on this one?
Thanks,
Cove
--
Cove Schneider / North Bay Network - Hacker / cove@nbn.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199604101727.KAA10102>
