Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
since libc can be built and used in kernel space, we must call kmm_malloc and kmm_free in this case. Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
specified here: https://pubs.opengroup.org/onlinepubs/9699919799/functions/realpath.html Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com> Change-Id: Ie52dcd1c5c5faa4b033901eedd7182bbb9473f7a