Sun::Solaris::Task - Perl interface to Tasks
use Sun::Solaris::Task qw(:ALL); my $taskid = gettaskid();
This module provides wrappers for the gettaskid(2) and settaskid(2) system calls.
gettaskid(2)
settaskid(2)
TASK_NORMAL, TASK_FINAL.
TASK_NORMAL
TASK_FINAL
settaskid($project, $flags)
The $project parameter must be a valid project ID and the $flags parameter must be TASK_NORMAL or TASK_FINAL. The parameters are passed through directly to the underlying settaskid() system call. The new task ID is returned if the call succeeds. On failure -1 is returned.
$project
$flags
settaskid()
gettaskid()
This function returns the numeric task ID of the calling process, or undef if the underlying gettaskid() system call is unsuccessful.
undef
None.
By default nothing is exported from this module. The following tags can be used to selectively import constants and functions defined in this module:
:SYSCALLS settaskid() and gettaskid() :CONSTANTS TASK_NORMAL and TASK_FINAL :ALL :SYSCALLS and :CONSTANTS
See attributes(5) for descriptions of the following attributes:
attributes(5)
___________________________________________________________ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | |_____________________________|_____________________________| | Availability | CPAN (http://www.cpan.org) | |_____________________________|_____________________________| | Interface Stability | Evolving | |_____________________________|_____________________________|
gettaskid(2), settaskid(2), attributes(5)
To install Sun::Solaris::Task, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Sun::Solaris::Task
CPAN shell
perl -MCPAN -e shell install Sun::Solaris::Task
For more information on module installation, please visit the detailed CPAN module installation guide.