nuttx/libs/libc/semaphore
rongbaichuan 9c461f03ac sched/semaphore: Correct the return value comment of nxsem_init/nxmutex_init
nxsem_init(), nxsem_destroy(), nxmutex_init(), nxmutex_destroy(),
nxrmutex_init() and nxrmutex_destroy() cannot fail, so promising a
negated errno value on failure documents an error that is never returned.
The coding standard asks the returned value description to identify all
error values of a function, and there are none, so state that OK is
always returned.

Follows "sched/semaphore: Remove the return value check of
nxsem_init/nxmutex_init", which removed the last checks of these values.

Assisted-by: DeepSeek Harness:deepseek-flash
Signed-off-by: rongbaichuan <rongbaichuan1027@163.com>
2026-09-25 10:37:43 +02:00
..
CMakeLists.txt sched/semaphore: add support to customize semaphore max allowed value 2025-09-04 09:48:34 +08:00
Make.defs sched/semaphore: add support to customize semaphore max allowed value 2025-09-04 09:48:34 +08:00
sem_clockwait.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
sem_close.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
sem_destroy.c sched/semaphore: Remove the return value check of nxsem_init/nxmutex_init 2026-09-25 10:37:43 +02:00
sem_getprioceiling.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
sem_getprotocol.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
sem_getvalue.c Integrate nxmutex support fully into nxsem 2025-05-08 16:00:05 +08:00
sem_init.c sched/semaphore: Correct the return value comment of nxsem_init/nxmutex_init 2026-09-25 10:37:43 +02:00
sem_open.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
sem_post.c libc/semaphore: Go the fast path even arch doesn't support atomic 2025-07-08 09:47:44 -03:00
sem_setmaxvalue.c sched/semaphore: add support to customize semaphore max allowed value 2025-09-04 09:48:34 +08:00
sem_setprioceiling.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
sem_setprotocol.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
sem_timedwait.c libc/semaphore: remove unused hander file 2024-12-30 12:02:34 +08:00
sem_trywait.c sched/semaphore: Keep a negative task id out of the mutex holder. 2026-08-09 10:05:30 +08:00
sem_unlink.c libs/libc: migrate to SPDX identifier 2024-10-01 12:25:52 +08:00
sem_wait.c sched/semaphore: Keep a negative task id out of the mutex holder. 2026-08-09 10:05:30 +08:00