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.

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

get_id Gets a task’s user ID and group ID.<br />

#include <br />

long get_id(<br />

long *userid, /* task user ID */<br />

long *groupid, /* task group ID */<br />

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

)<br />

Description<br />

Arguments<br />

Return Value<br />

Error Codes<br />

See Also<br />

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

used for accessing NFS servers. The user ID and group ID are set by using the<br />

set_id() call. Default values for these IDs are defined in the pNA+ Configuration<br />

Table.<br />

userid Points to a long variable where get_id() stores the calling<br />

task’s user ID.<br />

groupid Points to a long variable where get_id() stores the calling<br />

task’s group ID.<br />

groups Zero must be passed as a third argument (which is currently<br />

ignored).<br />

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

None.<br />

set_id<br />

4-12 <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!