Download pSOS Reference

Transcript
annex_f
pHILE+ System Calls
annex_f
Allocates contiguous blocks to a file.
#include <phile.h>
unsigned long annex_f(
unsigned long fid,
/* file identifier */
unsigned long alloc_size, /* number of blocks to add */
unsigned long *blkcount
/* number of blocks added */
)
Volume Types
pHILE+ formatted volumes.
Description
annex_f() extends the physical size of a file on a pHILE+ formatted volume by
adding a group of contiguous blocks.
Arguments
fid
Identifies the file.
alloc_size
Specifies the desired number of blocks to add to the file.
blkcount
Points to the variable where annex_f() stores the number of
blocks actually allocated. This number can be less than
alloc_size, in which case blkcount represents the largest
group of contiguous blocks available on the volume.
Return Value
This system call returns 0 on success or an error code on failure.
Error Codes
2-8
Hex
Mnemonic
Description
0x2015
E_RO
Operation not allowed on read-only
system files, directories, or mounted
volumes.
pSOSystem System Calls