Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.EDU.AU!munnari.OZ.AU!news.hawaii.edu!news.uoregon.edu!news.sol.net!uwm.edu!math.ohio-state.edu!news.cyberstore.ca!skypoint.com!newshub.tc.umn.edu!zib-berlin.de!irz401!uriah.heep!news From: j@uriah.heep.sax.de (J Wunsch) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: shmget() : SHM_R and SHM_W flags not defined? Date: 17 May 1996 21:45:35 GMT Organization: Private BSD site, Dresden Lines: 22 Message-ID: <4nis1v$76a@uriah.heep.sax.de> References: <4nghvr$huo@news.csus.edu> Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) NNTP-Posting-Host: localhost.heep.sax.de Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Newsreader: knews 0.9.6 X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E wleong@mercury.sfsu.edu (WEE-KING LEONG) 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 are no longer missing. :) Basically, it's just: #define SHM_R (IPC_R) #define SHM_W (IPC_W) only. I think you need to untangle the IPC_R and IPC_W flags, they were hidden inside #ifdef KERNEL previously. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)