From: "Rego, P." <pvrego@gmail.com>
Subject: Re: How To Create And Use Memory Map Files
Date: Sun, 17 Feb 2019 14:41:24 -0800 (PST)
Date: 2019-02-17T14:41:24-08:00 [thread overview]
Message-ID: <8dca69e5-66d2-4c30-98fc-a0fda3f451cd@googlegroups.com> (raw)
In-Reply-To: <65487ca1-3a41-4acf-a36d-8ec62fcf5c28@googlegroups.com>
> How does Ada do memory map files? Can you give me a few small, but easy to read, programs showing the various aspects of using memory map files in Ada?
If I understood you well, you are referring to those Linux memory areas mapped into files under the OS. If so, you can treat them as usual files, eg
with Text_IO;
with Ada.Exceptions;
...
declare
Full_Name : constant String := "/etc/somefile";
Curr_File : Text_IO.File_Type;
Cmd : constant String := "5";
begin
Text_IO.Open (Curr_File, Text_IO.Out_File, Full_Name);
Text_IO.Put_Line (Curr_File, Cmd);
Text_IO.Close (Curr_File);
exception
when The_Error : others =>
Text_IO.Put_Line("!!! "&Ada.Exceptions.Exception_Information (The_Error));
end;
next prev parent reply other threads:[~2019-02-17 22:41 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-16 19:40 How To Create And Use Memory Map Files Michael390@gmail.com
2019-02-16 19:58 ` Simon Wright
2019-02-16 21:13 ` Per Sandberg
2019-02-16 21:34 ` Dmitry A. Kazakov
2019-02-17 22:41 ` Rego, P. [this message]
2019-02-18 8:19 ` Dmitry A. Kazakov
2019-02-18 9:31 ` Rego, P.
2019-02-18 10:23 ` Dmitry A. Kazakov
2019-02-18 10:44 ` Niklas Holsti
2019-02-19 9:26 ` Patrick Jakubowski
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox