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

create_f Creates a data file.<br />

#include <br />

unsigned long create_f(<br />

char *name, /* pathname */<br />

unsigned long expand_unit, /* expansion factor */<br />

unsigned long mode /* access mode */<br />

)<br />

Volume Types<br />

Description<br />

Arguments<br />

All volume types (except CD-ROM); however, expand_unit is meaningful only on<br />

pHILE+ formatted volumes, and mode is meaningful only on NFS volumes.<br />

create_f() creates a new ordinary file.<br />

name Points to the null-terminated pathname of the file to create.<br />

expand_unit For pHILE+ formatted volumes only, specifies the number of<br />

contiguous blocks to add whenever the file is expanded<br />

during a write_f() system call.<br />

mode For NFS volumes only, specifies the access modes associated<br />

with the file, and is the result of an OR operation performed<br />

on the following constants (defined in ).<br />

Mnemonic Description<br />

S_ISUID Set user ID on execution<br />

S_ISGID Set group ID on execution<br />

S_IRUSR <strong>Read</strong> permission, owner<br />

S_IWUSR Write permission, owner<br />

S_IXUSR Execute/search permission, owner<br />

S_IRGRP <strong>Read</strong> permission, group<br />

S_IWGRP Write permission, group<br />

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

2

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

Saved successfully!

Ooh no, something went wrong!