mirror of
https://github.com/apache/nuttx.git
synced 2026-08-28 21:00:44 +00:00
Fix violations of MISRA C:2012 Rule 10.4 (operand of unsigned and signed) in cancellation point handling code. Changed all CANCEL_FLAG_* macro definitions and their usage to use unsigned literals (1u instead of 1) to ensure consistent unsigned arithmetic when performing bitwise operations. This eliminates mixed signed/unsigned operand violations in: - CANCEL_FLAG_NONCANCELABLE - CANCEL_FLAG_CANCEL_ASYNC - CANCEL_FLAG_CANCEL_PENDING The changes affect cancellation point entry/exit logic, cancellation state management, and cancellation type handling across both kernel and libc implementations. Signed-off-by: fangxinyong <fangxinyong@xiaomi.com> |
||
|---|---|---|
| .. | ||
| CMakeLists.txt | ||
| exit.c | ||
| Make.defs | ||
| spawn.h | ||
| task.h | ||
| task_activate.c | ||
| task_argvstr.c | ||
| task_cancelpt.c | ||
| task_create.c | ||
| task_delete.c | ||
| task_execve.c | ||
| task_exit.c | ||
| task_exithook.c | ||
| task_fork.c | ||
| task_getgroup.c | ||
| task_getpid.c | ||
| task_getppid.c | ||
| task_gettid.c | ||
| task_init.c | ||
| task_join.c | ||
| task_posixspawn.c | ||
| task_prctl.c | ||
| task_recover.c | ||
| task_reparent.c | ||
| task_restart.c | ||
| task_setup.c | ||
| task_spawn.c | ||
| task_spawnparms.c | ||
| task_start.c | ||
| task_terminate.c | ||