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.

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

mount_vol Mounts a pHILE+ formatted volume.<br />

#include <br />

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

pHILE+ formatted volumes.<br />

mount_vol() mounts a pHILE+ formatted volume. A volume must be mounted<br />

before any file operations can be applied to it. Permanent volumes (on nonremovable<br />

media) need mounting only once. Removable volumes can be mounted<br />

and unmounted as required.<br />

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

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

is defined in and must be set to one of the following<br />

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-68 <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!