summaryrefslogtreecommitdiff
path: root/src/internal/pthread_impl.h
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2013-03-31 23:25:55 -0400
committerRich Felker <dalias@aerifal.cx>2013-03-31 23:25:55 -0400
commit14a835b3868e4dccece15acbff6d5da6c0e1ff17 (patch)
tree38dc322f8c4465d39c467009824d525e0712af56 /src/internal/pthread_impl.h
parentccc7b4c3a17ade90de71e1e0f44deebbffd646e6 (diff)
downloadmusl-14a835b3868e4dccece15acbff6d5da6c0e1ff17.tar.gz
implement pthread_getattr_np
this function is mainly (purely?) for obtaining stack address information, but we also provide the detach state since it's easy to do anyway.
Diffstat (limited to 'src/internal/pthread_impl.h')
-rw-r--r--src/internal/pthread_impl.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/internal/pthread_impl.h b/src/internal/pthread_impl.h
index 2086048d..78b69cde 100644
--- a/src/internal/pthread_impl.h
+++ b/src/internal/pthread_impl.h
@@ -23,6 +23,8 @@ struct pthread {
int detached;
unsigned char *map_base;
size_t map_size;
+ void *stack;
+ size_t stack_size;
void *start_arg;
void *(*start)(void *);
void *result;