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.

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

pcmount_vol Mounts an MS-DOS volume.<br />

#include <br />

unsigned long pcmount_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 />

MS-DOS formatted volumes.<br />

pcmount_vol() mounts an MS-DOS volume. A volume must be mounted before<br />

file operations can be applied to it.<br />

Permanent (non-removable media) volumes need mounting only once. Removable<br />

volumes can be mounted and unmounted as required.<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 one of the<br />

following values:<br />

SM_IMMED_WRITE Immediate-write synchronization mode<br />

SM_CONTROL_WRITE Control-write synchronization mode<br />

SM_DELAYED_WRITE Delay-write synchronization mode<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-88 <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!