nuttx/libs/libc/misc
hujun5 08e6f56176 fdcheck: fix race condition in fdcheck
reason: ioctl will use the fl_lock file lock, causing context switching,
further leading to the failure of g_fdcheck_lock protection

Configuring NuttX and compile:
$ ./tools/configure.sh -l qemu-armv8a:nsh_smp
$ make
Running with qemu
$ qemu-system-aarch64 -cpu cortex-a53 -smp 4 -nographic \
   -machine virt,virtualization=on,gic-version=3 \
   -net none -chardev stdio,id=con,mux=on -serial chardev:con \
   -mon chardev=con,mode=readline -kernel ./nuttx

Signed-off-by: hujun5 <hujun5@xiaomi.com>
2024-08-18 10:27:03 -03:00
..
CMakeLists.txt lib_ustname:keep the incrementally compiled version time updated 2024-08-13 19:42:32 +08:00
Kconfig libc/uname: Add option to disable uname timestamp 2024-03-23 11:42:22 +08:00
lib_crc8.c
lib_crc8ccitt.c
lib_crc8table.c
lib_crc16.c
lib_crc16ccitt.c
lib_crc32.c
lib_crc64.c
lib_cxx_initialize.c
lib_debug.c
lib_dumpbuffer.c
lib_dumpvbuffer.c
lib_envpath.c
lib_err.c
lib_execinfo.c libc/execinfo: extract a common backtrace format function 2024-06-29 22:44:39 +08:00
lib_fchmodat.c
lib_fdcheck.c fdcheck: fix race condition in fdcheck 2024-08-18 10:27:03 -03:00
lib_fdsan.c
lib_fnmatch.c
lib_fstatat.c
lib_ftok.c
lib_getfullpath.c
lib_getrandom.c
lib_glob.c
lib_impure.c
lib_instrument.c
lib_kbddecode.c
lib_kbdencode.c
lib_log2ceil.c
lib_log2floor.c
lib_mallopt.c
lib_memfd.c
lib_memoryregion.c
lib_mkdirat.c
lib_mkfifo.c
lib_mknod.c
lib_mutex.c
lib_ncompress.c
lib_openat.c
lib_slcddecode.c
lib_slcdencode.c
lib_tea_decrypt.c
lib_tea_encrypt.c
lib_uadd32x64.c
lib_uadd64.c
lib_umask.c
lib_umul32.c
lib_umul32x64.c
lib_umul64.c
lib_usub64.c
lib_usub64x32.c
lib_utimensat.c
lib_utsname.c libc/uname: Add option to disable uname timestamp 2024-03-23 11:42:22 +08:00
lib_xorshift128.c
Make.defs lib_ustname:keep the incrementally compiled version time updated 2024-08-13 19:42:32 +08:00