Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Kernel Liteos A
提交
0dfa58ca
K
Kernel Liteos A
项目概览
OpenHarmony
/
Kernel Liteos A
大约 2 年 前同步成功
通知
475
Star
414
Fork
55
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
4
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel Liteos A
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
4
Issue
4
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
0dfa58ca
编写于
7月 23, 2021
作者:
O
openharmony_ci
提交者:
Gitee
7月 23, 2021
浏览文件
操作
浏览文件
下载
差异文件
!454 toybox update
Merge pull request !454 from Kiita/toybox_update
上级
a531bcf3
76f45b3f
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
24 addition
and
9 deletion
+24
-9
apps/toybox/liteos_a_custom.config
apps/toybox/liteos_a_custom.config
+9
-3
fs/fat/os_adapt/fatfs.c
fs/fat/os_adapt/fatfs.c
+3
-0
fs/jffs2/src/vfs_jffs2.c
fs/jffs2/src/vfs_jffs2.c
+5
-0
syscall/fs_syscall.c
syscall/fs_syscall.c
+4
-4
syscall/los_syscall.h
syscall/los_syscall.h
+3
-2
未找到文件。
apps/toybox/liteos_a_custom.config
浏览文件 @
0dfa58ca
CONFIG_GETTY
=
y
CONFIG_MDEV
=
y
CONFIG_MDEV_CONF
=
y
# CONFIG_BASENAME is not set
# CONFIG_CAL is not set
# CONFIG_CAT is not set
# CONFIG_CATV is not set
# CONFIG_CKSUM is not set
# CONFIG_CRC32 is not set
...
...
@@ -13,6 +12,7 @@ CONFIG_MDEV_CONF=y
# CONFIG_CUT is not set
# CONFIG_DF is not set
# CONFIG_DIRNAME is not set
# CONFIG_ECHO is not set
# CONFIG_ENV is not set
# CONFIG_EXPAND is not set
# CONFIG_FALSE is not set
...
...
@@ -178,3 +178,9 @@ CONFIG_MDEV_CONF=y
# CONFIG_SEQ is not set
# CONFIG_SU is not set
# CONFIG_SYNC is not set
#
# pending (see toys/pending/README)
#
# CONFIG_GETTY is not set
# CONFIG_MDEV is not set
# CONFIG_MDEV_CONF is not set
fs/fat/os_adapt/fatfs.c
浏览文件 @
0dfa58ca
...
...
@@ -1416,6 +1416,9 @@ int fatfs_stat(struct Vnode *vp, struct stat* sp)
time
=
fattime_transfer
(
finfo
->
fdate
,
finfo
->
ftime
);
sp
->
st_mtime
=
time
;
/* Adapt to kstat member "long tv_sec" */
sp
->
__st_mtim32
.
tv_sec
=
(
long
)
time
;
unlock_fs
(
fs
,
FR_OK
);
return
0
;
}
...
...
fs/jffs2/src/vfs_jffs2.c
浏览文件 @
0dfa58ca
...
...
@@ -807,6 +807,11 @@ int VfsJffs2Stat(struct Vnode *pVnode, struct stat *buf)
buf
->
st_mtime
=
node
->
i_mtime
;
buf
->
st_ctime
=
node
->
i_ctime
;
/* Adapt to kstat member long tv_sec */
buf
->
__st_atim32
.
tv_sec
=
(
long
)
node
->
i_atime
;
buf
->
__st_mtim32
.
tv_sec
=
(
long
)
node
->
i_mtime
;
buf
->
__st_ctim32
.
tv_sec
=
(
long
)
node
->
i_ctime
;
LOS_MuxUnlock
(
&
g_jffs2FsLock
);
return
0
;
...
...
syscall/fs_syscall.c
浏览文件 @
0dfa58ca
...
...
@@ -1206,7 +1206,7 @@ OUT:
return
ret
;
}
int
SysStat
(
const
char
*
path
,
struct
stat
*
buf
)
int
SysStat
(
const
char
*
path
,
struct
k
stat
*
buf
)
{
int
ret
;
char
*
pathRet
=
NULL
;
...
...
@@ -1225,7 +1225,7 @@ int SysStat(const char *path, struct stat *buf)
goto
OUT
;
}
ret
=
LOS_ArchCopyToUser
(
buf
,
&
bufRet
,
sizeof
(
struct
stat
));
ret
=
LOS_ArchCopyToUser
(
buf
,
&
bufRet
,
sizeof
(
struct
k
stat
));
if
(
ret
!=
0
)
{
ret
=
-
EFAULT
;
}
...
...
@@ -1237,7 +1237,7 @@ OUT:
return
ret
;
}
int
SysLstat
(
const
char
*
path
,
struct
stat
*
buffer
)
int
SysLstat
(
const
char
*
path
,
struct
k
stat
*
buffer
)
{
int
ret
;
char
*
pathRet
=
NULL
;
...
...
@@ -1256,7 +1256,7 @@ int SysLstat(const char *path, struct stat *buffer)
goto
OUT
;
}
ret
=
LOS_ArchCopyToUser
(
buffer
,
&
bufRet
,
sizeof
(
struct
stat
));
ret
=
LOS_ArchCopyToUser
(
buffer
,
&
bufRet
,
sizeof
(
struct
k
stat
));
if
(
ret
!=
0
)
{
ret
=
-
EFAULT
;
}
...
...
syscall/los_syscall.h
浏览文件 @
0dfa58ca
...
...
@@ -55,6 +55,7 @@
#include "time.h"
#include "sys/time.h"
#include "sys/stat.h"
#include "sys/kstat.h"
#ifdef LOSCFG_FS_VFS
#include "sys/socket.h"
#include "dirent.h"
...
...
@@ -252,8 +253,8 @@ extern int SysFtruncate(int fd, off_t length);
extern
int
SysStatfs
(
const
char
*
path
,
struct
statfs
*
buf
);
extern
int
SysStatfs64
(
const
char
*
path
,
size_t
sz
,
struct
statfs
*
buf
);
extern
int
SysStat
(
const
char
*
path
,
struct
stat
*
buf
);
extern
int
SysLstat
(
const
char
*
path
,
struct
stat
*
buffer
);
extern
int
SysStat
(
const
char
*
path
,
struct
k
stat
*
buf
);
extern
int
SysLstat
(
const
char
*
path
,
struct
k
stat
*
buffer
);
extern
int
SysFstat
(
int
fildes
,
struct
stat
*
buf
);
extern
int
SysStatx
(
int
fd
,
const
char
*
restrict
path
,
int
flag
,
unsigned
mask
,
struct
statx
*
restrict
stx
);
extern
int
SysFsync
(
int
fd
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录