2 # Copyright (c) 2002, 2003, Oracle and/or its affiliates. All rights reserved.
6 # Sun::Solaris::Task documentation.
11 Sun::Solaris::Task - Perl interface to Tasks
15 use Sun::Solaris::Task qw(:ALL);
16 my $taskid = gettaskid();
18 This module provides wrappers for the C<gettaskid(2)> and C<settaskid(2)>
23 C<TASK_NORMAL>, C<TASK_FINAL>.
27 B<C<settaskid($project, $flags)>>
29 The C<$project> parameter must be a valid project ID and the C<$flags>
30 parameter must be C<TASK_NORMAL> or C<TASK_FINAL>. The parameters are passed
31 through directly to the underlying C<settaskid()> system call. The new task ID
32 is returned if the call succeeds. On failure -1 is returned.
36 This function returns the numeric task ID of the calling process, or C<undef>
37 if the underlying C<gettaskid()> system call is unsuccessful.
49 By default nothing is exported from this module. The following tags can be
50 used to selectively import constants and functions defined in this module:
52 :SYSCALLS settaskid() and gettaskid()
54 :CONSTANTS TASK_NORMAL and TASK_FINAL
56 :ALL :SYSCALLS and :CONSTANTS
60 See C<attributes(5)> for descriptions of the following attributes:
62 ___________________________________________________________
63 | ATTRIBUTE TYPE | ATTRIBUTE VALUE |
64 |_____________________________|_____________________________|
65 | Availability | CPAN (http://www.cpan.org) |
66 |_____________________________|_____________________________|
67 | Interface Stability | Evolving |
68 |_____________________________|_____________________________|
72 C<gettaskid(2)>, C<settaskid(2)>, C<attributes(5)>