home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / question / 10118 < prev    next >
Encoding:
Internet Message Format  |  1992-08-16  |  1.4 KB

  1. Path: sparky!uunet!europa.asd.contel.com!darwin.sura.net!wupost!waikato.ac.nz!canterbury.ac.nz!otago.ac.nz!aipost
  2. Newsgroups: comp.unix.questions
  3. Subject: Shared memory baby question on ultrix 4.2
  4. Message-ID: <1992Aug17.152207.3268@otago.ac.nz>
  5. From: aipost@otago.ac.nz
  6. Date: 17 Aug 92 15:22:07 +1300
  7. Organization: University of Otago, Dunedin, New Zealand
  8. Lines: 34
  9.  
  10. Help Help Help
  11.  
  12. !!!! please e-mail me at deano@piglet.otago.ac.nz not the posting address
  13.  
  14. I don't understand shared memory.  Sorry, but all I can find in the
  15. documentation for our DECstations is the man pages which tell me what to use
  16. and what to pass but not HOW to use ?!?!?!?!?!?
  17.  
  18. I am using Ultrix 4.2 etc ...... on DECstation 5000/200's
  19.  
  20. at the moment I do this :
  21.  
  22. key = ftok("/tmp", 'a');
  23. shmid = shmget(key, 64, IPC_CREAT | IPC_EXCL);
  24. s = shmat(shmid, 0, SHM_R | SHM_W);
  25.  
  26. *s = 1; /* BARF BARF BARF, kernel acces since s == -1 */
  27.  
  28. help help help 
  29.  
  30. sorry this is probably a really dumb question on the wrong roup
  31. but hey it's all I know how to do !!!!
  32.  
  33. deano
  34.  
  35. p.s: please e-mail me at deano@piglet.otago.ac.nz not the posting address
  36. -- 
  37. ==============================================================================
  38.  
  39.                               "The AI Kids"
  40.                      Department of Computer Science
  41.                            University of Otago
  42.                                New Zealand
  43.                        Internet: AIPOST@otago.ac.nz
  44.