Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
6e97dce1
T
TDengine
项目概览
taosdata
/
TDengine
1 年多 前同步成功
通知
1185
Star
22016
Fork
4786
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
6e97dce1
编写于
5月 09, 2021
作者:
S
Shengliang Guan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
TD-4088
上级
274d420f
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
17 addition
and
9 deletion
+17
-9
src/os/CMakeLists.txt
src/os/CMakeLists.txt
+3
-1
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
+3
-3
src/os/src/linux/CMakeLists.txt
src/os/src/linux/CMakeLists.txt
+7
-0
src/os/src/linux/linuxEnv.c
src/os/src/linux/linuxEnv.c
+1
-2
src/os/src/windows/CMakeLists.txt
src/os/src/windows/CMakeLists.txt
+2
-2
未找到文件。
src/os/CMakeLists.txt
浏览文件 @
6e97dce1
CMAKE_MINIMUM_REQUIRED
(
VERSION 2.8
)
CMAKE_MINIMUM_REQUIRED
(
VERSION 2.8
)
PROJECT
(
TDengine
)
PROJECT
(
TDengine
)
IF
(
TD_DARWIN
)
IF
(
TD_LINUX
)
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/src/darwin/CMakeLists.txt
浏览文件 @
6e97dce1
...
@@ -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
(
osd
${
SRC
}
)
ADD_LIBRARY
(
osd
arwin
${
SRC
}
)
src/os/src/detail/CMakeLists.txt
浏览文件 @
6e97dce1
...
@@ -10,12 +10,12 @@ SET_SOURCE_FILES_PROPERTIES(osCoredump.c PROPERTIES COMPILE_FLAGS -w)
...
@@ -10,12 +10,12 @@ SET_SOURCE_FILES_PROPERTIES(osCoredump.c PROPERTIES COMPILE_FLAGS -w)
ADD_LIBRARY
(
os
${
SRC
}
)
ADD_LIBRARY
(
os
${
SRC
}
)
IF
(
TD_LINUX
)
IF
(
TD_LINUX
)
TARGET_LINK_LIBRARIES
(
os
m rt z
)
TARGET_LINK_LIBRARIES
(
os
oslinux
)
IF
(
TD_ARM_32 OR TD_LINUX_32
)
IF
(
TD_ARM_32 OR TD_LINUX_32
)
TARGET_LINK_LIBRARIES
(
os atomic
)
TARGET_LINK_LIBRARIES
(
os atomic
)
ENDIF
()
ENDIF
()
ELSEIF
(
TD_DARWIN
)
ELSEIF
(
TD_DARWIN
)
TARGET_LINK_LIBRARIES
(
os osd
)
TARGET_LINK_LIBRARIES
(
os osd
arwin
)
ELSEIF
(
TD_WINDOWS
)
ELSEIF
(
TD_WINDOWS
)
TARGET_LINK_LIBRARIES
(
os osw
)
TARGET_LINK_LIBRARIES
(
os osw
indows
)
ENDIF
()
ENDIF
()
src/os/src/linux/CMakeLists.txt
0 → 100644
浏览文件 @
6e97dce1
CMAKE_MINIMUM_REQUIRED
(
VERSION 2.8
)
PROJECT
(
TDengine
)
AUX_SOURCE_DIRECTORY
(
. SRC
)
ADD_LIBRARY
(
oslinux
${
SRC
}
)
TARGET_LINK_LIBRARIES
(
oslinux m rt z
)
\ No newline at end of file
src/os/src/
detail/os
Env.c
→
src/os/src/
linux/linux
Env.c
浏览文件 @
6e97dce1
...
@@ -40,9 +40,8 @@ void osInit() {
...
@@ -40,9 +40,8 @@ void osInit() {
strcpy
(
tsOsName
,
"Linux"
);
strcpy
(
tsOsName
,
"Linux"
);
}
}
char
cmdline
[
1024
];
char
*
taosGetCmdlineByPID
(
int
pid
)
{
char
*
taosGetCmdlineByPID
(
int
pid
)
{
static
char
cmdline
[
1024
];
sprintf
(
cmdline
,
"/proc/%d/cmdline"
,
pid
);
sprintf
(
cmdline
,
"/proc/%d/cmdline"
,
pid
);
FILE
*
f
=
fopen
(
cmdline
,
"r"
);
FILE
*
f
=
fopen
(
cmdline
,
"r"
);
if
(
f
)
{
if
(
f
)
{
...
...
src/os/src/windows/CMakeLists.txt
浏览文件 @
6e97dce1
...
@@ -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
(
osw
${
SRC
}
)
ADD_LIBRARY
(
osw
indows
${
SRC
}
)
TARGET_LINK_LIBRARIES
(
osw winmm IPHLPAPI ws2_32 MsvcLibXw
)
TARGET_LINK_LIBRARIES
(
osw
indows
winmm IPHLPAPI ws2_32 MsvcLibXw
)
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录