06.08.2013 Views

pSOSystem System Calls - Read

pSOSystem System Calls - Read

pSOSystem System Calls - Read

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

annex_f pHILE+ <strong>System</strong> <strong>Calls</strong><br />

annex_f Allocates contiguous blocks to a file.<br />

#include <br />

unsigned long annex_f(<br />

unsigned long fid, /* file identifier */<br />

unsigned long alloc_size, /* number of blocks to add */<br />

unsigned long *blkcount /* number of blocks added */<br />

)<br />

Volume Types<br />

Description<br />

Arguments<br />

Return Value<br />

Error Codes<br />

pHILE+ formatted volumes.<br />

annex_f() extends the physical size of a file on a pHILE+ formatted volume by<br />

adding a group of contiguous blocks.<br />

fid Identifies the file.<br />

alloc_size Specifies the desired number of blocks to add to the file.<br />

blkcount Points to the variable where annex_f() stores the number of<br />

blocks actually allocated. This number can be less than<br />

alloc_size, in which case blkcount represents the largest<br />

group of contiguous blocks available on the volume.<br />

This system call returns 0 on success or an error code on failure.<br />

Hex Mnemonic Description<br />

0x2015 E_RO Operation not allowed on read-only<br />

system files, directories, or mounted<br />

volumes.<br />

2-8 <strong>pSO<strong>System</strong></strong> <strong>System</strong> <strong>Calls</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!