From 8ed3daed5f1b5fb411b4ca01f5e367b715db12d3 Mon Sep 17 00:00:00 2001 From: zhangjun <2281979437@qq.com> Date: Thu, 26 Sep 2019 11:27:37 +0800 Subject: [PATCH] =?UTF-8?q?[components][libc][compilers][newlib]=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0getuid=E5=92=8Cumask=E5=87=BD=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/libc/compilers/newlib/syscalls.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/components/libc/compilers/newlib/syscalls.c b/components/libc/compilers/newlib/syscalls.c index 9919e11727..24506476c6 100644 --- a/components/libc/compilers/newlib/syscalls.c +++ b/components/libc/compilers/newlib/syscalls.c @@ -442,3 +442,14 @@ void abort(void) while (1); } + +uid_t getuid(void) +{ + return 0; +} + +mode_t umask(mode_t mask) +{ + return 022; +} +