Low-Level File Manager
Async I/O
Which File System is Active
Access Files
PBHOpen Open file data fork (HFS only) PBOpen Open the data fork of a file PBRead Read data from an open file PBGetFPos Query current position of an open file's file mark
PBSetFPos Set position of an open file's file mark
PBAllocate Increase file allocation; logical EOF un changed
PBAllocContig Increase physical EOF as a contiguous block
PBGetEOF Obtain logical size of an open file
PBSetEOF Set the logical file size of an open file
PBFlushFile Write contents of the file buffer to disk
PBHCopyFile Duplicate a file, rename it if desired
PBEx changeFiles Swap the data stored in two files
PBResolveFileIDRef Retrieve the filename and parent directory ID
PBSetForeignPrivs Change a file's native access-control information
PBOpenDF Open the data fork of a file.
PBHOpenDF Open the data fork of a file on a hierarchical
volume.
Create/Delete Files
PBHCreate Create an empty file (both forks) (HFS only)
PBCreate
PBHDelete Delete closed file or empty directory (HFS only)
PBDelete
PBHRename Rename a file, volume, or directory (HFS only)
PBRename
PBSetFVers Change a file's version number (flat volumes only)
PBHGetFInfo Query file date/time, attributes, type... (HFS only)
PBHSetFInfo Change file date/time, Finder info, etc. (HFS only)
PBSetFInfo
PBHSetFLock Lock a file (prevent write access)(HFS only)
PBSetFLock
PBHRstFLock Unlock a file (allow write access) (HFS only)
PBRstFLock
PBLockRange Prevent access to a portion of a shared file
PBUnlockRange Restore global access to a portion of a shared file
PBGetFCBInfo Obtain information from open file control blocks
PBHMoveRename Move a file, folder, etc. and rename it if desired
PBHOpenDeny Open a file's data fork for users with permissions levels
Access Volumes
PBEject Eject a volume from its drive PBFlushVol Update disk with any unwritten data
PBHGetDirAccess Get access control information for a shared HFS
PBHGetLogInInfo Get user log in name and method for a shared HFS
PBHGetVInfo Get information about a volume (HFS only)
PBHGetVol Get default volume/directory name and reference
(HFS)
PBHSetVol Select a default default volume/directory (HFS
only)
PBOffline Take a volume off-line
PBSetVInfo Change volume name, backup date; lock/unlock it PBSetVol
PBUnmountVol Flush volume, close its files, release its memory PBHSetDirAccess Set access control information for a shared HFS
record.
Resource fork operations
PBOpenRF Open the resource fork of a file
PBHOpenRF Open file resource fork (HFS only)
PBHOpenRFDeny Open a resource fork to users with permissions levels
Working directories
PBOpenWD Create/get reference number of working directory
PBCloseWD Release working directory control block
PBGetWDInfo Query information about a working directory
Catalog / Directory
PBDirCreate Create a new empty directory
PBCatMove Transfer file or directory to another directory
PBGetCatInfo Query file or directory date/time, attributes, etc. PBSetCatInfo Change file or directory de scriptive information PBHMapID Get user or group name from ID data
PBHMapName Get user or group ID from a known name
PBMakeFSSpec Make an FSSpec record