diff options
author | Florian Obser <florian@cvs.openbsd.org> | 2020-01-26 11:25:31 +0000 |
---|---|---|
committer | Florian Obser <florian@cvs.openbsd.org> | 2020-01-26 11:25:31 +0000 |
commit | 28d5a442a71d1ed6241277206b7993e1ef4b5df6 (patch) | |
tree | 902dba8125d08793921faf163bbca42172a4feff /usr.sbin | |
parent | 5b3e70777d59c3ba70ac06b60b8dc82417ec0169 (diff) |
get rid of lib/isc/nothreads
OK tedu
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/bind/configure | 5 | ||||
-rw-r--r-- | usr.sbin/bind/configure.in | 3 | ||||
-rw-r--r-- | usr.sbin/bind/lib/dns/dst_api.c | 15 | ||||
-rw-r--r-- | usr.sbin/bind/lib/dns/name.c | 10 | ||||
-rw-r--r-- | usr.sbin/bind/lib/dns/openssl_link.c | 3 | ||||
-rw-r--r-- | usr.sbin/bind/lib/isc/Makefile.in | 7 | ||||
-rw-r--r-- | usr.sbin/bind/lib/isc/include/isc/util.h | 23 | ||||
-rw-r--r-- | usr.sbin/bind/lib/isc/nothreads/Makefile.in | 39 | ||||
-rw-r--r-- | usr.sbin/bind/lib/isc/nothreads/condition.c | 23 | ||||
-rw-r--r-- | usr.sbin/bind/lib/isc/nothreads/include/Makefile.in | 24 | ||||
-rw-r--r-- | usr.sbin/bind/lib/isc/nothreads/thread.c | 32 | ||||
-rw-r--r-- | usr.sbin/bind/lib/isc/task.c | 13 | ||||
-rw-r--r-- | usr.sbin/bind/lib/isc/timer.c | 8 |
13 files changed, 9 insertions, 196 deletions
diff --git a/usr.sbin/bind/configure b/usr.sbin/bind/configure index b56f612902d..205ade7b723 100644 --- a/usr.sbin/bind/configure +++ b/usr.sbin/bind/configure @@ -11976,7 +11976,7 @@ DNS_CRYPTO_LIBS="$NEWFLAGS" # elsewhere if there's a good reason for doing so. # -ac_config_files="$ac_config_files make/Makefile make/mkdep Makefile bin/Makefile bin/dig/Makefile lib/Makefile lib/dns/Makefile lib/dns/include/Makefile lib/dns/include/dns/Makefile lib/dns/include/dst/Makefile lib/isc/nothreads/Makefile lib/isc/nothreads/include/Makefile lib/isc/nothreads/include/isc/Makefile lib/isc/Makefile lib/isc/include/Makefile lib/isc/include/isc/Makefile lib/isc/unix/Makefile lib/isc/unix/include/Makefile lib/isc/unix/include/isc/Makefile lib/isccfg/Makefile lib/isccfg/include/Makefile lib/isccfg/include/isccfg/Makefile lib/lwres/Makefile" +ac_config_files="$ac_config_files make/Makefile make/mkdep Makefile bin/Makefile bin/dig/Makefile lib/Makefile lib/dns/Makefile lib/dns/include/Makefile lib/dns/include/dns/Makefile lib/dns/include/dst/Makefile lib/isc/Makefile lib/isc/include/Makefile lib/isc/include/isc/Makefile lib/isc/unix/Makefile lib/isc/unix/include/Makefile lib/isc/unix/include/isc/Makefile lib/isccfg/Makefile lib/isccfg/include/Makefile lib/isccfg/include/isccfg/Makefile lib/lwres/Makefile" # @@ -12989,9 +12989,6 @@ do "lib/dns/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/include/Makefile" ;; "lib/dns/include/dns/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/include/dns/Makefile" ;; "lib/dns/include/dst/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dns/include/dst/Makefile" ;; - "lib/isc/nothreads/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/nothreads/Makefile" ;; - "lib/isc/nothreads/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/nothreads/include/Makefile" ;; - "lib/isc/nothreads/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/nothreads/include/isc/Makefile" ;; "lib/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/Makefile" ;; "lib/isc/include/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/include/Makefile" ;; "lib/isc/include/isc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/isc/include/isc/Makefile" ;; diff --git a/usr.sbin/bind/configure.in b/usr.sbin/bind/configure.in index 2be89183633..f2e9d349e85 100644 --- a/usr.sbin/bind/configure.in +++ b/usr.sbin/bind/configure.in @@ -657,9 +657,6 @@ AC_CONFIG_FILES([ lib/dns/include/Makefile lib/dns/include/dns/Makefile lib/dns/include/dst/Makefile - lib/isc/nothreads/Makefile - lib/isc/nothreads/include/Makefile - lib/isc/nothreads/include/isc/Makefile lib/isc/Makefile lib/isc/include/Makefile lib/isc/include/isc/Makefile diff --git a/usr.sbin/bind/lib/dns/dst_api.c b/usr.sbin/bind/lib/dns/dst_api.c index a4097ae0b7b..aaee771daf5 100644 --- a/usr.sbin/bind/lib/dns/dst_api.c +++ b/usr.sbin/bind/lib/dns/dst_api.c @@ -33,36 +33,23 @@ /* * Principal Author: Brian Wellington - * $Id: dst_api.c,v 1.21 2020/01/26 11:23:42 florian Exp $ + * $Id: dst_api.c,v 1.22 2020/01/26 11:25:30 florian Exp $ */ /*! \file */ - - - #include <stdlib.h> #include <time.h> #include <isc/buffer.h> #include <isc/dir.h> - - #include <isc/hmacsha.h> #include <isc/lex.h> - -#include <isc/once.h> - - #include <isc/refcount.h> - #include <isc/safe.h> #include <string.h> #include <isc/time.h> #include <isc/util.h> - - - #define DST_KEY_INTERNAL #include <dns/fixedname.h> diff --git a/usr.sbin/bind/lib/dns/name.c b/usr.sbin/bind/lib/dns/name.c index 482cb44a4bf..6063c4f13ad 100644 --- a/usr.sbin/bind/lib/dns/name.c +++ b/usr.sbin/bind/lib/dns/name.c @@ -14,23 +14,15 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: name.c,v 1.22 2020/01/22 13:02:09 florian Exp $ */ +/* $Id: name.c,v 1.23 2020/01/26 11:25:30 florian Exp $ */ /*! \file */ - - - #include <ctype.h> #include <stdlib.h> - #include <isc/buffer.h> #include <isc/hash.h> -#include <isc/once.h> - - #include <string.h> -#include <isc/thread.h> #include <isc/util.h> #include <dns/compress.h> diff --git a/usr.sbin/bind/lib/dns/openssl_link.c b/usr.sbin/bind/lib/dns/openssl_link.c index 3e5fec1f43b..31c88539221 100644 --- a/usr.sbin/bind/lib/dns/openssl_link.c +++ b/usr.sbin/bind/lib/dns/openssl_link.c @@ -35,12 +35,9 @@ * Principal Author: Brian Wellington */ - #include <stdlib.h> - #include <string.h> -#include <isc/thread.h> #include <isc/util.h> #include <dns/log.h> diff --git a/usr.sbin/bind/lib/isc/Makefile.in b/usr.sbin/bind/lib/isc/Makefile.in index 4f7262e4ee7..ad6b78c9f3e 100644 --- a/usr.sbin/bind/lib/isc/Makefile.in +++ b/usr.sbin/bind/lib/isc/Makefile.in @@ -21,7 +21,6 @@ top_srcdir = @top_srcdir@ @BIND9_MAKE_INCLUDES@ CINCLUDES = -I${srcdir}/unix/include \ - -I${srcdir}/nothreads/include \ -I./include \ -I${srcdir}/include ${DNS_INCLUDES} CDEFINES = @@ -35,10 +34,6 @@ UNIXOBJS = \ unix/socket.@O@ unix/stdio.@O@ \ unix/stdtime.@O@ unix/strerror.@O@ unix/time.@O@ -THREADOPTOBJS = nothreads/condition.@O@ - -THREADOBJS = nothreads/thread.@O@ - # Alphabetically OBJS = \ aes.@O@ assertions.@O@ base32.@O@ base64.@O@ \ @@ -54,7 +49,7 @@ OBJS = \ safe.@O@ serial.@O@ sha1.@O@ sha2.@O@ sockaddr.@O@ \ symtab.@O@ task.@O@ \ timer.@O@ \ - ${UNIXOBJS} ${THREADOBJS} + ${UNIXOBJS} # Alphabetically SRCS = \ diff --git a/usr.sbin/bind/lib/isc/include/isc/util.h b/usr.sbin/bind/lib/isc/include/isc/util.h index 136c6826c1d..13fe9a8b0a1 100644 --- a/usr.sbin/bind/lib/isc/include/isc/util.h +++ b/usr.sbin/bind/lib/isc/include/isc/util.h @@ -14,7 +14,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: util.h,v 1.7 2020/01/25 10:43:06 florian Exp $ */ +/* $Id: util.h,v 1.8 2020/01/26 11:25:30 florian Exp $ */ #ifndef ISC_UTIL_H #define ISC_UTIL_H 1 @@ -86,27 +86,6 @@ */ #include <isc/result.h> /* Contractual promise. */ - -#define BROADCAST(cvp) do { \ - RUNTIME_CHECK(isc_condition_broadcast((cvp)) == ISC_R_SUCCESS); \ - } while (0) -#define SIGNAL(cvp) do { \ - RUNTIME_CHECK(isc_condition_signal((cvp)) == ISC_R_SUCCESS); \ - } while (0) -#define WAIT(cvp, lp) do { \ - RUNTIME_CHECK(isc_condition_wait((cvp), (lp)) == ISC_R_SUCCESS); \ - } while (0) - -/* - * isc_condition_waituntil can return ISC_R_TIMEDOUT, so we - * don't RUNTIME_CHECK the result. - * - * XXX Also, can't really debug this then... - */ - -#define WAITUNTIL(cvp, lp, tp) \ - isc_condition_waituntil((cvp), (lp), (tp)) - /* * List Macros. */ diff --git a/usr.sbin/bind/lib/isc/nothreads/Makefile.in b/usr.sbin/bind/lib/isc/nothreads/Makefile.in deleted file mode 100644 index b3fec8ea207..00000000000 --- a/usr.sbin/bind/lib/isc/nothreads/Makefile.in +++ /dev/null @@ -1,39 +0,0 @@ -# Copyright (C) Internet Systems Consortium, Inc. ("ISC") -# -# Permission to use, copy, modify, and/or distribute this software for any -# purpose with or without fee is hereby granted, provided that the above -# copyright notice and this permission notice appear in all copies. -# -# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH -# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -# AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, -# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE -# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -# PERFORMANCE OF THIS SOFTWARE. - -# $Id: Makefile.in,v 1.4 2020/01/07 19:08:09 florian Exp $ - -top_srcdir = @top_srcdir@ -srcdir = @srcdir@ -VPATH = @srcdir@ - -CINCLUDES = -I${srcdir}/include \ - -I${srcdir}/../unix/include \ - -I../include \ - -I${srcdir}/../include \ - -I${srcdir}/.. - -CDEFINES = -CWARNINGS = - -THREADOPTOBJS = condition.@O@ mutex.@O@ -OBJS = thread.@O@ - -THREADOPTSRCS = condition.c mutex.c -SRCS = thread.c - -SUBDIRS = include -TARGETS = ${OBJS} - -@BIND9_MAKE_RULES@ diff --git a/usr.sbin/bind/lib/isc/nothreads/condition.c b/usr.sbin/bind/lib/isc/nothreads/condition.c deleted file mode 100644 index 00006768827..00000000000 --- a/usr.sbin/bind/lib/isc/nothreads/condition.c +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (C) Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, - * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE - * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - * PERFORMANCE OF THIS SOFTWARE. - */ - -/* $Id: condition.c,v 1.4 2020/01/22 13:02:10 florian Exp $ */ - - - -#include <isc/util.h> - -EMPTY_TRANSLATION_UNIT diff --git a/usr.sbin/bind/lib/isc/nothreads/include/Makefile.in b/usr.sbin/bind/lib/isc/nothreads/include/Makefile.in deleted file mode 100644 index 01fdc099eef..00000000000 --- a/usr.sbin/bind/lib/isc/nothreads/include/Makefile.in +++ /dev/null @@ -1,24 +0,0 @@ -# Copyright (C) Internet Systems Consortium, Inc. ("ISC") -# -# Permission to use, copy, modify, and/or distribute this software for any -# purpose with or without fee is hereby granted, provided that the above -# copyright notice and this permission notice appear in all copies. -# -# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH -# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -# AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, -# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE -# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -# PERFORMANCE OF THIS SOFTWARE. - -# $Id: Makefile.in,v 1.3 2019/12/17 01:46:36 sthen Exp $ - -srcdir = @srcdir@ -VPATH = @srcdir@ -top_srcdir = @top_srcdir@ - -SUBDIRS = isc -TARGETS = - -@BIND9_MAKE_RULES@ diff --git a/usr.sbin/bind/lib/isc/nothreads/thread.c b/usr.sbin/bind/lib/isc/nothreads/thread.c deleted file mode 100644 index 69564e86883..00000000000 --- a/usr.sbin/bind/lib/isc/nothreads/thread.c +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) Internet Systems Consortium, Inc. ("ISC") - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, - * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE - * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - * PERFORMANCE OF THIS SOFTWARE. - */ - -/* $Id: thread.c,v 1.4 2020/01/22 13:02:10 florian Exp $ */ - - - -#include <isc/thread.h> -#include <isc/util.h> - -void -isc_thread_setconcurrency(unsigned int level) { - UNUSED(level); -} - -void isc_thread_setname(isc_thread_t thread, const char *name) { - UNUSED(thread); - UNUSED(name); -} diff --git a/usr.sbin/bind/lib/isc/task.c b/usr.sbin/bind/lib/isc/task.c index 66df95bac6a..e9d5e92b3ae 100644 --- a/usr.sbin/bind/lib/isc/task.c +++ b/usr.sbin/bind/lib/isc/task.c @@ -23,32 +23,25 @@ * for changing states. */ - #include <stdlib.h> #include <isc/app.h> -#include <isc/condition.h> #include <isc/event.h> - #include <isc/magic.h> - #include <isc/msgs.h> -#include <isc/once.h> - #include <string.h> #include <isc/task.h> -#include <isc/thread.h> #include <isc/util.h> #include "task_p.h" #ifdef ISC_TASK_TRACE #define XTRACE(m) fprintf(stderr, "task %p thread %lu: %s\n", \ - task, isc_thread_self(), (m)) + task, 0, (m)) #define XTTRACE(t, m) fprintf(stderr, "task %p thread %lu: %s\n", \ - (t), isc_thread_self(), (m)) + (t), 0, (m)) #define XTHREADTRACE(m) fprintf(stderr, "thread %lu: %s\n", \ - isc_thread_self(), (m)) + 0, (m)) #else #define XTRACE(m) #define XTTRACE(t, m) diff --git a/usr.sbin/bind/lib/isc/timer.c b/usr.sbin/bind/lib/isc/timer.c index 5f298395774..9707ef16a59 100644 --- a/usr.sbin/bind/lib/isc/timer.c +++ b/usr.sbin/bind/lib/isc/timer.c @@ -14,24 +14,18 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: timer.c,v 1.15 2020/01/22 13:02:10 florian Exp $ */ +/* $Id: timer.c,v 1.16 2020/01/26 11:25:30 florian Exp $ */ /*! \file */ #include <stdlib.h> #include <isc/app.h> -#include <isc/condition.h> #include <isc/heap.h> #include <isc/log.h> #include <isc/magic.h> - #include <isc/msgs.h> -#include <isc/once.h> - - #include <isc/task.h> -#include <isc/thread.h> #include <isc/time.h> #include <isc/timer.h> #include <isc/util.h> |