Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Startup Init Lite
提交
eebdf5f5
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看板
提交
eebdf5f5
编写于
6月 16, 2022
作者:
Z
zhang-jia-nan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix a typo
Signed-off-by:
N
zhang-jia-nan
<
zhangjianan0119@163.com
>
上级
3370247e
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
6 addition
and
6 deletion
+6
-6
OAT.xml
OAT.xml
+1
-1
ueventd/ueventd.c
ueventd/ueventd.c
+3
-3
ueventd/ueventd_device_handler.c
ueventd/ueventd_device_handler.c
+1
-1
ueventd/ueventd_socket.c
ueventd/ueventd_socket.c
+1
-1
未找到文件。
OAT.xml
浏览文件 @
eebdf5f5
...
...
@@ -63,7 +63,7 @@
<!--filteritem type="filename" name="*.uvwxyz" desc="Describe the reason for filtering scan results"/-->
<!--filteritem type="filepath" name="abcdefg/.*.uvwxyz" desc="Describe the reason for filtering scan results"/-->
<!--filteritem type="filepath" name="projectroot/[a-zA-Z0-9]{20,}.sh" desc="Temp files"/-->
<filteritem
type=
"filname"
name=
"*.jpg|*.png|*.gif|*.pdf"
desc=
"already checked"
/>
<filteritem
type=
"fil
e
name"
name=
"*.jpg|*.png|*.gif|*.pdf"
desc=
"already checked"
/>
<filteritem
type=
"filepath"
name=
"services/test/unittest/test_data/proc/*"
desc=
"启动功能UT测试的资源文件"
/>
</filefilter>
...
...
ueventd/ueventd.c
浏览文件 @
eebdf5f5
...
...
@@ -50,7 +50,7 @@ static const char *actions[] = {
[
ACTION_OFFLINE
]
=
"offline"
,
[
ACTION_BIND
]
=
"bind"
,
[
ACTION_UNBIND
]
=
"unbind"
,
[
ACTION_UNKNOWN
]
=
"unknow"
,
[
ACTION_UNKNOWN
]
=
"unknow
n
"
,
};
static
SUBSYSTEMTYPE
GetSubsystemType
(
const
char
*
subsystem
)
...
...
@@ -169,7 +169,7 @@ static void HandleRequiredDynamicDeviceNodes(const struct Uevent *uevent)
static
void
HandleUeventRequired
(
const
struct
Uevent
*
uevent
,
char
**
devices
,
int
num
)
{
const
char
*
deviceName
;
INIT_ERROR_CHECK
(
devices
!=
NULL
&&
num
>
0
,
return
,
"Fault paramters"
);
INIT_ERROR_CHECK
(
devices
!=
NULL
&&
num
>
0
,
return
,
"Fault param
e
ters"
);
if
(
uevent
->
action
==
ACTION_ADD
)
{
ChangeSysAttributePermissions
(
uevent
->
syspath
);
}
...
...
@@ -332,7 +332,7 @@ static void Trigger(const char *path, int sockFd, char **devices, int num)
}
char
ueventBuffer
[
PATH_MAX
];
if
(
snprintf_s
(
ueventBuffer
,
PATH_MAX
,
PATH_MAX
-
1
,
"%s/%s"
,
path
,
"uevent"
)
==
-
1
)
{
INIT_LOGW
(
"Cann
n
ot build uevent path under %s"
,
path
);
INIT_LOGW
(
"Cannot build uevent path under %s"
,
path
);
continue
;
}
DoTrigger
(
ueventBuffer
,
sockFd
,
devices
,
num
);
...
...
ueventd/ueventd_device_handler.c
浏览文件 @
eebdf5f5
...
...
@@ -307,7 +307,7 @@ static char **GetBlockDeviceSymbolLinks(const struct Uevent *uevent)
return
NULL
;
}
// Reverse walk through sysPath, and check subystem file under each directory.
// Reverse walk through sysPath, and check sub
s
ystem file under each directory.
char
*
parent
=
dirname
(
sysPath
);
while
(
parent
!=
NULL
&&
!
STRINGEQUAL
(
parent
,
"/"
)
&&
!
STRINGEQUAL
(
parent
,
"."
))
{
char
subsystem
[
SYSPATH_SIZE
];
...
...
ueventd/ueventd_socket.c
浏览文件 @
eebdf5f5
...
...
@@ -39,7 +39,7 @@ int UeventdSocketInit(void)
int
on
=
1
;
if
(
memset_s
(
&
addr
,
sizeof
(
addr
),
0
,
sizeof
(
addr
))
!=
EOK
)
{
INIT_LOGE
(
"Faild to clear socket address"
);
INIT_LOGE
(
"Fail
e
d to clear socket address"
);
return
-
1
;
}
addr
.
nl_family
=
AF_NETLINK
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录