nuttx/libs/libc/tls
Gregory Nutt 9aaeaefa41 TLS: Correct handling of returned error values.
I not two problems in handling of the return error values in PR #3858:

1. In KERNEL mode, the error return value of _SEM_WAIT() will be a negated errno value; in all other modes, it will be -1 (ERROR) with the errno variable set.  This must be handled in the test of the returned value:  Don't compare with -1; rather check if < 0
2. Also, conversion of the returned value to a negated errno value must be handled differently.  This is handled by replacing -get_errno() with the macro _ERRVAL(ret)

This effects only error handling (it fixes it) and no other impacts are expected.
2021-06-07 22:32:42 -03:00
..
Kconfig Move pthread-specific data into TLS 2020-05-08 18:05:04 +01:00
Make.defs tls: Move pthread key destructor to libc 2021-06-06 15:25:56 -06:00
task_getinfo.c sched: Don't include nuttx/sched.h inside sched.h 2021-05-24 12:11:53 +09:00
tls_alloc.c TLS: Correct handling of returned error values. 2021-06-07 22:32:42 -03:00
tls_destruct.c pthread: Implement destructor of pthread_key_create 2021-05-21 22:46:52 -06:00
tls_free.c TLS: Correct handling of returned error values. 2021-06-07 22:32:42 -03:00
tls_getdtor.c tls: Move pthread key destructor to libc 2021-06-06 15:25:56 -06:00
tls_getinfo.c Correct a comment 2021-04-11 12:32:41 -05:00
tls_getset.c tls: Move pthread key destructor to libc 2021-06-06 15:25:56 -06:00
tls_getvalue.c Move pthread-specific data into TLS 2020-05-08 18:05:04 +01:00
tls_setdtor.c tls: Move pthread key destructor to libc 2021-06-06 15:25:56 -06:00
tls_setvalue.c Move pthread-specific data into TLS 2020-05-08 18:05:04 +01:00