🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.sun
Article #13749

Shared memory in SunOS

#13749
From: Wilson SHEK
Date: Sun, 11 Feb 1990 04:30
12 lines
1122 bytes
I am having some trouble with the system call shmget(). When I tried to
get a new segment of memory for sharing, the function was called as shmid
= shmget(IPC_PRIVATE,1024,0666). Shmid got a returned value of -1 and the
error was invalid argument. What have I done wrong?

Since shared memory is a System V feature, do I have to set anything
special in the normal cc command? I am using SunOS 4.0_Export on a SUN
3/50.  Any help would be appreciated.

|  Wilson  SHEK                     |  ACSnet   : shek@mullian.ee.mu.oz       |
|  Department of Elec Engineering   |  internet : shek@mullian.ee.mu.oz.au    |
|  University of Melbourne          |  uunet    : uunet!munnari!mullian!shek  |
Technical Details
Message-ID: <4926@brazos.Rice.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!rice!sun-spots-request

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!rice!sun-spots-request
From: shek@mullian.ee.mu.oz.au (Wilson SHEK)
Newsgroups: comp.sys.sun
Subject: Shared memory in SunOS
Keywords: SunOS
Message-ID: <4926@brazos.Rice.edu>
Date: 11 Feb 90 04:30:31 GMT
Sender: root@rice.edu
Organization: Sun-Spots
Lines: 12
Approved: Sun-Spots@rice.edu
X-Sun-Spots-Digest: Volume 9, Issue 41, message 6