30 lines
766 B
Groff
30 lines
766 B
Groff
.TH getprid 2
|
|
.SH NAME
|
|
getprid \- get project ID
|
|
.SH SYNOPSIS
|
|
.nf
|
|
\f3#include <sys/types.h>\f1
|
|
\f3#include <unistd.h>\f1
|
|
.sp .8v
|
|
\f3prid_t getprid(void);\f1
|
|
.fi
|
|
.SH DESCRIPTION
|
|
The \f2getprid\f1 function returns the project ID for the array
|
|
session containing the calling process.
|
|
.PP
|
|
The initial project ID of an array session is typically assigned at
|
|
login time, and can be changed with the privileged function
|
|
\f2setprid\f1(2).
|
|
The \f2newproj\f1(1) command can be used to start a new array session
|
|
with a different project ID.
|
|
For more details on project IDs, see \f2projects\f1(5).
|
|
.SH SEE ALSO
|
|
newproj(1),
|
|
newarraysess(2),
|
|
setprid(2),
|
|
array_sessions(5),
|
|
projects(5).
|
|
.SH "DIAGNOSTICS"
|
|
\f2getprid\f1 always returns the project ID.
|
|
There are no error conditions.
|