AllocContig
AllocContig Allocate contiguous space on disk
#include <Files.h> File Manager
OSErr AllocContig( refNum, count );
short refNum ; file reference, as obtained via FSOpen
long *count ; bytes to add; receives actual bytes added
returns Error Code; 0=no error
AllocContig works the same way as the Allocate routine except that it
allocates contiguous space on the disk for the specified file. If the required
space cannot be allocated, a dskFullErr (-35) is returned.
refNum is the reference number of an open file. See FSOpen and OpenRF.
count is the address of a positive long integer. On entry, it specifies how
much space, in bytes, you wish to add to the file's physical allocation.
Upon return, it contains the actual number of bytes added (it will be a
multiple of the disk block size).
Returns: an operating system Error Code. It will be one of:
noErr (0) No error
dskFulErr (-34) Disk full
fLckdErr (-45) File is locked
fnOpnErr (-38) File not open
ioErr (-36) I/O error
rfNumErr (-51) Bad fRefNum
vLckdErr (-46) Volume is locked
wPrErr (-44) Diskette is write-protected
wrPermErr (-61) Write permission error