home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!europa.asd.contel.com!darwin.sura.net!wupost!waikato.ac.nz!canterbury.ac.nz!otago.ac.nz!aipost
- Newsgroups: comp.unix.questions
- Subject: Shared memory baby question on ultrix 4.2
- Message-ID: <1992Aug17.152207.3268@otago.ac.nz>
- From: aipost@otago.ac.nz
- Date: 17 Aug 92 15:22:07 +1300
- Organization: University of Otago, Dunedin, New Zealand
- Lines: 34
-
- Help Help Help
-
- !!!! please e-mail me at deano@piglet.otago.ac.nz not the posting address
-
- I don't understand shared memory. Sorry, but all I can find in the
- documentation for our DECstations is the man pages which tell me what to use
- and what to pass but not HOW to use ?!?!?!?!?!?
-
- I am using Ultrix 4.2 etc ...... on DECstation 5000/200's
-
- at the moment I do this :
-
- key = ftok("/tmp", 'a');
- shmid = shmget(key, 64, IPC_CREAT | IPC_EXCL);
- s = shmat(shmid, 0, SHM_R | SHM_W);
-
- *s = 1; /* BARF BARF BARF, kernel acces since s == -1 */
-
- help help help
-
- sorry this is probably a really dumb question on the wrong roup
- but hey it's all I know how to do !!!!
-
- deano
-
- p.s: please e-mail me at deano@piglet.otago.ac.nz not the posting address
- --
- ==============================================================================
-
- "The AI Kids"
- Department of Computer Science
- University of Otago
- New Zealand
- Internet: AIPOST@otago.ac.nz
-