getprid(2) getprid(2)
getprid - get project ID
#include <sys/types.h>
#include <unistd.h>
prid_t getprid(void);
The getprid function returns the project ID for the array session
containing the calling process.
The initial project ID of an array session is typically assigned at login
time, and can be changed with the privileged function setprid(2). The
newproj(1) command can be used to start a new array session with a
different project ID. For more details on project IDs, see projects(5).
newproj(1), newarraysess(2), setprid(2), array_sessions(5), projects(5).
getprid always returns the project ID. There are no error conditions.
PPPPaaaaggggeeee 1111 [ Back ]
|