Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Files /
Chapter 2 - File Manager / File Manager Reference
Low-Level File Access Routines / Updating Files


PBFlushFile

You can use the PBFlushFile function to write the contents of a file's access path buffer.

FUNCTION PBFlushFile (paramBlock: ParmBlkPtr; async: Boolean): 
                        OSErr;
paramBlock
A pointer to a basic FIle Manager parameter block.
async
A Boolean value that specifies asynchronous (TRUE) or synchronous (FALSE) execution.
-->ioCompletionProcPtrA pointer to a completion routine.
<--ioResultOSErrThe result code of the function.
-->ioRefNumIntegerA file reference number.

DESCRIPTION
The PBFlushFile function writes the contents of the access path buffer indicated by ioRefNum to the volume and then updates the file's entry in the volume catalog.

WARNING
Some information stored on the volume won't be correct until PBFlushVol is called.
ASSEMBLY-LANGUAGE INFORMATION
The trap macro for PBFlushFile is _FlushFile.

RESULT CODES
noErr0No error
nsvErr-35Volume not found
ioErr -36I/O error
fnOpnErr -38File not open
fnfErr-43File not found
rfNumErr-51Bad reference number
extFSErr-58External file system

Previous Book Contents Book Index Next

© Apple Computer, Inc.
2 JUL 1996