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.

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

open_fn Opens a file by its file identifier.<br />

#include <br />

unsigned long open_fn(<br />

unsigned long *fid, /* file identifier */<br />

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

unsigned long fn, /* file number */<br />

unsigned long mode /* unused, set to 0 */<br />

)<br />

Volume Types<br />

Description<br />

Arguments<br />

Return Value<br />

pHILE+, MS-DOS, and CD-ROM formatted volumes.<br />

open_fn() functions identically to open_f() except that open_fn() opens a file<br />

associated with a specified file number. The file number is first obtained with<br />

get_fn().<br />

open_fn() is more efficient than open_f() when a particular file is frequently<br />

opened, since open_fn() skips pathname parsing and directory searching.<br />

fid Points to the variable where open_fn() stores the file identifier.<br />

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

file.<br />

fn The file number of the file.<br />

mode Reserved for future use; should be set to 0 for future compatibility.<br />

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

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

2

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

Saved successfully!

Ooh no, something went wrong!