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.

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

unmount_vol Unmounts a volume.<br />

#include <br />

unsigned long unmount_vol(<br />

char *device /* volume name */<br />

)<br />

Volume Types<br />

Description<br />

Arguments<br />

Return Value<br />

Error Codes<br />

All volume types.<br />

unmount_vol() unmounts a previously mounted volume. Unmounting a volume<br />

causes it to be synchronized. Synchronization causes all memory-resident volume<br />

data to be flushed to the device.<br />

device Points to the null-terminated name of the volume to unmount.<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 />

0x2009 E_MNTOPEN Files are open on volume.<br />

0x200A E_DMOUNT Volume not mounted.<br />

0x200C E_IFN Illegal pathname.<br />

0x200D E_NDD No default directory.<br />

0x2025 E_IDN Illegal device name.<br />

2-120 <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!