home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!munnari.oz.au!uniwa!cujo!peter
- From: peter@cujo.curtin.edu.au (Peter N Lewis)
- Subject: Re: HOpenResFile and HOpenRF supported by glue in System 6?
- Message-ID: <1993Jan11.032740.19123@cujo.curtin.edu.au>
- Organization: Curtin University of Technology
- References: <1993Jan4.180928.1@lure.latrobe.edu.au> <1993Jan9.201619.1240@netcom.com> <C0Ltw3.FrH@news.udel.edu> <1993Jan10.060648.3821@netcom.com>
- Date: Mon, 11 Jan 1993 03:27:40 GMT
- Lines: 32
-
- jimlynch@netcom.com (Jim Lynch) writes:
-
- >In article <C0Ltw3.FrH@news.udel.edu> kurisuto@chopin.udel.edu (Sean J. Crist) writes:
- >>Well, the title basically says it all: are all of the various H... calls
- >>supported by glue when my application is running in System 6.x? IM VI
- >>documents these calls (pg. 23-36) but doesn't make it clear when these calls
- >>began to be supported. (HOpenRF didn't exist in IM IV, where it was a
- >>low-level call.) I want to support both System 6 and 7, which means I can't
- >>use the FS... calls, but I also don't want to use the old calls which don't
- >>support a dirID.
-
- >Question: Is this accurate, the FS... file system calls don't work under system
- >7? Or, are there other reasons to avoid them in syst. 7?
-
- I think Sean meant the FSp calls.
-
- The FS calls are supported by the glue in both 6 & 7
- The H calls are supported by the glue in both 6 & 7.
- The FSp calls are supported only under 7 (I think they are traps, but
- its not really relevent).
-
- IMO, the best solution is to use FSSpecs, and then call the H routines,
- eg:
- err := HOpen(fs.vRefNum, fs.parID, fs.name, fsRdPerm, refnum);
- (assuming you want System 6 compatibility. Cal FSpOpen if you don't
- want System 6 compatibility).
-
- Have fun,
- Peter.
- --
- _______________________________________________________________________
- Peter N Lewis <peter@ncrpda.curtin.edu.au> Ph: +61 9 368 2055
-