diff options
| author | zhangjun <[email protected]> | 2019-09-26 11:27:37 +0800 |
|---|---|---|
| committer | zhangjun <[email protected]> | 2019-09-26 11:27:37 +0800 |
| commit | 8ed3daed5f1b5fb411b4ca01f5e367b715db12d3 (patch) | |
| tree | ab526137e70cf98dc03c2fbf8fb587f7dd36f437 /components/libc/compilers/newlib | |
| parent | 60f2ae4d3cee0cbf200a89df21a3949c92125cf4 (diff) | |
[components][libc][compilers][newlib]添加getuid和umask函数
Diffstat (limited to 'components/libc/compilers/newlib')
| -rw-r--r-- | components/libc/compilers/newlib/syscalls.c | 11 |
1 files changed, 11 insertions, 0 deletions
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; +} + |
