libc: Implement umask function

Here is the spec:
https://pubs.opengroup.org/onlinepubs/009695399/functions/umask.html
Note: The simple implementaton is enough since
      NuttX doesn't really support the permission

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao
2020-09-14 14:20:13 +08:00
committed by Matias N
parent e681396d35
commit 027e2eed28
3 changed files with 60 additions and 1 deletions
+1 -1
View File
@@ -36,7 +36,7 @@
# Add the internal C files to the build
CSRCS += lib_stream.c lib_utsname.c
CSRCS += lib_stream.c lib_umask.c lib_utsname.c
CSRCS += lib_xorshift128.c lib_tea_encrypt.c lib_tea_decrypt.c
ifneq ($(CONFIG_STDIO_DISABLE_BUFFERING),y)