Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
慢慢CG
TDengine
提交
aa1ea68b
T
TDengine
项目概览
慢慢CG
/
TDengine
与 Fork 源项目一致
Fork自
taosdata / TDengine
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
aa1ea68b
编写于
5月 09, 2021
作者:
S
Shengliang Guan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
TD-4088
上级
06222da6
变更
15
隐藏空白更改
内联
并排
Showing
15 changed file
with
22 addition
and
66 deletion
+22
-66
src/os/CMakeLists.txt
src/os/CMakeLists.txt
+1
-3
src/os/inc/osEok.h
src/os/inc/osEok.h
+2
-2
src/os/src/alpine/CMakeLists.txt
src/os/src/alpine/CMakeLists.txt
+0
-7
src/os/src/alpine/alpineEnv.c
src/os/src/alpine/alpineEnv.c
+0
-32
src/os/src/darwin/CMakeLists.txt
src/os/src/darwin/CMakeLists.txt
+1
-1
src/os/src/detail/CMakeLists.txt
src/os/src/detail/CMakeLists.txt
+10
-5
src/os/src/detail/osAtomic.c
src/os/src/detail/osAtomic.c
+0
-1
src/os/src/detail/osEnv.c
src/os/src/detail/osEnv.c
+0
-0
src/os/src/linux/CMakeLists.txt
src/os/src/linux/CMakeLists.txt
+0
-7
src/os/src/windows/CMakeLists.txt
src/os/src/windows/CMakeLists.txt
+2
-2
src/os/tests/CMakeLists.txt
src/os/tests/CMakeLists.txt
+1
-1
src/sync/CMakeLists.txt
src/sync/CMakeLists.txt
+1
-1
src/util/CMakeLists.txt
src/util/CMakeLists.txt
+1
-1
src/util/tests/CMakeLists.txt
src/util/tests/CMakeLists.txt
+1
-1
src/wal/test/CMakeLists.txt
src/wal/test/CMakeLists.txt
+2
-2
未找到文件。
src/os/CMakeLists.txt
浏览文件 @
aa1ea68b
CMAKE_MINIMUM_REQUIRED
(
VERSION 2.8
)
CMAKE_MINIMUM_REQUIRED
(
VERSION 2.8
)
PROJECT
(
TDengine
)
PROJECT
(
TDengine
)
IF
(
TD_LINUX
)
IF
(
TD_DARWIN
)
ADD_SUBDIRECTORY
(
src/linux
)
ELSEIF
(
TD_DARWIN
)
ADD_SUBDIRECTORY
(
src/darwin
)
ADD_SUBDIRECTORY
(
src/darwin
)
ELSEIF
(
TD_WINDOWS
)
ELSEIF
(
TD_WINDOWS
)
ADD_SUBDIRECTORY
(
src/windows
)
ADD_SUBDIRECTORY
(
src/windows
)
...
...
src/os/inc/osEok.h
浏览文件 @
aa1ea68b
...
@@ -13,8 +13,8 @@
...
@@ -13,8 +13,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
*/
#ifndef
_eok_h_fd274616_996c_400e_9023_ae70be881fa3_
#ifndef
TDENGINE_OS_EOK_H
#define
_eok_h_fd274616_996c_400e_9023_ae70be881fa3_
#define
TDENGINE_OS_EOK_H
#include <stdint.h>
#include <stdint.h>
...
...
src/os/src/alpine/CMakeLists.txt
已删除
100644 → 0
浏览文件 @
06222da6
CMAKE_MINIMUM_REQUIRED
(
VERSION 2.8
)
PROJECT
(
TDengine
)
AUX_SOURCE_DIRECTORY
(
. SRC
)
ADD_LIBRARY
(
os
${
SRC
}
)
TARGET_LINK_LIBRARIES
(
os m rt
)
src/os/src/alpine/alpineEnv.c
已删除
100644 → 0
浏览文件 @
06222da6
/*
* Copyright (c) 2019 TAOS Data, Inc. <jhtao@taosdata.com>
*
* This program is free software: you can use, redistribute, and/or modify
* it under the terms of the GNU Affero General Public License, version 3
* or later ("AGPL"), as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#define _DEFAULT_SOURCE
#include "os.h"
#include "tglobal.h"
void
osInit
()
{
if
(
configDir
[
0
]
==
0
)
{
strcpy
(
configDir
,
"/etc/taos"
);
}
strcpy
(
tsVnodeDir
,
""
);
strcpy
(
tsDnodeDir
,
""
);
strcpy
(
tsMnodeDir
,
""
);
strcpy
(
tsDataDir
,
"/var/lib/taos"
);
strcpy
(
tsLogDir
,
"/var/log/taos"
);
strcpy
(
tsScriptDir
,
"/etc/taos"
);
strcpy
(
tsOsName
,
"Linux"
);
}
\ No newline at end of file
src/os/src/darwin/CMakeLists.txt
浏览文件 @
aa1ea68b
...
@@ -2,4 +2,4 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
...
@@ -2,4 +2,4 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
PROJECT
(
TDengine
)
PROJECT
(
TDengine
)
AUX_SOURCE_DIRECTORY
(
. SRC
)
AUX_SOURCE_DIRECTORY
(
. SRC
)
ADD_LIBRARY
(
os
${
SRC
}
)
ADD_LIBRARY
(
os
d
${
SRC
}
)
src/os/src/detail/CMakeLists.txt
浏览文件 @
aa1ea68b
...
@@ -7,10 +7,15 @@ AUX_SOURCE_DIRECTORY(. SRC)
...
@@ -7,10 +7,15 @@ AUX_SOURCE_DIRECTORY(. SRC)
SET_SOURCE_FILES_PROPERTIES
(
osSysinfo.c PROPERTIES COMPILE_FLAGS -w
)
SET_SOURCE_FILES_PROPERTIES
(
osSysinfo.c PROPERTIES COMPILE_FLAGS -w
)
SET_SOURCE_FILES_PROPERTIES
(
osCoredump.c PROPERTIES COMPILE_FLAGS -w
)
SET_SOURCE_FILES_PROPERTIES
(
osCoredump.c PROPERTIES COMPILE_FLAGS -w
)
ADD_LIBRARY
(
osdetail
${
SRC
}
)
ADD_LIBRARY
(
os
${
SRC
}
)
TARGET_LINK_LIBRARIES
(
osdetail os
)
IF
(
TD_ARM_32 OR TD_LINUX_32
)
IF
(
TD_LINUX
)
TARGET_LINK_LIBRARIES
(
osdetail atomic
)
TARGET_LINK_LIBRARIES
(
os m rt z
)
IF
(
TD_ARM_32 OR TD_LINUX_32
)
TARGET_LINK_LIBRARIES
(
os atomic
)
ENDIF
()
ELSEIF
(
TD_DARWIN
)
TARGET_LINK_LIBRARIES
(
os osd
)
ELSEIF
(
TD_WINDOWS
)
TARGET_LINK_LIBRARIES
(
os osw
)
ENDIF
()
ENDIF
()
src/os/src/
linux/ningsi
.c
→
src/os/src/
detail/osAtomic
.c
浏览文件 @
aa1ea68b
...
@@ -53,4 +53,3 @@ int64_t atomic_exchange_64_impl(int64_t* ptr, int64_t val ) {
...
@@ -53,4 +53,3 @@ int64_t atomic_exchange_64_impl(int64_t* ptr, int64_t val ) {
return
old
;
return
old
;
}
}
#endif
#endif
src/os/src/
linux/linux
Env.c
→
src/os/src/
detail/os
Env.c
浏览文件 @
aa1ea68b
文件已移动
src/os/src/linux/CMakeLists.txt
已删除
100644 → 0
浏览文件 @
06222da6
CMAKE_MINIMUM_REQUIRED
(
VERSION 2.8
)
PROJECT
(
TDengine
)
AUX_SOURCE_DIRECTORY
(
. SRC
)
ADD_LIBRARY
(
os
${
SRC
}
)
TARGET_LINK_LIBRARIES
(
os m rt z
)
src/os/src/windows/CMakeLists.txt
浏览文件 @
aa1ea68b
...
@@ -2,6 +2,6 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
...
@@ -2,6 +2,6 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
PROJECT
(
TDengine
)
PROJECT
(
TDengine
)
AUX_SOURCE_DIRECTORY
(
. SRC
)
AUX_SOURCE_DIRECTORY
(
. SRC
)
ADD_LIBRARY
(
os
${
SRC
}
)
ADD_LIBRARY
(
os
w
${
SRC
}
)
TARGET_LINK_LIBRARIES
(
os winmm IPHLPAPI ws2_32 MsvcLibXw
)
TARGET_LINK_LIBRARIES
(
os
w
winmm IPHLPAPI ws2_32 MsvcLibXw
)
src/os/tests/CMakeLists.txt
浏览文件 @
aa1ea68b
...
@@ -11,5 +11,5 @@ IF (HEADER_GTEST_INCLUDE_DIR AND LIB_GTEST_STATIC_DIR)
...
@@ -11,5 +11,5 @@ IF (HEADER_GTEST_INCLUDE_DIR AND LIB_GTEST_STATIC_DIR)
AUX_SOURCE_DIRECTORY
(
${
CMAKE_CURRENT_SOURCE_DIR
}
SOURCE_LIST
)
AUX_SOURCE_DIRECTORY
(
${
CMAKE_CURRENT_SOURCE_DIR
}
SOURCE_LIST
)
ADD_EXECUTABLE
(
osTest
${
SOURCE_LIST
}
)
ADD_EXECUTABLE
(
osTest
${
SOURCE_LIST
}
)
TARGET_LINK_LIBRARIES
(
osTest taos os
detail
tutil common gtest pthread
)
TARGET_LINK_LIBRARIES
(
osTest taos os tutil common gtest pthread
)
ENDIF
()
ENDIF
()
\ No newline at end of file
src/sync/CMakeLists.txt
浏览文件 @
aa1ea68b
...
@@ -11,6 +11,6 @@ TARGET_LINK_LIBRARIES(sync tutil pthread common)
...
@@ -11,6 +11,6 @@ TARGET_LINK_LIBRARIES(sync tutil pthread common)
LIST
(
APPEND BIN_SRC src/syncArbitrator.c
)
LIST
(
APPEND BIN_SRC src/syncArbitrator.c
)
LIST
(
APPEND BIN_SRC src/syncTcp.c
)
LIST
(
APPEND BIN_SRC src/syncTcp.c
)
ADD_EXECUTABLE
(
tarbitrator
${
BIN_SRC
}
)
ADD_EXECUTABLE
(
tarbitrator
${
BIN_SRC
}
)
TARGET_LINK_LIBRARIES
(
tarbitrator sync common os
detail
tutil
)
TARGET_LINK_LIBRARIES
(
tarbitrator sync common os tutil
)
#ADD_SUBDIRECTORY(test)
#ADD_SUBDIRECTORY(test)
src/util/CMakeLists.txt
浏览文件 @
aa1ea68b
...
@@ -6,7 +6,7 @@ INCLUDE_DIRECTORIES(${TD_COMMUNITY_DIR}/src/sync/inc)
...
@@ -6,7 +6,7 @@ INCLUDE_DIRECTORIES(${TD_COMMUNITY_DIR}/src/sync/inc)
INCLUDE_DIRECTORIES
(
${
TD_COMMUNITY_DIR
}
/deps/rmonotonic/inc
)
INCLUDE_DIRECTORIES
(
${
TD_COMMUNITY_DIR
}
/deps/rmonotonic/inc
)
AUX_SOURCE_DIRECTORY
(
src SRC
)
AUX_SOURCE_DIRECTORY
(
src SRC
)
ADD_LIBRARY
(
tutil
${
SRC
}
)
ADD_LIBRARY
(
tutil
${
SRC
}
)
TARGET_LINK_LIBRARIES
(
tutil pthread os
detail
lz4 z rmonotonic
)
TARGET_LINK_LIBRARIES
(
tutil pthread os lz4 z rmonotonic
)
IF
(
TD_LINUX
)
IF
(
TD_LINUX
)
TARGET_LINK_LIBRARIES
(
tutil m rt
)
TARGET_LINK_LIBRARIES
(
tutil m rt
)
...
...
src/util/tests/CMakeLists.txt
浏览文件 @
aa1ea68b
...
@@ -12,7 +12,7 @@ IF (HEADER_GTEST_INCLUDE_DIR AND LIB_GTEST_STATIC_DIR)
...
@@ -12,7 +12,7 @@ IF (HEADER_GTEST_INCLUDE_DIR AND LIB_GTEST_STATIC_DIR)
LIST
(
REMOVE_ITEM SOURCE_LIST
${
CMAKE_CURRENT_SOURCE_DIR
}
/trefTest.c
)
LIST
(
REMOVE_ITEM SOURCE_LIST
${
CMAKE_CURRENT_SOURCE_DIR
}
/trefTest.c
)
ADD_EXECUTABLE
(
utilTest
${
SOURCE_LIST
}
)
ADD_EXECUTABLE
(
utilTest
${
SOURCE_LIST
}
)
TARGET_LINK_LIBRARIES
(
utilTest tutil common os
detail
gtest pthread gcov
)
TARGET_LINK_LIBRARIES
(
utilTest tutil common os gtest pthread gcov
)
LIST
(
APPEND BIN_SRC
${
CMAKE_CURRENT_SOURCE_DIR
}
/trefTest.c
)
LIST
(
APPEND BIN_SRC
${
CMAKE_CURRENT_SOURCE_DIR
}
/trefTest.c
)
ADD_EXECUTABLE
(
trefTest
${
BIN_SRC
}
)
ADD_EXECUTABLE
(
trefTest
${
BIN_SRC
}
)
...
...
src/wal/test/CMakeLists.txt
浏览文件 @
aa1ea68b
...
@@ -6,7 +6,7 @@ IF (TD_LINUX)
...
@@ -6,7 +6,7 @@ IF (TD_LINUX)
LIST
(
APPEND WALTEST_SRC ./waltest.c
)
LIST
(
APPEND WALTEST_SRC ./waltest.c
)
ADD_EXECUTABLE
(
waltest
${
WALTEST_SRC
}
)
ADD_EXECUTABLE
(
waltest
${
WALTEST_SRC
}
)
TARGET_LINK_LIBRARIES
(
waltest twal os
detail
tutil
)
TARGET_LINK_LIBRARIES
(
waltest twal os tutil
)
ENDIF
()
ENDIF
()
...
@@ -15,7 +15,7 @@ IF (TD_DARWIN)
...
@@ -15,7 +15,7 @@ IF (TD_DARWIN)
LIST
(
APPEND WALTEST_SRC ./waltest.c
)
LIST
(
APPEND WALTEST_SRC ./waltest.c
)
ADD_EXECUTABLE
(
waltest
${
WALTEST_SRC
}
)
ADD_EXECUTABLE
(
waltest
${
WALTEST_SRC
}
)
TARGET_LINK_LIBRARIES
(
waltest twal os
detail
tutil
)
TARGET_LINK_LIBRARIES
(
waltest twal os tutil
)
ENDIF
()
ENDIF
()
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录