libc/pthread: Implement pthread_attr_[set|get]stackaddr

https://pubs.opengroup.org/onlinepubs/009696799/functions/pthread_attr_getstackaddr.html

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao
2023-01-20 22:30:36 +08:00
committed by Gustavo Henrique Nihei
parent 36b74bab02
commit c11cd7f103
9 changed files with 158 additions and 41 deletions
@@ -112,11 +112,9 @@ No support for the following pthread interfaces is provided by NuttX:
- ``pthread_attr_getguardsize``. get and set the thread guardsize
attribute.
- ``pthread_attr_getscope``. get and set the contentionscope attribute.
- ``pthread_attr_getstackaddr``. get and set the stackaddr attribute.
- ``pthread_attr_setguardsize``. get and set the thread guardsize
attribute.
- ``pthread_attr_setscope``. get and set the contentionscope attribute.
- ``pthread_attr_setstackaddr``. get and set the stackaddr attribute.
- ``pthread_condattr_getpshared``. get the process-shared condition
variable attribute.
- ``pthread_condattr_setpshared``. set the process-shared condition