1 .\" Copyright (c) 2004-2007 Apple Inc. All rights reserved.
6 .Nm pthread_attr_getstackaddr ,
7 .Nm pthread_attr_setstackaddr
8 .Nd thread attribute operations
10 .Fd #include <pthread.h>
12 .Fo pthread_attr_getstackaddr
13 .Fa "const pthread_attr_t *restrict attr"
14 .Fa "void **restrict stackaddr"
17 .Fo pthread_attr_setstackaddr
18 .Fa "pthread_attr_t *attr"
22 Thread attributes are used to specify parameters to
24 One attribute object can be used in multiple calls to
26 with or without modifications between calls.
29 .Fn pthread_attr_setstackaddr
31 .Fn pthread_attr_getstackaddr
32 respectively, set and get the address at which the stack of the newly created thread should be located.
33 The stackaddr attribute is set within the
35 argument, which can subsequently be used as an argument to
38 If successful, these functions return 0.
39 Otherwise, an error number is returned to indicate the error.
40 .Fn pthread_attr_getstackaddr
41 returns the stackaddr attribute value in
45 .Fn pthread_attr_setstackaddr
55 .Fn pthread_attr_getstackaddr
66 .Xr pthread_create 3 ,
67 .Xr pthread_attr_init 3 ,
68 .Xr pthread_attr_setdetachstate 3 ,
69 .Xr pthread_attr_setstacksize 3
71 .Fn pthread_attr_setstackaddr ,
72 .Fn pthread_attr_getstackaddr ,