From owner-freebsd-questions Wed Apr 10 10:27:57 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id KAA24054 for questions-outgoing; Wed, 10 Apr 1996 10:27:57 -0700 (PDT) Received: from brazil.nbn.com (brazil.nbn.com [199.4.65.205]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id KAA24049 for ; Wed, 10 Apr 1996 10:27:48 -0700 (PDT) Received: (from cove@localhost) by brazil.nbn.com (8.6.12/8.6.12) id KAA10102 for questions@freebsd.org; Wed, 10 Apr 1996 10:27:45 -0700 From: Cove Schneider Message-Id: <199604101727.KAA10102@brazil.nbn.com> Subject: shmget(2) question. To: questions@freebsd.org Date: Wed, 10 Apr 1996 10:27:44 -0700 (PDT) Reply-to: "Cove Schneider" X-Mailer: ELM [version 2.4 PL24 ME8a] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk In the shmget() man page it says: SHMGET(2) UNIX Programmer's Manual SHMGET(2) NAME shmget - obtain a shared memory identifier SYNOPSIS #include #include #include 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