From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,aff0409752fe7f8b X-Google-Attributes: gidfee84,public From: lionel@quark.enet.dec.com (Steve Lionel) Subject: Re: OSF Fortran Shared Memory Date: 1995/04/11 Message-ID: <3me5bv$2nh@jac.zko.dec.com>#1/1 X-Deja-AN: 100181216 distribution: world references: <3mbphb$m10@reznor.larc.nasa.gov> organization: Digital Equipment Corporation, Nashua NH keywords: OSF Fortran Shared Memory reply-to: lionel@quark.enet.dec.com (Steve Lionel) newsgroups: comp.unix.osf.osf1 In article <3mbphb$m10@reznor.larc.nasa.gov>, al@ird88ka.larc.nasa.gov (A. Langlois) writes: |> |> 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. [Note - you separately posted this to comp.lang.fortran, where I also answered it. If your posting software supports it, please consider cross-posting one submission to multiple groups at once so that any followup is visible in all groups.] Use mmap(2) for this purpose - see the mmap man page for details. You'll need to add padding on either side of the variable to make sure you can map a page-aligned section of memory. -- Steve Lionel Mail: lionel@quark.enet.dec.com DEC Fortran Development WWW: http://www.digital.com/info/slionel.html Digital Equipment Corporation CompuServe: 75263,3001 110 Spit Brook Road, ZKO2-3/N30 Nashua, NH 03062-2698 "Free advice is worth every cent" For a summary of Digital's Internet services, send mail to info@digital.com