xref: /titanic_41/usr/src/man/man3perl/Task.3perl (revision e65fcc69bb33b3f4525b0c2c9732ece17c90b196)
te
Copyright (c) 2002, Sun Microsystems, Inc. All Rights Reserved.
The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
Task 3PERL "1 Dec 2002" "SunOS 5.11" "Perl Library Functions"
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 settaskid(2) system calls.

"Constants"

TASK_NORMAL, TASK_FINAL.

"Functions"

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.

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.

"Exports"

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

ATTRIBUTES

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPEATTRIBUTE VALUE
Interface StabilityEvolving
SEE ALSO

gettaskid(2), settaskid(2), attributes(5)