This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH 3/4] Use PTHREAD_DESTRUCTOR_ITERATIONS
- From: Siddhesh Poyarekar <siddhesh at redhat dot com>
- To: libc-alpha at sourceware dot org
- Cc: roland at hack dot frob dot com
- Date: Fri, 19 Sep 2014 15:50:06 +0530
- Subject: [PATCH 3/4] Use PTHREAD_DESTRUCTOR_ITERATIONS
- Authentication-results: sourceware.org; auth=none
- References: <1411122007-1461-1-git-send-email-siddhesh at redhat dot com>
The _POSIX_THREAD_DESTRUCTOR_ITERATIONS variable is not implemented by
getconf, so to get both getconf and sysconf on the same page, make the
latter use PTHREAD_DESTRUCTOR_ITERATIONS.
The generated code is unchanged on x86_64.
Siddhesh
* posix/conf.list (SYSCONF:POSIX): Remove
THREAD_DESTRUCTOR_ITERATIONS.
* sysdeps/posix/sysconf.c (__sysconf): Use
PTHREAD_DESTRUCTOR_ITERATIONS.
---
posix/conf.list | 1 -
sysdeps/posix/sysconf.c | 4 ++--
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/posix/conf.list b/posix/conf.list
index 6c870af..07607b7 100644
--- a/posix/conf.list
+++ b/posix/conf.list
@@ -100,7 +100,6 @@ SYSCONF:POSIX {
USER_GROUPS_R
VERSION
# Additional variables not in getconf.
- THREAD_DESTRUCTOR_ITERATIONS
IPV6
RAW_SOCKETS
}
diff --git a/sysdeps/posix/sysconf.c b/sysdeps/posix/sysconf.c
index f5b65bf..c7b748b 100644
--- a/sysdeps/posix/sysconf.c
+++ b/sysdeps/posix/sysconf.c
@@ -555,8 +555,8 @@ __sysconf (name)
#endif
case _SC_THREAD_DESTRUCTOR_ITERATIONS:
-#if CONF_IS_DEFINED_SET (_POSIX_THREAD_DESTRUCTOR_ITERATIONS)
- return _POSIX_THREAD_DESTRUCTOR_ITERATIONS;
+#if PTHREAD_DESTRUCTOR_ITERATIONS
+ return PTHREAD_DESTRUCTOR_ITERATIONS;
#else
return -1;
#endif
--
1.9.3