1stack_inbounds(3C)       Standard C Library Functions       stack_inbounds(3C)
2
3
4

NAME

6       stack_inbounds - determine if address is within stack boundaries
7

SYNOPSIS

9       #include <ucontext.h>
10
11       int stack_inbounds(void *addr);
12
13

DESCRIPTION

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

RETURN VALUES

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

ERRORS

26       No errors are defined.
27

ATTRIBUTES

29       See attributes(5) for descriptions of the following attributes:
30
31
32
33
34       ┌─────────────────────────────┬─────────────────────────────┐
35       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
36       ├─────────────────────────────┼─────────────────────────────┤
37       │Interface Stability          │Evolving                     │
38       ├─────────────────────────────┼─────────────────────────────┤
39       │MT-Level                     │Async-Signal-Safe            │
40       └─────────────────────────────┴─────────────────────────────┘
41

SEE ALSO

43       stack_getbounds(3C), attributes(5)
44
45
46
47SunOS 5.11                        18 Jul 2002               stack_inbounds(3C)
Impressum