Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Musl
提交
897076bd
T
Third Party Musl
项目概览
OpenHarmony
/
Third Party Musl
8 个月 前同步成功
通知
37
Star
125
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Third Party Musl
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
897076bd
编写于
6月 07, 2021
作者:
O
openharmony_ci
提交者:
Gitee
6月 07, 2021
浏览文件
操作
浏览文件
下载
差异文件
!39 修正关闭VFS等特性后编译失败问题
Merge pull request !39 from Caoruihong/master
上级
b17cf305
235707bf
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
10 addition
and
8 deletion
+10
-8
kernel/include/sys/select.h
kernel/include/sys/select.h
+5
-0
kernel/src/exit/exit.c
kernel/src/exit/exit.c
+1
-0
kernel/src/stdio/__stdio_seek.c
kernel/src/stdio/__stdio_seek.c
+2
-0
kernel/src/stdio/fclose.c
kernel/src/stdio/fclose.c
+0
-2
kernel/src/stdio/fopen.c
kernel/src/stdio/fopen.c
+0
-2
kernel/src/stdio/fread.c
kernel/src/stdio/fread.c
+0
-2
kernel/src/stdio/remove.c
kernel/src/stdio/remove.c
+0
-2
kernel/src/stdio/vfprintf.c
kernel/src/stdio/vfprintf.c
+2
-0
未找到文件。
kernel/include/sys/select.h
浏览文件 @
897076bd
...
...
@@ -15,9 +15,14 @@ extern "C" {
#include <bits/alltypes.h>
#include <signal.h>
#ifdef LOSCFG_FS_VFS
#include "vfs_config.h"
/* FD_SETSIZE is defined in "vfs_config.h" */
#else
#define FD_SETSIZE 512
#define FD_SET_TOTAL_SIZE FD_SETSIZE
#endif
typedef
unsigned
long
fd_mask
;
...
...
kernel/src/exit/exit.c
浏览文件 @
897076bd
...
...
@@ -35,6 +35,7 @@
void
_exit
(
int
status
)
{
PRINT_ERR
(
"%s NOT SUPPORT
\n
"
,
__FUNCTION__
);
errno
=
ENOSYS
;
while
(
1
);
}
void
exit
(
int
status
)
{
...
...
kernel/src/stdio/__stdio_seek.c
浏览文件 @
897076bd
...
...
@@ -2,6 +2,7 @@
#include <unistd.h>
#include <sys/types.h>
#include <dirent.h>
#ifdef LOSCFG_FS_VFS
#include <fs/fs.h>
static
off64_t
__stdio_lseek64
(
int
fd
,
int
offsetHigh
,
int
offsetLow
,
off64_t
*
result
,
int
whence
)
...
...
@@ -53,3 +54,4 @@ off_t __stdio_seek(FILE *f, off_t off, int whence)
off_t
result
=
0
;
return
__stdio_lseek64
(
f
->
fd
,
off
>>
32
,
off
,
&
result
,
whence
)
?
-
1
:
result
;
}
#endif
kernel/src/stdio/fclose.c
浏览文件 @
897076bd
...
...
@@ -3,8 +3,6 @@
#ifdef LOSCFG_LLTSER
#include "gcov_ser.h"
#endif
#include "fs/fs.h"
#include "fs/file.h"
static
void
dummy
(
FILE
*
f
)
{
}
weak_alias
(
dummy
,
__unlist_locked_file
);
...
...
kernel/src/stdio/fopen.c
浏览文件 @
897076bd
...
...
@@ -7,8 +7,6 @@
#ifdef LOSCFG_LLTSER
#include "gcov_ser.h"
#endif
#include "fs/fs.h"
#include "fs/file.h"
FILE
*
fopen
(
const
char
*
restrict
filename
,
const
char
*
restrict
mode
)
{
...
...
kernel/src/stdio/fread.c
浏览文件 @
897076bd
...
...
@@ -3,8 +3,6 @@
#ifdef LOSCFG_LLTSER
#include "gcov_ser.h"
#endif
#include "fs/fs.h"
#include "fs/file.h"
#define MIN(a,b) ((a)<(b) ? (a) : (b))
...
...
kernel/src/stdio/remove.c
浏览文件 @
897076bd
...
...
@@ -2,8 +2,6 @@
#include <errno.h>
#include <fcntl.h>
#include <unistd.h>
#include "fs/fs.h"
#include "fs/file.h"
int
remove
(
const
char
*
path
)
{
...
...
kernel/src/stdio/vfprintf.c
浏览文件 @
897076bd
...
...
@@ -448,6 +448,7 @@ static int printf_core(FILE *f, const char *fmt, va_list *ap, union arg *nl_arg,
int
t
,
pl
;
wchar_t
wc
[
2
],
*
ws
;
char
mb
[
4
];
#ifdef LOSCFG_FS_VFS
struct
winsize
wsz
;
if
(
f
&&
(
f
->
write
==
__stdout_write
)
&&
!
ioctl
(
f
->
fd
,
TIOCGWINSZ
,
&
wsz
))
{
...
...
@@ -456,6 +457,7 @@ static int printf_core(FILE *f, const char *fmt, va_list *ap, union arg *nl_arg,
f
->
wpos
=
f
->
wbase
=
f
->
buf
;
f
->
wend
=
f
->
buf
+
f
->
buf_size
;
}
#endif
for
(;;)
{
/* This error is only specified for snprintf, but since it's
* unspecified for other forms, do the same. Stop immediately
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录