🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.atari.st
Article #36172

Open descriptors (was Re: Fast program loading with RELOC)

#36172
From: Howard Chu
Date: Thu, 26 Jan 1989 21:52
19 lines
1576 bytes
In article <930@philmds.UUCP> leo@philmds.UUCP (Leo de Wit) writes:
%There is one little gotcha with programs marked 'position-independent':
%the program file that was just read in, is left open. This is a bug in
%the old Roms; it could well be solved in TOS 1.4. In practice this
%means you can run about 43 of these programs, and then you're out of
%file descriptors 8-(. Also when you try to run a non-program file (not
%0x601a as the first word), GEMDOS correctly generates an error, but
%leaves the file open.
%
That's interesting to know. Not something to rely on, I suppose. Otherwise
it'd make for a decent way to code self-unpacking archives, like MSDOS does...
(Then you don't have to worry about what the file was named, or where it
was invoked from, you just find the descriptor and read from it....)
--
  /
 /_ , ,_.                      Howard Chu
/ /(_/(__                University of Michigan
    /           Computing Center          College of LS&A
   '              Unix Project          Information Systems
Technical Details
Message-ID: <561@stag.math.lsa.umich.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!attcan!uunet!lll-winken!ames!mailrus!um-math!hyc
References: <80497@felix.UUCP> <930@philmds.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!attcan!uunet!lll-winken!ames!mailrus!um-math!hyc
From: hyc@math.lsa.umich.edu (Howard Chu)
Newsgroups: comp.sys.atari.st
Subject: Open descriptors (was Re: Fast program loading with RELOC)
Message-ID: <561@stag.math.lsa.umich.edu>
Date: 26 Jan 89 21:52:01 GMT
References: <80497@felix.UUCP> <930@philmds.UUCP>
Sender: usenet@math.lsa.umich.edu
Reply-To: hyc@math.lsa.umich.edu (Howard Chu)
Organization: University of Michigan Math Dept., Ann Arbor
Lines: 19
UUCP-Path: {mailrus,umix}!um-math!hyc