nuttx/sched/task
Gregory Nutt 2ccc0da0c7 Move getopt() variables into TLS
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
2021-03-31 21:13:01 -05:00
..
exit.c sourcefiles: Fix relative path in file header 2021-03-09 23:18:28 +08:00
Make.defs sched: Don't forward gettid to getpid directly 2021-03-04 17:17:41 -06:00
spawn.h Fix typos reported by codespell 2021-02-25 11:31:49 -08:00
task_activate.c sched: Change the return type of nxtask_activate to void 2020-06-04 22:20:45 +01:00
task_atexit.c sched: Author Gregory Nutt: update licenses to Apache 2021-02-09 01:21:53 -08:00
task_cancelpt.c sched: Author Gregory Nutt: update licenses to Apache 2021-02-09 01:21:53 -08:00
task_create.c sched: Change tcb_s to task_tcb_s for nxtask_[un]init 2020-06-30 10:54:42 -06:00
task_delete.c sched: Author Gregory Nutt: update licenses to Apache 2021-02-09 01:21:53 -08:00
task_execv.c sourcefiles: Fix relative path in file header 2021-03-09 23:18:28 +08:00
task_exit.c Fix typos reported by codespell 2021-02-25 11:31:49 -08:00
task_exithook.c sched: Remove all group id related stuff 2021-03-05 20:35:22 +08:00
task_getgroup.c sched: Author Gregory Nutt: update licenses to Apache 2021-02-09 01:21:53 -08:00
task_getpid.c sched: Author Gregory Nutt: update licenses to Apache 2021-02-09 01:21:53 -08:00
task_getppid.c sched: Remove all group id related stuff 2021-03-05 20:35:22 +08:00
task_gettid.c sched: Don't forward gettid to getpid directly 2021-03-04 17:17:41 -06:00
task_init.c Move getopt() variables into TLS 2021-03-31 21:13:01 -05:00
task_onexit.c sched: Author Gregory Nutt: update licenses to Apache 2021-02-09 01:21:53 -08:00
task_posixspawn.c Kernel module should prefer functions with nx/kmm prefix 2021-01-13 08:57:58 +01:00
task_prctl.c sched: Author Gregory Nutt: update licenses to Apache 2021-02-09 01:21:53 -08:00
task_recover.c sched: Author Gregory Nutt: update licenses to Apache 2021-02-09 01:21:53 -08:00
task_reparent.c sched: Remove all group id related stuff 2021-03-05 20:35:22 +08:00
task_restart.c sched/group: Change group_kill_children's argument from task_tcb_s to tcb_s 2020-06-15 07:09:51 -06:00
task_setcancelstate.c sched: Author Gregory Nutt: update licenses to Apache 2021-02-09 01:21:53 -08:00
task_setcanceltype.c sched: Author Gregory Nutt: update licenses to Apache 2021-02-09 01:21:53 -08:00
task_setup.c sched: Remove all group id related stuff 2021-03-05 20:35:22 +08:00
task_spawn.c Kernel module should prefer functions with nx/kmm prefix 2021-01-13 08:57:58 +01:00
task_spawnparms.c Kernel module should prefer functions with nx/kmm prefix 2021-01-13 08:57:58 +01:00
task_start.c sched: Author Gregory Nutt: update licenses to Apache 2021-02-09 01:21:53 -08:00
task_starthook.c sched: Author Gregory Nutt: update licenses to Apache 2021-02-09 01:21:53 -08:00
task_terminate.c sched: Author Gregory Nutt: update licenses to Apache 2021-02-09 01:21:53 -08:00
task_testcancel.c sched: Author Gregory Nutt: update licenses to Apache 2021-02-09 01:21:53 -08:00
task_vfork.c sourcefiles: Fix relative path in file header 2021-03-09 23:18:28 +08:00
task.h sched: Author Gregory Nutt: update licenses to Apache 2021-02-09 01:21:53 -08:00