5
Last change
on this file since 1d572eba was
c499856,
checked in by Chris Johns <chrisj@…>, on 03/20/14 at 21:10:47
|
Change all references of rtems.com to rtems.org.
|
-
Property mode set to
100644
|
File size:
841 bytes
|
Line | |
---|
1 | /** |
---|
2 | * @file |
---|
3 | * |
---|
4 | * @brief Function Gets the Thread Creation Stack Attributes in the attr |
---|
5 | * @ingroup POSIXAPI |
---|
6 | */ |
---|
7 | |
---|
8 | /* |
---|
9 | * 16.1.1 Thread Creation Attributes |
---|
10 | * |
---|
11 | * COPYRIGHT (c) 1989-2010. |
---|
12 | * On-Line Applications Research Corporation (OAR). |
---|
13 | * |
---|
14 | * The license and distribution terms for this file may be |
---|
15 | * found in the file LICENSE in this distribution or at |
---|
16 | * http://www.rtems.org/license/LICENSE. |
---|
17 | */ |
---|
18 | |
---|
19 | #if HAVE_CONFIG_H |
---|
20 | #include "config.h" |
---|
21 | #endif |
---|
22 | |
---|
23 | #if HAVE_DECL_PTHREAD_ATTR_GETSTACK |
---|
24 | #include <pthread.h> |
---|
25 | #include <errno.h> |
---|
26 | |
---|
27 | int pthread_attr_getstack( |
---|
28 | const pthread_attr_t *attr, |
---|
29 | void **stackaddr, |
---|
30 | size_t *stacksize |
---|
31 | ) |
---|
32 | { |
---|
33 | if ( !attr || !attr->is_initialized || !stackaddr || !stacksize ) |
---|
34 | return EINVAL; |
---|
35 | |
---|
36 | *stackaddr = attr->stackaddr; |
---|
37 | *stacksize = attr->stacksize; |
---|
38 | return 0; |
---|
39 | } |
---|
40 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.