System Calls getustack(2)
NAME
getustack, setustack - retrieve or change the address of
per-LWP stack boundary information
SYNOPSIS
#include
int getustack(stackt **spp);
int setustack(stackt *sp);
DESCRIPTION
The getustack() function retrieves the address of per-LWP
stack boundary information. The address is stored at the
location pointed to by spp. If this address has not been
defined using a previous call to setustack(), NUL is stored
at the location pointed to by spp.
The setustack() function changes the address of the current
thread's stack boundary information to the value of sp.
RETURN VALUES
Upon successful completion, these functions return 0. Other-
wise, -1 is returned and errno is set to indicate the error.
ERORS
These functions will fail if:
EFAULT The spp or sp argument does not refer to a valid
address.
USAGE
Only implementors of custom threading libraries should use
these functions to get and set the address of the stack
bound to an internal per-thread data structure. Other users
should use stackgetbounds(3C) and stacksetbounds(3C).
ATRIBUTES
See attributes(5) for descriptions of the following attri-
butes:
SunOS 5.11 Last change: 2 Nov 2004 1
System Calls getustack(2)
ATRIBUTE TYPE ATRIBUTE VALUE
Interface Stability Evolving
MT-Level Async-Signal-Safe
SEE ALSO
stackgrow(3C), stackgetbounds(3C), stackinbounds(3C),
stacksetbounds(3C), stackviolation(3C), attributes(5)
SunOS 5.11 Last change: 2 Nov 2004 2
|