Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!gem.mps.ohio-state.edu!apple!bionet!ames!pasteur!helios.ee.lbl.gov!lbl-csam.arpa!antony From: antony@lbl-csam.arpa (Antony A. Courtney) Newsgroups: comp.sys.atari.st Subject: Re: Programming Hard Drive access? Message-ID: <3867@helios.ee.lbl.gov> Date: 25 Sep 89 23:14:07 GMT References: <3859@helios.ee.lbl.gov> <799@lzaz.ATT.COM> Sender: usenet@helios.ee.lbl.gov Reply-To: antony@lbl-csam.arpa (Antony A. Courtney) Organization: Lawrence Berkeley Laboratory, Berkeley Lines: 29 In article <799@lzaz.ATT.COM> hcj@lzaz.ATT.COM (HC Johnson) writes: >In article <3859@helios.ee.lbl.gov>, antony@lbl-csam.arpa (Antony A. Courtney) writes: >> >> After looking through both the Laser C manual and the 2 Abacus books, I still >> haven't a clue how to go about doing sector level hard drive access from a >> C or assembly language program. Can anyone either tell me how to do this or >> point me to a reference? > >Use Rwabs(rorw,buffer,n,rec,drive) > I appologize. I hadn't worded my aritcle correctly at all. What I really want to know is how I can write sector level access routines which call things like Rwabs() to access files. How can I find out the mapping of files->sectors. I assume this is an intrinisic part of the directory structure, unfortunatley I can not seem to find anything describing how this works. A piece of sample code which uses rwabs() to access a file would be nice. A description of this would also be nice. And if nothing else, a pointer to a reference which describes this would also be appreciated. Thanks! Antony A. Courtney -- ******************************************************************************* Antony A. Courtney antony@lbl.gov Advanced Development Group ucbvax!lbl-csam.arpa!antony Lawrence Berkeley Laboratory AACourtney@lbl.gov