Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Startup Init Lite
提交
6228d281
S
Startup Init Lite
项目概览
OpenHarmony
/
Startup Init Lite
1 年多 前同步成功
通知
3
Star
37
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
Startup Init Lite
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
6228d281
编写于
1月 28, 2022
作者:
O
openharmony_ci
提交者:
Gitee
1月 28, 2022
浏览文件
操作
浏览文件
下载
差异文件
!278 fix:L1 compile warning
Merge pull request !278 from 熊磊/init127_3
上级
e67c6d06
c86e9c3f
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
7 addition
and
1 deletion
+7
-1
services/BUILD.gn
services/BUILD.gn
+1
-0
services/init/adapter/init_adapter.c
services/init/adapter/init_adapter.c
+1
-1
services/loopevent/socket/le_socket.c
services/loopevent/socket/le_socket.c
+1
-0
services/param/BUILD.gn
services/param/BUILD.gn
+2
-0
test/unittest/BUILD.gn
test/unittest/BUILD.gn
+1
-0
test/unittest/common/BUILD.gn
test/unittest/common/BUILD.gn
+1
-0
未找到文件。
services/BUILD.gn
浏览文件 @
6228d281
...
@@ -81,6 +81,7 @@ if (defined(ohos_lite)) {
...
@@ -81,6 +81,7 @@ if (defined(ohos_lite)) {
}
}
if (ohos_kernel_type == "linux") {
if (ohos_kernel_type == "linux") {
defines += [ "NEED_EXEC_RCS_LINUX" ]
defines += [ "NEED_EXEC_RCS_LINUX" ]
defines += [ "_GNU_SOURCE" ]
ldflags += [
ldflags += [
"-lm",
"-lm",
"-lpthread",
"-lpthread",
...
...
services/init/adapter/init_adapter.c
浏览文件 @
6228d281
...
@@ -60,7 +60,7 @@ int SetAmbientCapability(int cap)
...
@@ -60,7 +60,7 @@ int SetAmbientCapability(int cap)
return
0
;
return
0
;
}
}
#if
def __LINUX__
#if
(defined __LINUX__) && (defined NEED_EXEC_RCS_LINUX)
static
pid_t
g_waitPid
=
-
1
;
static
pid_t
g_waitPid
=
-
1
;
static
sem_t
*
g_waitSem
=
NULL
;
static
sem_t
*
g_waitSem
=
NULL
;
static
void
SignalRegWaitSem
(
pid_t
waitPid
,
sem_t
*
waitSem
)
static
void
SignalRegWaitSem
(
pid_t
waitPid
,
sem_t
*
waitSem
)
...
...
services/loopevent/socket/le_socket.c
浏览文件 @
6228d281
...
@@ -20,6 +20,7 @@
...
@@ -20,6 +20,7 @@
#include <fcntl.h>
#include <fcntl.h>
#include <netinet/in.h>
#include <netinet/in.h>
#include <stddef.h>
#include <stddef.h>
#include <string.h>
#include <sys/socket.h>
#include <sys/socket.h>
#include <sys/stat.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/types.h>
...
...
services/param/BUILD.gn
浏览文件 @
6228d281
...
@@ -90,6 +90,8 @@ ohos_shared_library("param_client") {
...
@@ -90,6 +90,8 @@ ohos_shared_library("param_client") {
defines = [ "INIT_AGENT" ]
defines = [ "INIT_AGENT" ]
defines += [ "_GNU_SOURCE" ]
if (param_security == "selinux") {
if (param_security == "selinux") {
sources += [ "adapter/param_selinux.c" ]
sources += [ "adapter/param_selinux.c" ]
defines += [ "PARAM_SUPPORT_SELINUX" ]
defines += [ "PARAM_SUPPORT_SELINUX" ]
...
...
test/unittest/BUILD.gn
浏览文件 @
6228d281
...
@@ -184,6 +184,7 @@ ohos_unittest("init_ut") {
...
@@ -184,6 +184,7 @@ ohos_unittest("init_ut") {
"PARAM_SUPPORT_SAVE_PERSIST",
"PARAM_SUPPORT_SAVE_PERSIST",
"PARAM_SUPPORT_DAC",
"PARAM_SUPPORT_DAC",
]
]
defines += [ "_GNU_SOURCE" ]
external_deps = [ "hiviewdfx_hilog_native:libhilog" ]
external_deps = [ "hiviewdfx_hilog_native:libhilog" ]
...
...
test/unittest/common/BUILD.gn
浏览文件 @
6228d281
...
@@ -26,6 +26,7 @@ if (defined(ohos_lite)) {
...
@@ -26,6 +26,7 @@ if (defined(ohos_lite)) {
if (storage_type == "emmc") {
if (storage_type == "emmc") {
defines += [ "USE_EMMC_STORAGE" ]
defines += [ "USE_EMMC_STORAGE" ]
}
}
defines += [ "_GNU_SOURCE" ]
include_dirs = [
include_dirs = [
"//base/startup/init_lite/services/include",
"//base/startup/init_lite/services/include",
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录