jlimit_startjob(3c)
jlimit_startjob - creates a new job container
As shipped in IRIX 6.5.7. Added in IRIX 6.5.7.
NAME jlimit_startjob - creates a new job container SYNOPSIS #include <sys/resource.h> jid_t jlimit_startjob(char *username, uid_t uid, char *domainname); DESCRIPTION The jlimit_startjob function performs all of the tasks necessary to creating a new job. The function takes the username, the user's ID (uid), and job limits domainname as arguments and returns the newly created job's job ID. To create a new job, the calling process must have CAP_SETUID and CAP_PROC_MGT capability. See the capabilities(4) man page for more information on the capability mechanism that provides fine grained control over the privileges of a process. The jlimit_startjob function retrieves the job limit and process information from the ULDB and populates those limits into the job structure. SEE ALSO showlimits(1), getjlimit(2), makenewjob(2). ERRORS Under the following conditions, the function jlimit_startjob fails and set errno to: [ENOPKG] The job limits software is not installed. [EINVAL] The makenewjob(2) system call returns an invalid argument to the jlimit_startjob function. DIAGNOSTICS Upon successful completion, jlimit_startjob 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, jlimit_startjob returns a value of 0.