提交 01e60320 编写于 作者: O openharmony_ci 提交者: Gitee

!49 补充m核posix缺少接口

Merge pull request !49 from lnlan/musl_for_m
......@@ -63,6 +63,7 @@ static_library(libc) {
"src/ctype/tolower.c",
"src/ctype/toupper.c",
"src/ctype/isprint.c",
"src/ctype/__ctype_get_mb_cur_max.c",
"src/misc/dirname.c",
"src/locale/__lctrans.c",
"src/locale/langinfo.c",
......@@ -96,6 +97,7 @@ static_library(libc) {
"src/stdio/feof.c",
"src/stdio/fopen.c",
"src/stdio/stdout.c",
"src/stdio/stdin.c",
"src/time/strptime.c",
"src/time/strftime.c",
"src/time/__year_to_secs.c",
......
#include <stdlib.h>
#include "locale_impl.h"
size_t __ctype_get_mb_cur_max()
{
return MB_CUR_MAX;
}
#include "stdio_impl.h"
#undef stdin
static unsigned char buf[BUFSIZ+UNGET];
hidden FILE __stdin_FILE = {
.buf = buf+UNGET,
.buf_size = sizeof buf-UNGET,
.fd = 0,
.flags = F_PERM | F_NOWR,
.read = __stdio_read,
.seek = __stdio_seek,
.close = __stdio_close,
.lock = -1,
};
FILE *const stdin = &__stdin_FILE;
FILE *volatile __stdin_used = &__stdin_FILE;
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册