06.08.2013 Views

pSOSystem System Calls - Read

pSOSystem System Calls - Read

pSOSystem System Calls - Read

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

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

close_f Closes an open file connection.<br />

#include <br />

unsigned long close_f(<br />

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

)<br />

Volume Types<br />

Description<br />

Arguments<br />

Return Value<br />

Error Codes<br />

All volume types.<br />

close_f() closes the connection designated by the file identifier fid. If fid is 0,<br />

close_f() closes all of the files opened by the calling task. If close_f()<br />

terminates the last connection to a file, the file's FCB is deallocated.<br />

fid Specifies the file ID of the file connection to be closed.<br />

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

Hex Mnemonic Description<br />

0x2003 E_BADVOL Inconsistent data on volume; volume<br />

corrupted.<br />

0x201A E_FIDBIG Invalid FID, exceeds maximum.<br />

0x201B E_FIDOFF Invalid FID, file closed.<br />

<strong>pSO<strong>System</strong></strong> <strong>System</strong> <strong>Calls</strong> 2-23<br />

2

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

Saved successfully!

Ooh no, something went wrong!