[comp.sys.apollo] Open File of Type "nil"

zjls13@cad10.trc.amoco.com (Sills) (11/07/90)

How do I open and read a file of type "nil" in SR9.7?

Thanks for the help!


jsills@trc.amoco.com

krowitz@RICHTER.MIT.EDU (David Krowitz) (11/07/90)

Under SR9.7, you must use the MS_$MAPxxx routines to open an arbitrary file
of type NIL. If you know what is in the file (ie. a GMR-2D metafile), you
can use the particular library that created the file (ie. GMR_$OPEN).


 -- David Krowitz

krowitz@richter.mit.edu   (18.83.0.109)
krowitz%richter.mit.edu@eddie.mit.edu
krowitz%richter.mit.edu@mitvma.bitnet
(in order of decreasing preference)

rees@pisa.ifs.umich.edu (Jim Rees) (11/08/90)

In article <2297@apctrc.UUCP>, zjls13@cad10.trc.amoco.com (Sills) writes:

  How do I open and read a file of type "nil" in SR9.7?

You could use ms_$mapl().  Or, if you are very industrious, you could use
ios_$connect_xoid() to get a file descriptor that could be used by read().
But the best way is to upgrade to sr10 or later.  Then you can just open()
and read().

Or you can cheat and use 'obty' to change the type to unstruct.