From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,aff0409752fe7f8b,start X-Google-Attributes: gidfee84,public From: al@ird88ka.larc.nasa.gov (A. Langlois) Subject: OSF Fortran Shared Memory Date: 1995/04/10 Message-ID: <3mbphb$m10@reznor.larc.nasa.gov>#1/1 X-Deja-AN: 100181191 distribution: world organization: NASA Langley Research Center, Hampton, VA USA keywords: OSF Fortran Shared Memory newsgroups: comp.unix.osf.osf1 What I am really after is a way to declare a common in Fortran ( common /xxx/ i(100) ) and use the 'shm_get / shmat' pair to make that common a global shared memory segment for other processes to use. I tried to pass the address ( in above common) of the 1st element of the common area to a C-function that did a 'shmget (worked fine)' and a 'shmat ( failed with "not enough memory" ... errno = 12 '. When I did the same thing on another system years ago there was a way to use link (ld) command directives to make the address of the common a global external symbol etc. Any examples ... referneces to Fortran/OSF experts would be appreciated. Thanks, Allen Langlois Wyle Labs. (804)-864-4682 (NASA) (804)-865-0000 x396 (Wyle) (804)-865-8116 FAX (Wyle) a.j.langlois@larc.nasa.gov