mirror of
https://github.com/apache/nuttx.git
synced 2026-08-06 21:19:03 +00:00
getopt() in the FLAT build environment is not thread safe. This is because global variables that are process-specific in Unix are truly global in the FLAT build. Moving the getopt() variables into TLS resolves this issue. No side-effects are expected other than to getopt() Tested with sim:nsh |
||
|---|---|---|
| .. | ||
| Make.defs | ||
| pthread.h | ||
| pthread_cancel.c | ||
| pthread_cleanup.c | ||
| pthread_completejoin.c | ||
| pthread_condbroadcast.c | ||
| pthread_condclockwait.c | ||
| pthread_condsignal.c | ||
| pthread_condwait.c | ||
| pthread_create.c | ||
| pthread_detach.c | ||
| pthread_exit.c | ||
| pthread_findjoininfo.c | ||
| pthread_getaffinity.c | ||
| pthread_getschedparam.c | ||
| pthread_initialize.c | ||
| pthread_join.c | ||
| pthread_kill.c | ||
| pthread_mutex.c | ||
| pthread_mutexconsistent.c | ||
| pthread_mutexdestroy.c | ||
| pthread_mutexinconsistent.c | ||
| pthread_mutexinit.c | ||
| pthread_mutextimedlock.c | ||
| pthread_mutextrylock.c | ||
| pthread_mutexunlock.c | ||
| pthread_release.c | ||
| pthread_setaffinity.c | ||
| pthread_setschedparam.c | ||
| pthread_setschedprio.c | ||
| pthread_sigmask.c | ||