shmat() & shmdt() questions.

BURNS,JIM gt0178a at prism.gatech.EDU
Tue Sep 18 19:59:18 AEST 1990


in article <13782 at 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 at prism.gatech.edu



More information about the Comp.unix.internals mailing list