* 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:
Ulrich Drepper 2003-03-04 21:28:14 +00:00
parent 518b53086c
commit 6245b6ae6a
3 changed files with 15 additions and 2 deletions

View File

@ -1,5 +1,10 @@
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
attribute, not by placing it explicitly in bss.
Remove DEFINE_DEALLOC definition. Not needed anymore.

View File

@ -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.
Contributed by Ulrich Drepper <drepper@redhat.com>, 2002.
@ -38,6 +38,10 @@ __pthread_attr_setstack (attr, stackaddr, stacksize)
if (stacksize < PTHREAD_STACK_MIN)
return EINVAL;
#ifdef EXTRA_PARAM_CHECKS
EXTRA_PARAM_CHECKS;
#endif
iattr->stacksize = stacksize;
iattr->stackaddr = (char *) stackaddr + stacksize;
iattr->flags |= ATTR_FLAG_STACKADDR;

View File

@ -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.
Contributed by Ulrich Drepper <drepper@redhat.com>, 2002.
@ -29,6 +29,10 @@ __pthread_attr_setstackaddr (attr, stackaddr)
{
struct pthread_attr *iattr;
#ifdef EXTRA_PARAM_CHECKS
EXTRA_PARAM_CHECKS;
#endif
assert (sizeof (*attr) >= sizeof (struct pthread_attr));
iattr = (struct pthread_attr *) attr;