Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!usc!henry.jpl.nasa.gov!elroy.jpl.nasa.gov!hacgate!ashtate!dbase!cy From: cy@dbase.UUCP (Cy Shuster) Newsgroups: comp.sys.mac.programmer Subject: HFS vs. C stdio Summary: What about open()? Keywords: stdio Tech Note 246 Message-ID: <225@dbase.UUCP> Date: 12 Sep 89 18:55:32 GMT Reply-To: cy@dbase.UUCP (Cy Shuster) Organization: Ashton Tate Development Center Glendale, Calif. Lines: 10 In the recently received Tech Note 246, "Mixing HFS and C File I/O" (thanks to Roger L. Long at the Wolfskill & Dowling residence and comp.binaries.mac), it says not to mix C calls like fopen() with HFS calls. However, is it permissible to mix low level C calls like open() with HFS calls? The MPW 3.0 C manual says it's acceptable as long as you don't close or modify the file pointer by using the reference number. And in fact the FIOREFNUM command to ioctl gives the Mac's vrefnum for the file (see page 126). --Cy--