diff --git a/.gitignore b/.gitignore index e6a5776..ebc864e 100644 --- a/.gitignore +++ b/.gitignore @@ -10,5 +10,5 @@ !test/server/CMakeLists.txt !test/thread/thread.c !test/thread/CMakeLists.txt -!test/kfifo/kfifo.c -!test/kfifo/CMakeLists.txt \ No newline at end of file +!test/bkfifo/bkfifo.c +!test/bkfifo/CMakeLists.txt \ No newline at end of file diff --git a/include/kfifo.h b/include/bkfifo.h similarity index 99% rename from include/kfifo.h rename to include/bkfifo.h index 032e656..acee3fd 100644 --- a/include/kfifo.h +++ b/include/bkfifo.h @@ -1,5 +1,5 @@ -#ifndef _KFIFO_H_ -#define _KFIFO_H_ +#ifndef _BKFIFO_H_ +#define _BKFIFO_H_ struct _kfifo_ { unsigned int in; @@ -1506,4 +1506,4 @@ __kfifo_uint_must_check_helper( \ #endif -#endif // _KFIFO_H_ \ No newline at end of file +#endif // _BKFIFO_H_ \ No newline at end of file diff --git a/test/kfifo/CMakeLists.txt b/test/bkfifo/CMakeLists.txt similarity index 87% rename from test/kfifo/CMakeLists.txt rename to test/bkfifo/CMakeLists.txt index b54b16c..ef5ec59 100644 --- a/test/kfifo/CMakeLists.txt +++ b/test/bkfifo/CMakeLists.txt @@ -1,10 +1,10 @@ cmake_minimum_required(VERSION 3.22.1) -project(kfifo) +project(bkfifo) set(EXECUTABLE_OUTPUT_PATH ../) set(CMAKE_C_STANDARD 99) -set(SRC_FILE kfifo.c) +set(SRC_FILE bkfifo.c) include_directories(../../include) add_executable(${PROJECT_NAME} ${SRC_FILE}) diff --git a/test/kfifo/kfifo.c b/test/bkfifo/bkfifo.c similarity index 92% rename from test/kfifo/kfifo.c rename to test/bkfifo/bkfifo.c index 55d76bc..86e4ad7 100644 --- a/test/kfifo/kfifo.c +++ b/test/bkfifo/bkfifo.c @@ -1,7 +1,7 @@ #include #include -#include +#include int test01(int size) { return ((size < 2) || (size & (size - 1))) ? -1 : size;