From: Ulrich Drepper Date: Tue, 4 Mar 2003 21:28:14 +0000 (+0000) Subject: Update. X-Git-Tag: cvs/glibc-2_3_3~1356 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6245b6ae6aa792737f3b4acca34c8cf1a0bf2a80;p=thirdparty%2Fglibc.git 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. --- diff --git a/nptl/ChangeLog b/nptl/ChangeLog index 8756489cad6..daa6b4e46c1 100644 --- a/nptl/ChangeLog +++ b/nptl/ChangeLog @@ -1,5 +1,10 @@ 2003-03-04 Ulrich Drepper + * 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. diff --git a/nptl/pthread_attr_setstack.c b/nptl/sysdeps/pthread/pthread_attr_setstack.c similarity index 92% rename from nptl/pthread_attr_setstack.c rename to nptl/sysdeps/pthread/pthread_attr_setstack.c index 811ab697916..b5105f1fc15 100644 --- a/nptl/pthread_attr_setstack.c +++ b/nptl/sysdeps/pthread/pthread_attr_setstack.c @@ -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 , 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; diff --git a/nptl/pthread_attr_setstackaddr.c b/nptl/sysdeps/pthread/pthread_attr_setstackaddr.c similarity index 92% rename from nptl/pthread_attr_setstackaddr.c rename to nptl/sysdeps/pthread/pthread_attr_setstackaddr.c index a72511225f7..0d7a7c0eb1a 100644 --- a/nptl/pthread_attr_setstackaddr.c +++ b/nptl/sysdeps/pthread/pthread_attr_setstackaddr.c @@ -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 , 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;