1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00
* allocatestack.c: Pretty printing.
This commit is contained in:
Ulrich Drepper
2004-01-21 02:03:13 +00:00
parent 5673ccc175
commit debddf649e
2 changed files with 23 additions and 10 deletions

View File

@ -1,5 +1,7 @@
2004-01-20 Ulrich Drepper <drepper@redhat.com> 2004-01-20 Ulrich Drepper <drepper@redhat.com>
* allocatestack.c: Pretty printing.
* sysdeps/pthread/createthread.c (create_thread): Don't add * sysdeps/pthread/createthread.c (create_thread): Don't add
CLONE_DETACHED bit if it is not necessary. CLONE_DETACHED bit if it is not necessary.

View File

@ -49,10 +49,21 @@
#else #else
/* We need two stacks. The kernel will place them but we have to tell
the kernel about the size of the reserved address space. */
# define STACK_VARIABLES void *stackaddr; size_t stacksize # define STACK_VARIABLES void *stackaddr; size_t stacksize
/* How to pass the values to the 'create_thread' function. */
# define STACK_VARIABLES_ARGS stackaddr, stacksize # define STACK_VARIABLES_ARGS stackaddr, stacksize
/* How to declare function which gets there parameters. */
# define STACK_VARIABLES_PARMS void *stackaddr, size_t stacksize # define STACK_VARIABLES_PARMS void *stackaddr, size_t stacksize
/* How to declare allocate_stack. */
# define ALLOCATE_STACK_PARMS void **stack, size_t *stacksize # define ALLOCATE_STACK_PARMS void **stack, size_t *stacksize
/* This is how the function is called. We do it this way to allow
other variants of the function to have more parameters. */
# define ALLOCATE_STACK(attr, pd) \ # define ALLOCATE_STACK(attr, pd) \
allocate_stack (attr, pd, &stackaddr, &stacksize) allocate_stack (attr, pd, &stackaddr, &stacksize)