Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!samsung!munnari.oz.au!mullian.ee.mu.OZ.AU!shek From: shek@mullian.ee.mu.OZ.AU (Wilson SHEK) Newsgroups: comp.unix.wizards Subject: Shared memory in SunOS Message-ID: <3162@munnari.oz.au> Date: 11 Feb 90 04:36:58 GMT Sender: news@cs.mu.oz.au Reply-To: shek@mullian.ee.mu.OZ.AU (Wilson SHEK) Organization: Dept. of Electrical Engineering, University of Melbourne Lines: 17 I am having some trouble with the system call shmget(). When I tried to get a 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. Thanks. |~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| | 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 |