1Task(3PERL)                 Perl Library Functions                 Task(3PERL)
2
3
4

NAME

6       Task - Perl interface to Tasks
7

SYNOPSIS

9       use Sun::Solaris::Task qw(:ALL);
10       my $taskid = gettaskid();
11
12

DESCRIPTION

14       This  module  provides  wrappers  for the gettaskid(2) and settaskid(2)
15       system calls.
16
17   Constants
18       TASK_NORMAL, TASK_FINAL.
19
20   Functions
21       settaskid($project, $flags)
22
23           The $project parameter must be a valid project ID  and  the  $flags
24           parameter  must  be  TASK_NORMAL  or TASK_FINAL. The parameters are
25           passed through directly to the underlying settaskid() system  call.
26           The  new task ID is returned if the call succeeds. On failure −1 is
27           returned.
28
29
30       gettaskid()
31
32           This function returns the numeric task ID of the  calling  process,
33           or undef if the underlying gettaskid() system call is unsuccessful.
34
35
36   Class methods
37       None.
38
39   Object methods
40       None.
41
42   Exports
43       By default nothing is exported from this module. The following tags can
44       be used to selectively import constants and functions defined  in  this
45       module:
46
47       :SYSCALLS     settaskid() and gettaskid()
48
49
50       :CONSTANTS    TASK_NORMAL and TASK_FINAL
51
52
53       :ALL          :SYSCALLS and :CONSTANTS
54
55

ATTRIBUTES

57       See attributes(5) for descriptions of the following attributes:
58
59
60
61
62       ┌─────────────────────────────┬─────────────────────────────┐
63       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
64       ├─────────────────────────────┼─────────────────────────────┤
65       │Availability                 │SUNWpl5u                     │
66       ├─────────────────────────────┼─────────────────────────────┤
67       │Interface Stability          │Evolving                     │
68       └─────────────────────────────┴─────────────────────────────┘
69

SEE ALSO

71       gettaskid(2), settaskid(2), attributes(5)
72
73
74
75SunOS 5.11                        1 Dec 2002                       Task(3PERL)
Impressum