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.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 2002:a02:1a8a:: with SMTP id 132mr16372417jai.14.1550568376496; Tue, 19 Feb 2019 01:26:16 -0800 (PST) X-Received: by 2002:aca:4b89:: with SMTP id y131mr304642oia.3.1550568376183; Tue, 19 Feb 2019 01:26:16 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.gegeweb.eu!gegeweb.org!usenet-fr.net!proxad.net!feeder1-2.proxad.net!209.85.166.216.MISMATCH!y42no101537ita.0!news-out.google.com!v188ni171itb.0!nntp.google.com!y42no101535ita.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 19 Feb 2019 01:26:15 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=195.60.216.126; posting-account=pBPvIAkAAABbq_Vkcalb_yDwdHwudMUc NNTP-Posting-Host: 195.60.216.126 References: <65487ca1-3a41-4acf-a36d-8ec62fcf5c28@googlegroups.com> <8dca69e5-66d2-4c30-98fc-a0fda3f451cd@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: How To Create And Use Memory Map Files From: Patrick Jakubowski Injection-Date: Tue, 19 Feb 2019 09:26:16 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader01.eternal-september.org comp.lang.ada:55577 Date: 2019-02-19T01:26:15-08:00 List-Id: On Monday, 18 February 2019 11:44:33 UTC+1, Niklas Holsti wrote: > On 19-02-18 10:19 , Dmitry A. Kazakov wrote: >=20 > > In more OSes more advanced than Linux one can have shared memory withou= t > > any files involved. The memory object could even be anonymous if one > > process passes a handle to the memory to another. >=20 > Linux supports the "Unix System V" inter-process communication=20 > mechanisms, including shared memory segments that are not memory-mapped= =20 > files and can be anonymous in the above sense. >=20 > See e.g. http://man7.org/linux/man-pages/man7/svipc.7.html In Linux even memory mapped files are not necessary backed by a file. It ca= n be just pages of memory even without file descriptor. These mappings are = called ANONYMOUS and can be both private to a process or shared between pro= cesses. I did quick look at gnatcoll and that library doesn't support anony= mous mappings.I would make quick C function call to mmap() or modify GNATCO= LL.Mmap package.