替换popen为更安全的函数

Signed-off-by: liduo <liduo29@huawei.com>
This commit is contained in:
liduo
2025-06-27 14:40:51 +08:00
parent 243eda2d7c
commit 4368bd99d8
2 changed files with 116 additions and 18 deletions
+1
View File
@@ -29,6 +29,7 @@ namespace Restool {
constexpr uint32_t RESTOOL_SUCCESS = 0;
constexpr uint32_t RESTOOL_ERROR = -1;
constexpr uint16_t BUFFER_SIZE = 4096;
constexpr uint16_t BUFFER_SIZE_SMALL = 128;
const std::string ERROR_MORE_INFO_FILE = "restool_faq.json";
// 11200xxx unknown error
constexpr uint32_t ERR_CODE_UNDEFINED_ERROR = 11200000;