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

NAME

6       stack_getbounds - retrieve stack boundaries
7

SYNOPSIS

9       #include <ucontext.h>
10
11       int stack_getbounds(stack_t *sp);
12
13

DESCRIPTION

15       The  stack_getbounds() function retrieves the stack boundaries that the
16       calling thread is currently operating on. If the  thread  is  currently
17       operating  on  the  alternate signal stack, this function will retrieve
18       the bounds of that stack.
19
20
21       If successful, stack_getbounds() sets the ss_sp member of  the  stack_t
22       structure  pointed  to  by  sp  to the base of the stack region and the
23       ss_size member to its size (maximum extent) in bytes. The ss_flags mem‐
24       ber  is  set  to  SS_ONSTACK  if the calling thread is executing on its
25       alternate signal stack, and zero otherwise.
26

RETURN VALUES

28       Upon successful completion, stack_getbounds() returns 0. Otherwise,  −1
29       is returned and errno is set to indicate the error.
30

ERRORS

32       The stack_getbounds() function will fail if:
33
34       EFAULT    The sp argument does not refer to a valid address.
35
36

ATTRIBUTES

38       See attributes(5) for descriptions of the following attributes:
39
40
41
42
43       ┌─────────────────────────────┬─────────────────────────────┐
44       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
45       ├─────────────────────────────┼─────────────────────────────┤
46       │Interface Stability          │Evolving                     │
47       ├─────────────────────────────┼─────────────────────────────┤
48       │MT-Level                     │Async-Signal-Safe            │
49       └─────────────────────────────┴─────────────────────────────┘
50

SEE ALSO

52       getustack(2),    sigaction(2),   sigaltstack(2),   stack_setbounds(3C),
53       attributes(5)
54
55
56
57SunOS 5.11                        18 Jul 2002              stack_getbounds(3C)
Impressum