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.

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

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

unsigned long fchown_f(<br />

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

int owner, /* new user ID */<br />

int group /* new group ID */<br />

)<br />

Volume Types<br />

Description<br />

Arguments<br />

Return Value<br />

Error Codes<br />

NFS formatted volumes.<br />

fchown_f() functions the same as chown_f() except it changes the owner or<br />

group of a file by its file identifier instead of its pathname. The file identifier is first<br />

obtained with open_f().<br />

fid Specifies the file identifier associated with the file.<br />

owner Specifies the user ID of the new owner.<br />

group Specifies the group ID of the new group.<br />

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

Hex Mnemonic Description<br />

0x2001 E_FUNC pHILE+ format volume; illegal<br />

operation.<br />

0x2015 E_RO Operation not allowed on read-only<br />

system files, directories, or<br />

mounted volumes.<br />

2-32 <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!