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

pcinit_vol Initializes an MS-DOS volume.<br />

#include <br />

unsigned long pcinit_vol(<br />

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

void *scratch_buf, /* scratch buffer */<br />

unsigned long dktype /* type of volume */<br />

)<br />

Volume Types<br />

Description<br />

Arguments<br />

MS-DOS formatted volumes.<br />

pcinit_vol() initializes a volume in MS-DOS format. pcinit_vol() performs a<br />

logical format of the volume, setting up the necessary control structures and other<br />

information needed by the pHILE+ file system manager for subsequent file<br />

operations on the volume. A volume must be initialized before it can be mounted.<br />

After a volume has been initialized, pcinit_vol() can be used to quickly delete all<br />

data on the volume.<br />

pcinit_vol() cannot be used for the first initialization of a hard disk partition<br />

(see Note 4).<br />

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

scratch_buf Points to a 512-byte working buffer.<br />

dktype Specifies the MS-DOS media format and must have one of the<br />

following values:<br />

Value Mnemonic Meaning<br />

0 DK_HARD Hard disk<br />

1 DK_360 360 Kbyte (5-1/4” double density)<br />

2 DK_12 1.2 Mbyte (5-1/4” high density)<br />

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

2

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

Saved successfully!

Ooh no, something went wrong!