1pthread_attr_getstackaddr(S3tCa)ndard C Library Functipotnhsread_attr_getstackaddr(3C)
2
3
4

NAME

6       pthread_attr_getstackaddr,   pthread_attr_setstackaddr  -  get  or  set
7       stackaddr attribute
8

SYNOPSIS

10       cc -mt [ flag... ] file... -lpthread [ library... ]
11       #include <pthread.h>
12
13       int pthread_attr_getstackaddr(const pthread_attr_t *restrict attr,
14            void **restrict stackaddr);
15
16
17       int pthread_attr_setstackaddr(pthread_attr_t *attr, void *stackaddr);
18
19

DESCRIPTION

21       The functions  pthread_attr_setstackaddr()  and  pthread_attr_getstack‐
22       addr(),  respectively,  set  and  get  the  thread  creation  stackaddr
23       attribute in the attr  object.  The  stackaddr  default  is  NULL.  See
24       pthread_create(3C).
25
26
27       The  stackaddr  attribute  specifies the location of storage to be used
28       for the created thread's stack. The size of the  storage  is  at  least
29       PTHREAD_STACK_MIN.
30

RETURN VALUES

32       Upon    successful    completion,    pthread_attr_setstackaddr()    and
33       pthread_attr_getstackaddr() return a value of  0. Otherwise,  an  error
34       number is returned to indicate the error.
35
36
37       If  successful,  the  pthread_attr_getstackaddr()  function  stores the
38       stackaddr attribute value in stackaddr.
39

ERRORS

41       The pthread_attr_setstackaddr() function may fail if:
42
43       EINVAL    attr is invalid.
44
45
46
47       The  pthread_attr_getstackaddr() function may fail if:
48
49       EINVAL    attr or stackaddr is invalid.
50
51

ATTRIBUTES

53       See attributes(5) for descriptions of the following attributes:
54
55
56
57
58       ┌─────────────────────────────┬─────────────────────────────┐
59       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
60       ├─────────────────────────────┼─────────────────────────────┤
61       │Interface Stability          │Standard                     │
62       ├─────────────────────────────┼─────────────────────────────┤
63       │MT-Level                     │MT-Safe                      │
64       └─────────────────────────────┴─────────────────────────────┘
65

SEE ALSO

67       pthread_attr_init(3C),                 pthread_attr_setdetachstate(3C),
68       pthread_attr_setstacksize(3C), pthread_create(3C), attributes(5), stan‐
69       dards(5)
70
71
72
73SunOS 5.11                        23 Mar 2005    pthread_attr_getstackaddr(3C)
Impressum