Setting the size of the ipc pipe buffers is not mandatory, ref #614

This commit is contained in:
emeric
2025-02-16 13:16:06 +01:00
parent 768c7ede6c
commit 923c632878
4 changed files with 42 additions and 17 deletions
+9
View File
@@ -20,6 +20,8 @@
#include "core/String.hpp"
#include <algorithm>
#include <array>
#include <cstring>
#include <iomanip>
#include <utility>
@@ -504,4 +506,11 @@ namespace lms::core::stringUtils
return "[" + std::to_string(mins) + ":" + (secs < 10 ? "0" : "") + std::to_string(secs) + "." + (millis < 100 ? (millis < 10 ? "00" : "0") : "") + std::to_string(millis) + "]";
}
std::string systemErrorToString(int err)
{
std::array<char, 128> buffer{};
::strerror_r(err, buffer.data(), buffer.size());
return std::string{ buffer.data() };
}
} // namespace lms::core::stringUtils