home *** CD-ROM | disk | FTP | other *** search
/ Carousel Volume 2 #1 / carousel.iso / mactosh / tech / insidema.txt < prev    next >
Text File  |  1986-02-28  |  3KB  |  73 lines

  1. 24-Feb-86 15:54:00-PST,3188;000000000011
  2. Return-Path: <BOYD%TAMLSR.BITNET@WISCVM.WISC.EDU>
  3. Received: from WISCVM.WISC.EDU by SUMEX-AIM.ARPA with TCP; Mon 24 Feb 86 15:48:49-PST
  4. Received: from (BOYD)TAMLSR.BITNET by WISCVM.WISC.EDU on 02/24/86 at
  5.   17:45:41 CST
  6. Date: 24 FEB 86 17:46-CST
  7. From:  BOYD%TAMLSR.BITNET@WISCVM.WISC.EDU
  8. To:  INFO-MAC@SUMEX-AIM.ARPA
  9. Subject: missing page in Inside Macintosh
  10.  
  11. I just received a letter from Addison Wesley, publishers of Inside Macintosh.
  12. Someone had asked earlier whether they would provide a correction for the
  13. missing page II-91.  Well, they actually did!  In the interest of helping
  14. disseminate the corrections, the page follows.  If you are wondering how they
  15. got my address, I won my copy of IM at the Macworld Expo in San Francisco.
  16. -------------------------------------------------------------------------
  17.                                                          The File Manager
  18.  
  19. Result codes   noErr        No error
  20.                bdNamErr     Bad file name
  21.                dupFNErr     Duplicate file name and version
  22.                dirFulErr    File directory full
  23.                extFSErr     External file system
  24.                ioErr        I/O error
  25.                nsvErr       No such volume
  26.                vLckdErr     Software volume lock
  27.                wPrErr       Hardware volume lock
  28.  
  29. FUNCTION FSOpen (fileName: Str255; vRefNum:  INTEGER; VAR refNum:
  30.            INTEGER)  :  OSErr;  [Not in ROM]
  31.  
  32. FSOpen creates an access path to the file having the name fileName on the
  33. volume specified by vRefNum.  A path reference number is returned in refNum.
  34. The access path's read/write permission is set to whatever the file's open
  35. permission allows.
  36.  
  37. Result codes   noErr        No error
  38.                bdNamErr     Bad file name
  39.                extFSErr     External file system
  40.                fnfErr       File not found
  41.                ioErr        I/O error
  42.                nsvErr       No such volume
  43.                opWrErr      File already open for writing
  44.                tmfoErr      Too many files open
  45.  
  46. FUNCTION OpenRF (fileName: Str255; vRefNum: INTEGER; VAR refNum:
  47.            INTEGER)  :  OSErr;  [Not in ROM]
  48.  
  49. OpenRF is similar to FSOpen; the only difference is that OpenRF opens the
  50. resource fork of the specified file rather than the data fork.  A path
  51. reference number is returned in refNum.  The access path's read/write
  52. permission is set ot whatever the file's open permission allows.
  53.  
  54.   NOTE:  Normally you should access a file's resource fork through the
  55.   routines of the Resource Manager rather than the File Manager.  OpenRF
  56.   doesn't read the resource map into memory;  it's really only useful for
  57.   block-level operations such as copying files.
  58.  
  59. Result codes   noErr        No error
  60.                bdNamErr     Bad file name
  61.                extFSErr     External file system
  62.                fnfErr       File not found
  63.                ioErr        I/O error
  64.                nsvErr       No such volume
  65.                opWrErr      File already open for writing
  66.                tmfoErr      Too many files open
  67.  
  68.  
  69.  
  70.                                    High-level File Manager Routines II-91
  71.  
  72.  
  73.