taskctl(3P)

taskctl - operations on a task

As shipped in IRIX 6.5.5. Unchanged since IRIX 6.5.

NAME
     taskctl - operations on a task

C SYNOPSIS
     #include <sys/types.h>
     #include <task.h>

     int taskctl (tid_t tid, unsigned option);

DESCRIPTION
     taskctl provides both information about tasks and the ability to control
     certain attributes of a task.  option specifies one of the following:

     TSK_ISBLOCKED
               returns 1 if the specified task is currently blocked. Since
               other processes could have subsequently unblocked the task, the
               result should be considered a snapshot only.

     taskctl will fail if one or more of the following are true:

     [EINVAL]       option does not refer to a valid option.

     [EINVAL]       tid does not refer to a valid task.

SEE ALSO
     prctl(2), taskcreate(3P), taskdestroy(3P).

DIAGNOSTICS
     Upon successful completion, taskctl returns a option specific value.
     Otherwise, a value of -1 is returned to the calling task, and errno is
     set to indicate the error.