mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
Update.
* pthread_attr_setstack.c: Moved to... * sysdeps/pthread/pthread_attr_setstack.c: ...here. New file. * pthread_attr_setstackaddr.c: Moved to... * sysdeps/pthread/pthread_attr_setstackaddr.c: ...here. New file.
This commit is contained in:
@ -1,5 +1,10 @@
|
|||||||
2003-03-04 Ulrich Drepper <drepper@redhat.com>
|
2003-03-04 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* pthread_attr_setstack.c: Moved to...
|
||||||
|
* sysdeps/pthread/pthread_attr_setstack.c: ...here. New file.
|
||||||
|
* pthread_attr_setstackaddr.c: Moved to...
|
||||||
|
* sysdeps/pthread/pthread_attr_setstackaddr.c: ...here. New file.
|
||||||
|
|
||||||
* pthread_create.c: Define __pthread_keys using nocommon
|
* pthread_create.c: Define __pthread_keys using nocommon
|
||||||
attribute, not by placing it explicitly in bss.
|
attribute, not by placing it explicitly in bss.
|
||||||
Remove DEFINE_DEALLOC definition. Not needed anymore.
|
Remove DEFINE_DEALLOC definition. Not needed anymore.
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 2002 Free Software Foundation, Inc.
|
/* Copyright (C) 2002, 2003 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
Contributed by Ulrich Drepper <drepper@redhat.com>, 2002.
|
Contributed by Ulrich Drepper <drepper@redhat.com>, 2002.
|
||||||
|
|
||||||
@ -38,6 +38,10 @@ __pthread_attr_setstack (attr, stackaddr, stacksize)
|
|||||||
if (stacksize < PTHREAD_STACK_MIN)
|
if (stacksize < PTHREAD_STACK_MIN)
|
||||||
return EINVAL;
|
return EINVAL;
|
||||||
|
|
||||||
|
#ifdef EXTRA_PARAM_CHECKS
|
||||||
|
EXTRA_PARAM_CHECKS;
|
||||||
|
#endif
|
||||||
|
|
||||||
iattr->stacksize = stacksize;
|
iattr->stacksize = stacksize;
|
||||||
iattr->stackaddr = (char *) stackaddr + stacksize;
|
iattr->stackaddr = (char *) stackaddr + stacksize;
|
||||||
iattr->flags |= ATTR_FLAG_STACKADDR;
|
iattr->flags |= ATTR_FLAG_STACKADDR;
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 2002 Free Software Foundation, Inc.
|
/* Copyright (C) 2002, 2003 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
Contributed by Ulrich Drepper <drepper@redhat.com>, 2002.
|
Contributed by Ulrich Drepper <drepper@redhat.com>, 2002.
|
||||||
|
|
||||||
@ -29,6 +29,10 @@ __pthread_attr_setstackaddr (attr, stackaddr)
|
|||||||
{
|
{
|
||||||
struct pthread_attr *iattr;
|
struct pthread_attr *iattr;
|
||||||
|
|
||||||
|
#ifdef EXTRA_PARAM_CHECKS
|
||||||
|
EXTRA_PARAM_CHECKS;
|
||||||
|
#endif
|
||||||
|
|
||||||
assert (sizeof (*attr) >= sizeof (struct pthread_attr));
|
assert (sizeof (*attr) >= sizeof (struct pthread_attr));
|
||||||
iattr = (struct pthread_attr *) attr;
|
iattr = (struct pthread_attr *) attr;
|
||||||
|
|
Reference in New Issue
Block a user