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> |
||
|---|---|---|
| .. | ||
| CMakeLists.txt | ||
| Make.defs | ||
| sem_clockwait.c | ||
| sem_close.c | ||
| sem_destroy.c | ||
| sem_getprotocol.c | ||
| sem_getvalue.c | ||
| sem_init.c | ||
| sem_open.c | ||
| sem_post.c | ||
| sem_setprotocol.c | ||
| sem_timedwait.c | ||
| sem_trywait.c | ||
| sem_unlink.c | ||
| sem_wait.c | ||