]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
1496. [port] test for pthread_attr_setstacksize().
authorMark Andrews <marka@isc.org>
Fri, 25 Jul 2003 05:08:51 +0000 (05:08 +0000)
committerMark Andrews <marka@isc.org>
Fri, 25 Jul 2003 05:08:51 +0000 (05:08 +0000)
CHANGES
acconfig.h
configure.in
lib/isc/pthreads/thread.c

diff --git a/CHANGES b/CHANGES
index fa2702716df935a7de0e65ba3788a29a2455a2f8..901958f562c79abf64c1181870d5eafb4d69eb15 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,5 @@
+1496.  [port]          test for pthread_attr_setstacksize().
+
 1495.  [cleanup]       Replace hash functions with universal hash.
 
 1494.  [security]      Turn on RSA BLINDING as a precaution.
index 41a195c50d215084b57fa92270d002cd698232db..7f99dce83d67831ff194136fc9da65d24a8abb95 100644 (file)
@@ -15,7 +15,7 @@
  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: acconfig.h,v 1.40 2003/04/01 05:18:21 marka Exp $ */
+/* $Id: acconfig.h,v 1.41 2003/07/25 05:08:50 marka Exp $ */
 
 /***
  *** This file is not to be included by any public header files, because
@@ -133,6 +133,9 @@ int sigwait(const unsigned int *set, int *sig);
 /* define if pthread_attr_getstacksize() is available */
 #undef HAVE_PTHREAD_ATTR_GETSTACKSIZE
 
+/* define if pthread_attr_setstacksize() is available */
+#undef HAVE_PTHREAD_ATTR_SETSTACKSIZE
+
 /* define if you have strerror in the C library. */
 #undef HAVE_STRERROR
 
index 52505d3e3e8055daee479c63513df6ea6bc88c9e..32d083b35c8b1637f7a18c5547542563e51318f4 100644 (file)
@@ -18,7 +18,7 @@ AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)dnl
 esyscmd([sed "s/^/# /" COPYRIGHT])dnl
 AC_DIVERT_POP()dnl
 
-AC_REVISION($Revision: 1.345 $)
+AC_REVISION($Revision: 1.346 $)
 
 AC_INIT(lib/dns/name.c)
 AC_PREREQ(2.13)
@@ -693,6 +693,9 @@ then
        AC_CHECK_FUNC(pthread_attr_getstacksize,
                      AC_DEFINE(HAVE_PTHREAD_ATTR_GETSTACKSIZE),)
 
+       AC_CHECK_FUNC(pthread_attr_setstacksize,
+                     AC_DEFINE(HAVE_PTHREAD_ATTR_SETSTACKSIZE),)
+
        #
        # Additional OS-specific issues related to pthreads and sigwait.
        #
index 78ae4a5a6406287615f1892d2ade7e01a19611b5..de9c3c1827dfcc173befc1fb599ef0a1a5210203 100644 (file)
@@ -15,7 +15,7 @@
  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: thread.c,v 1.10 2003/07/25 00:01:13 marka Exp $ */
+/* $Id: thread.c,v 1.11 2003/07/25 05:08:51 marka Exp $ */
 
 #include <config.h>
 
@@ -36,7 +36,8 @@ isc_thread_create(isc_threadfunc_t func, isc_threadarg_t arg,
 
        pthread_attr_init(&attr);
 
-#ifdef HAVE_PTHREAD_ATTR_GETSTACKSIZE
+#if defined(HAVE_PTHREAD_ATTR_GETSTACKSIZE) && \
+    defined(HAVE_PTHREAD_ATTR_SETSTACKSIZE)
        ret = pthread_attr_getstacksize(&attr, &stacksize);
        if (ret != 0)
                return (ISC_R_UNEXPECTED);