Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!mephisto!prism!gt0178a From: gt0178a@prism.gatech.EDU (BURNS,JIM) Newsgroups: comp.unix.internals Subject: Re: shmat() & shmdt() questions. Message-ID: <13783@hydra.gatech.EDU> Date: 18 Sep 90 09:59:18 GMT References: <13782@hydra.gatech.EDU> Organization: Georgia Institute of Technology Lines: 12 in article <13782@hydra.gatech.EDU>, I write: > myshmid = shmget (some-made-up-not-in-use-int-id, 4096, IPC_CREAT|600); ^^^ I suppose that should actually be 'long', as in 'key_t'. I actually normally use an ascii representation of a 4-char string (assuming key_t=long). E.g. - if I want the key to be 'phs1', I use '0x70687331'. -- BURNS,JIM Georgia Institute of Technology, Box 30178, Atlanta Georgia, 30332 uucp: ...!{decvax,hplabs,ncar,purdue,rutgers}!gatech!prism!gt0178a Internet: gt0178a@prism.gatech.edu