diff options
author | Ulrich Drepper <drepper@redhat.com> | 2003-11-27 05:24:58 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2003-11-27 05:24:58 +0000 |
commit | 5cb48b84921ed301dc1cc6f6e35b8ce8ed72a430 (patch) | |
tree | 0ede7ff4fc81a165d1c7548aa701c745ec600610 /nptl/pthread_attr_destroy.c | |
parent | ab18a27d5435b374ce89efe39d2d5203b705d869 (diff) | |
download | glibc-5cb48b84921ed301dc1cc6f6e35b8ce8ed72a430.tar.gz glibc-5cb48b84921ed301dc1cc6f6e35b8ce8ed72a430.tar.xz glibc-5cb48b84921ed301dc1cc6f6e35b8ce8ed72a430.zip |
Update.
2003-11-26 Ulrich Drepper <drepper@redhat.com> * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PROT_GROWSUPDOWN): Define for 2.6.1 and up. * sysdeps/unix/sysv/linux/dl-execstack.c: Omit compatibility code if __ASSUME_PROT_GROWSUPDOWN is defined. 2003-11-26 Andreas Jaeger <aj@suse.de> * sysdeps/unix/sysv/linux/dl-execstack.c (_dl_make_stack_executable): Set dl_stack_flags always for success.
Diffstat (limited to 'nptl/pthread_attr_destroy.c')
-rw-r--r-- | nptl/pthread_attr_destroy.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/nptl/pthread_attr_destroy.c b/nptl/pthread_attr_destroy.c index a04f5fe441..73cba1da01 100644 --- a/nptl/pthread_attr_destroy.c +++ b/nptl/pthread_attr_destroy.c @@ -22,7 +22,7 @@ #include <string.h> #include <unistd.h> #include "pthreadP.h" - +#include <shlib-compat.h> int __pthread_attr_destroy (attr) @@ -33,6 +33,13 @@ __pthread_attr_destroy (attr) assert (sizeof (*attr) >= sizeof (struct pthread_attr)); iattr = (struct pthread_attr *) attr; +#if SHLIB_COMPAT(libpthread, GLIBC_2_0, GLIBC_2_1) + /* In old struct pthread_attr, neither next nor cpuset are + present. */ + if (__builtin_expect ((iattr->flags & ATTR_FLAG_OLDATTR), 0)) + return 0; +#endif + /* Enqueue the attributes to the list of all known variables. */ if (DEBUGGING_P) { |