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.

Tables of <strong>System</strong> <strong>Calls</strong> pHILE+ <strong>System</strong> <strong>Calls</strong><br />

TABLE A-3 pHILE+ <strong>System</strong> <strong>Calls</strong> (Continued)<br />

Name Description Page<br />

close_f Closes an open file connection. 2-22<br />

create_f Creates a data file. 2-25<br />

fchmod_f Changes the mode of a file specified by its file identifier. 2-29<br />

fchown_f Changes the owner or group of a file specified by its file identifier.<br />

2-32<br />

fstat_f Obtains the status of a file specified by its file identifier. 2-35<br />

fstat_vfs Obtains statistics about a mounted volume specified by a file<br />

identifier.<br />

2-39<br />

ftruncate_f Changes the size of a file specified by its file identifier. 2-43<br />

get_fn Obtains the file number of a file. 2-46<br />

init_vol Initializes a pHILE+ formatted volume. 2-49<br />

link_f Creates a hard link between two files on the same volume. 2-53<br />

lock_f Locks or unlocks part or all of an open file. 2-56<br />

lseek_f Repositions for read or write within an open file. 2-58<br />

lstat_f Gets the status of a symbolically linked file. 2-61<br />

make_dir Creates a directory file. 2-65<br />

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

move_f Moves (renames) a file. 2-70<br />

nfsmount_vol Mounts a remote file system. 2-73<br />

open_dir Opens a directory file. 2-76<br />

open_f Opens a file. 2-78<br />

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

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

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

read_dir <strong>Read</strong>s directory entries in a file system independent format. 2-90<br />

<strong>pSO<strong>System</strong></strong> <strong>System</strong> <strong>Calls</strong> A-19<br />

A

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

Saved successfully!

Ooh no, something went wrong!