man pages section 3: Basic Library Functions

Exit Print View

Updated: July 2014
 
 

stack_inbounds(3C)

Name

stack_inbounds - determine if address is within stack boundaries

Synopsis

#include <ucontext.h>

int stack_inbounds(void *addr);

Description

The stack_inbounds() function returns a boolean value indicating whether the address specified by addr is within the boundaries of the stack of the calling thread. The address is compared to the stack boundary information returned by a call to stack_getbounds(3C).

Return Values

The stack_inbounds() function returns 0 to indicate that addr is not within the current stack bounds, or a non-zero value to indicate that addr is within the stack bounds.

Errors

No errors are defined.

Attributes

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

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Interface Stability
Committed
MT-Level
Async-Signal-Safe

See also

stack_getbounds(3C), attributes(5)