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

chown_f Changes the owner or group of a named file.<br />

#include <br />

unsigned long chown_f(<br />

char *name, /* file pathname */<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 />

chown_f() changes the owner and group of a file specified by name.<br />

name Points to a null-terminated pathname of either an ordinary file or<br />

a directory file.<br />

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

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

User ID and group ID are UNIX terms used to identify a user and a file access group<br />

on a UNIX system.<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 />

0x200C E_IFN Illegal pathname.<br />

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

2

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

Saved successfully!

Ooh no, something went wrong!