getjid(2)
getjid - get job ID
As shipped in IRIX 6.5.7. Added in IRIX 6.5.7.
NAME getjid - get job ID SYNOPSIS #include <sys/resource.h> jid_t getjid(void); DESCRIPTION The getid function returns the job ID associated with the current process. ERRORS Under the following conditions, the getjid function fails and sets errno to: [ENOPKG] The job limits software is not installed. SEE ALSO getjlimit(2), killjob(2), makenewjob(2), setjusage(2). DIAGNOSTICS Upon successful completion, getjid returns a job ID. If an error occurs, a value of -1 is returned and errno is set to indicate the error. If job limits software is not installed, getjid returns a value of 0.