comp.lang.ada
 help / color / mirror / Atom feed
From: "David C. Hoos, Sr." <david.c.hoos.sr@ada95.com>
Subject: Re: MMAP in ADA?
Date: 1999/11/04
Date: 1999-11-04T00:00:00+00:00	[thread overview]
Message-ID: <7vtjfv$4e1$1@oak.prod.itd.earthlink.net> (raw)
In-Reply-To: 38223922.7763122E@boeing.com


Robert Jordan <robert.l.jordan@boeing.com> 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."








  reply	other threads:[~1999-11-04  0:00 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-11-05  0:00 MMAP in ADA? Robert Jordan
1999-11-04  0:00 ` David C. Hoos, Sr. [this message]
1999-11-08  0:00   ` Nick Roberts
1999-11-05  0:00 ` Samuel Tardieu
1999-11-05  0:00 ` Robert Dewar
1999-11-05  0:00   ` Robert Jordan
1999-11-06  0:00     ` Robert Dewar
1999-11-08  0:00       ` Samuel T. Harris
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox