|
Hopefully, this page is exactly what you are looking for, but if not, you can always find further assistance on Unix/Linux Forum!
System Calls settaskid(2)
NAME
settaskid, gettaskid, getprojid - set or get task or project
IDs
SYNOPSIS
#include <sys/types.h>
#include <sys/task.h>
#include <unistd.h>
taskid_t settaskid(projid_t project, int flags);
taskid_t gettaskid(void);
#include <sys/types.h>
#include <sys/task.h>
#include <unistd.h>
#include <project.h>
projid_t getprojid(void);
DESCRIPTION
The settaskid() function makes a request of the system to
assign a new task ID to the calling process, changing the
associated project ID to that specified. The calling process
must have sufficient privileges to perform this operation.
The flags argument should be either TASK_NORMAL for a regu-
lar task, or TASK_FINAL, which disallows subsequent set-
taskid() calls by the created task.
The gettaskid() function returns the task ID of the calling
process.
The getprojid() function returns the project ID of the cal-
ling process.
RETURN VALUES
Upon successful completion, these functions return the
appropriate task or project ID. Otherwise, -1 is returned
and errno is set to indicate the error.
ERRORS
The settaskid() function will fail if:
EACCES The invoking task was created with the
TASK_FINAL flag.
EAGAIN A resource control limiting the number of
tasks or LWPs in the current project or zone
has been exceeded.
SunOS 5.10 Last change: 28 Jun 2004 1
System Calls settaskid(2)
EINVAL The given project ID is not within the valid
project ID range.
EPERM The {PRIV_PROC_TASKID} privilege is not
asserted in the effective set of the calling
process.
ATTRIBUTES
See attributes(5) for descriptions of the following attri-
butes:
____________________________________________________________
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|_____________________________|_____________________________|
| MT-Level | Async-Signal-Safe |
|_____________________________|_____________________________|
SEE ALSO
setsid(2), project(4), attributes(5), privileges(5)
SunOS 5.10 Last change: 28 Jun 2004 2
Man(1) output converted with
man2html and wrapped by fishsponge
This page was generated on Wed Sep 12 11:27:09 GMT 2007
|
Your favourite pages:
No pages logged yet. Trying to save cookie... Top 10 most popular pages:
sqlite3 man page (5323 hits) (openSUSE 10.2)
svn man page (5181 hits) (FreeBSD 6.2)
adv_cap_autoneg man page (4865 hits) (Solaris 10 11_06)
CPAN man page (4602 hits) (Suse Linux 10.1)
ssh man page (4337 hits) (Suse Linux 10.1)
ssh-socks5-proxy-connect man page (2843 hits) (Solaris 10 11_06)
netcat man page (2691 hits) (Suse Linux 10.1)
pprosetup man page (2474 hits) (Solaris 10 11_06)
startproc man page (2457 hits) (Suse Linux 10.1)
signal man page (2396 hits) (Suse Linux 10.1)
|