Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Startup Init Lite
提交
3f3398b2
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看板
提交
3f3398b2
编写于
9月 19, 2020
作者:
G
Gymee
提交者:
Gitee
9月 19, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
move _GNU_SOURCE to build.gn and format header files as per huawei coding proactice
上级
30557155
变更
10
隐藏空白更改
内联
并排
Showing
10 changed file
with
25 addition
and
2 deletion
+25
-2
BUILD.gn
BUILD.gn
+4
-0
include/init_adapter.h
include/init_adapter.h
+1
-1
src/init_adapter.c
src/init_adapter.c
+2
-1
src/init_cmds.c
src/init_cmds.c
+3
-0
src/init_jobs.c
src/init_jobs.c
+3
-0
src/init_read_cfg.c
src/init_read_cfg.c
+3
-0
src/init_service.c
src/init_service.c
+2
-0
src/init_service_manager.c
src/init_service_manager.c
+3
-0
src/init_signal_handler.c
src/init_signal_handler.c
+2
-0
src/main.c
src/main.c
+2
-0
未找到文件。
BUILD.gn
浏览文件 @
3f3398b2
...
...
@@ -20,6 +20,10 @@ lite_component("init_lite") {
# feature: init
executable("init") {
defines = [
"_GNU_SOURCE", #syscall function need this macro definition
]
sources = [
"src/main.c",
"src/init_cmds.c",
...
...
include/init_adapter.h
浏览文件 @
3f3398b2
...
...
@@ -15,7 +15,7 @@
#ifndef BASE_STARTUP_INITLITE_ADAPTER_H
#define BASE_STARTUP_INITLITE_ADAPTER_H
#define _GNU_SOURCE // syscall function need this macro definition
#ifdef __LINUX__
#include <linux/capability.h>
#else
...
...
src/init_adapter.c
浏览文件 @
3f3398b2
...
...
@@ -12,8 +12,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#define _GNU_SOURCE // syscall function need this macro definition
#include "init_adapter.h"
#include <errno.h>
#include <stdio.h>
#include <unistd.h>
...
...
src/init_cmds.c
浏览文件 @
3f3398b2
...
...
@@ -12,7 +12,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "init_cmds.h"
#include <ctype.h>
#include <errno.h>
#include <stdio.h>
...
...
@@ -21,6 +23,7 @@
#include <sys/mount.h>
#include <sys/stat.h>
#include <unistd.h>
#include "init_service_manager.h"
#include "securec.h"
...
...
src/init_jobs.c
浏览文件 @
3f3398b2
...
...
@@ -12,9 +12,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "init_jobs.h"
#include <stdio.h>
#include <string.h>
#include "init_cmds.h"
#include "securec.h"
...
...
src/init_read_cfg.c
浏览文件 @
3f3398b2
...
...
@@ -12,7 +12,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "init_read_cfg.h"
#include <errno.h>
#include <linux/capability.h>
#include <stdio.h>
...
...
@@ -20,6 +22,7 @@
#include <string.h>
#include <sys/stat.h>
#include <unistd.h>
#include "init_jobs.h"
#include "init_perms.h"
#include "init_service_manager.h"
...
...
src/init_service.c
浏览文件 @
3f3398b2
...
...
@@ -14,12 +14,14 @@
*/
#include "init_service.h"
#include <errno.h>
#include <signal.h>
#include <stdio.h>
#include <sys/stat.h>
#include <time.h>
#include <unistd.h>
#include "init_adapter.h"
#include "init_perms.h"
...
...
src/init_service_manager.c
浏览文件 @
3f3398b2
...
...
@@ -12,10 +12,13 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "init_service_manager.h"
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include "init_adapter.h"
#include "init_jobs.h"
...
...
src/init_signal_handler.c
浏览文件 @
3f3398b2
...
...
@@ -14,9 +14,11 @@
*/
#include "init_signal_handler.h"
#include <signal.h>
#include <stdio.h>
#include <sys/wait.h>
#include "init_service_manager.h"
static
void
SigHandler
(
int
sig
)
...
...
src/main.c
浏览文件 @
3f3398b2
...
...
@@ -12,9 +12,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include "init_read_cfg.h"
#include "init_signal_handler.h"
#include "parameter.h"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录