hyc@math.lsa.umich.edu (Howard Chu) (01/27/89)
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
c60b-gl@buddy.Berkeley.EDU (Lawrence Y. Chiu) (01/27/89)
I think RELOC comes with a program that patches this little bug. Lawrence Y. Chiu; University of California, Berkeley.