nuttx/sched/environ
Ville Juven 4c1b66246d env_dup: Fix copying of env between address environments
If address environments are in use, it is not possible to simply
memcpy from from one process to another. The current implementation
of env_dup does precisely this and thus, it fails at once when it is
attempted between two user processes.

The solution is to use the kernel's heap as an intermediate buffer.
This is a simple, effective and common way to do a fork().

Obviously this is not needed for kernel processes.
2022-04-21 18:38:37 +08:00
..
env_clearenv.c Don't include assert.h from public header file 2021-06-03 08:36:03 -07:00
env_dup.c env_dup: Fix copying of env between address environments 2022-04-21 18:38:37 +08:00
env_findvar.c sched/environ: Refine the environment variables storage layout 2022-04-18 10:33:37 +03:00
env_foreach.c sched/environ: Refine the environment variables storage layout 2022-04-18 10:33:37 +03:00
env_getenv.c sched/environ: Refine the environment variables storage layout 2022-04-18 10:33:37 +03:00
env_getenvironptr.c sched/environ: Refine the environment variables storage layout 2022-04-18 10:33:37 +03:00
env_putenv.c sched: nxstyle fixes 2021-02-09 01:21:53 -08:00
env_release.c sched/environ: Refine the environment variables storage layout 2022-04-18 10:33:37 +03:00
env_removevar.c sched/environ: Refine the environment variables storage layout 2022-04-18 10:33:37 +03:00
env_setenv.c sched/environ: Refine the environment variables storage layout 2022-04-18 10:33:37 +03:00
env_unsetenv.c sched/environ: Refine the environment variables storage layout 2022-04-18 10:33:37 +03:00
environ.h env_dup: Fix copying of env between address environments 2022-04-21 18:38:37 +08:00
Make.defs sched: Author Gregory Nutt: update licenses to Apache 2021-02-09 01:21:53 -08:00