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.

pNA+ <strong>System</strong> <strong>Calls</strong> set_id<br />

set_id Sets a task’s user ID and group ID.<br />

#include <br />

long set_id(<br />

long userid, /* user identity */<br />

long groupid, /* group identity */<br />

long *groups /* must be zero */<br />

)<br />

Description<br />

Arguments<br />

Return Value<br />

Error Codes<br />

See Also<br />

This system call sets the user ID and group ID of the calling task. These IDs are<br />

used for accessing NFS servers. Default values for the IDs are defined in the pNA+<br />

Configuration Table.<br />

userid Specifies the calling task’s user ID.<br />

groupid Specifies the calling task’s group ID.<br />

groups Zero must be passed as a third argument (it is currently ignored).<br />

This system call returns 0 if successful, otherwise it returns -1.<br />

None.<br />

get_id<br />

<strong>pSO<strong>System</strong></strong> <strong>System</strong> <strong>Calls</strong> 4-65<br />

4

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

Saved successfully!

Ooh no, something went wrong!