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.

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

cdmount_vol Mounts a CD-ROM volume.<br />

#include <br />

unsigned long cdmount_vol(<br />

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

unsigned long sync_mode /* synchronization mode */<br />

)<br />

Volume Types<br />

Description<br />

Arguments<br />

Return Value<br />

CD-ROM formatted volumes that conform to ISO-9660 specification. Multi-volume<br />

sets and interleaved files are not supported.<br />

cdmount_vol() mounts a CD-ROM volume. A volume must be mounted before file<br />

operations can be applied to it.<br />

Removable volumes can be mounted and unmounted as required. CD-ROM volumes<br />

are read-only.<br />

device Points to the null-terminated name of the volume to be<br />

mounted.<br />

sync_mode Specifies the volume's write synchronization attribute. This<br />

attribute is defined in and must be set to the value<br />

shown below.<br />

SM_READ_ONLY <strong>Read</strong>-only synchronization mode.<br />

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

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