🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2
Article #449

Re: Read only segments

#449
From: Robert Dickinson
Date: Mon, 09 Apr 1990 21:36
25 lines
1306 bytes
alistair@microsoft.UUCP (Alistair BANKS) writes:

>In article <1827@neon.siesoft.co.uk> steve@siesoft.co.uk () writes:
>>
>>    Does anyone know how to allocate a read only segment (like the segment
>>returned by DosGetInfoSeg) ?

>This is not a feature of 1.x, but is added to os/2 2.0

>Alistair Banks
>OS/2 Group
>Microsoft

Yes, you can consider this a cheap kludge, but if you really need to make a 
segment read-only, then you might consider doing a DosGetCSAlias for it.
This creates a selector (normally considered to runable code) which enforces
the read only property for that segment. You should consider, however, if 
there are any additional repurcussions of doing this that might be prohibitive.

Not knowing what your usage is, this might present an alternative until
OS/2 2.0 comes out with a clean solution.

  Rob Dickinson
  Distributed Systems Division
  3Com Corporation
Technical Details
Message-ID: <3517@3comvax.SPD.3Com.Com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!jarthur!bridge2!3comvax!robd
References: <1827@neon.siesoft.co.uk> <53984@microsoft.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!jarthur!bridge2!3comvax!robd
From: robd@vax.SPD.3Com.Com (Robert Dickinson)
Newsgroups: comp.os.os2
Subject: Re: Read only segments
Message-ID: <3517@3comvax.SPD.3Com.Com>
Date: 9 Apr 90 21:36:23 GMT
References: <1827@neon.siesoft.co.uk> <53984@microsoft.UUCP>
Organization: 3Com Corp., Santa Clara, CA
Lines: 25