Contained WithinFind More DocumentationFeatured Support Resources | Download this book in PDF (1785 KB)
settaskid(2)Name | Synopsis | Description | Return Values | Errors | Attributes | See Also Name
Synopsis#include <sys/types.h> #include <sys/task.h> #include <unistd.h> taskid_t settaskid(projid_t project, int flags); taskid_t gettaskid(void); #include <sys/types.h> #include <sys/task.h> #include <unistd.h> #include <project.h> projid_t getprojid(void); DescriptionThe settaskid() function makes a request of the system to assign a new task ID to the calling process, changing the associated project ID to that specified. The calling process must have sufficient privileges to perform this operation. The flags argument should be either TASK_NORMAL for a regular task, or TASK_FINAL, which disallows subsequent settaskid() calls by the created task. The gettaskid() function returns the task ID of the calling process. The getprojid() function returns the project ID of the calling process. Return ValuesUpon successful completion, these functions return the appropriate task or project ID. Otherwise, -1 is returned and errno is set to indicate the error. Errors
The settaskid() function will fail if: AttributesSee attributes(5) for descriptions of the following attributes:
See AlsoSunOS 5.11 Last Revised 10 Apr 2007Name | Synopsis | Description | Return Values | Errors | Attributes | See Also |
||||