*BSD News Article 68796


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.cs.su.oz.au!metro!metro!munnari.OZ.AU!news.ecn.uoknor.edu!news.eng.convex.com!newshost.convex.com!bcm.tmc.edu!news.msfc.nasa.gov!newsfeed.internetmci.com!iol!tank.news.pipex.net!pipex!dispatch.news.demon.net!demon!jraynard.demon.co.uk!not-for-mail
From: james@jraynard.demon.co.uk (James Raynard)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: shmget() : SHM_R and SHM_W flags not defined?
Date: 17 May 1996 22:59:22 -0000
Organization: A FreeBSD Box
Lines: 19
Message-ID: <4nj0ca$rgn@jraynard.demon.co.uk>
References: <4nghvr$huo@news.csus.edu>
NNTP-Posting-Host: localhost.demon.co.uk
X-NNTP-Posting-Host: jraynard.demon.co.uk

In article <4nghvr$huo@news.csus.edu>,
WEE-KING LEONG <wleong@mercury.sfsu.edu> wrote:
>
>These two flags are defined in shm.h in SunOS. And Richard Stevens's
>book "Advance Programming in UNIX" also mentioned these flags. Why
>are they missing from the FreeBSD shm.h?

They're not. In /usr/include/sys/shm.h on 2.1.0, you'll find:-

#define SHM_R       (IPC_R)
#define SHM_W       (IPC_W)

However, you'll have noticed that Stevens is not exactly enthusiastic
about System V IPC - and with good reason IMO.

-- 
James Raynard, Edinburgh, Scotland
jraynard@dial.pipex.com
james@jraynard.demon.co.uk