Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
ISC Open Source Projects
BIND
Commits
3184ff5e
Commit
3184ff5e
authored
Jul 25, 2003
by
Mark Andrews
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1496. [port] test for pthread_attr_setstacksize().
parent
d5d2dca9
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
4 deletions
+13
-4
CHANGES
CHANGES
+2
-0
acconfig.h
acconfig.h
+4
-1
configure.in
configure.in
+4
-1
lib/isc/pthreads/thread.c
lib/isc/pthreads/thread.c
+3
-2
No files found.
CHANGES
View file @
3184ff5e
1496. [port] test for pthread_attr_setstacksize().
1495. [cleanup] Replace hash functions with universal hash.
1494. [security] Turn on RSA BLINDING as a precaution.
...
...
acconfig.h
View file @
3184ff5e
...
...
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: acconfig.h,v 1.4
0
2003/0
4/01
05:
1
8:
21
marka Exp $ */
/* $Id: acconfig.h,v 1.4
1
2003/0
7/25
05:
0
8:
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
...
...
configure.in
View file @
3184ff5e
...
...
@@ -18,7 +18,7 @@ AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)dnl
esyscmd([sed "s/^/# /" COPYRIGHT])dnl
AC_DIVERT_POP()dnl
AC_REVISION($Revision: 1.34
5
$)
AC_REVISION($Revision: 1.34
6
$)
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.
#
...
...
lib/isc/pthreads/thread.c
View file @
3184ff5e
...
...
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: thread.c,v 1.1
0
2003/07/25 0
0
:0
1:13
marka Exp $ */
/* $Id: thread.c,v 1.1
1
2003/07/25 0
5
:0
8: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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment