shek@mullian.ee.mu.oz.au (Wilson SHEK) (02/11/90)
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 |
guym@ibmpcug.co.uk (Guy Martin) (02/22/90)
In article <4926@brazos.Rice.edu> shek@mullian.ee.mu.oz.au (Wilson SHEK) writes: > > 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. SunOS needs to have System V shared memory (and message queues and semaphores) installed into the kernal. It is part of the options section of the kernal configuration file. options IPCSHMEM # Shared memory options IPCMESSAGE # Message queues options IPCSEMAPHORE # Semaphores These will include the necessary drivers in the kernal. Hope this is of some help Guy Martin guym@ibmpcug.co.uk Phoenix Business Forms Ltd guym%ibmpcug.co.uk@uunet.uu.net Mallard Close {backbone}!ukc!slxsys!ibmpcug!guym Acocks Green, Birmingham B27 6BW ENGLAND