incubator-nuttx/libs/libc/semaphore
zhanghongyu ee4c25f34e sem_open: return error code, sem returned by parameter
pointer comparison is unsigned, when returning -errno will be converted
to a large positive number, can not enter the error handling branch,
therefore, the error code is returned directly and the sem is returned
through the parameters.

Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
2024-06-06 02:40:50 +08:00
..
CMakeLists.txt sched/semaphore: Move named semaphores to user space 2023-11-27 04:52:54 -08:00
Make.defs sched/semaphore: Move named semaphores to user space 2023-11-27 04:52:54 -08:00
sem_clockwait.c sched/semaphore: Move cancel point and errno handling to libc / user-space 2023-11-27 04:52:54 -08:00
sem_close.c sched/semaphore: Move named semaphores to user space 2023-11-27 04:52:54 -08:00
sem_destroy.c sched/semaphore: Move cancel point and errno handling to libc / user-space 2023-11-27 04:52:54 -08:00
sem_getprotocol.c
sem_getvalue.c sched/semaphore: Move cancel point and errno handling to libc / user-space 2023-11-27 04:52:54 -08:00
sem_init.c
sem_open.c sem_open: return error code, sem returned by parameter 2024-06-06 02:40:50 +08:00
sem_post.c sched/semaphore: Move cancel point and errno handling to libc / user-space 2023-11-27 04:52:54 -08:00
sem_setprotocol.c sched/semaphore: Move cancel point and errno handling to libc / user-space 2023-11-27 04:52:54 -08:00
sem_timedwait.c sched/semaphore: Move cancel point and errno handling to libc / user-space 2023-11-27 04:52:54 -08:00
sem_trywait.c sched/semaphore: Move cancel point and errno handling to libc / user-space 2023-11-27 04:52:54 -08:00
sem_unlink.c sched/semaphore: Move named semaphores to user space 2023-11-27 04:52:54 -08:00
sem_wait.c sched/semaphore: Move cancel point and errno handling to libc / user-space 2023-11-27 04:52:54 -08:00