diff --git a/AUTHORS b/AUTHORS index babaa038..302f98fd 100644 --- a/AUTHORS +++ b/AUTHORS @@ -6,7 +6,7 @@ ----------- Bfdev Designer Group -Name : John Sanpe +Name : Zhenlin Wang Email : sanpeqf@gmail.com Represent : framework diff --git a/CMakeLists.txt b/CMakeLists.txt index 8efee53b..9245ad55 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0-or-later # # Copyright(c) 2023 ffashion -# Copyright(c) 2023 John Sanpe +# Copyright(c) 2023 Zhenlin Wang # cmake_minimum_required(VERSION 3.12) @@ -26,6 +26,7 @@ set(BFDEV_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake) set(BFDEV_HEADER_PATH ${PROJECT_SOURCE_DIR}/include) set(BFDEV_SOURCE_PATH ${PROJECT_SOURCE_DIR}/src) set(BFDEV_TEMPLATE_PATH ${PROJECT_SOURCE_DIR}/template) +set(BFDEV_MODULES_PATH ${PROJECT_SOURCE_DIR}/modules) set(BFDEV_PORT_PATH ${PROJECT_SOURCE_DIR}/port) set(BFDEV_DOCUMENT_PATH ${PROJECT_SOURCE_DIR}/docs) set(BFDEV_GENERATED_PATH ${PROJECT_BINARY_DIR}/generated) @@ -38,6 +39,7 @@ set(BFDEV_CONFIGURE ${BFDEV_GENERATED_PATH}/bfdev-config.cmake) include(${PROJECT_SOURCE_DIR}/scripts/hostrule.cmake) include(${PROJECT_SOURCE_DIR}/scripts/packed-header.cmake) include(${PROJECT_SOURCE_DIR}/scripts/commit.cmake) +include(${PROJECT_SOURCE_DIR}/scripts/platform.cmake) commit_hash(BFDEV_COMMITID) commit_branch(BFDEV_BRANCH) @@ -56,6 +58,8 @@ option(BFDEV_STRICT "Enable strict compilation" OFF) option(BFDEV_EXAMPLES "Build examples" OFF) option(BFDEV_TESTSUITE "Build testsuite" OFF) +option(BFDEV_TEMPLATE "Build Template Library" ON) +option(BFDEV_MODULES "Build Modules Library" ON) option(BFDEV_BUILD_STATIC "Build Static Library" ON) option(BFDEV_BUILD_SHARED "Build Shared Library" ON) option(BFDEV_INSTALL_HEADERS "Install Headers" ON) @@ -85,15 +89,49 @@ if(BFDEV_DEVEL) set(BFDEV_GCOV ON) endif() +if(NOT BFDEV_PORT_TYPE STREQUAL "posix") + set(BFDEV_MODULES OFF) + set(BFDEV_EXAMPLES OFF) + set(BFDEV_TESTSUITE OFF) +endif() + +if(BFDEV_EXAMPLES OR BFDEV_TESTSUITE) + set(BFDEV_TEMPLATE ON) + set(BFDEV_MODULES ON) +endif() + include(${PROJECT_SOURCE_DIR}/build.cmake) add_subdirectory(${PROJECT_SOURCE_DIR}/scripts) -packed_header( - bfdev/template/ - _BFDEV_TEMPLATE_H_ - ${BFDEV_GENERATED_PATH}/bfdev/template.h - ${BFDEV_HEADER_PATH}/bfdev/template -) +if(BFDEV_TEMPLATE) + packed_header( + bfdev/template/ + _BFDEV_TEMPLATE_H_ + ${BFDEV_GENERATED_PATH}/bfdev/template.h + ${BFDEV_HEADER_PATH}/bfdev/template + ) +else() + set(BFDEV_EXPORT_EXTRA + ${BFDEV_EXPORT_EXTRA} + COMMAND ${CMAKE_COMMAND} -E rm -rf + ${BFDEV_EXPORT_PATH}/bfdev/template + ) +endif() + +if(BFDEV_MODULES) + packed_header( + bfdev/modules/ + _BFDEV_MODULES_H_ + ${BFDEV_GENERATED_PATH}/bfdev/modules.h + ${BFDEV_HEADER_PATH}/bfdev/modules + ) +else() + set(BFDEV_EXPORT_EXTRA + ${BFDEV_EXPORT_EXTRA} + COMMAND ${CMAKE_COMMAND} -E rm -rf + ${BFDEV_EXPORT_PATH}/bfdev/modules + ) +endif() packed_header( bfdev/ @@ -116,6 +154,7 @@ add_custom_target( ${BFDEV_ARCH_HEADER_PATH}/bfdev ${BFDEV_GENERATED_PATH}/bfdev ${BFDEV_EXPORT_PATH}/bfdev + ${BFDEV_EXPORT_EXTRA} ) set_property( diff --git a/arch/generic/build.cmake b/arch/generic/build.cmake index e94bbed1..6c342858 100644 --- a/arch/generic/build.cmake +++ b/arch/generic/build.cmake @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-2.0-or-later # -# Copyright(c) 2023 John Sanpe +# Copyright(c) 2023 Zhenlin Wang # # diff --git a/arch/generic/include/bfdev/asm/bitops.h b/arch/generic/include/bfdev/asm/bitops.h index f5a528b2..9a860fdf 100644 --- a/arch/generic/include/bfdev/asm/bitops.h +++ b/arch/generic/include/bfdev/asm/bitops.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2024 John Sanpe + * Copyright(c) 2024 Zhenlin Wang */ #ifndef _BFDEV_ASM_BITOPS_H_ diff --git a/arch/generic/include/bfdev/asm/dword.h b/arch/generic/include/bfdev/asm/dword.h index 4a45aa82..228948af 100644 --- a/arch/generic/include/bfdev/asm/dword.h +++ b/arch/generic/include/bfdev/asm/dword.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2024 John Sanpe + * Copyright(c) 2024 Zhenlin Wang */ #ifndef _BFDEV_ASM_DWORD_H_ diff --git a/bfdev.cmake b/bfdev.cmake index fe590f99..02298261 100644 --- a/bfdev.cmake +++ b/bfdev.cmake @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-2.0-or-later # -# Copyright(c) 2025 John Sanpe +# Copyright(c) 2025 Zhenlin Wang # set(CMAKE_POLICY_DEFAULT_CMP0077 NEW) diff --git a/build.cmake b/build.cmake index bf10832c..11da06f3 100644 --- a/build.cmake +++ b/build.cmake @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-2.0-or-later # -# Copyright(c) 2023 John Sanpe +# Copyright(c) 2023 Zhenlin Wang # set(CMAKE_C_FLAGS @@ -55,12 +55,17 @@ set(BFDEV_INCLUDE_DIRS ) include_directories(${BFDEV_INCLUDE_DIRS}) -include(${PROJECT_SOURCE_DIR}/scripts/platform.cmake) include(${BFDEV_PORT_PATH}/build.cmake) - include(${BFDEV_ARCH_PATH}/build.cmake) include(${BFDEV_SOURCE_PATH}/build.cmake) -include(${BFDEV_TEMPLATE_PATH}/build.cmake) + +if(BFDEV_TEMPLATE) + include(${BFDEV_TEMPLATE_PATH}/build.cmake) +endif() + +if(BFDEV_MODULES) + include(${BFDEV_MODULES_PATH}/build.cmake) +endif() configure_file( ${BFDEV_MODULE_PATH}/config.h.in diff --git a/cmake/config.h.in b/cmake/config.h.in index 782e6cd2..a2c9693f 100644 --- a/cmake/config.h.in +++ b/cmake/config.h.in @@ -1,7 +1,7 @@ -/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* SPDX-License-Identifier: LGPL-3.0-or-later */ /* * Copyright(c) 2023 ffashion - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_CONFIG_H_ diff --git a/examples/action/simple.c b/examples/action/simple.c index 4b47530a..a85bcb47 100644 --- a/examples/action/simple.c +++ b/examples/action/simple.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #define MODULE_NAME "action-simple" diff --git a/examples/allocator/CMakeLists.txt b/examples/allocator/CMakeLists.txt index 2204df3e..d6c7cc47 100644 --- a/examples/allocator/CMakeLists.txt +++ b/examples/allocator/CMakeLists.txt @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-2.0-or-later # -# Copyright(c) 2023 John Sanpe +# Copyright(c) 2023 Zhenlin Wang # add_executable(allocator-simple simple.c) diff --git a/examples/allocator/guards.c b/examples/allocator/guards.c index 6c7807f8..24f16ecb 100644 --- a/examples/allocator/guards.c +++ b/examples/allocator/guards.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ /* - * Copyright(c) 2025 John Sanpe + * Copyright(c) 2025 Zhenlin Wang */ #include diff --git a/examples/allocator/simple.c b/examples/allocator/simple.c index 6e68b8f7..1a26abd0 100644 --- a/examples/allocator/simple.c +++ b/examples/allocator/simple.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #include diff --git a/examples/arc4/CMakeLists.txt b/examples/arc4/CMakeLists.txt index 69a1cf41..ec98ffd5 100644 --- a/examples/arc4/CMakeLists.txt +++ b/examples/arc4/CMakeLists.txt @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-2.0-or-later # -# Copyright(c) 2024 John Sanpe +# Copyright(c) 2024 Zhenlin Wang # add_executable(arc4-bandwidth bandwidth.c) diff --git a/examples/arc4/bandwidth.c b/examples/arc4/bandwidth.c index a6c7289a..8c38cefc 100644 --- a/examples/arc4/bandwidth.c +++ b/examples/arc4/bandwidth.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ /* - * Copyright(c) 2024 John Sanpe + * Copyright(c) 2024 Zhenlin Wang */ #define MODULE_NAME "arc4-bandwidth" diff --git a/examples/array/simple-append.c b/examples/array/simple-append.c index af49737e..94c54d35 100644 --- a/examples/array/simple-append.c +++ b/examples/array/simple-append.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #define MODULE_NAME "array-simple-append" diff --git a/examples/array/simple-splice.c b/examples/array/simple-splice.c index 1ee641cd..ec2efd6b 100644 --- a/examples/array/simple-splice.c +++ b/examples/array/simple-splice.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #define MODULE_NAME "array-simple-splice" diff --git a/examples/array/simple-stack.c b/examples/array/simple-stack.c index 687b7159..3d953872 100644 --- a/examples/array/simple-stack.c +++ b/examples/array/simple-stack.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #define MODULE_NAME "array-simple-stack" diff --git a/examples/array/simple-write.c b/examples/array/simple-write.c index de1d4c15..16d0204a 100644 --- a/examples/array/simple-write.c +++ b/examples/array/simple-write.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ /* - * Copyright(c) 2025 John Sanpe + * Copyright(c) 2025 Zhenlin Wang */ #define MODULE_NAME "array-simple-write" diff --git a/examples/ascii85/CMakeLists.txt b/examples/ascii85/CMakeLists.txt index 9b258bbd..f7d92147 100644 --- a/examples/ascii85/CMakeLists.txt +++ b/examples/ascii85/CMakeLists.txt @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-2.0-or-later # -# Copyright(c) 2024 John Sanpe +# Copyright(c) 2024 Zhenlin Wang # add_executable(ascii85-bandwidth bandwidth.c) diff --git a/examples/ascii85/bandwidth.c b/examples/ascii85/bandwidth.c index f3f4c0f1..a0d4672a 100644 --- a/examples/ascii85/bandwidth.c +++ b/examples/ascii85/bandwidth.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ /* - * Copyright(c) 2024 John Sanpe + * Copyright(c) 2024 Zhenlin Wang */ #define MODULE_NAME "ascii85-bandwidth" diff --git a/examples/ascii85/utils.c b/examples/ascii85/utils.c index c11dea6c..8b6f73ce 100644 --- a/examples/ascii85/utils.c +++ b/examples/ascii85/utils.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ /* - * Copyright(c) 2024 John Sanpe + * Copyright(c) 2024 Zhenlin Wang */ #define MODULE_NAME "bfdev-ascii85" diff --git a/examples/atomic/CMakeLists.txt b/examples/atomic/CMakeLists.txt index 51210be2..75440ef9 100644 --- a/examples/atomic/CMakeLists.txt +++ b/examples/atomic/CMakeLists.txt @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-2.0-or-later # -# Copyright(c) 2023 John Sanpe +# Copyright(c) 2023 Zhenlin Wang # add_executable(atomic-spinlock spinlock.c) diff --git a/examples/atomic/spinlock.c b/examples/atomic/spinlock.c index 14d8089b..1e60215f 100644 --- a/examples/atomic/spinlock.c +++ b/examples/atomic/spinlock.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ /* - * Copyright(c) 2025 John Sanpe + * Copyright(c) 2025 Zhenlin Wang */ #define MODULE_NAME "atomic-spinlock" diff --git a/examples/base32/CMakeLists.txt b/examples/base32/CMakeLists.txt index 45b2084c..41ac812f 100644 --- a/examples/base32/CMakeLists.txt +++ b/examples/base32/CMakeLists.txt @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-2.0-or-later # -# Copyright(c) 2023 John Sanpe +# Copyright(c) 2023 Zhenlin Wang # add_executable(base32-bandwidth bandwidth.c) diff --git a/examples/base32/bandwidth.c b/examples/base32/bandwidth.c index dc2a9300..b6f06320 100644 --- a/examples/base32/bandwidth.c +++ b/examples/base32/bandwidth.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #define MODULE_NAME "base32-bandwidth" diff --git a/examples/base32/utils.c b/examples/base32/utils.c index 6e7a55f1..c72ddec8 100644 --- a/examples/base32/utils.c +++ b/examples/base32/utils.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ /* - * Copyright(c) 2024 John Sanpe + * Copyright(c) 2024 Zhenlin Wang */ #define MODULE_NAME "bfdev-base32" diff --git a/examples/base64/CMakeLists.txt b/examples/base64/CMakeLists.txt index 58eaa203..b28b0da4 100644 --- a/examples/base64/CMakeLists.txt +++ b/examples/base64/CMakeLists.txt @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-2.0-or-later # -# Copyright(c) 2023 John Sanpe +# Copyright(c) 2023 Zhenlin Wang # add_executable(base64-bandwidth bandwidth.c) diff --git a/examples/base64/bandwidth.c b/examples/base64/bandwidth.c index c58d1685..88886748 100644 --- a/examples/base64/bandwidth.c +++ b/examples/base64/bandwidth.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #define MODULE_NAME "base64-bandwidth" diff --git a/examples/base64/utils.c b/examples/base64/utils.c index 856b9160..dca3ada8 100644 --- a/examples/base64/utils.c +++ b/examples/base64/utils.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ /* - * Copyright(c) 2024 John Sanpe + * Copyright(c) 2024 Zhenlin Wang */ #define MODULE_NAME "bfdev-base64" diff --git a/examples/bfdev/CMakeLists.txt b/examples/bfdev/CMakeLists.txt index 94f178c4..fa1c2f45 100644 --- a/examples/bfdev/CMakeLists.txt +++ b/examples/bfdev/CMakeLists.txt @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-2.0-or-later # -# Copyright(c) 2023 John Sanpe +# Copyright(c) 2023 Zhenlin Wang # add_executable(bfdev-version version.c) diff --git a/examples/bfdev/version.c b/examples/bfdev/version.c index e4e671ef..4af98feb 100644 --- a/examples/bfdev/version.c +++ b/examples/bfdev/version.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #include diff --git a/examples/bloom/simple.c b/examples/bloom/simple.c index e4593d12..6a8c9bb9 100644 --- a/examples/bloom/simple.c +++ b/examples/bloom/simple.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #include diff --git a/examples/btree/benchmark.c b/examples/btree/benchmark.c index 2dfad913..bdcf7284 100644 --- a/examples/btree/benchmark.c +++ b/examples/btree/benchmark.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ /* - * Copyright(c) 2021 John Sanpe + * Copyright(c) 2021 Zhenlin Wang */ #define MODULE_NAME "btree-benchmark" diff --git a/examples/btree/selftest.c b/examples/btree/selftest.c index 469d61b3..dcdfe290 100644 --- a/examples/btree/selftest.c +++ b/examples/btree/selftest.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ /* - * Copyright(c) 2022 John Sanpe + * Copyright(c) 2022 Zhenlin Wang */ #include diff --git a/examples/buff/string.c b/examples/buff/string.c index 64bf7eaa..864bf02f 100644 --- a/examples/buff/string.c +++ b/examples/buff/string.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ /* - * Copyright(c) 2025 John Sanpe + * Copyright(c) 2025 Zhenlin Wang */ #define MODULE_NAME "string-simple" diff --git a/examples/cache/CMakeLists.txt b/examples/cache/CMakeLists.txt index 666eccc5..d05a0b51 100644 --- a/examples/cache/CMakeLists.txt +++ b/examples/cache/CMakeLists.txt @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-2.0-or-later # -# Copyright(c) 2023 John Sanpe +# Copyright(c) 2023 Zhenlin Wang # add_executable(cache-simple simple.c) diff --git a/examples/cache/simple.c b/examples/cache/simple.c index 7452b937..765e7c87 100644 --- a/examples/cache/simple.c +++ b/examples/cache/simple.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #define MODULE_NAME "cache-simple" diff --git a/examples/circle/atomic.c b/examples/circle/atomic.c index b6eeb2d0..7f56d1db 100644 --- a/examples/circle/atomic.c +++ b/examples/circle/atomic.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ /* - * Copyright(c) 2021 John Sanpe + * Copyright(c) 2021 Zhenlin Wang */ #include diff --git a/examples/crc/CMakeLists.txt b/examples/crc/CMakeLists.txt index 87e082ad..9e7391b2 100644 --- a/examples/crc/CMakeLists.txt +++ b/examples/crc/CMakeLists.txt @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-2.0-or-later # -# Copyright(c) 2023 John Sanpe +# Copyright(c) 2023 Zhenlin Wang # add_executable(crc-bandwidth bandwidth.c) diff --git a/examples/crc/bandwidth.c b/examples/crc/bandwidth.c index dd85130f..0d391ba0 100644 --- a/examples/crc/bandwidth.c +++ b/examples/crc/bandwidth.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #define MODULE_NAME "crc-bandwidth" diff --git a/examples/crypto/CMakeLists.txt b/examples/crypto/CMakeLists.txt index 7ed58fee..436c0fd8 100644 --- a/examples/crypto/CMakeLists.txt +++ b/examples/crypto/CMakeLists.txt @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-2.0-or-later # -# Copyright(c) 2023 John Sanpe +# Copyright(c) 2023 Zhenlin Wang # add_executable(crypto-bandwidth bandwidth.c) diff --git a/examples/crypto/bandwidth.c b/examples/crypto/bandwidth.c index a2879c72..623b6395 100644 --- a/examples/crypto/bandwidth.c +++ b/examples/crypto/bandwidth.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ /* - * Copyright(c) 2024 John Sanpe + * Copyright(c) 2024 Zhenlin Wang */ #define MODULE_NAME "crypto-bandwidth" diff --git a/examples/crypto/utils.c b/examples/crypto/utils.c index 2a661783..ae7b6226 100644 --- a/examples/crypto/utils.c +++ b/examples/crypto/utils.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ /* - * Copyright(c) 2024 John Sanpe + * Copyright(c) 2024 Zhenlin Wang */ #define MODULE_NAME "bfdev-crypto" diff --git a/examples/fifo/atomic.c b/examples/fifo/atomic.c index e98676c6..8f0b6bfa 100644 --- a/examples/fifo/atomic.c +++ b/examples/fifo/atomic.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ /* - * Copyright(c) 2022 John Sanpe + * Copyright(c) 2022 Zhenlin Wang */ #include diff --git a/examples/fsm/console.c b/examples/fsm/console.c index f36329e9..8a9a5d7f 100644 --- a/examples/fsm/console.c +++ b/examples/fsm/console.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #include diff --git a/examples/glob/CMakeLists.txt b/examples/glob/CMakeLists.txt index 9d9e5d3b..d67963fa 100644 --- a/examples/glob/CMakeLists.txt +++ b/examples/glob/CMakeLists.txt @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-2.0-or-later # -# Copyright(c) 2023 John Sanpe +# Copyright(c) 2023 Zhenlin Wang # add_executable(glob utils.c) diff --git a/examples/glob/utils.c b/examples/glob/utils.c index 8c5db756..65e68519 100644 --- a/examples/glob/utils.c +++ b/examples/glob/utils.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ /* - * Copyright(c) 2025 John Sanpe + * Copyright(c) 2025 Zhenlin Wang */ #define MODULE_NAME "bfdev-glob" diff --git a/examples/guards/class.c b/examples/guards/class.c index 0612092d..f3464296 100644 --- a/examples/guards/class.c +++ b/examples/guards/class.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ /* - * Copyright(c) 2025 John Sanpe + * Copyright(c) 2025 Zhenlin Wang */ #include diff --git a/examples/guards/cleanup.c b/examples/guards/cleanup.c index fc3491c3..7a433448 100644 --- a/examples/guards/cleanup.c +++ b/examples/guards/cleanup.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #include diff --git a/examples/hashmap/benchmark.c b/examples/hashmap/benchmark.c index df527115..49dd9ab1 100644 --- a/examples/hashmap/benchmark.c +++ b/examples/hashmap/benchmark.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #define MODULE_NAME "hashmap-benchmark" diff --git a/examples/hashmap/simple.c b/examples/hashmap/simple.c index 68b69147..d912a4e2 100644 --- a/examples/hashmap/simple.c +++ b/examples/hashmap/simple.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #include diff --git a/examples/hashtbl/simple.c b/examples/hashtbl/simple.c index b9bb1b6b..237230c5 100644 --- a/examples/hashtbl/simple.c +++ b/examples/hashtbl/simple.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ /* - * Copyright(c) 2021 John Sanpe + * Copyright(c) 2021 Zhenlin Wang */ #include diff --git a/examples/heap/benchmark.c b/examples/heap/benchmark.c index 05a9ffc4..c44fec91 100644 --- a/examples/heap/benchmark.c +++ b/examples/heap/benchmark.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ /* - * Copyright(c) 2021 John Sanpe + * Copyright(c) 2021 Zhenlin Wang */ #define MODULE_NAME "heap-benchmark" diff --git a/examples/heap/selftest.c b/examples/heap/selftest.c index 8c846b0f..6d5ee5ce 100644 --- a/examples/heap/selftest.c +++ b/examples/heap/selftest.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ /* - * Copyright(c) 2022 John Sanpe + * Copyright(c) 2022 Zhenlin Wang */ #define MODULE_NAME "heap-selftest" diff --git a/examples/hlist/simple.c b/examples/hlist/simple.c index 56d86685..6a9894d2 100644 --- a/examples/hlist/simple.c +++ b/examples/hlist/simple.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ /* - * Copyright(c) 2021 John Sanpe + * Copyright(c) 2021 Zhenlin Wang */ #include diff --git a/examples/ilist/selftest.c b/examples/ilist/selftest.c index 54db0bb0..55fc8daf 100644 --- a/examples/ilist/selftest.c +++ b/examples/ilist/selftest.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ /* - * Copyright(c) 2021 John Sanpe + * Copyright(c) 2021 Zhenlin Wang */ #include diff --git a/examples/knuth/simple.c b/examples/knuth/simple.c index cd4e023f..8a235b1d 100644 --- a/examples/knuth/simple.c +++ b/examples/knuth/simple.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ /* - * Copyright(c) 2025 John Sanpe + * Copyright(c) 2025 Zhenlin Wang */ #define MODULE_NAME "knuth-simple" diff --git a/examples/levenshtein/simple.c b/examples/levenshtein/simple.c index 7505222f..1cef644c 100644 --- a/examples/levenshtein/simple.c +++ b/examples/levenshtein/simple.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #include diff --git a/examples/list/benchmark.c b/examples/list/benchmark.c index f942cfa6..59670d79 100644 --- a/examples/list/benchmark.c +++ b/examples/list/benchmark.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ /* - * Copyright(c) 2021 John Sanpe + * Copyright(c) 2021 Zhenlin Wang */ #define MODULE_NAME "list-benchmark" diff --git a/examples/log/CMakeLists.txt b/examples/log/CMakeLists.txt index 1c453122..5d5f4efe 100644 --- a/examples/log/CMakeLists.txt +++ b/examples/log/CMakeLists.txt @@ -1,27 +1,27 @@ # SPDX-License-Identifier: GPL-2.0-or-later # -# Copyright(c) 2023 John Sanpe +# Copyright(c) 2023 Zhenlin Wang # add_executable(log-simple simple.c) target_link_libraries(log-simple bfdev) add_test(log-simple log-simple) -add_executable(log-date date.c) -target_link_libraries(log-date bfdev) -add_test(log-date log-date) +add_executable(log-modules modules.c) +target_link_libraries(log-modules bfdev) +add_test(log-modules log-modules) if(${CMAKE_PROJECT_NAME} STREQUAL "bfdev") install(FILES simple.c - date.c + modules.c DESTINATION ${CMAKE_INSTALL_DOCDIR}/examples/log ) install(TARGETS log-simple - log-date + log-modules DESTINATION ${CMAKE_INSTALL_DOCDIR}/bin ) diff --git a/examples/log/date.c b/examples/log/date.c deleted file mode 100644 index 7de69ab1..00000000 --- a/examples/log/date.c +++ /dev/null @@ -1,46 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0-or-later */ -/* - * Copyright(c) 2023 John Sanpe - */ - -#define MODULE_NAME "log-date" -#define bfdev_log_fmt(fmt) MODULE_NAME ": " fmt - -#include -#include -#include -#include - -static int -log_hook_date(bfdev_log_message_t *msg, void *pdata) -{ - struct tm *tm_info; - time_t timestamp; - char buff[64]; - - time(×tamp); - tm_info = localtime(×tamp); - strftime(buff, sizeof(buff), "%a %b %d %H:%M:%S %p %Z %Y", tm_info); - - return bfdev_msg_append(msg, "<%s> ", buff); -} - -static bfdev_log_chain_t -log_chain_date = { - .func = log_hook_date, - .priority = 0, -}; - -int -main(int argc, const char *argv[]) -{ - unsigned int count; - - bfdev_log_hook_register(&bfdev_log_default, &log_chain_date); - for (count = 0; count < 3; ++count) { - bfdev_log_info("Hello World!\n"); - sleep(1); - } - - return 0; -} diff --git a/examples/log/modules.c b/examples/log/modules.c new file mode 100644 index 00000000..81009087 --- /dev/null +++ b/examples/log/modules.c @@ -0,0 +1,28 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * Copyright(c) 2023 Zhenlin Wang + */ + +#define MODULE_NAME "log-modules" +#define bfdev_log_fmt(fmt) MODULE_NAME ": " fmt + +#include +#include +#include + +int +main(int argc, const char *argv[]) +{ + unsigned int count; + + bfdev_log_localtime_enable(&bfdev_log_default); + bfdev_log_hostname_enable(&bfdev_log_default); + bfdev_log_pid_enable(&bfdev_log_default); + + for (count = 0; count < 3; ++count) { + bfdev_log_info("Hello World!\n"); + sleep(1); + } + + return 0; +} diff --git a/examples/log/simple.c b/examples/log/simple.c index 6a3491f0..580381f3 100644 --- a/examples/log/simple.c +++ b/examples/log/simple.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #define MODULE_NAME "log-simple" diff --git a/examples/log2/CMakeLists.txt b/examples/log2/CMakeLists.txt index 42df8480..db8b97dd 100644 --- a/examples/log2/CMakeLists.txt +++ b/examples/log2/CMakeLists.txt @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-2.0-or-later # -# Copyright(c) 2023 John Sanpe +# Copyright(c) 2023 Zhenlin Wang # add_executable(log2-selftest selftest.c) diff --git a/examples/log2/selftest.c b/examples/log2/selftest.c index 9d94f230..d3d185d4 100644 --- a/examples/log2/selftest.c +++ b/examples/log2/selftest.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #include diff --git a/examples/math/abs.c b/examples/math/abs.c index e334fbc0..4a7e56ec 100644 --- a/examples/math/abs.c +++ b/examples/math/abs.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2024 John Sanpe + * Copyright(c) 2024 Zhenlin Wang */ #define MODULE_NAME "math-abs" diff --git a/examples/matrix/benchmark.c b/examples/matrix/benchmark.c index fbd41302..54395d95 100644 --- a/examples/matrix/benchmark.c +++ b/examples/matrix/benchmark.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #define MODULE_NAME "matrix-benchmark" diff --git a/examples/matrix/fibonacci.c b/examples/matrix/fibonacci.c index c4ee2a28..85a2be85 100644 --- a/examples/matrix/fibonacci.c +++ b/examples/matrix/fibonacci.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #include diff --git a/examples/mpi/bbp.c b/examples/mpi/bbp.c index e446d258..d5fa6ae5 100644 --- a/examples/mpi/bbp.c +++ b/examples/mpi/bbp.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #define MODULE_NAME "mpi-bbp" diff --git a/examples/mpi/fibonacci.c b/examples/mpi/fibonacci.c index f7233296..51d80f55 100644 --- a/examples/mpi/fibonacci.c +++ b/examples/mpi/fibonacci.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #include diff --git a/examples/mpi/helper.h b/examples/mpi/helper.h index 46d2ecd4..a9dcbf3e 100644 --- a/examples/mpi/helper.h +++ b/examples/mpi/helper.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ /* - * Copyright(c) 2024 John Sanpe + * Copyright(c) 2024 Zhenlin Wang */ #ifndef _MPI_PRINT_H_ diff --git a/examples/mpi/machin.c b/examples/mpi/machin.c index 2b0495cd..1bbec996 100644 --- a/examples/mpi/machin.c +++ b/examples/mpi/machin.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #define MODULE_NAME "mpi-machin" diff --git a/examples/notifier/CMakeLists.txt b/examples/notifier/CMakeLists.txt index e8cc2218..d4c4af43 100644 --- a/examples/notifier/CMakeLists.txt +++ b/examples/notifier/CMakeLists.txt @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-2.0-or-later */ # -# Copyright(c) 2024 John Sanpe +# Copyright(c) 2024 Zhenlin Wang # add_executable(notifier-simple simple.c) diff --git a/examples/notifier/simple.c b/examples/notifier/simple.c index 8e71c933..7786ea07 100644 --- a/examples/notifier/simple.c +++ b/examples/notifier/simple.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #define MODULE_NAME "notifier-simple" diff --git a/examples/once/simple.c b/examples/once/simple.c index 9d72ddc1..23837322 100644 --- a/examples/once/simple.c +++ b/examples/once/simple.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #include diff --git a/examples/overflow/simple.c b/examples/overflow/simple.c index bf82fee0..677d1b10 100644 --- a/examples/overflow/simple.c +++ b/examples/overflow/simple.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #define MODULE_NAME "overflow-simple" diff --git a/examples/prandom/CMakeLists.txt b/examples/prandom/CMakeLists.txt index 3760993e..2ea84ccc 100644 --- a/examples/prandom/CMakeLists.txt +++ b/examples/prandom/CMakeLists.txt @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-2.0-or-later # -# Copyright(c) 2024 John Sanpe +# Copyright(c) 2024 Zhenlin Wang # add_executable(prandom-simple simple.c) diff --git a/examples/prandom/simple.c b/examples/prandom/simple.c index e21e316a..52a78545 100644 --- a/examples/prandom/simple.c +++ b/examples/prandom/simple.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ /* - * Copyright(c) 2024 John Sanpe + * Copyright(c) 2024 Zhenlin Wang */ #define MODULE_NAME "prandom-simple" diff --git a/examples/radix/CMakeLists.txt b/examples/radix/CMakeLists.txt index f5695078..645b74fd 100644 --- a/examples/radix/CMakeLists.txt +++ b/examples/radix/CMakeLists.txt @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-2.0-or-later # -# Copyright(c) 2023 John Sanpe +# Copyright(c) 2023 Zhenlin Wang # add_executable(radix-simple simple.c) diff --git a/examples/radix/benchmark.c b/examples/radix/benchmark.c index da781321..33a5ac52 100644 --- a/examples/radix/benchmark.c +++ b/examples/radix/benchmark.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #define MODULE_NAME "radix-benchmark" diff --git a/examples/radix/simple.c b/examples/radix/simple.c index 3b14fc34..0a5237f3 100644 --- a/examples/radix/simple.c +++ b/examples/radix/simple.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #include diff --git a/examples/ratelimit/CMakeLists.txt b/examples/ratelimit/CMakeLists.txt index d9c8ec2f..92b5bfad 100644 --- a/examples/ratelimit/CMakeLists.txt +++ b/examples/ratelimit/CMakeLists.txt @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-2.0-or-later # -# Copyright(c) 2024 John Sanpe +# Copyright(c) 2024 Zhenlin Wang # add_executable(ratelimit-simple simple.c) diff --git a/examples/ratelimit/simple.c b/examples/ratelimit/simple.c index e05d608e..20dfb14d 100644 --- a/examples/ratelimit/simple.c +++ b/examples/ratelimit/simple.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ /* - * Copyright(c) 2024 John Sanpe + * Copyright(c) 2024 Zhenlin Wang */ #define MODULE_NAME "ratelimit-simple" diff --git a/examples/rbtree/benchmark.c b/examples/rbtree/benchmark.c index 86d73328..13079091 100644 --- a/examples/rbtree/benchmark.c +++ b/examples/rbtree/benchmark.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ /* - * Copyright(c) 2021-2022 John Sanpe + * Copyright(c) 2021-2022 Zhenlin Wang */ #define MODULE_NAME "rbtree-benchmark" diff --git a/examples/rbtree/selftest.c b/examples/rbtree/selftest.c index 357ccbb0..0b51acb6 100644 --- a/examples/rbtree/selftest.c +++ b/examples/rbtree/selftest.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ /* - * Copyright(c) 2022 John Sanpe + * Copyright(c) 2022 Zhenlin Wang */ #include diff --git a/examples/rbtree/simple.c b/examples/rbtree/simple.c index 620de4c9..c3ede2fd 100644 --- a/examples/rbtree/simple.c +++ b/examples/rbtree/simple.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ /* - * Copyright(c) 2021-2022 John Sanpe + * Copyright(c) 2021-2022 Zhenlin Wang */ #include diff --git a/examples/respool/CMakeLists.txt b/examples/respool/CMakeLists.txt index 677ce78e..7f78f2c6 100644 --- a/examples/respool/CMakeLists.txt +++ b/examples/respool/CMakeLists.txt @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-2.0-or-later # -# Copyright(c) 2023 John Sanpe +# Copyright(c) 2023 Zhenlin Wang # add_executable(respool-simple simple.c) diff --git a/examples/respool/simple.c b/examples/respool/simple.c index a0827c34..ef85710e 100644 --- a/examples/respool/simple.c +++ b/examples/respool/simple.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ /* - * Copyright(c) 2024 John Sanpe + * Copyright(c) 2024 Zhenlin Wang */ #define MODULE_NAME "respool-simple" diff --git a/examples/ringbuf/simple.c b/examples/ringbuf/simple.c index 47d8fac4..28d97ae5 100644 --- a/examples/ringbuf/simple.c +++ b/examples/ringbuf/simple.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ /* - * Copyright(c) 2022 John Sanpe + * Copyright(c) 2022 Zhenlin Wang */ #include diff --git a/examples/segtree/selftest.c b/examples/segtree/selftest.c index e0ae638a..b8422253 100644 --- a/examples/segtree/selftest.c +++ b/examples/segtree/selftest.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #include diff --git a/examples/skiplist/benchmark.c b/examples/skiplist/benchmark.c index f4f18550..d1541b56 100644 --- a/examples/skiplist/benchmark.c +++ b/examples/skiplist/benchmark.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ /* - * Copyright(c) 2022 John Sanpe + * Copyright(c) 2022 Zhenlin Wang */ #define MODULE_NAME "skiplist-benchmark" diff --git a/examples/skiplist/selftest.c b/examples/skiplist/selftest.c index 4c6b9aaa..bddbc0c9 100644 --- a/examples/skiplist/selftest.c +++ b/examples/skiplist/selftest.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ /* - * Copyright(c) 2022 John Sanpe + * Copyright(c) 2022 Zhenlin Wang */ #include diff --git a/examples/slist/simple.c b/examples/slist/simple.c index 03c4c195..4e0b8bb6 100644 --- a/examples/slist/simple.c +++ b/examples/slist/simple.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #include diff --git a/examples/sort/benchmark.c b/examples/sort/benchmark.c index 0f65ee76..718d2ec0 100644 --- a/examples/sort/benchmark.c +++ b/examples/sort/benchmark.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ /* - * Copyright(c) 2022 John Sanpe + * Copyright(c) 2022 Zhenlin Wang */ #define MODULE_NAME "sort-benchmark" diff --git a/examples/sort/selftest.c b/examples/sort/selftest.c index c65fe7c1..63005c70 100644 --- a/examples/sort/selftest.c +++ b/examples/sort/selftest.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ /* - * Copyright(c) 2022 John Sanpe + * Copyright(c) 2022 Zhenlin Wang */ #define MODULE_NAME "sort-benchmark" diff --git a/examples/textsearch/simple.c b/examples/textsearch/simple.c index ce04e469..361b9c5f 100644 --- a/examples/textsearch/simple.c +++ b/examples/textsearch/simple.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ /* - * Copyright(c) 2022 John Sanpe + * Copyright(c) 2022 Zhenlin Wang */ #include diff --git a/examples/time.h b/examples/time.h index 2e4ec9dd..f5e31fb8 100644 --- a/examples/time.h +++ b/examples/time.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _EXAMPLES_TIME_H_ diff --git a/examples/tokenbucket/CMakeLists.txt b/examples/tokenbucket/CMakeLists.txt index 6461772d..ceb809d7 100644 --- a/examples/tokenbucket/CMakeLists.txt +++ b/examples/tokenbucket/CMakeLists.txt @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-2.0-or-later # -# Copyright(c) 2024 John Sanpe +# Copyright(c) 2024 Zhenlin Wang # add_executable(tokenbucket-simple simple.c) diff --git a/examples/tokenbucket/simple.c b/examples/tokenbucket/simple.c index 88aa54d7..c61f5aec 100644 --- a/examples/tokenbucket/simple.c +++ b/examples/tokenbucket/simple.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ /* - * Copyright(c) 2024 John Sanpe + * Copyright(c) 2024 Zhenlin Wang */ #define MODULE_NAME "tokenbucket-simple" diff --git a/include/base.h b/include/base.h index 23248a34..00c8bc83 100644 --- a/include/base.h +++ b/include/base.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _LOCAL_BASE_H_ diff --git a/include/bfdev/action.h b/include/bfdev/action.h index 4fe768f3..2bd79688 100644 --- a/include/bfdev/action.h +++ b/include/bfdev/action.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_ACTION_H_ diff --git a/include/bfdev/align.h b/include/bfdev/align.h index 5a54859b..a5b9e0bb 100644 --- a/include/bfdev/align.h +++ b/include/bfdev/align.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_ALIGN_H_ diff --git a/include/bfdev/alloca.h b/include/bfdev/alloca.h index b77f83be..978696f2 100644 --- a/include/bfdev/alloca.h +++ b/include/bfdev/alloca.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_ALLOCA_H_ diff --git a/include/bfdev/allocator.h b/include/bfdev/allocator.h index ee103699..724c53b7 100644 --- a/include/bfdev/allocator.h +++ b/include/bfdev/allocator.h @@ -1,7 +1,7 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* * Copyright(c) 2023 ffashion - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_ALLOCATOR_H_ diff --git a/include/bfdev/allocpool.h b/include/bfdev/allocpool.h index 2437353c..1125a4ad 100644 --- a/include/bfdev/allocpool.h +++ b/include/bfdev/allocpool.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_ALLOCPOOL_H_ diff --git a/include/bfdev/arc4.h b/include/bfdev/arc4.h index a5e91e23..88518b1c 100644 --- a/include/bfdev/arc4.h +++ b/include/bfdev/arc4.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2024 John Sanpe + * Copyright(c) 2024 Zhenlin Wang */ #ifndef _BFDEV_ARC4_H_ diff --git a/include/bfdev/argv.h b/include/bfdev/argv.h index 303da194..b492ebe2 100644 --- a/include/bfdev/argv.h +++ b/include/bfdev/argv.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_ARGV_H_ diff --git a/include/bfdev/array.h b/include/bfdev/array.h index 2fc6afa2..b4952d50 100644 --- a/include/bfdev/array.h +++ b/include/bfdev/array.h @@ -1,7 +1,7 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* * Copyright(c) 2023 ffashion - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_ARRAY_H_ diff --git a/include/bfdev/ascii.h b/include/bfdev/ascii.h index 88d5cc36..58472eef 100644 --- a/include/bfdev/ascii.h +++ b/include/bfdev/ascii.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_ASCII_H_ diff --git a/include/bfdev/ascii85.h b/include/bfdev/ascii85.h index 07a9691c..6aa1e03c 100644 --- a/include/bfdev/ascii85.h +++ b/include/bfdev/ascii85.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_ASCII85_H_ diff --git a/include/bfdev/asm-generic/atomic.h b/include/bfdev/asm-generic/atomic.h index 622fd99d..5ae68157 100644 --- a/include/bfdev/asm-generic/atomic.h +++ b/include/bfdev/asm-generic/atomic.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_ASM_GENERIC_ATOMIC_H_ diff --git a/include/bfdev/asm-generic/barrier.h b/include/bfdev/asm-generic/barrier.h index 1403c4c6..c14cc589 100644 --- a/include/bfdev/asm-generic/barrier.h +++ b/include/bfdev/asm-generic/barrier.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_ASM_GENERIC_BARRIER_H_ diff --git a/include/bfdev/asm-generic/bitops.h b/include/bfdev/asm-generic/bitops.h index 9524c2b9..e0180d03 100644 --- a/include/bfdev/asm-generic/bitops.h +++ b/include/bfdev/asm-generic/bitops.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_ASM_GENERIC_BITOPS_H_ diff --git a/include/bfdev/asm-generic/bitsperlong.h b/include/bfdev/asm-generic/bitsperlong.h index 967e60a4..9e3c6a7b 100644 --- a/include/bfdev/asm-generic/bitsperlong.h +++ b/include/bfdev/asm-generic/bitsperlong.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_ASM_GENERIC_BITSPERLONG_H_ diff --git a/include/bfdev/asm-generic/builtin-clz.h b/include/bfdev/asm-generic/builtin-clz.h index c7826246..ecf1332c 100644 --- a/include/bfdev/asm-generic/builtin-clz.h +++ b/include/bfdev/asm-generic/builtin-clz.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_ASM_GENERIC_BUILTIN_CLZ_H_ diff --git a/include/bfdev/asm-generic/builtin-ctz.h b/include/bfdev/asm-generic/builtin-ctz.h index e03f89a1..1db01a69 100644 --- a/include/bfdev/asm-generic/builtin-ctz.h +++ b/include/bfdev/asm-generic/builtin-ctz.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_ASM_GENERIC_BUILTIN_CTZ_H_ diff --git a/include/bfdev/asm-generic/builtin-ffs.h b/include/bfdev/asm-generic/builtin-ffs.h index 55d88a13..75bee6b1 100644 --- a/include/bfdev/asm-generic/builtin-ffs.h +++ b/include/bfdev/asm-generic/builtin-ffs.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_ASM_GENERIC_BUILTIN_FFS_H_ diff --git a/include/bfdev/asm-generic/builtin-ffsuf.h b/include/bfdev/asm-generic/builtin-ffsuf.h index e1c9ff3c..a8e0a086 100644 --- a/include/bfdev/asm-generic/builtin-ffsuf.h +++ b/include/bfdev/asm-generic/builtin-ffsuf.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_ASM_GENERIC_BUILTIN_FFSUF_H_ diff --git a/include/bfdev/asm-generic/builtin-fls.h b/include/bfdev/asm-generic/builtin-fls.h index e7df50d8..0fcf6329 100644 --- a/include/bfdev/asm-generic/builtin-fls.h +++ b/include/bfdev/asm-generic/builtin-fls.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_ASM_GENERIC_BUILTIN_FLS_H_ diff --git a/include/bfdev/asm-generic/builtin-flsuf.h b/include/bfdev/asm-generic/builtin-flsuf.h index 914d233b..cc12404a 100644 --- a/include/bfdev/asm-generic/builtin-flsuf.h +++ b/include/bfdev/asm-generic/builtin-flsuf.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_ASM_GENERIC_BUILTIN_FLSUF_H_ diff --git a/include/bfdev/asm-generic/byteorder.h b/include/bfdev/asm-generic/byteorder.h index a8c90e55..8be97879 100644 --- a/include/bfdev/asm-generic/byteorder.h +++ b/include/bfdev/asm-generic/byteorder.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_ASM_GENERIC_BYTEORDER_H_ diff --git a/include/bfdev/asm-generic/cmpxchg.h b/include/bfdev/asm-generic/cmpxchg.h index ec65072f..41cde250 100644 --- a/include/bfdev/asm-generic/cmpxchg.h +++ b/include/bfdev/asm-generic/cmpxchg.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_ASM_GENERIC_CMPXCHG_H_ diff --git a/include/bfdev/asm-generic/dword-compiler.h b/include/bfdev/asm-generic/dword-compiler.h index e2a3e788..8444ac05 100644 --- a/include/bfdev/asm-generic/dword-compiler.h +++ b/include/bfdev/asm-generic/dword-compiler.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2025 John Sanpe + * Copyright(c) 2025 Zhenlin Wang */ #ifndef _BFDEV_ASM_GENERIC_DWORD_H_ diff --git a/include/bfdev/asm-generic/dword.h b/include/bfdev/asm-generic/dword.h index 2a793267..b68e0721 100644 --- a/include/bfdev/asm-generic/dword.h +++ b/include/bfdev/asm-generic/dword.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2024 John Sanpe + * Copyright(c) 2024 Zhenlin Wang */ #ifndef _BFDEV_ASM_GENERIC_DWORD_H_ diff --git a/include/bfdev/asm-generic/rwonce.h b/include/bfdev/asm-generic/rwonce.h index 859f4097..d4cbdee3 100644 --- a/include/bfdev/asm-generic/rwonce.h +++ b/include/bfdev/asm-generic/rwonce.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_ASM_GENERIC_RWONCE_H_ diff --git a/include/bfdev/asm-generic/swab.h b/include/bfdev/asm-generic/swab.h index 129b52bc..db8679c8 100644 --- a/include/bfdev/asm-generic/swab.h +++ b/include/bfdev/asm-generic/swab.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_ASM_GENERIC_SWAB_H_ diff --git a/include/bfdev/asm-generic/types.h b/include/bfdev/asm-generic/types.h index c07e9ad0..0f3723a4 100644 --- a/include/bfdev/asm-generic/types.h +++ b/include/bfdev/asm-generic/types.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2025 John Sanpe + * Copyright(c) 2025 Zhenlin Wang */ #ifndef _BFDEV_ASM_GENERIC_TYPES_H_ diff --git a/include/bfdev/asm-generic/unaligned.h b/include/bfdev/asm-generic/unaligned.h index bae15abc..66cf2b6f 100644 --- a/include/bfdev/asm-generic/unaligned.h +++ b/include/bfdev/asm-generic/unaligned.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_ASM_GENERIC_UNALIGNED_H_ diff --git a/include/bfdev/atomic.h b/include/bfdev/atomic.h index 957c8264..20a1ab8b 100644 --- a/include/bfdev/atomic.h +++ b/include/bfdev/atomic.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_ATOMIC_H_ diff --git a/include/bfdev/barrier.h b/include/bfdev/barrier.h index e0ede334..6bc7379e 100644 --- a/include/bfdev/barrier.h +++ b/include/bfdev/barrier.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2025 John Sanpe + * Copyright(c) 2025 Zhenlin Wang */ #ifndef _BFDEV_BARRIER_H_ diff --git a/include/bfdev/base32.h b/include/bfdev/base32.h index 76775f31..63bf8d5b 100644 --- a/include/bfdev/base32.h +++ b/include/bfdev/base32.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2022 John Sanpe + * Copyright(c) 2022 Zhenlin Wang */ #ifndef _BFDEV_BASE32_H_ diff --git a/include/bfdev/base64.h b/include/bfdev/base64.h index 2cebd17d..b6179402 100644 --- a/include/bfdev/base64.h +++ b/include/bfdev/base64.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2022 John Sanpe + * Copyright(c) 2022 Zhenlin Wang */ #ifndef _BFDEV_BASE64_H_ diff --git a/include/bfdev/bcd.h b/include/bfdev/bcd.h index 798add56..6c2bf863 100644 --- a/include/bfdev/bcd.h +++ b/include/bfdev/bcd.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_BCD_H_ diff --git a/include/bfdev/bitfield.h b/include/bfdev/bitfield.h index 6dcd94ea..47488a7c 100644 --- a/include/bfdev/bitfield.h +++ b/include/bfdev/bitfield.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_BITFIELD_H_ diff --git a/include/bfdev/bitflags.h b/include/bfdev/bitflags.h index 4cb3aacf..6441f2d3 100644 --- a/include/bfdev/bitflags.h +++ b/include/bfdev/bitflags.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_BITFLAGS_H_ diff --git a/include/bfdev/bitmap-comp.h b/include/bfdev/bitmap-comp.h index f190aa34..769a0e54 100644 --- a/include/bfdev/bitmap-comp.h +++ b/include/bfdev/bitmap-comp.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_BITMAP_COMP_H_ diff --git a/include/bfdev/bitmap.h b/include/bfdev/bitmap.h index 4c5a410f..10e318e3 100644 --- a/include/bfdev/bitmap.h +++ b/include/bfdev/bitmap.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_BITMAP_H_ diff --git a/include/bfdev/bitops-endian.h b/include/bfdev/bitops-endian.h index a4573bf6..967db937 100644 --- a/include/bfdev/bitops-endian.h +++ b/include/bfdev/bitops-endian.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_BITOPS_ENDIAN_H_ diff --git a/include/bfdev/bitops.h b/include/bfdev/bitops.h index 69e316d9..c44b35c1 100644 --- a/include/bfdev/bitops.h +++ b/include/bfdev/bitops.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_BITOPS_H_ diff --git a/include/bfdev/bitrev.h b/include/bfdev/bitrev.h index bae87b37..d1d0bde5 100644 --- a/include/bfdev/bitrev.h +++ b/include/bfdev/bitrev.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_BITREV_H_ diff --git a/include/bfdev/bits.h b/include/bfdev/bits.h index d3f7fe18..c555a72f 100644 --- a/include/bfdev/bits.h +++ b/include/bfdev/bits.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_BITS_H_ diff --git a/include/bfdev/bitwalk-comp.h b/include/bfdev/bitwalk-comp.h index 12aa441d..bd20094d 100644 --- a/include/bfdev/bitwalk-comp.h +++ b/include/bfdev/bitwalk-comp.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2024 John Sanpe + * Copyright(c) 2024 Zhenlin Wang */ #ifndef _BFDEV_BITWALK_COMP_H_ diff --git a/include/bfdev/bitwalk.h b/include/bfdev/bitwalk.h index 2a8492b3..02479f78 100644 --- a/include/bfdev/bitwalk.h +++ b/include/bfdev/bitwalk.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_BITWALK_H_ diff --git a/include/bfdev/bloom.h b/include/bfdev/bloom.h index 21855702..d631f5a7 100644 --- a/include/bfdev/bloom.h +++ b/include/bfdev/bloom.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_BLOOM_H_ diff --git a/include/bfdev/bsearch.h b/include/bfdev/bsearch.h index 04f4746d..5c40c41e 100644 --- a/include/bfdev/bsearch.h +++ b/include/bfdev/bsearch.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_BSEARCH_H_ diff --git a/include/bfdev/btree.h b/include/bfdev/btree.h index 67a5e6f4..0b3c9e5c 100644 --- a/include/bfdev/btree.h +++ b/include/bfdev/btree.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2022 John Sanpe + * Copyright(c) 2022 Zhenlin Wang */ #ifndef _BFDEV_BTREE_H_ diff --git a/include/bfdev/buff.h b/include/bfdev/buff.h index 31ce3cdb..6bb8f5ff 100644 --- a/include/bfdev/buff.h +++ b/include/bfdev/buff.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2024 John Sanpe + * Copyright(c) 2024 Zhenlin Wang */ #ifndef _BFDEV_BUFF_H_ diff --git a/include/bfdev/bug.h b/include/bfdev/bug.h index cd0a4cc4..565d656e 100644 --- a/include/bfdev/bug.h +++ b/include/bfdev/bug.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2024 John Sanpe + * Copyright(c) 2024 Zhenlin Wang */ #ifndef _BFDEV_BUG_H_ diff --git a/include/bfdev/byteorder.h b/include/bfdev/byteorder.h index 298c94b1..2856ed4e 100644 --- a/include/bfdev/byteorder.h +++ b/include/bfdev/byteorder.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_BYTEORDER_H_ diff --git a/include/bfdev/byteorder/big-endian.h b/include/bfdev/byteorder/big-endian.h index 572a6c5b..726e0991 100644 --- a/include/bfdev/byteorder/big-endian.h +++ b/include/bfdev/byteorder/big-endian.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_BYTEORDER_BIG_ENDIAN_H_ diff --git a/include/bfdev/byteorder/little-endian.h b/include/bfdev/byteorder/little-endian.h index 9b0dfd4c..cbca0f69 100644 --- a/include/bfdev/byteorder/little-endian.h +++ b/include/bfdev/byteorder/little-endian.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_BYTEORDER_LITTLE_ENDIAN_H_ diff --git a/include/bfdev/cache.h b/include/bfdev/cache.h index 7680a917..9acba534 100644 --- a/include/bfdev/cache.h +++ b/include/bfdev/cache.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_CACHE_H_ diff --git a/include/bfdev/callback.h b/include/bfdev/callback.h index ec8e2de4..eec70aff 100644 --- a/include/bfdev/callback.h +++ b/include/bfdev/callback.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_CALLBACK_H_ diff --git a/include/bfdev/cdefs.h b/include/bfdev/cdefs.h index 7bfd10e1..120405d0 100644 --- a/include/bfdev/cdefs.h +++ b/include/bfdev/cdefs.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_CDEFS_H_ diff --git a/include/bfdev/circle.h b/include/bfdev/circle.h index 01aeb9a8..a53d409b 100644 --- a/include/bfdev/circle.h +++ b/include/bfdev/circle.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_CIRCLE_H_ diff --git a/include/bfdev/cmpxchg.h b/include/bfdev/cmpxchg.h index 9c59a4ff..6f3d073f 100644 --- a/include/bfdev/cmpxchg.h +++ b/include/bfdev/cmpxchg.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_CMPXCHG_H_ diff --git a/include/bfdev/compiler.h b/include/bfdev/compiler.h index 7ba025dd..c8c7974e 100644 --- a/include/bfdev/compiler.h +++ b/include/bfdev/compiler.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_COMPILER_H_ diff --git a/include/bfdev/compiler/attributes.h b/include/bfdev/compiler/attributes.h index 21398103..6fcbf4c2 100644 --- a/include/bfdev/compiler/attributes.h +++ b/include/bfdev/compiler/attributes.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_COMPILER_ATTRIBUTES_H_ diff --git a/include/bfdev/compiler/types.h b/include/bfdev/compiler/types.h index 863e81bf..10002deb 100644 --- a/include/bfdev/compiler/types.h +++ b/include/bfdev/compiler/types.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_COMPILER_TYPES_H_ diff --git a/include/bfdev/const.h b/include/bfdev/const.h index f25e6053..4c8a42e2 100644 --- a/include/bfdev/const.h +++ b/include/bfdev/const.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_CONST_H_ diff --git a/include/bfdev/container.h b/include/bfdev/container.h index 866d816c..f756e069 100644 --- a/include/bfdev/container.h +++ b/include/bfdev/container.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_CONTAINER_H_ diff --git a/include/bfdev/crc.h b/include/bfdev/crc.h index 34373a75..077655d3 100644 --- a/include/bfdev/crc.h +++ b/include/bfdev/crc.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_CRC_H_ diff --git a/include/bfdev/crypto/crc-ccitt-inline.h b/include/bfdev/crypto/crc-ccitt-inline.h index 044c4f24..42037e55 100644 --- a/include/bfdev/crypto/crc-ccitt-inline.h +++ b/include/bfdev/crypto/crc-ccitt-inline.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2022 John Sanpe + * Copyright(c) 2022 Zhenlin Wang */ #ifndef _BFDEV_CRYPTO_CRC_CCITT_INLINE_H_ diff --git a/include/bfdev/crypto/crc-inline.h b/include/bfdev/crypto/crc-inline.h index c9b30486..1defb99c 100644 --- a/include/bfdev/crypto/crc-inline.h +++ b/include/bfdev/crypto/crc-inline.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_CRYPTO_CRC_INLINE_H_ diff --git a/include/bfdev/crypto/crc-itut-inline.h b/include/bfdev/crypto/crc-itut-inline.h index 610d0df9..6ef8042c 100644 --- a/include/bfdev/crypto/crc-itut-inline.h +++ b/include/bfdev/crypto/crc-itut-inline.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2022 John Sanpe + * Copyright(c) 2022 Zhenlin Wang */ #ifndef _BFDEV_CRYPTO_CRC_ITUT_INLINE_H_ diff --git a/include/bfdev/crypto/crc-rocksoft-inline.h b/include/bfdev/crypto/crc-rocksoft-inline.h index 72fb7f47..5b6ef9b2 100644 --- a/include/bfdev/crypto/crc-rocksoft-inline.h +++ b/include/bfdev/crypto/crc-rocksoft-inline.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2022 John Sanpe + * Copyright(c) 2022 Zhenlin Wang */ #ifndef _BFDEV_CRYPTO_CRC_ROCKSOFT_INLINE_H_ diff --git a/include/bfdev/crypto/crc-t10dif-inline.h b/include/bfdev/crypto/crc-t10dif-inline.h index 4d8fa622..88b470d6 100644 --- a/include/bfdev/crypto/crc-t10dif-inline.h +++ b/include/bfdev/crypto/crc-t10dif-inline.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2022 John Sanpe + * Copyright(c) 2022 Zhenlin Wang */ #ifndef _BFDEV_CRYPTO_CRC_T10DIF_INLINE_H_ diff --git a/include/bfdev/crypto/crc16-inline.h b/include/bfdev/crypto/crc16-inline.h index 765c39e2..c7279281 100644 --- a/include/bfdev/crypto/crc16-inline.h +++ b/include/bfdev/crypto/crc16-inline.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2022 John Sanpe + * Copyright(c) 2022 Zhenlin Wang */ #ifndef _BFDEV_CRYPTO_CRC16_INLINE_H_ diff --git a/include/bfdev/crypto/crc32-inline.h b/include/bfdev/crypto/crc32-inline.h index 994ecf26..f4f61a84 100644 --- a/include/bfdev/crypto/crc32-inline.h +++ b/include/bfdev/crypto/crc32-inline.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2022 John Sanpe + * Copyright(c) 2022 Zhenlin Wang */ #ifndef _BFDEV_CRYPTO_CRC32_INLINE_H_ diff --git a/include/bfdev/crypto/crc4-inline.h b/include/bfdev/crypto/crc4-inline.h index 41998252..6f71c96d 100644 --- a/include/bfdev/crypto/crc4-inline.h +++ b/include/bfdev/crypto/crc4-inline.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2022 John Sanpe + * Copyright(c) 2022 Zhenlin Wang */ #ifndef _BFDEV_CRYPTO_CRC4_INLINE_H_ diff --git a/include/bfdev/crypto/crc64-inline.h b/include/bfdev/crypto/crc64-inline.h index bfd27f47..7e7a023d 100644 --- a/include/bfdev/crypto/crc64-inline.h +++ b/include/bfdev/crypto/crc64-inline.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2022 John Sanpe + * Copyright(c) 2022 Zhenlin Wang */ #ifndef _BFDEV_CRYPTO_CRC64_INLINE_H_ diff --git a/include/bfdev/crypto/crc7-inline.h b/include/bfdev/crypto/crc7-inline.h index f24eb91f..9e9aee67 100644 --- a/include/bfdev/crypto/crc7-inline.h +++ b/include/bfdev/crypto/crc7-inline.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2022 John Sanpe + * Copyright(c) 2022 Zhenlin Wang */ #ifndef _BFDEV_CRYPTO_CRC7_INLINE_H_ diff --git a/include/bfdev/crypto/crc8-inline.h b/include/bfdev/crypto/crc8-inline.h index 4f8121ad..eeff24b6 100644 --- a/include/bfdev/crypto/crc8-inline.h +++ b/include/bfdev/crypto/crc8-inline.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2022 John Sanpe + * Copyright(c) 2022 Zhenlin Wang */ #ifndef _BFDEV_CRYPTO_CRC8_INLINE_H_ diff --git a/include/bfdev/crypto/md5-base.h b/include/bfdev/crypto/md5-base.h index 7f4b7800..bdf68bdd 100644 --- a/include/bfdev/crypto/md5-base.h +++ b/include/bfdev/crypto/md5-base.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(C) 2024 John Sanpe + * Copyright(C) 2024 Zhenlin Wang */ #ifndef _BFDEV_CRYPTO_MD5_BASE_H_ diff --git a/include/bfdev/crypto/md5.h b/include/bfdev/crypto/md5.h index 1455a1b0..c03f4461 100644 --- a/include/bfdev/crypto/md5.h +++ b/include/bfdev/crypto/md5.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(C) 2024 John Sanpe + * Copyright(C) 2024 Zhenlin Wang */ #ifndef _BFDEV_CRYPTO_MD5_H_ diff --git a/include/bfdev/crypto/sha1-base.h b/include/bfdev/crypto/sha1-base.h index e8384eb9..f8a1713b 100644 --- a/include/bfdev/crypto/sha1-base.h +++ b/include/bfdev/crypto/sha1-base.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2024 John Sanpe + * Copyright(c) 2024 Zhenlin Wang */ #ifndef _BFDEV_CRYPTO_SHA1_BASE_H_ diff --git a/include/bfdev/crypto/sha1.h b/include/bfdev/crypto/sha1.h index 9cfbcb12..c76ffed9 100644 --- a/include/bfdev/crypto/sha1.h +++ b/include/bfdev/crypto/sha1.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2024 John Sanpe + * Copyright(c) 2024 Zhenlin Wang */ #ifndef _BFDEV_CRYPTO_SHA1_H_ diff --git a/include/bfdev/crypto/sha2-base.h b/include/bfdev/crypto/sha2-base.h index 1061bcf9..fdb48972 100644 --- a/include/bfdev/crypto/sha2-base.h +++ b/include/bfdev/crypto/sha2-base.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2024 John Sanpe + * Copyright(c) 2024 Zhenlin Wang */ #ifndef _BFDEV_CRYPTO_SHA2_BASE_H_ diff --git a/include/bfdev/crypto/sha2.h b/include/bfdev/crypto/sha2.h index 186ece10..1e4d84f7 100644 --- a/include/bfdev/crypto/sha2.h +++ b/include/bfdev/crypto/sha2.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2024 John Sanpe + * Copyright(c) 2024 Zhenlin Wang */ #ifndef _BFDEV_CRYPTO_SHA2_H_ diff --git a/include/bfdev/ctype.h b/include/bfdev/ctype.h index c6cbe1f5..abb47c79 100644 --- a/include/bfdev/ctype.h +++ b/include/bfdev/ctype.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_CTYPE_H_ diff --git a/include/bfdev/dword.h b/include/bfdev/dword.h index a2aea744..8b14f4cc 100644 --- a/include/bfdev/dword.h +++ b/include/bfdev/dword.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_DWORD_H_ diff --git a/include/bfdev/errname.h b/include/bfdev/errname.h index fd983a12..359e3a39 100644 --- a/include/bfdev/errname.h +++ b/include/bfdev/errname.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_ERRNAME_H_ diff --git a/include/bfdev/errno.h b/include/bfdev/errno.h index cfc78f5c..d8f7cb73 100644 --- a/include/bfdev/errno.h +++ b/include/bfdev/errno.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_ERRNO_H_ diff --git a/include/bfdev/errptr.h b/include/bfdev/errptr.h index e949ad7a..e12dd089 100644 --- a/include/bfdev/errptr.h +++ b/include/bfdev/errptr.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_ERRPTR_H_ diff --git a/include/bfdev/fifo.h b/include/bfdev/fifo.h index 81df21d3..78d51bf6 100644 --- a/include/bfdev/fifo.h +++ b/include/bfdev/fifo.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_FIFO_H_ diff --git a/include/bfdev/fsm.h b/include/bfdev/fsm.h index 1f607d2d..cd9f9196 100644 --- a/include/bfdev/fsm.h +++ b/include/bfdev/fsm.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_FSM_H_ diff --git a/include/bfdev/glob.h b/include/bfdev/glob.h index 3502530e..2974f988 100644 --- a/include/bfdev/glob.h +++ b/include/bfdev/glob.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2025 John Sanpe + * Copyright(c) 2025 Zhenlin Wang */ #ifndef _BFDEV_GLOB_H_ diff --git a/include/bfdev/guards.h b/include/bfdev/guards.h index eb8e7c8d..8433aff1 100644 --- a/include/bfdev/guards.h +++ b/include/bfdev/guards.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_GUARDS_H_ diff --git a/include/bfdev/hash.h b/include/bfdev/hash.h index a073c245..2d1f0039 100644 --- a/include/bfdev/hash.h +++ b/include/bfdev/hash.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_HASH_H_ diff --git a/include/bfdev/hashmap.h b/include/bfdev/hashmap.h index 8b52b970..adfa128b 100644 --- a/include/bfdev/hashmap.h +++ b/include/bfdev/hashmap.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_HASHMAP_H_ diff --git a/include/bfdev/hashtbl.h b/include/bfdev/hashtbl.h index 84e09303..aa04f5a3 100644 --- a/include/bfdev/hashtbl.h +++ b/include/bfdev/hashtbl.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_HASHTBL_H_ diff --git a/include/bfdev/heap.h b/include/bfdev/heap.h index 19fc6084..400d1a63 100644 --- a/include/bfdev/heap.h +++ b/include/bfdev/heap.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_HEAP_H_ diff --git a/include/bfdev/hlist.h b/include/bfdev/hlist.h index a24637d2..8f5b7e38 100644 --- a/include/bfdev/hlist.h +++ b/include/bfdev/hlist.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_HLIST_H_ diff --git a/include/bfdev/ilist.h b/include/bfdev/ilist.h index be594c3d..55cf69c6 100644 --- a/include/bfdev/ilist.h +++ b/include/bfdev/ilist.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_ILIST_H_ diff --git a/include/bfdev/jhash.h b/include/bfdev/jhash.h index 5c9fa8f6..5b00984a 100644 --- a/include/bfdev/jhash.h +++ b/include/bfdev/jhash.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2024 John Sanpe + * Copyright(c) 2024 Zhenlin Wang */ #ifndef _BFDEV_JHASH_H_ diff --git a/include/bfdev/knuth.h b/include/bfdev/knuth.h index fc0b8f05..7444fdf5 100644 --- a/include/bfdev/knuth.h +++ b/include/bfdev/knuth.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2025 John Sanpe + * Copyright(c) 2025 Zhenlin Wang */ #ifndef _BFDEV_KNUTH_H_ diff --git a/include/bfdev/level.h b/include/bfdev/level.h index c3418a2f..4422691d 100644 --- a/include/bfdev/level.h +++ b/include/bfdev/level.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_LEVEL_H_ diff --git a/include/bfdev/levenshtein.h b/include/bfdev/levenshtein.h index de249785..987d579c 100644 --- a/include/bfdev/levenshtein.h +++ b/include/bfdev/levenshtein.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_LEVENSHTEIN_H_ diff --git a/include/bfdev/limits.h b/include/bfdev/limits.h index d82cabd4..11b74ab9 100644 --- a/include/bfdev/limits.h +++ b/include/bfdev/limits.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_LIMITS_H_ diff --git a/include/bfdev/list.h b/include/bfdev/list.h index 53425af5..5fe53793 100644 --- a/include/bfdev/list.h +++ b/include/bfdev/list.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_LIST_H_ diff --git a/include/bfdev/llist.h b/include/bfdev/llist.h index 9dae6bc5..ead516c9 100644 --- a/include/bfdev/llist.h +++ b/include/bfdev/llist.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_LLIST_H_ diff --git a/include/bfdev/log.h b/include/bfdev/log.h index cf54c7d8..109c8b78 100644 --- a/include/bfdev/log.h +++ b/include/bfdev/log.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_LOG_H_ diff --git a/include/bfdev/log2.h b/include/bfdev/log2.h index 6e8fbf43..eccdc7b1 100644 --- a/include/bfdev/log2.h +++ b/include/bfdev/log2.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_LOG2_H_ diff --git a/include/bfdev/macro.h b/include/bfdev/macro.h index 5e3844a5..3771d40f 100644 --- a/include/bfdev/macro.h +++ b/include/bfdev/macro.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_MACRO_H_ diff --git a/include/bfdev/math.h b/include/bfdev/math.h index 899df358..0b911b69 100644 --- a/include/bfdev/math.h +++ b/include/bfdev/math.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2022 John Sanpe + * Copyright(c) 2022 Zhenlin Wang */ #ifndef _BFDEV_MATH_H_ diff --git a/include/bfdev/matrix.h b/include/bfdev/matrix.h index 740b66f3..e3a6521c 100644 --- a/include/bfdev/matrix.h +++ b/include/bfdev/matrix.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_MATRIX_H_ diff --git a/include/bfdev/md5.h b/include/bfdev/md5.h index 18ff708d..f162ddcc 100644 --- a/include/bfdev/md5.h +++ b/include/bfdev/md5.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_MD5_H_ diff --git a/include/bfdev/memalloc.h b/include/bfdev/memalloc.h index c5d36b80..92a19f49 100644 --- a/include/bfdev/memalloc.h +++ b/include/bfdev/memalloc.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_MEMALLOC_H_ diff --git a/include/bfdev/mhelper.h b/include/bfdev/mhelper.h index afc1b86e..f27b3a96 100644 --- a/include/bfdev/mhelper.h +++ b/include/bfdev/mhelper.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_MHELPER_H_ diff --git a/include/bfdev/minmax.h b/include/bfdev/minmax.h index 7cde6022..1c442b6b 100644 --- a/include/bfdev/minmax.h +++ b/include/bfdev/minmax.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_MINMAX_H_ diff --git a/include/bfdev/modules/log.h b/include/bfdev/modules/log.h new file mode 100644 index 00000000..a13bc7f7 --- /dev/null +++ b/include/bfdev/modules/log.h @@ -0,0 +1,43 @@ +/* SPDX-License-Identifier: LGPL-3.0-or-later */ +/* + * Copyright(c) 2025 Zhenlin Wang + */ + +#ifndef _BFDEV_MODULES_LOG_H_ +#define _BFDEV_MODULES_LOG_H_ + +#include +#include + +BFDEV_BEGIN_DECLS + +extern bfdev_log_chain_t +bfdev_log_chain_hostname; + +extern bfdev_log_chain_t +bfdev_log_chain_localtime; + +extern bfdev_log_chain_t +bfdev_log_chain_pid; + +extern int +bfdev_log_localtime_enable(bfdev_log_t *log); + +extern void +bfdev_log_localtime_disable(bfdev_log_t *log); + +extern int +bfdev_log_hostname_enable(bfdev_log_t *log); + +extern void +bfdev_log_hostname_disable(bfdev_log_t *log); + +extern int +bfdev_log_pid_enable(bfdev_log_t *log); + +extern void +bfdev_log_pid_disable(bfdev_log_t *log); + +BFDEV_END_DECLS + +#endif /* _BFDEV_TEMPLATE_BTREE_H_ */ diff --git a/include/bfdev/mpi.h b/include/bfdev/mpi.h index 15b6987c..e3729380 100644 --- a/include/bfdev/mpi.h +++ b/include/bfdev/mpi.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_MPI_H_ diff --git a/include/bfdev/notifier.h b/include/bfdev/notifier.h index b2bcc481..c1b2ca14 100644 --- a/include/bfdev/notifier.h +++ b/include/bfdev/notifier.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_NOTIFIER_H_ diff --git a/include/bfdev/once.h b/include/bfdev/once.h index 8322b1cc..c6a36e16 100644 --- a/include/bfdev/once.h +++ b/include/bfdev/once.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_ONCE_H_ diff --git a/include/bfdev/overflow.h b/include/bfdev/overflow.h index fca71b25..0b647275 100644 --- a/include/bfdev/overflow.h +++ b/include/bfdev/overflow.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_OVERFLOW_H_ diff --git a/include/bfdev/poison.h b/include/bfdev/poison.h index 6859b997..63fd20ad 100644 --- a/include/bfdev/poison.h +++ b/include/bfdev/poison.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_POISON_H_ diff --git a/include/bfdev/popcount.h b/include/bfdev/popcount.h index e2a318fd..3aba78f6 100644 --- a/include/bfdev/popcount.h +++ b/include/bfdev/popcount.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_POPCOUNT_H_ diff --git a/include/bfdev/port/stdarg.h b/include/bfdev/port/stdarg.h index 7a8efdbb..b843c936 100644 --- a/include/bfdev/port/stdarg.h +++ b/include/bfdev/port/stdarg.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_PORT_STDARG_H_ diff --git a/include/bfdev/port/stdbool.h b/include/bfdev/port/stdbool.h index 0a851553..968a4902 100644 --- a/include/bfdev/port/stdbool.h +++ b/include/bfdev/port/stdbool.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_PORT_STDBOOL_H_ diff --git a/include/bfdev/port/stddef.h b/include/bfdev/port/stddef.h index c33d2864..1af84bc9 100644 --- a/include/bfdev/port/stddef.h +++ b/include/bfdev/port/stddef.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_PORT_STDDEF_H_ diff --git a/include/bfdev/port/stdlib.h b/include/bfdev/port/stdlib.h index 4219c5e1..444b64d3 100644 --- a/include/bfdev/port/stdlib.h +++ b/include/bfdev/port/stdlib.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_PORT_STDLIB_H_ diff --git a/include/bfdev/port/string.h b/include/bfdev/port/string.h index 90f6ce86..06a2f97c 100644 --- a/include/bfdev/port/string.h +++ b/include/bfdev/port/string.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_PORT_STRING_H_ diff --git a/include/bfdev/prandom.h b/include/bfdev/prandom.h index 3e696a60..16df367e 100644 --- a/include/bfdev/prandom.h +++ b/include/bfdev/prandom.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_PRANDOM_H_ diff --git a/include/bfdev/radix.h b/include/bfdev/radix.h index 34aa5225..9cab2282 100644 --- a/include/bfdev/radix.h +++ b/include/bfdev/radix.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_RADIX_H_ diff --git a/include/bfdev/ratelimit.h b/include/bfdev/ratelimit.h index 68efe85b..5dbb573d 100644 --- a/include/bfdev/ratelimit.h +++ b/include/bfdev/ratelimit.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2024 John Sanpe + * Copyright(c) 2024 Zhenlin Wang */ #ifndef _BFDEV_RATELIMIT_H_ diff --git a/include/bfdev/rbtree.h b/include/bfdev/rbtree.h index 92e5c733..e7a181b4 100644 --- a/include/bfdev/rbtree.h +++ b/include/bfdev/rbtree.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_RBTREE_H_ diff --git a/include/bfdev/refcount.h b/include/bfdev/refcount.h index a025827f..66f59bc2 100644 --- a/include/bfdev/refcount.h +++ b/include/bfdev/refcount.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_REFCNT_H_ diff --git a/include/bfdev/respool.h b/include/bfdev/respool.h index 962754a4..afa16a3d 100644 --- a/include/bfdev/respool.h +++ b/include/bfdev/respool.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_RESPOOL_H_ diff --git a/include/bfdev/ringbuf.h b/include/bfdev/ringbuf.h index 0ac05f94..d0efdc8d 100644 --- a/include/bfdev/ringbuf.h +++ b/include/bfdev/ringbuf.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_RINGBUF_H_ diff --git a/include/bfdev/scnprintf.h b/include/bfdev/scnprintf.h index c805e37b..3d2dfcd8 100644 --- a/include/bfdev/scnprintf.h +++ b/include/bfdev/scnprintf.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_SCNPRINTF_H_ diff --git a/include/bfdev/segtree.h b/include/bfdev/segtree.h index a0de3790..99ff6e9c 100644 --- a/include/bfdev/segtree.h +++ b/include/bfdev/segtree.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_SEGTREE_H_ diff --git a/include/bfdev/sha1.h b/include/bfdev/sha1.h index 7c072499..b0ec333c 100644 --- a/include/bfdev/sha1.h +++ b/include/bfdev/sha1.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_SHA1_H_ diff --git a/include/bfdev/sha2.h b/include/bfdev/sha2.h index 1a31af44..ef527cf8 100644 --- a/include/bfdev/sha2.h +++ b/include/bfdev/sha2.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2024 John Sanpe + * Copyright(c) 2024 Zhenlin Wang */ #ifndef _BFDEV_SHA2_H_ diff --git a/include/bfdev/size.h b/include/bfdev/size.h index f32496d2..3a28a42b 100644 --- a/include/bfdev/size.h +++ b/include/bfdev/size.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_SIZE_H_ diff --git a/include/bfdev/skiplist.h b/include/bfdev/skiplist.h index 6ac89774..8c868b4d 100644 --- a/include/bfdev/skiplist.h +++ b/include/bfdev/skiplist.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_SKIPLIST_H_ diff --git a/include/bfdev/slist.h b/include/bfdev/slist.h index 467f354b..17db72df 100644 --- a/include/bfdev/slist.h +++ b/include/bfdev/slist.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_SLIST_H_ diff --git a/include/bfdev/sort.h b/include/bfdev/sort.h index 19571584..f108adc1 100644 --- a/include/bfdev/sort.h +++ b/include/bfdev/sort.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_SORT_H_ diff --git a/include/bfdev/stdarg.h b/include/bfdev/stdarg.h index b3d5f1dd..9cb61cac 100644 --- a/include/bfdev/stdarg.h +++ b/include/bfdev/stdarg.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_STDARG_H_ diff --git a/include/bfdev/stddef.h b/include/bfdev/stddef.h index ee049b3a..69c583a3 100644 --- a/include/bfdev/stddef.h +++ b/include/bfdev/stddef.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_STDDEF_H_ diff --git a/include/bfdev/stdlib.h b/include/bfdev/stdlib.h index a0a60815..71ed239a 100644 --- a/include/bfdev/stdlib.h +++ b/include/bfdev/stdlib.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_STDLIB_H_ diff --git a/include/bfdev/string.h b/include/bfdev/string.h index 30975529..69efde5e 100644 --- a/include/bfdev/string.h +++ b/include/bfdev/string.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_STRING_H_ diff --git a/include/bfdev/stringhash.h b/include/bfdev/stringhash.h index 4aff8eff..ae0fa0b1 100644 --- a/include/bfdev/stringhash.h +++ b/include/bfdev/stringhash.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_STRINGHASH_H_ diff --git a/include/bfdev/stringify.h b/include/bfdev/stringify.h index 16246b7b..4ea5f7f6 100644 --- a/include/bfdev/stringify.h +++ b/include/bfdev/stringify.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_STRINGIFY_H_ diff --git a/include/bfdev/struct.h b/include/bfdev/struct.h index e26a925b..242098ac 100644 --- a/include/bfdev/struct.h +++ b/include/bfdev/struct.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_STRUCT_H_ diff --git a/include/bfdev/swab.h b/include/bfdev/swab.h index b5eeb717..4f1e214a 100644 --- a/include/bfdev/swab.h +++ b/include/bfdev/swab.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_SWAB_H_ diff --git a/include/bfdev/template/array.h b/include/bfdev/template/array.h index d190cbe9..c1347a74 100644 --- a/include/bfdev/template/array.h +++ b/include/bfdev/template/array.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2025 John Sanpe + * Copyright(c) 2025 Zhenlin Wang */ #ifndef _BFDEV_TEMPLATE_ARRAY_H_ diff --git a/include/bfdev/template/btree.h b/include/bfdev/template/btree.h index c258ecfd..a025d851 100644 --- a/include/bfdev/template/btree.h +++ b/include/bfdev/template/btree.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2025 John Sanpe + * Copyright(c) 2025 Zhenlin Wang */ #ifndef _BFDEV_TEMPLATE_BTREE_H_ diff --git a/include/bfdev/textsearch.h b/include/bfdev/textsearch.h index 722caab0..17da719c 100644 --- a/include/bfdev/textsearch.h +++ b/include/bfdev/textsearch.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_TEXTSEARCH_H_ diff --git a/include/bfdev/time.h b/include/bfdev/time.h index 91e9af04..cc15f2ab 100644 --- a/include/bfdev/time.h +++ b/include/bfdev/time.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2024 John Sanpe + * Copyright(c) 2024 Zhenlin Wang */ #ifndef _BFDEV_TIME_H_ diff --git a/include/bfdev/titer.h b/include/bfdev/titer.h index a9734dac..dcd597ba 100644 --- a/include/bfdev/titer.h +++ b/include/bfdev/titer.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_TITER_H_ diff --git a/include/bfdev/tokenbucket.h b/include/bfdev/tokenbucket.h index 31632f5a..ec57a3a7 100644 --- a/include/bfdev/tokenbucket.h +++ b/include/bfdev/tokenbucket.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2024 John Sanpe + * Copyright(c) 2024 Zhenlin Wang */ #ifndef _BFDEV_TOKENBUCKET_H_ diff --git a/include/bfdev/typecheck.h b/include/bfdev/typecheck.h index 83c6e32f..6052924f 100644 --- a/include/bfdev/typecheck.h +++ b/include/bfdev/typecheck.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_TYPECHECK_H_ diff --git a/include/bfdev/types.h b/include/bfdev/types.h index e13fdf52..9bbd11d3 100644 --- a/include/bfdev/types.h +++ b/include/bfdev/types.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_TYPES_H_ diff --git a/include/bfdev/unaligned.h b/include/bfdev/unaligned.h index d65d59b0..08db6752 100644 --- a/include/bfdev/unaligned.h +++ b/include/bfdev/unaligned.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_UNALIGNED_H_ diff --git a/include/bfdev/uplower.h b/include/bfdev/uplower.h index fc3d2418..6a87586a 100644 --- a/include/bfdev/uplower.h +++ b/include/bfdev/uplower.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _BFDEV_UPLOWER_ diff --git a/include/bfdev/xprintf.h b/include/bfdev/xprintf.h index c31c0e7e..09bf730f 100644 --- a/include/bfdev/xprintf.h +++ b/include/bfdev/xprintf.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2025 John Sanpe + * Copyright(c) 2025 Zhenlin Wang */ #ifndef _BFDEV_XPRINTF_H_ diff --git a/include/export.h b/include/export.h index b032eee8..c6248101 100644 --- a/include/export.h +++ b/include/export.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _LOCAL_EXPORT_H_ diff --git a/include/port/allocator.h b/include/port/allocator.h index cc8de9e0..6f08f8ff 100644 --- a/include/port/allocator.h +++ b/include/port/allocator.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2024 John Sanpe + * Copyright(c) 2024 Zhenlin Wang */ #ifndef _LOCAL_PORT_ALLOCATOR_H_ diff --git a/include/port/log.h b/include/port/log.h index ed3025b9..a6c648fd 100644 --- a/include/port/log.h +++ b/include/port/log.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _LOCAL_PORT_LOG_H_ diff --git a/include/port/stdio.h b/include/port/stdio.h index 21947506..e8f8cb94 100644 --- a/include/port/stdio.h +++ b/include/port/stdio.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _LOCAL_PORT_STDIO_H_ diff --git a/include/port/stdlib.h b/include/port/stdlib.h index e5449b54..cc345a4c 100644 --- a/include/port/stdlib.h +++ b/include/port/stdlib.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _LOCAL_PORT_STDLIB_H_ diff --git a/include/port/string.h b/include/port/string.h index 27314c9e..77ce2bf6 100644 --- a/include/port/string.h +++ b/include/port/string.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #ifndef _LOCAL_PORT_STRING_H_ diff --git a/modules/build.cmake b/modules/build.cmake new file mode 100644 index 00000000..7b249c54 --- /dev/null +++ b/modules/build.cmake @@ -0,0 +1,11 @@ +# SPDX-License-Identifier: GPL-2.0-or-later +# +# Copyright(c) 2025 Zhenlin Wang +# + +set(BFDEV_SOURCE + ${BFDEV_SOURCE} + ${CMAKE_CURRENT_LIST_DIR}/log-hostname.c + ${CMAKE_CURRENT_LIST_DIR}/log-localtime.c + ${CMAKE_CURRENT_LIST_DIR}/log-pid.c +) diff --git a/modules/log-hostname.c b/modules/log-hostname.c new file mode 100644 index 00000000..d08be772 --- /dev/null +++ b/modules/log-hostname.c @@ -0,0 +1,38 @@ +/* SPDX-License-Identifier: LGPL-3.0-or-later */ +/* + * Copyright(c) 2025 Zhenlin Wang + */ + +#include +#include +#include +#include + +static int +log_hook_hostname(bfdev_log_message_t *msg, void *pdata) +{ + struct utsname sys_info; + + if (uname(&sys_info) < 0) + return -BFDEV_EFAULT; + + return bfdev_msg_append(msg, "%s ", sys_info.nodename); +} + +export bfdev_log_chain_t +bfdev_log_chain_hostname = { + .func = log_hook_hostname, + .priority = -200, +}; + +export int +bfdev_log_hostname_enable(bfdev_log_t *log) +{ + return bfdev_log_hook_register(log, &bfdev_log_chain_hostname); +} + +export void +bfdev_log_hostname_disable(bfdev_log_t *log) +{ + bfdev_log_hook_unregister(log, &bfdev_log_chain_hostname); +} diff --git a/modules/log-localtime.c b/modules/log-localtime.c new file mode 100644 index 00000000..99a35897 --- /dev/null +++ b/modules/log-localtime.c @@ -0,0 +1,41 @@ +/* SPDX-License-Identifier: LGPL-3.0-or-later */ +/* + * Copyright(c) 2025 Zhenlin Wang + */ + +#include +#include +#include +#include + +static int +log_hook_localtime(bfdev_log_message_t *msg, void *pdata) +{ + struct tm *tm_info; + time_t timestamp; + char buff[64]; + + time(×tamp); + tm_info = localtime(×tamp); + strftime(buff, sizeof(buff), "%a %b %d %H:%M:%S %p %Z %Y", tm_info); + + return bfdev_msg_append(msg, "<%s> ", buff); +} + +export bfdev_log_chain_t +bfdev_log_chain_localtime = { + .func = log_hook_localtime, + .priority = -1000, +}; + +export int +bfdev_log_localtime_enable(bfdev_log_t *log) +{ + return bfdev_log_hook_register(log, &bfdev_log_chain_localtime); +} + +export void +bfdev_log_localtime_disable(bfdev_log_t *log) +{ + bfdev_log_hook_unregister(log, &bfdev_log_chain_localtime); +} diff --git a/modules/log-pid.c b/modules/log-pid.c new file mode 100644 index 00000000..b0069e4f --- /dev/null +++ b/modules/log-pid.c @@ -0,0 +1,33 @@ +/* SPDX-License-Identifier: LGPL-3.0-or-later */ +/* + * Copyright(c) 2025 Zhenlin Wang + */ + +#include +#include +#include +#include + +static int +log_hook_pid(bfdev_log_message_t *msg, void *pdata) +{ + return bfdev_msg_append(msg, "(pid: %d) ", getpid()); +} + +export bfdev_log_chain_t +bfdev_log_chain_pid = { + .func = log_hook_pid, + .priority = -100, +}; + +export int +bfdev_log_pid_enable(bfdev_log_t *log) +{ + return bfdev_log_hook_register(log, &bfdev_log_chain_pid); +} + +export void +bfdev_log_pid_disable(bfdev_log_t *log) +{ + bfdev_log_hook_unregister(log, &bfdev_log_chain_pid); +} diff --git a/port/build.cmake b/port/build.cmake index 00892f44..f7e02a87 100644 --- a/port/build.cmake +++ b/port/build.cmake @@ -1,6 +1,6 @@ # SPDX-License-Identifier: LGPL-3.0-or-later # -# Copyright(c) 2025 John Sanpe +# Copyright(c) 2025 Zhenlin Wang # if(BFDEV_PORT_TYPE) diff --git a/port/generic/build.cmake b/port/generic/build.cmake index 196adb4a..084c8de5 100644 --- a/port/generic/build.cmake +++ b/port/generic/build.cmake @@ -1,6 +1,6 @@ # SPDX-License-Identifier: LGPL-3.0-or-later # -# Copyright(c) 2025 John Sanpe +# Copyright(c) 2025 Zhenlin Wang # set(BFDEV_SOURCE diff --git a/port/generic/log.c b/port/generic/log.c index 537302be..dfef7d43 100644 --- a/port/generic/log.c +++ b/port/generic/log.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2025 John Sanpe + * Copyright(c) 2025 Zhenlin Wang */ #include diff --git a/port/generic/stdio.c b/port/generic/stdio.c index 6278233e..08b3c724 100644 --- a/port/generic/stdio.c +++ b/port/generic/stdio.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2025 John Sanpe + * Copyright(c) 2025 Zhenlin Wang */ #include diff --git a/port/generic/stdlib.c b/port/generic/stdlib.c index bfa64326..74ad3d34 100644 --- a/port/generic/stdlib.c +++ b/port/generic/stdlib.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2025 John Sanpe + * Copyright(c) 2025 Zhenlin Wang */ #include diff --git a/port/generic/string.c b/port/generic/string.c index ce22bfb7..ba756d29 100644 --- a/port/generic/string.c +++ b/port/generic/string.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2025 John Sanpe + * Copyright(c) 2025 Zhenlin Wang */ #include diff --git a/port/posix/build.cmake b/port/posix/build.cmake index a58f48d8..3c200be3 100644 --- a/port/posix/build.cmake +++ b/port/posix/build.cmake @@ -1,6 +1,6 @@ # SPDX-License-Identifier: LGPL-3.0-or-later # -# Copyright(c) 2025 John Sanpe +# Copyright(c) 2025 Zhenlin Wang # set(BFDEV_SOURCE diff --git a/port/posix/log.c b/port/posix/log.c index d9743c10..46a00992 100644 --- a/port/posix/log.c +++ b/port/posix/log.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2025 John Sanpe + * Copyright(c) 2025 Zhenlin Wang */ #include diff --git a/port/posix/stdio.c b/port/posix/stdio.c index 9b6948d2..26993c72 100644 --- a/port/posix/stdio.c +++ b/port/posix/stdio.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2025 John Sanpe + * Copyright(c) 2025 Zhenlin Wang */ #include diff --git a/port/posix/stdlib.c b/port/posix/stdlib.c index c65680e0..0e76ccdc 100644 --- a/port/posix/stdlib.c +++ b/port/posix/stdlib.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2025 John Sanpe + * Copyright(c) 2025 Zhenlin Wang */ #include diff --git a/port/posix/string.c b/port/posix/string.c index 28fee713..e1b7c4c5 100644 --- a/port/posix/string.c +++ b/port/posix/string.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2025 John Sanpe + * Copyright(c) 2025 Zhenlin Wang */ #include diff --git a/port/tests/build.cmake b/port/tests/build.cmake index 80c54f5d..cd66cf93 100644 --- a/port/tests/build.cmake +++ b/port/tests/build.cmake @@ -1,6 +1,6 @@ # SPDX-License-Identifier: LGPL-3.0-or-later # -# Copyright(c) 2025 John Sanpe +# Copyright(c) 2025 Zhenlin Wang # if(BFDEV_PORT_TYPE STREQUAL "posix") diff --git a/port/tests/typecheck.c b/port/tests/typecheck.c index 31cb34bf..c9901ed2 100644 --- a/port/tests/typecheck.c +++ b/port/tests/typecheck.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ /* - * Copyright(c) 2025 John Sanpe + * Copyright(c) 2025 Zhenlin Wang */ #include diff --git a/scripts/CMakeLists.txt b/scripts/CMakeLists.txt index 1b5fdc6b..18461579 100644 --- a/scripts/CMakeLists.txt +++ b/scripts/CMakeLists.txt @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-2.0-or-later # -# Copyright(c) 2023 John Sanpe +# Copyright(c) 2023 Zhenlin Wang # set(HOST_C_FLAGS diff --git a/scripts/asm-generic.cmake b/scripts/asm-generic.cmake index bd4b1b86..2eb107b9 100644 --- a/scripts/asm-generic.cmake +++ b/scripts/asm-generic.cmake @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-2.0-or-later # -# Copyright(c) 2023 John Sanpe +# Copyright(c) 2023 Zhenlin Wang # function(asm_generic prefix generated compare source) diff --git a/scripts/check.cmake b/scripts/check.cmake index be70d05c..deee3449 100644 --- a/scripts/check.cmake +++ b/scripts/check.cmake @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-2.0-or-later # -# Copyright(c) 2025 John Sanpe +# Copyright(c) 2025 Zhenlin Wang # function(check_header_and_exit name) diff --git a/scripts/commit.cmake b/scripts/commit.cmake index 108d1bd2..598f226e 100644 --- a/scripts/commit.cmake +++ b/scripts/commit.cmake @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-2.0-or-later # -# Copyright(c) 2023 John Sanpe +# Copyright(c) 2023 Zhenlin Wang # macro(commit_hash hash) diff --git a/scripts/compare-type.c b/scripts/compare-type.c index 09af0a19..f59eac90 100644 --- a/scripts/compare-type.c +++ b/scripts/compare-type.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #include diff --git a/scripts/gen-crc.c b/scripts/gen-crc.c index 574405b0..de332baa 100644 --- a/scripts/gen-crc.c +++ b/scripts/gen-crc.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #include diff --git a/scripts/gen-crc16.c b/scripts/gen-crc16.c index 01c4d144..751e5779 100644 --- a/scripts/gen-crc16.c +++ b/scripts/gen-crc16.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #define GENCRC_NAME crc16 diff --git a/scripts/gen-crc16be.c b/scripts/gen-crc16be.c index 320f864a..ed456793 100644 --- a/scripts/gen-crc16be.c +++ b/scripts/gen-crc16be.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #define GENCRC_NAME crc16be diff --git a/scripts/gen-crc32.c b/scripts/gen-crc32.c index c8f33d00..b458e63d 100644 --- a/scripts/gen-crc32.c +++ b/scripts/gen-crc32.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #define GENCRC_NAME crc32 diff --git a/scripts/gen-crc32be.c b/scripts/gen-crc32be.c index 4ee7eae7..fc9d11ca 100644 --- a/scripts/gen-crc32be.c +++ b/scripts/gen-crc32be.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #define GENCRC_NAME crc32be diff --git a/scripts/gen-crc64.c b/scripts/gen-crc64.c index 54b43a7b..d8845ea3 100644 --- a/scripts/gen-crc64.c +++ b/scripts/gen-crc64.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #define GENCRC_NAME crc64 diff --git a/scripts/gen-crc64be.c b/scripts/gen-crc64be.c index 0dfae10d..06a43c55 100644 --- a/scripts/gen-crc64be.c +++ b/scripts/gen-crc64be.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #define GENCRC_NAME crc64be diff --git a/scripts/gen-crc8.c b/scripts/gen-crc8.c index 9fe80c92..aa14d501 100644 --- a/scripts/gen-crc8.c +++ b/scripts/gen-crc8.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #define GENCRC_NAME crc8 diff --git a/scripts/get-type.cmake b/scripts/get-type.cmake index 2d86c16b..60bee28b 100644 --- a/scripts/get-type.cmake +++ b/scripts/get-type.cmake @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-2.0-or-later # -# Copyright(c) 2025 John Sanpe +# Copyright(c) 2025 Zhenlin Wang # function(compare_type result type1 type2) diff --git a/scripts/hostrule.cmake b/scripts/hostrule.cmake index 6ec0ea1a..18757404 100644 --- a/scripts/hostrule.cmake +++ b/scripts/hostrule.cmake @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-2.0-or-later # -# Copyright(c) 2023 John Sanpe +# Copyright(c) 2023 Zhenlin Wang # function(host_target target) diff --git a/scripts/packed-header.cmake b/scripts/packed-header.cmake index 978ba9d7..36f95a21 100644 --- a/scripts/packed-header.cmake +++ b/scripts/packed-header.cmake @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-2.0-or-later # -# Copyright(c) 2023 John Sanpe +# Copyright(c) 2023 Zhenlin Wang # function(packed_header prefix name genfile) diff --git a/scripts/platform.cmake b/scripts/platform.cmake index 167ce759..3a82c685 100644 --- a/scripts/platform.cmake +++ b/scripts/platform.cmake @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-2.0-or-later # -# Copyright(c) 2025 John Sanpe +# Copyright(c) 2025 Zhenlin Wang # if(CMAKE_SYSTEM_NAME MATCHES "Linux|Android|Darwin|GNU") diff --git a/scripts/sanitize.cmake b/scripts/sanitize.cmake index 50a5dadc..b4e46bf4 100644 --- a/scripts/sanitize.cmake +++ b/scripts/sanitize.cmake @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-2.0-or-later # -# Copyright(c) 2024 John Sanpe +# Copyright(c) 2024 Zhenlin Wang # if(BFDEV_ASAN) diff --git a/src/allocpool.c b/src/allocpool.c index a212577a..245bdf5c 100644 --- a/src/allocpool.c +++ b/src/allocpool.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #include diff --git a/src/argv.c b/src/argv.c index 71845551..477c3575 100644 --- a/src/argv.c +++ b/src/argv.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #include diff --git a/src/array.c b/src/array.c index 58516f87..1e15b359 100644 --- a/src/array.c +++ b/src/array.c @@ -1,7 +1,7 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* * Copyright(c) 2023 ffashion - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #include diff --git a/src/bcd.c b/src/bcd.c index dc250fca..74ff92bd 100644 --- a/src/bcd.c +++ b/src/bcd.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #include diff --git a/src/bitmap.c b/src/bitmap.c index c3307b26..2c32a3d2 100644 --- a/src/bitmap.c +++ b/src/bitmap.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2021 John Sanpe + * Copyright(c) 2021 Zhenlin Wang */ #include diff --git a/src/bitrev.c b/src/bitrev.c index 6a634f38..da1a4cbc 100644 --- a/src/bitrev.c +++ b/src/bitrev.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #include diff --git a/src/bitwalk.c b/src/bitwalk.c index 82ff2115..6bdc2420 100644 --- a/src/bitwalk.c +++ b/src/bitwalk.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2021 John Sanpe + * Copyright(c) 2021 Zhenlin Wang */ #include diff --git a/src/bloom.c b/src/bloom.c index 8706e595..47b7cedb 100644 --- a/src/bloom.c +++ b/src/bloom.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #include diff --git a/src/bsearch.c b/src/bsearch.c index 6ac69dc8..6f3e82e8 100644 --- a/src/bsearch.c +++ b/src/bsearch.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #include diff --git a/src/btree.c b/src/btree.c index 6bf13513..994a42ce 100644 --- a/src/btree.c +++ b/src/btree.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2022 John Sanpe + * Copyright(c) 2022 Zhenlin Wang */ #include diff --git a/src/build.cmake b/src/build.cmake index d143a6ce..067d27f3 100644 --- a/src/build.cmake +++ b/src/build.cmake @@ -1,6 +1,6 @@ # SPDX-License-Identifier: LGPL-3.0-or-later # -# Copyright(c) 2023 John Sanpe +# Copyright(c) 2023 Zhenlin Wang # set(BFDEV_SOURCE diff --git a/src/cache/build.cmake b/src/cache/build.cmake index b1568eaa..945d19e1 100644 --- a/src/cache/build.cmake +++ b/src/cache/build.cmake @@ -1,6 +1,6 @@ # SPDX-License-Identifier: LGPL-3.0-or-later # -# Copyright(c) 2023 John Sanpe +# Copyright(c) 2023 Zhenlin Wang # set(BFDEV_SOURCE diff --git a/src/cache/cache.c b/src/cache/cache.c index 8f5c10c8..71bbdd3d 100644 --- a/src/cache/cache.c +++ b/src/cache/cache.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2022 John Sanpe + * Copyright(c) 2022 Zhenlin Wang */ #include diff --git a/src/cache/lfu.c b/src/cache/lfu.c index 1c795934..52daac0b 100644 --- a/src/cache/lfu.c +++ b/src/cache/lfu.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2022 John Sanpe + * Copyright(c) 2022 Zhenlin Wang */ #include diff --git a/src/cache/lru.c b/src/cache/lru.c index 2e42c42a..dc00913e 100644 --- a/src/cache/lru.c +++ b/src/cache/lru.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2022 John Sanpe + * Copyright(c) 2022 Zhenlin Wang */ #include diff --git a/src/callback.c b/src/callback.c index 48e1db39..2546e3e9 100644 --- a/src/callback.c +++ b/src/callback.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2022 John Sanpe + * Copyright(c) 2022 Zhenlin Wang */ #include diff --git a/src/crypto/arc4.c b/src/crypto/arc4.c index 1f5de101..f6cd90b9 100644 --- a/src/crypto/arc4.c +++ b/src/crypto/arc4.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2024 John Sanpe + * Copyright(c) 2024 Zhenlin Wang */ #include diff --git a/src/crypto/ascii85.c b/src/crypto/ascii85.c index a6a6d603..a835a840 100644 --- a/src/crypto/ascii85.c +++ b/src/crypto/ascii85.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2022 John Sanpe + * Copyright(c) 2022 Zhenlin Wang */ #include diff --git a/src/crypto/base32.c b/src/crypto/base32.c index 59dc56a8..1b12fdcb 100644 --- a/src/crypto/base32.c +++ b/src/crypto/base32.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2022 John Sanpe + * Copyright(c) 2022 Zhenlin Wang */ #include diff --git a/src/crypto/base64.c b/src/crypto/base64.c index 9756b7c9..f7945c7e 100644 --- a/src/crypto/base64.c +++ b/src/crypto/base64.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2022 John Sanpe + * Copyright(c) 2022 Zhenlin Wang */ #include diff --git a/src/crypto/build.cmake b/src/crypto/build.cmake index c94a49fc..7aa3c4b5 100644 --- a/src/crypto/build.cmake +++ b/src/crypto/build.cmake @@ -1,6 +1,6 @@ # SPDX-License-Identifier: LGPL-3.0-or-later # -# Copyright(c) 2023 John Sanpe +# Copyright(c) 2023 Zhenlin Wang # set(BFDEV_SOURCE diff --git a/src/crypto/crc-ccitt.c b/src/crypto/crc-ccitt.c index cd590938..15802a48 100644 --- a/src/crypto/crc-ccitt.c +++ b/src/crypto/crc-ccitt.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2022 John Sanpe + * Copyright(c) 2022 Zhenlin Wang */ #include diff --git a/src/crypto/crc-itut.c b/src/crypto/crc-itut.c index 78223b9e..627e8033 100644 --- a/src/crypto/crc-itut.c +++ b/src/crypto/crc-itut.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2022 John Sanpe + * Copyright(c) 2022 Zhenlin Wang */ #include diff --git a/src/crypto/crc-rocksoft.c b/src/crypto/crc-rocksoft.c index b8aa47cc..78db30d2 100644 --- a/src/crypto/crc-rocksoft.c +++ b/src/crypto/crc-rocksoft.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2022 John Sanpe + * Copyright(c) 2022 Zhenlin Wang */ #include diff --git a/src/crypto/crc-t10dif.c b/src/crypto/crc-t10dif.c index 58d29167..22f07e9b 100644 --- a/src/crypto/crc-t10dif.c +++ b/src/crypto/crc-t10dif.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2022 John Sanpe + * Copyright(c) 2022 Zhenlin Wang */ #include diff --git a/src/crypto/crc16.c b/src/crypto/crc16.c index 29150d6a..c863b485 100644 --- a/src/crypto/crc16.c +++ b/src/crypto/crc16.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2022 John Sanpe + * Copyright(c) 2022 Zhenlin Wang */ #include diff --git a/src/crypto/crc32.c b/src/crypto/crc32.c index a2f947e9..ed13e944 100644 --- a/src/crypto/crc32.c +++ b/src/crypto/crc32.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2022 John Sanpe + * Copyright(c) 2022 Zhenlin Wang */ #include diff --git a/src/crypto/crc4.c b/src/crypto/crc4.c index f02e874f..11fedf8f 100644 --- a/src/crypto/crc4.c +++ b/src/crypto/crc4.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2022 John Sanpe + * Copyright(c) 2022 Zhenlin Wang */ #include diff --git a/src/crypto/crc64.c b/src/crypto/crc64.c index 11f3f209..b0120d5c 100644 --- a/src/crypto/crc64.c +++ b/src/crypto/crc64.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2022 John Sanpe + * Copyright(c) 2022 Zhenlin Wang */ #include diff --git a/src/crypto/crc7.c b/src/crypto/crc7.c index 32d07abb..34084ef8 100644 --- a/src/crypto/crc7.c +++ b/src/crypto/crc7.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2022 John Sanpe + * Copyright(c) 2022 Zhenlin Wang */ #include diff --git a/src/crypto/crc8.c b/src/crypto/crc8.c index 88142496..fe8f9cb6 100644 --- a/src/crypto/crc8.c +++ b/src/crypto/crc8.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2022 John Sanpe + * Copyright(c) 2022 Zhenlin Wang */ #include diff --git a/src/crypto/md5.c b/src/crypto/md5.c index d6f4f2cb..72d9bca0 100644 --- a/src/crypto/md5.c +++ b/src/crypto/md5.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2024 John Sanpe + * Copyright(c) 2024 Zhenlin Wang */ #include diff --git a/src/crypto/sha1.c b/src/crypto/sha1.c index 142a4071..6c7a7e38 100644 --- a/src/crypto/sha1.c +++ b/src/crypto/sha1.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2024 John Sanpe + * Copyright(c) 2024 Zhenlin Wang */ #include diff --git a/src/crypto/sha2.c b/src/crypto/sha2.c index 710330c8..38fc9ea9 100644 --- a/src/crypto/sha2.c +++ b/src/crypto/sha2.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2024 John Sanpe + * Copyright(c) 2024 Zhenlin Wang */ #include diff --git a/src/dword.c b/src/dword.c index bce28d71..95b64f5a 100644 --- a/src/dword.c +++ b/src/dword.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2024 John Sanpe + * Copyright(c) 2024 Zhenlin Wang */ #define MODULE_NAME "bfdev-dword" diff --git a/src/errname.c b/src/errname.c index ba818572..f9e19e94 100644 --- a/src/errname.c +++ b/src/errname.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #include diff --git a/src/fifo.c b/src/fifo.c index 30ae830d..50a36b66 100644 --- a/src/fifo.c +++ b/src/fifo.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #include diff --git a/src/fsm.c b/src/fsm.c index 84ebf6af..cc8b910e 100644 --- a/src/fsm.c +++ b/src/fsm.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #include diff --git a/src/glob.c b/src/glob.c index 08421ee7..e6aff156 100644 --- a/src/glob.c +++ b/src/glob.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2025 John Sanpe + * Copyright(c) 2025 Zhenlin Wang */ #include diff --git a/src/hashmap.c b/src/hashmap.c index 9e700a13..a5a84892 100644 --- a/src/hashmap.c +++ b/src/hashmap.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #include diff --git a/src/heap-debug.c b/src/heap-debug.c index 9352eace..e1da04fe 100644 --- a/src/heap-debug.c +++ b/src/heap-debug.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #define MODULE_NAME "bfdev-heap" diff --git a/src/heap.c b/src/heap.c index dc604278..69b4ed1e 100644 --- a/src/heap.c +++ b/src/heap.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #include diff --git a/src/hlist-debug.c b/src/hlist-debug.c index aaadf821..bd98de68 100644 --- a/src/hlist-debug.c +++ b/src/hlist-debug.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #define MODULE_NAME "bfdev-hlist" diff --git a/src/ilist.c b/src/ilist.c index 3daf5c1b..d8283d9f 100644 --- a/src/ilist.c +++ b/src/ilist.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #define MODULE_NAME "bfdev-ilist" diff --git a/src/jhash.c b/src/jhash.c index 99f202fb..599ea669 100644 --- a/src/jhash.c +++ b/src/jhash.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2024 John Sanpe + * Copyright(c) 2024 Zhenlin Wang */ #include diff --git a/src/knuth.c b/src/knuth.c index a8ff00c5..9d917483 100644 --- a/src/knuth.c +++ b/src/knuth.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #include diff --git a/src/levenshtein.c b/src/levenshtein.c index 208cf828..3b7e2e30 100644 --- a/src/levenshtein.c +++ b/src/levenshtein.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #include diff --git a/src/libc/build.cmake b/src/libc/build.cmake index 01cf24e5..1ad9e361 100644 --- a/src/libc/build.cmake +++ b/src/libc/build.cmake @@ -1,6 +1,6 @@ # SPDX-License-Identifier: LGPL-3.0-or-later # -# Copyright(c) 2023 John Sanpe +# Copyright(c) 2023 Zhenlin Wang # set(BFDEV_SOURCE diff --git a/src/libc/ctype.c b/src/libc/ctype.c index 222b4509..b9ef3776 100644 --- a/src/libc/ctype.c +++ b/src/libc/ctype.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #include diff --git a/src/libc/strdup.c b/src/libc/strdup.c index 51afdad7..6683bcec 100644 --- a/src/libc/strdup.c +++ b/src/libc/strdup.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #include diff --git a/src/libc/string.c b/src/libc/string.c index 17c50f75..fd1eb7de 100644 --- a/src/libc/string.c +++ b/src/libc/string.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #include diff --git a/src/libc/xfprintf.c b/src/libc/xfprintf.c index 95510862..c477372a 100644 --- a/src/libc/xfprintf.c +++ b/src/libc/xfprintf.c @@ -1,6 +1,6 @@ -/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #include diff --git a/src/libc/xprintf.c b/src/libc/xprintf.c index 12956475..b5e015b9 100644 --- a/src/libc/xprintf.c +++ b/src/libc/xprintf.c @@ -1,6 +1,6 @@ -/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2025 John Sanpe + * Copyright(c) 2025 Zhenlin Wang */ #include diff --git a/src/list-debug.c b/src/list-debug.c index bc46b404..11645fce 100644 --- a/src/list-debug.c +++ b/src/list-debug.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #define MODULE_NAME "bfdev-list" diff --git a/src/list-sort.c b/src/list-sort.c index 3e3a0e1a..15db5177 100644 --- a/src/list-sort.c +++ b/src/list-sort.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #include diff --git a/src/llist.c b/src/llist.c index b93b7738..3c56fccc 100644 --- a/src/llist.c +++ b/src/llist.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2022 John Sanpe + * Copyright(c) 2022 Zhenlin Wang */ #include diff --git a/src/log/build.cmake b/src/log/build.cmake index f864e9ae..0c98a2ad 100644 --- a/src/log/build.cmake +++ b/src/log/build.cmake @@ -1,6 +1,6 @@ # SPDX-License-Identifier: LGPL-3.0-or-later # -# Copyright(c) 2023 John Sanpe +# Copyright(c) 2023 Zhenlin Wang # set(BFDEV_SOURCE diff --git a/src/log/color.c b/src/log/color.c index 3944f094..13948909 100644 --- a/src/log/color.c +++ b/src/log/color.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2024 John Sanpe + * Copyright(c) 2024 Zhenlin Wang */ #include diff --git a/src/log/level.c b/src/log/level.c index b12c4e7c..545401bd 100644 --- a/src/log/level.c +++ b/src/log/level.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2024 John Sanpe + * Copyright(c) 2024 Zhenlin Wang */ #include diff --git a/src/log/log.c b/src/log/log.c index df406564..ca214164 100644 --- a/src/log/log.c +++ b/src/log/log.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #include diff --git a/src/log/log.h b/src/log/log.h index 7875fd00..e3ae7817 100644 --- a/src/log/log.h +++ b/src/log/log.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2025 John Sanpe + * Copyright(c) 2025 Zhenlin Wang */ #ifndef _LOCAL_LOG_H_ diff --git a/src/matrix.c b/src/matrix.c index ce736b1c..32621fb4 100644 --- a/src/matrix.c +++ b/src/matrix.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #include diff --git a/src/memalloc.c b/src/memalloc.c index e75cc20e..6b153bcb 100644 --- a/src/memalloc.c +++ b/src/memalloc.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2021 John Sanpe + * Copyright(c) 2021 Zhenlin Wang */ #define MODULE_NAME "bfdev-memalloc" diff --git a/src/mpi.c b/src/mpi.c index 600b53be..2a5029b9 100644 --- a/src/mpi.c +++ b/src/mpi.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2024 John Sanpe + * Copyright(c) 2024 Zhenlin Wang */ #define MODULE_NAME "bfdev-mpi" diff --git a/src/notifier.c b/src/notifier.c index 9834911f..4e289b38 100644 --- a/src/notifier.c +++ b/src/notifier.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2021 John Sanpe + * Copyright(c) 2021 Zhenlin Wang */ #include diff --git a/src/popcount.c b/src/popcount.c index 20bddee7..09584ffb 100644 --- a/src/popcount.c +++ b/src/popcount.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #include diff --git a/src/port/build.cmake b/src/port/build.cmake index 3ee5722d..c13ed555 100644 --- a/src/port/build.cmake +++ b/src/port/build.cmake @@ -1,6 +1,6 @@ # SPDX-License-Identifier: LGPL-3.0-or-later # -# Copyright(c) 2023 John Sanpe +# Copyright(c) 2023 Zhenlin Wang # set(BFDEV_SOURCE diff --git a/src/port/stdlib.c b/src/port/stdlib.c index 3e62505c..69681d03 100644 --- a/src/port/stdlib.c +++ b/src/port/stdlib.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2025 John Sanpe + * Copyright(c) 2025 Zhenlin Wang */ #include diff --git a/src/port/string.c b/src/port/string.c index 64e44ea3..92a892c0 100644 --- a/src/port/string.c +++ b/src/port/string.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2025 John Sanpe + * Copyright(c) 2025 Zhenlin Wang */ #include diff --git a/src/prandom.c b/src/prandom.c index bc945923..9428483e 100644 --- a/src/prandom.c +++ b/src/prandom.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #include diff --git a/src/radix.c b/src/radix.c index 16163dad..f61da7f9 100644 --- a/src/radix.c +++ b/src/radix.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #include diff --git a/src/ratelimit.c b/src/ratelimit.c index bf360f3b..9a554dd5 100644 --- a/src/ratelimit.c +++ b/src/ratelimit.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2024 John Sanpe + * Copyright(c) 2024 Zhenlin Wang */ #include diff --git a/src/rbtree-debug.c b/src/rbtree-debug.c index b64e6b87..ec2f93e0 100644 --- a/src/rbtree-debug.c +++ b/src/rbtree-debug.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #define MODULE_NAME "bfdev-rbtree" diff --git a/src/rbtree.c b/src/rbtree.c index 27febf68..0d5335cf 100644 --- a/src/rbtree.c +++ b/src/rbtree.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #include diff --git a/src/refcount-debug.c b/src/refcount-debug.c index 674e5344..9e4bf0c8 100644 --- a/src/refcount-debug.c +++ b/src/refcount-debug.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #define MODULE_NAME "bfdev-refcount" diff --git a/src/respool.c b/src/respool.c index 1b3075e2..5debe6ed 100644 --- a/src/respool.c +++ b/src/respool.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #include diff --git a/src/ringbuf.c b/src/ringbuf.c index b6b4bc81..7cdac8e2 100644 --- a/src/ringbuf.c +++ b/src/ringbuf.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #include diff --git a/src/scnprintf.c b/src/scnprintf.c index 3b5d72e9..be4be1a5 100644 --- a/src/scnprintf.c +++ b/src/scnprintf.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #include diff --git a/src/segtree.c b/src/segtree.c index fe7adcc5..80b0a734 100644 --- a/src/segtree.c +++ b/src/segtree.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #include diff --git a/src/skiplist.c b/src/skiplist.c index 85619308..1d717d3b 100644 --- a/src/skiplist.c +++ b/src/skiplist.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #include diff --git a/src/slist-debug.c b/src/slist-debug.c index b6563dd0..5c41e5e0 100644 --- a/src/slist-debug.c +++ b/src/slist-debug.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #define MODULE_NAME "bfdev-slist" diff --git a/src/sort.c b/src/sort.c index c187bc54..7788406c 100644 --- a/src/sort.c +++ b/src/sort.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #include diff --git a/src/stringhash.c b/src/stringhash.c index 63b7d87f..00ebe484 100644 --- a/src/stringhash.c +++ b/src/stringhash.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #include diff --git a/src/textsearch/bm.c b/src/textsearch/bm.c index 09ef4f63..6758fd30 100644 --- a/src/textsearch/bm.c +++ b/src/textsearch/bm.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2022 John Sanpe + * Copyright(c) 2022 Zhenlin Wang */ #include diff --git a/src/textsearch/build.cmake b/src/textsearch/build.cmake index 64bb06b6..d24295f1 100644 --- a/src/textsearch/build.cmake +++ b/src/textsearch/build.cmake @@ -1,6 +1,6 @@ # SPDX-License-Identifier: LGPL-3.0-or-later # -# Copyright(c) 2023 John Sanpe +# Copyright(c) 2023 Zhenlin Wang # set(BFDEV_SOURCE diff --git a/src/textsearch/kmp.c b/src/textsearch/kmp.c index 4156b344..ac33adf1 100644 --- a/src/textsearch/kmp.c +++ b/src/textsearch/kmp.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2022 John Sanpe + * Copyright(c) 2022 Zhenlin Wang */ #include diff --git a/src/textsearch/linear.c b/src/textsearch/linear.c index c575d44e..0131a550 100644 --- a/src/textsearch/linear.c +++ b/src/textsearch/linear.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2022 John Sanpe + * Copyright(c) 2022 Zhenlin Wang */ #include diff --git a/src/textsearch/sunday.c b/src/textsearch/sunday.c index 90521777..55c0d0ef 100644 --- a/src/textsearch/sunday.c +++ b/src/textsearch/sunday.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2022 John Sanpe + * Copyright(c) 2022 Zhenlin Wang */ #include diff --git a/src/textsearch/textsearch.c b/src/textsearch/textsearch.c index e749cea3..846eda11 100644 --- a/src/textsearch/textsearch.c +++ b/src/textsearch/textsearch.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2022 John Sanpe + * Copyright(c) 2022 Zhenlin Wang */ #include diff --git a/src/tokenbucket.c b/src/tokenbucket.c index 389b677d..98ebfe4c 100644 --- a/src/tokenbucket.c +++ b/src/tokenbucket.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2024 John Sanpe + * Copyright(c) 2024 Zhenlin Wang */ #include diff --git a/template/array.c b/template/array.c index 78299eca..c453fc6d 100644 --- a/template/array.c +++ b/template/array.c @@ -1,7 +1,7 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* * Copyright(c) 2023 ffashion - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #include diff --git a/template/btree.c b/template/btree.c index b62fc92c..a5d395b0 100644 --- a/template/btree.c +++ b/template/btree.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: LGPL-3.0-or-later */ /* - * Copyright(c) 2022 John Sanpe + * Copyright(c) 2022 Zhenlin Wang */ #include diff --git a/template/build.cmake b/template/build.cmake index 2cc81b4c..dfc59581 100644 --- a/template/build.cmake +++ b/template/build.cmake @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-2.0-or-later # -# Copyright(c) 2025 John Sanpe +# Copyright(c) 2025 Zhenlin Wang # set(BFDEV_SOURCE diff --git a/testsuite/CMakeLists.txt b/testsuite/CMakeLists.txt index 64232d89..79d3ef25 100644 --- a/testsuite/CMakeLists.txt +++ b/testsuite/CMakeLists.txt @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-2.0-or-later # -# Copyright(c) 2024 John Sanpe +# Copyright(c) 2024 Zhenlin Wang # include(${CMAKE_CURRENT_LIST_DIR}/build.cmake) diff --git a/testsuite/array/CMakeLists.txt b/testsuite/array/CMakeLists.txt index 26d95bce..ed7eeb28 100644 --- a/testsuite/array/CMakeLists.txt +++ b/testsuite/array/CMakeLists.txt @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-2.0-or-later # -# Copyright(c) 2024 John Sanpe +# Copyright(c) 2024 Zhenlin Wang # testsuite_target(array-fuzzy diff --git a/testsuite/array/fuzzy.c b/testsuite/array/fuzzy.c index e16e12d1..62f1fc44 100644 --- a/testsuite/array/fuzzy.c +++ b/testsuite/array/fuzzy.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ /* - * Copyright(c) 2024 John Sanpe + * Copyright(c) 2024 Zhenlin Wang */ #include diff --git a/testsuite/bitwalk/CMakeLists.txt b/testsuite/bitwalk/CMakeLists.txt index 8b40f5ef..eee488e8 100644 --- a/testsuite/bitwalk/CMakeLists.txt +++ b/testsuite/bitwalk/CMakeLists.txt @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-2.0-or-later # -# Copyright(c) 2024 John Sanpe +# Copyright(c) 2024 Zhenlin Wang # add_executable(bitwalk-fuzzy fuzzy.c) diff --git a/testsuite/bitwalk/fuzzy.c b/testsuite/bitwalk/fuzzy.c index 0cf63f24..005736e1 100644 --- a/testsuite/bitwalk/fuzzy.c +++ b/testsuite/bitwalk/fuzzy.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #define MODULE_NAME "bitwalk-fuzzy" diff --git a/testsuite/build.cmake b/testsuite/build.cmake index 54b44375..6b1fa06b 100644 --- a/testsuite/build.cmake +++ b/testsuite/build.cmake @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-2.0-or-later # -# Copyright(c) 2024 John Sanpe +# Copyright(c) 2024 Zhenlin Wang # set(TESTSUITE_SOURCE diff --git a/testsuite/fifo/CMakeLists.txt b/testsuite/fifo/CMakeLists.txt index cbbcba82..74cb2801 100644 --- a/testsuite/fifo/CMakeLists.txt +++ b/testsuite/fifo/CMakeLists.txt @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-2.0-or-later # -# Copyright(c) 2024 John Sanpe +# Copyright(c) 2024 Zhenlin Wang # add_executable(fifo-selftest selftest.c) diff --git a/testsuite/fifo/selftest.c b/testsuite/fifo/selftest.c index 5d6f28ba..6fc02e43 100644 --- a/testsuite/fifo/selftest.c +++ b/testsuite/fifo/selftest.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier GPL-2.0-or-later */ /* - * Copyright(c) 2022-2024 John Sanpe + * Copyright(c) 2022-2024 Zhenlin Wang */ #define MODULE_NAME "bitwalk-selftest" diff --git a/testsuite/glob/CMakeLists.txt b/testsuite/glob/CMakeLists.txt index b2a9b23c..8789eee1 100644 --- a/testsuite/glob/CMakeLists.txt +++ b/testsuite/glob/CMakeLists.txt @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-2.0-or-later # -# Copyright(c) 2024 John Sanpe +# Copyright(c) 2024 Zhenlin Wang # add_executable(glob-selftest selftest.c) diff --git a/testsuite/glob/selftest.c b/testsuite/glob/selftest.c index a203f51e..a486a706 100644 --- a/testsuite/glob/selftest.c +++ b/testsuite/glob/selftest.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier GPL-2.0-or-later */ /* - * Copyright(c) 2022-2024 John Sanpe + * Copyright(c) 2022-2024 Zhenlin Wang */ #define MODULE_NAME "bitwalk-selftest" diff --git a/testsuite/hlist/CMakeLists.txt b/testsuite/hlist/CMakeLists.txt index 86d023f3..a73ff619 100644 --- a/testsuite/hlist/CMakeLists.txt +++ b/testsuite/hlist/CMakeLists.txt @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-2.0-or-later # -# Copyright(c) 2024 John Sanpe +# Copyright(c) 2024 Zhenlin Wang # add_executable(hlist-iterator iterator.c) diff --git a/testsuite/hlist/iterator.c b/testsuite/hlist/iterator.c index b6dbac37..6f0f6aa6 100644 --- a/testsuite/hlist/iterator.c +++ b/testsuite/hlist/iterator.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #define MODULE_NAME "hlist-iterator" diff --git a/testsuite/libc/CMakeLists.txt b/testsuite/libc/CMakeLists.txt index c10a86d7..d7e1aeb7 100644 --- a/testsuite/libc/CMakeLists.txt +++ b/testsuite/libc/CMakeLists.txt @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-2.0-or-later # -# Copyright(c) 2024 John Sanpe +# Copyright(c) 2024 Zhenlin Wang # add_executable(libc-xprintf xprintf.c) diff --git a/testsuite/libc/xprintf.c b/testsuite/libc/xprintf.c index f6d632db..ebe0f9b4 100644 --- a/testsuite/libc/xprintf.c +++ b/testsuite/libc/xprintf.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ /* - * Copyright(c) 2025 John Sanpe + * Copyright(c) 2025 Zhenlin Wang */ #define MODULE_NAME "libc-xprintf" diff --git a/testsuite/list/CMakeLists.txt b/testsuite/list/CMakeLists.txt index bf74ae51..089b696d 100644 --- a/testsuite/list/CMakeLists.txt +++ b/testsuite/list/CMakeLists.txt @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-2.0-or-later # -# Copyright(c) 2024 John Sanpe +# Copyright(c) 2024 Zhenlin Wang # add_executable(list-iterator iterator.c) diff --git a/testsuite/list/iterator.c b/testsuite/list/iterator.c index 7fc43748..abd0b64c 100644 --- a/testsuite/list/iterator.c +++ b/testsuite/list/iterator.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #define MODULE_NAME "list-iterator" diff --git a/testsuite/memalloc/fuzzy.c b/testsuite/memalloc/fuzzy.c index 55206987..7dc1cbe5 100644 --- a/testsuite/memalloc/fuzzy.c +++ b/testsuite/memalloc/fuzzy.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #define MODULE_NAME "memalloc-fuzzy" diff --git a/testsuite/mpi/CMakeLists.txt b/testsuite/mpi/CMakeLists.txt index 7b9948e9..38cacadf 100644 --- a/testsuite/mpi/CMakeLists.txt +++ b/testsuite/mpi/CMakeLists.txt @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-2.0-or-later # -# Copyright(c) 2024 John Sanpe +# Copyright(c) 2024 Zhenlin Wang # add_executable(mpi-fuzzy fuzzy.c) diff --git a/testsuite/mpi/empty.c b/testsuite/mpi/empty.c index a0e9fa3c..a5d57399 100644 --- a/testsuite/mpi/empty.c +++ b/testsuite/mpi/empty.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ /* - * Copyright(c) 2024 John Sanpe + * Copyright(c) 2024 Zhenlin Wang */ #include diff --git a/testsuite/mpi/fuzzy.c b/testsuite/mpi/fuzzy.c index 07e5b882..16fcffb2 100644 --- a/testsuite/mpi/fuzzy.c +++ b/testsuite/mpi/fuzzy.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ /* - * Copyright(c) 2024 John Sanpe + * Copyright(c) 2024 Zhenlin Wang */ #include diff --git a/testsuite/overflow/CMakeLists.txt b/testsuite/overflow/CMakeLists.txt index df911529..a90714c7 100644 --- a/testsuite/overflow/CMakeLists.txt +++ b/testsuite/overflow/CMakeLists.txt @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-2.0-or-later # -# Copyright(c) 2025 John Sanpe +# Copyright(c) 2025 Zhenlin Wang # add_executable(overflow-selftest selftest.c) diff --git a/testsuite/overflow/selftest.c b/testsuite/overflow/selftest.c index b076dd24..ffc7ff3d 100644 --- a/testsuite/overflow/selftest.c +++ b/testsuite/overflow/selftest.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #define MODULE_NAME "overflow-simple" diff --git a/testsuite/slist/CMakeLists.txt b/testsuite/slist/CMakeLists.txt index 117713b1..0947a04c 100644 --- a/testsuite/slist/CMakeLists.txt +++ b/testsuite/slist/CMakeLists.txt @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-2.0-or-later # -# Copyright(c) 2024 John Sanpe +# Copyright(c) 2024 Zhenlin Wang # add_executable(slist-iterator iterator.c) diff --git a/testsuite/slist/iterator.c b/testsuite/slist/iterator.c index 78c52dfa..4d65f774 100644 --- a/testsuite/slist/iterator.c +++ b/testsuite/slist/iterator.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ /* - * Copyright(c) 2023 John Sanpe + * Copyright(c) 2023 Zhenlin Wang */ #define MODULE_NAME "slist-iterator" diff --git a/testsuite/testsuite.c b/testsuite/testsuite.c index bea33839..ab7049e8 100644 --- a/testsuite/testsuite.c +++ b/testsuite/testsuite.c @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ /* - * Copyright(c) 2024 John Sanpe + * Copyright(c) 2024 Zhenlin Wang */ #define MODULE_NAME "bfdev-testsuite" diff --git a/testsuite/testsuite.cmake b/testsuite/testsuite.cmake index 08b10f98..4db410b7 100644 --- a/testsuite/testsuite.cmake +++ b/testsuite/testsuite.cmake @@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-2.0-or-later # -# Copyright(c) 2024 John Sanpe +# Copyright(c) 2024 Zhenlin Wang # function(testsuite_target name src replace) diff --git a/testsuite/testsuite.h b/testsuite/testsuite.h index ed2152ac..b4af3763 100644 --- a/testsuite/testsuite.h +++ b/testsuite/testsuite.h @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-or-later */ /* - * Copyright(c) 2024 John Sanpe + * Copyright(c) 2024 Zhenlin Wang */ #ifndef _BFDEV_TESTSUITE_H_