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> remove_f<br />

remove_f Deletes a file.<br />

#include <br />

unsigned long remove_f(<br />

char *name /* pathname */<br />

)<br />

Volume Types<br />

Description<br />

Arguments<br />

Return Value<br />

Error Codes<br />

All volume types, except CD-ROM; however, functional differences exist and are<br />

described here.<br />

remove_f() deletes a file from a volume. The file can be an ordinary file or a<br />

directory file. All storage used by the file is returned to the system for reuse. The<br />

file's entry in its parent directory is also deleted.<br />

<strong>System</strong> files and non-empty directory files cannot be deleted. On pHILE+ and<br />

MS-DOS formatted volumes, an open file cannot be deleted. An open file can be<br />

deleted on an NFS volume. CD-ROM volumes are read-only.<br />

name Points to the null-terminated pathname of the file to delete.<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 />

0x200A E_DMOUNT Volume not mounted.<br />

0x200B E_FNAME Filename not found.<br />

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

2

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

Saved successfully!

Ooh no, something went wrong!