aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2019-03-27 11:12:30 -0400
committerJack Lloyd <[email protected]>2019-03-27 11:12:30 -0400
commitc6f1c447ce07ee064a6c72c8c7d04ad5b451811d (patch)
tree2270e0f81b7a6e23f820033226fd429bcd4c4fb5 /src/lib
parente16e981152236703bdaf482b867fb90c5f1f9f6a (diff)
parent1c6803e9f6da35de07e6f220c93e7d7512e07588 (diff)
Merge GH #1866 Rename darwin target to macos
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/entropy/getentropy/getentropy.cpp2
-rw-r--r--src/lib/rng/system_rng/system_rng.cpp2
-rw-r--r--src/lib/utils/cpuid/cpuid.h2
-rw-r--r--src/lib/utils/cpuid/cpuid_ppc.cpp8
-rw-r--r--src/lib/utils/dyn_load/info.txt2
-rw-r--r--src/lib/utils/socket/socket.cpp6
-rw-r--r--src/lib/x509/certstor_system_macos/info.txt6
7 files changed, 14 insertions, 14 deletions
diff --git a/src/lib/entropy/getentropy/getentropy.cpp b/src/lib/entropy/getentropy/getentropy.cpp
index 15bd8abe8..67bd67fb9 100644
--- a/src/lib/entropy/getentropy/getentropy.cpp
+++ b/src/lib/entropy/getentropy/getentropy.cpp
@@ -7,7 +7,7 @@
#include <botan/internal/getentropy.h>
-#if defined(BOTAN_TARGET_OS_IS_DARWIN)
+#if defined(BOTAN_TARGET_OS_IS_MACOS)
#include <sys/random.h>
#else
#include <unistd.h>
diff --git a/src/lib/rng/system_rng/system_rng.cpp b/src/lib/rng/system_rng/system_rng.cpp
index 88a8e8f01..9ef533e94 100644
--- a/src/lib/rng/system_rng/system_rng.cpp
+++ b/src/lib/rng/system_rng/system_rng.cpp
@@ -250,7 +250,7 @@ void System_RNG_Impl::add_entropy(const uint8_t input[], size_t len)
/*
* This is seen on OS X CI, despite the fact that the man page
- * for Darwin urandom explicitly states that writing to it is
+ * for macOS urandom explicitly states that writing to it is
* supported, and write(2) does not document EPERM at all.
* But in any case EPERM seems indicative of a policy decision
* by the OS or sysadmin that additional entropy is not wanted
diff --git a/src/lib/utils/cpuid/cpuid.h b/src/lib/utils/cpuid/cpuid.h
index 46eef2095..d278a8fcc 100644
--- a/src/lib/utils/cpuid/cpuid.h
+++ b/src/lib/utils/cpuid/cpuid.h
@@ -25,7 +25,7 @@ namespace Botan {
* - x86 features using CPUID. x86 is also the only processor with
* accurate cache line detection currently.
*
-* - PowerPC AltiVec detection on Linux, NetBSD, OpenBSD, and Darwin
+* - PowerPC AltiVec detection on Linux, NetBSD, OpenBSD, and macOS
*
* - ARM NEON and crypto extensions detection. On Linux and Android
* systems which support getauxval, that is used to access CPU
diff --git a/src/lib/utils/cpuid/cpuid_ppc.cpp b/src/lib/utils/cpuid/cpuid_ppc.cpp
index 3afca539c..1c1b68658 100644
--- a/src/lib/utils/cpuid/cpuid_ppc.cpp
+++ b/src/lib/utils/cpuid/cpuid_ppc.cpp
@@ -11,9 +11,9 @@
#if defined(BOTAN_TARGET_CPU_IS_PPC_FAMILY)
/*
-* On Darwin and OpenBSD ppc, use sysctl to detect AltiVec
+* On macOS and OpenBSD ppc, use sysctl to detect AltiVec
*/
-#if defined(BOTAN_TARGET_OS_IS_DARWIN)
+#if defined(BOTAN_TARGET_OS_IS_MACOS)
#include <sys/sysctl.h>
#elif defined(BOTAN_TARGET_OS_IS_OPENBSD)
#include <sys/param.h>
@@ -37,8 +37,8 @@ uint64_t CPUID::CPUID_Data::detect_cpu_features(size_t* cache_line_size)
{
BOTAN_UNUSED(cache_line_size);
-#if defined(BOTAN_TARGET_OS_IS_DARWIN) || defined(BOTAN_TARGET_OS_IS_OPENBSD)
- // On Darwin/OS X and OpenBSD, use sysctl
+#if defined(BOTAN_TARGET_OS_IS_MACOS) || defined(BOTAN_TARGET_OS_IS_OPENBSD)
+ // On macOS and OpenBSD, use sysctl
int sels[2] = {
#if defined(BOTAN_TARGET_OS_IS_OPENBSD)
diff --git a/src/lib/utils/dyn_load/info.txt b/src/lib/utils/dyn_load/info.txt
index dbc24b553..f20d00024 100644
--- a/src/lib/utils/dyn_load/info.txt
+++ b/src/lib/utils/dyn_load/info.txt
@@ -13,6 +13,6 @@ win32
android -> dl
linux -> dl
solaris -> dl
-darwin -> dl
+macos -> dl
hurd -> dl
</libs>
diff --git a/src/lib/utils/socket/socket.cpp b/src/lib/utils/socket/socket.cpp
index c9c37f2bb..880d5ecfd 100644
--- a/src/lib/utils/socket/socket.cpp
+++ b/src/lib/utils/socket/socket.cpp
@@ -12,9 +12,9 @@
#if defined(BOTAN_HAS_BOOST_ASIO)
/*
- * We don't need serial port support anyway, and asking for it
- * causes macro conflicts with Darwin's termios.h when this
- * file is included in the amalgamation. GH #350
+ * We don't need serial port support anyway, and asking for it causes
+ * macro conflicts with termios.h when this file is included in the
+ * amalgamation.
*/
#define BOOST_ASIO_DISABLE_SERIAL_PORT
#include <boost/asio.hpp>
diff --git a/src/lib/x509/certstor_system_macos/info.txt b/src/lib/x509/certstor_system_macos/info.txt
index 46cc432e5..1ad40f1d6 100644
--- a/src/lib/x509/certstor_system_macos/info.txt
+++ b/src/lib/x509/certstor_system_macos/info.txt
@@ -11,6 +11,6 @@ certstor_macos.h
</header:public>
<frameworks>
-darwin -> CoreFoundation
-darwin -> Security
-</frameworks> \ No newline at end of file
+macos -> CoreFoundation
+macos -> Security
+</frameworks>