Xref: utzoo comp.unix.questions:7469 comp.lang.c:10604 Path: utzoo!dciem!nrcaer!scs!spl1!laidbak!att!alberta!ubc-cs!uw-beaver!mit-eddie!bloom-beacon!tut.cis.ohio-state.edu!cs.utexas.edu!ut-sally!ut-emx From: johnk@juniper.UUCP (John Knutson) Newsgroups: comp.unix.questions,comp.lang.c Subject: Re: IPC_PRIVATE in shared memory Message-ID: <2724@juniper.UUCP> Date: 2 Jun 88 23:42:33 GMT Article-I.D.: juniper.2724 References: <1120@vsedev.VSE.COM> Reply-To: johnk@juniper.UUCP (John Knutson) Organization: Austin UNIX Users' Group, Austin, TX Lines: 30 In article <1120@vsedev.VSE.COM> logan@vsedev.VSE.COM (James Logan III) writes: >I am unable to find any documentations at all on the >IPC_PRIVATE key that can be passed to the shmget() >system call. try the unix system V programmer's guide. >IPC_PRIVATE is defined in /usr/include/sys/ipc.h and >has only one ambiguous comment, "private key". Does >this mean that the region that I attach will be >accessable only to my process? If so, what is the >point to bothering the operating system for shared >memory when the malloc() function yields the same >results? the sysV programmer's guide says: " There is also a provision for specifying a key of value zero which is known as the private key (IPC_PRIVATE = 0); when specified, a new msqid is always returned with an associated message queue and data structure created for it unless a system tunable parameter would be exceeded. When the ipcs command is performed, for security reasons the KEY field for the msqid is all zeros." this doesn't explain much to me, but i hope it does you some good... (i'm using ipc messages to write a multi-person chat program) -- John Knutson ihnp4!ut-sally!ut-emx!juniper!johnk Build on the work of others -Unix System V Programmer's Guide Rack your brains on interpreting other people's code -Me Go psycho trying to understand the code you wrote just weeks ago -Me