nuttx/libs/libc/sched
fangxinyong a724a5f4f4 sched/cancelpt: Fix MISRA C 2012 Rule 10.4 violations
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>
2026-02-02 21:09:40 +08:00
..
clock_getcpuclockid.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
clock_perf.c clock: remove 64-bit perf support for 32-bit systems 2026-01-26 21:14:38 +08:00
CMakeLists.txt libc/perf: userspace PMU access 2026-01-26 21:14:38 +08:00
Make.defs libc/perf: userspace PMU access 2026-01-26 21:14:38 +08:00
sched_backtrace.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
sched_cpucount.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
sched_dumpstack.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
sched_getprioritymax.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
sched_getprioritymin.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
task_cancelpt.c sched/cancelpt: Fix MISRA C 2012 Rule 10.4 violations 2026-02-02 21:09:40 +08:00
task_getpid.c sched: fix regression from PR #18040 by adding NULL pointer safety 2026-01-23 16:59:55 +08:00
task_gettid.c sched/gettid: Move thread ID to TLS 2025-04-08 22:53:10 +08:00
task_setcancelstate.c sched/cancelpt: Fix MISRA C 2012 Rule 10.4 violations 2026-02-02 21:09:40 +08:00
task_setcanceltype.c sched/cancelpt: Fix MISRA C 2012 Rule 10.4 violations 2026-02-02 21:09:40 +08:00
task_startup.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
task_testcancel.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00