🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer
Article #3579

Re: Does OS/2 support Memory Mapped Files ?

#3579
From: Kai Uwe Rommel
Date: Sat, 23 Jan 1993 16:18
24 lines
1510 bytes
In article <1jo2g2INNs9e@neuro.usc.edu> merlin@neuro.usc.edu (merlin) writes:
>Does OS/2 2.1 beta support memory mapped files for user processes?

Not as far as I know.

>I'd like to access a file of 3D brain map data as though it is one
>large array in memory.  I don't want to read those portions of the
>file which I don't touch.

If you are using C++, you could write a MemoryMappedArray class that
overloads the array subscript [] operator (as well as the
constructor/destructor for opening/closing the file) appropriately.
You will not gain efficiency (that would require memory mapped file
support in the kernl), but an easy programming interface.

Kai Uwe Rommel

--
/* Kai Uwe Rommel                                      Muenchen, Germany *
 * rommel@jonas.gold.sub.org                       Phone +49 89 723 4101 *
 * rommel@informatik.tu-muenchen.de                  Fax +49 89 723 7889 */

DOS ... is still a real mode only non-reentrant interrupt
handler, and always will be.                -Russell Williams
Technical Details
Message-ID: <727805912rommel.root@jonas.gold.sub.org>
Path: arc1-ca.pugleaf.net!sparky!uunet!olivea!inews.Intel.COM!imutm1.de.intel.com!gold.sub.org!jonas.gold.sub.org!rommel
References: <C17Kwo.7E7@techbook.com> <1jo2g2INNs9e@neuro.usc.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!olivea!inews.Intel.COM!imutm1.de.intel.com!gold.sub.org!jonas.gold.sub.org!rommel
From: rommel@jonas.gold.sub.org (Kai Uwe Rommel)
Newsgroups: comp.os.os2.programmer
Subject: Re: Does OS/2 support Memory Mapped Files ?
Message-ID: <727805912rommel.root@jonas.gold.sub.org>
Date: 23 Jan 93 16:18:32 GMT
References: <C17Kwo.7E7@techbook.com> <1jo2g2INNs9e@neuro.usc.edu>
Sender: root@jonas.gold.sub.org
Organization: Private
Lines: 24