Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!gem.mps.ohio-state.edu!usc!henry.jpl.nasa.gov!elroy.jpl.nasa.gov!gryphon!pnet02!lampi From: lampi@pnet02.gryphon.com (Michael Lampi) Newsgroups: comp.sys.apollo Subject: Re: ms_$mapl and fseek/fread Message-ID: <21451@gryphon.COM> Date: 25 Oct 89 19:00:12 GMT Sender: root@gryphon.COM Organization: People-Net [pnet02], Redondo Beach, CA. Lines: 15 The problem with trying to read a file created via ms_$mapl calls using fseek and fread calls is that the file type is 'nil', and the streams manager/IOS doesn't know quite what to do with the fseek or fread call. I suggest that you either create the file with stdio calls or re-implement fseek/fread so they can read both nil and 'normal' filetypes. (This is not as hard as it seems on Apollo systems, since you can layer calls atop the system libraries and call a user-written routine that decides whether or not to call the system routine. See the -INLIB option switch of the binder for further info, or give me a call.) Michael Lampi MDL Corporation (213) 782-7888 UUCP: {ames!elroy, }!gryphon!pnet02!lampi INET: lampi@pnet02.gryphon.com