From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a744520307161f16,start X-Google-Attributes: gid103376,public From: "David C. Hoos, Sr." Subject: Re: MMAP in ADA? Date: 1999/11/04 Message-ID: <7vtjfv$4e1$1@oak.prod.itd.earthlink.net>#1/1 X-Deja-AN: 544664832 Content-Transfer-Encoding: 7bit References: <38223922.7763122E@boeing.com> X-Posted-Path-Was: not-for-mail X-Priority: 3 Content-Type: text/plain; charset="iso-8859-1" X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 X-ELN-Date: 5 Nov 1999 03:38:39 GMT X-ELN-Insert-Date: Thu Nov 4 19:45:14 1999 Organization: Ada95 Press, Inc. X-MSMail-Priority: Normal Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 1999-11-04T00:00:00+00:00 List-Id: Robert Jordan wrote in message news:38223922.7763122E@boeing.com... > Does ADA95 have anything equivalent to the Unix mmap() function? I > would like to create a simple cross process memory region to interface a > tk gui (with a c front end) to a much larger ADA process for displaying > screen oriented status and for issuing stringified commands to the ADA > process. I would like to use a filename as the common point so that > each process can avoid any common knowledge of each other. > > And yes... I know I could just pragma import the unix mmap function, but > I'm trying to avoid all imports in my ADA code (Per instruction). > > Thanks for any info, > Robert Well.... if you read your compiler's library code, you'll find they import lots of stuff from the C runtime libraries. I've done mmap in Ada83 on IRIX (4.01 through 6.2) with no problems, except once SGI changed some #defines in a header file, and we didn't have an automated way to do the header translation, so we missed it. The way we do it today is to use the IEEE-standard POSIX/Ada95 bindings provided by Florida State University and supported by ACT. Perhaps if it's genuine POSIX, and meets the requirements of the IEEE-standard, maybe the fact that underneath it's really imported will be acceptable to your "instructor."