nuttx/libs
wangzhi16 abe70c37a2 libc/shmfs: Ensure uniqueness of memfd.
Use mktemp to create unique path for memfd, so other thread can't find file by path.

If don't do this, error will ocurr in this case:

thread 1:                             thread2:
open() -- refs = 1
					open() -- refs = 2
					unlink()
unlink()

thread1 and thread2 will map one buffer by using file path but not fd or address of buffer.

Signed-off-by: wangzhi16 <wangzhi16@xiaomi.com>
2026-01-22 22:11:17 +08:00
..
libbuiltin libs: remove not related comments from cmake files 2025-10-11 17:07:51 -04:00
libc libc/shmfs: Ensure uniqueness of memfd. 2026-01-22 22:11:17 +08:00
libdsp style: fix spelling in code comments and strings 2025-05-23 10:48:41 +08:00
libm libm: fix warning maybe-uninitialized 2026-01-19 23:26:14 +08:00
libnx style/FAR: remove FAR qualifier 2025-11-10 10:56:29 +01:00
libxx libxx: fix __config_site for libcxx compile errors 2026-01-20 17:45:48 +08:00
CMakeLists.txt libs: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00