chao an
|
d410a6e1a6
|
libc/realpath: allocate link buffer of pseudofs to save stack
The link buffer of pseudofs will occupy too much of stack, allocate from
the heap to save the stack usage.
Signed-off-by: chao an <anchao@xiaomi.com>
|
2023-11-07 09:05:50 +08:00 |
|
Xiang Xiao
|
96ff41d5b2
|
libc: Don't duplicate string in chdir and lib_restoredir
since the new layout doesn't reallocate the unchanged environ variable anymore
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
|
2022-04-18 10:36:36 +03:00 |
|
Xiang Xiao
|
9473434587
|
Ensure the kernel component don't call userspace API
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
|
2021-03-01 09:23:09 +09:00 |
|
Xiang Xiao
|
1cb1fb427d
|
libc: Replace all malloc/free to lib_malloc/lib_free
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>
|
2020-07-29 10:14:27 +01:00 |
|
Xiang Xiao
|
a102922e12
|
libc: Implement realpath
specified here:
https://pubs.opengroup.org/onlinepubs/9699919799/functions/realpath.html
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: Ie52dcd1c5c5faa4b033901eedd7182bbb9473f7a
|
2020-06-30 13:09:58 -06:00 |
|