Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
ISC Open Source Projects
BIND
Commits
70e85476
Commit
70e85476
authored
Dec 04, 2004
by
Mark Andrews
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1781. [port] FreeBSD 5.3: set PTHREAD_SCOPE_SYSTEM. [RT #12810]
parent
113598f6
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
436 additions
and
336 deletions
+436
-336
CHANGES
CHANGES
+1
-1
acconfig.h
acconfig.h
+4
-1
config.h.in
config.h.in
+4
-1
configure
configure
+414
-331
configure.in
configure.in
+6
-1
lib/isc/pthreads/thread.c
lib/isc/pthreads/thread.c
+7
-1
No files found.
CHANGES
View file @
70e85476
...
...
@@ -3,7 +3,7 @@
1782. [placeholder] rt13219
1781. [p
laceholder] rt
12810
1781. [p
ort] FreeBSD 5.3: set PTHREAD_SCOPE_SYSTEM. [RT #
12810
]
1780. [bug] Update libtool to 1.5.10.
...
...
acconfig.h
View file @
70e85476
...
...
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: acconfig.h,v 1.4
6
2004/1
0
/0
5
0
3:17:16
marka Exp $ */
/* $Id: acconfig.h,v 1.4
7
2004/1
2
/0
4
0
6:47:02
marka Exp $ */
/***
*** This file is not to be included by any public header files, because
...
...
@@ -142,3 +142,6 @@ int sigwait(const unsigned int *set, int *sig);
/* Define to the length type used by the socket API (socklen_t, size_t, int). */
#undef ISC_SOCKADDR_LEN_T
/* Define if threads need PTHREAD_SCOPE_SYSTEM */
#undef NEED_PTHREAD_SCOPE_SYSTEM
config.h.in
View file @
70e85476
...
...
@@ -16,7 +16,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: config.h.in,v 1.6
3
2004/1
0
/0
5
0
3:17:16
marka Exp $ */
/* $Id: config.h.in,v 1.6
4
2004/1
2
/0
4
0
6:48:43
marka Exp $ */
/***
*** This file is not to be included by any public header files, because
...
...
@@ -143,6 +143,9 @@ int sigwait(const unsigned int *set, int *sig);
/* Define to the length type used by the socket API (socklen_t, size_t, int). */
#undef ISC_SOCKADDR_LEN_T
/* Define if threads need PTHREAD_SCOPE_SYSTEM */
#undef NEED_PTHREAD_SCOPE_SYSTEM
/* Define to 1 if you have the <dlfcn.h> header file. */
#undef HAVE_DLFCN_H
...
...
configure
View file @
70e85476
This diff is collapsed.
Click to expand it.
configure.in
View file @
70e85476
...
...
@@ -18,7 +18,7 @@ AC_DIVERT_PUSH(1)dnl
esyscmd([sed "s/^/# /" COPYRIGHT])dnl
AC_DIVERT_POP()dnl
AC_REVISION($Revision: 1.36
6
$)
AC_REVISION($Revision: 1.36
7
$)
AC_INIT(lib/dns/name.c)
AC_PREREQ(2.13)
...
...
@@ -789,6 +789,11 @@ then
#
*-freebsd*)
AC_CHECK_LIB(c_r, sigwait, AC_DEFINE(HAVE_SIGWAIT),)
case $host in
*-freebsd5.3|*-freebsd5.3.*)
AC_DEFINE(NEED_PTHREAD_SCOPE_SYSTEM)
;;
esac
;;
#
# BSDI 3.0 through 4.0.1 needs pthread_init() to be
...
...
lib/isc/pthreads/thread.c
View file @
70e85476
...
...
@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: thread.c,v 1.1
2
2004/
03
/0
5
0
5:11:17
marka Exp $ */
/* $Id: thread.c,v 1.1
3
2004/
12
/0
4
0
6:47:03
marka Exp $ */
#include <config.h>
...
...
@@ -49,6 +49,12 @@ isc_thread_create(isc_threadfunc_t func, isc_threadarg_t arg,
}
#endif
#if defined(PTHREAD_SCOPE_SYSTEM) && defined(NEED_PTHREAD_SCOPE_SYSTEM)
ret
=
pthread_attr_setscope
(
&
attr
,
PTHREAD_SCOPE_SYSTEM
);
if
(
ret
!=
0
)
return
(
ISC_R_UNEXPECTED
);
#endif
ret
=
pthread_create
(
thread
,
&
attr
,
func
,
arg
);
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