summaryrefslogtreecommitdiff
path: root/nptl
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-03-04 21:28:14 +0000
committerUlrich Drepper <drepper@redhat.com>2003-03-04 21:28:14 +0000
commit6245b6ae6aa792737f3b4acca34c8cf1a0bf2a80 (patch)
treeb18a1ae7a527b37d8f49cc8fd049355a4b31b86b /nptl
parent518b53086ca3c10b3587e1162602c8f2aacccbde (diff)
downloadglibc-6245b6ae6aa792737f3b4acca34c8cf1a0bf2a80.tar.gz
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.
Diffstat (limited to 'nptl')
-rw-r--r--nptl/ChangeLog5
-rw-r--r--nptl/sysdeps/pthread/pthread_attr_setstack.c (renamed from nptl/pthread_attr_setstack.c)6
-rw-r--r--nptl/sysdeps/pthread/pthread_attr_setstackaddr.c (renamed from nptl/pthread_attr_setstackaddr.c)6
3 files changed, 15 insertions, 2 deletions
diff --git a/nptl/ChangeLog b/nptl/ChangeLog
index 8756489cad..daa6b4e46c 100644
--- a/nptl/ChangeLog
+++ b/nptl/ChangeLog
@@ -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.
diff --git a/nptl/pthread_attr_setstack.c b/nptl/sysdeps/pthread/pthread_attr_setstack.c
index 811ab69791..b5105f1fc1 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 <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;
diff --git a/nptl/pthread_attr_setstackaddr.c b/nptl/sysdeps/pthread/pthread_attr_setstackaddr.c
index a72511225f..0d7a7c0eb1 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 <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;