Perl Library Functions Task(3PERL)
NAME
Task - Perl interface to Tasks
SYNOPSIS
use Sun::Solaris::Task qw(:ALL);
my $taskid = gettaskid();
DESCRIPTION
This module provides wrappers for the gettaskid(2) and set-
taskid(2) system calls. ConstantsTASK_NORMAL, TASK_FINAL.
Functionssettaskid($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 under-
lying settaskid() system call. The new task ID isreturned if the call succeeds. On failure -1 is
returned. gettaskid() This function returns the numeric task ID of the calling process, or undef if the underlying gettaskid() system call is unsuccessful. Class methods None. Object methods None. ExportsBy default nothing is exported from this module. The follow-
ing 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 :CONSTANTSSunOS 5.11 Last change: 1 Dec 2002 1
Perl Library Functions Task(3PERL)
ATTRIBUTES
See attributes(5) for descriptions of the following attri-
butes:____________________________________________________________
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|_____________________________|_____________________________|
| Availability | SUNWpl5u ||_____________________________|_____________________________|
| Interface Stability | Committed ||_____________________________|_____________________________|
SEE ALSO
gettaskid(2), settaskid(2), attributes(5)SunOS 5.11 Last change: 1 Dec 2002 2