nchao
|
6509a0c0ca
binfmt/ and libs/libc: Make exepath_*() more common:
|
6 years ago |
Gregory Nutt
|
20a86dfc1b
binfmt/ and sched/group: Re-architect the way that loadable ELF or NXFLAT modules are unloaded. Memory resources must be recovered when the task loaded into memory exits. The originmal implementatino used the death-of-child SIGCHLD signal to perform the unload. There are several problems with this: It is overly complex, it requires that the parent task stay resident while the loaded task runs, and it has fatal logic flaws in the protected and kernel model builds because the user signal handler attempts to run in the kernel address space. This commit corrects with using a mindlessly simply BINFMT callback when the task exits.
|
6 years ago |
Masayuki Ishikawa
|
8ec22e916e
Merged in masayuki2009/nuttx.nuttx/refactor_binfmt_exec (pull request #697)
|
6 years ago |
Gregory Nutt
|
5c4d45a331
Documentation and comments updated to further enshrine exec() as an official NuttX interface.
|
7 years ago |
Gregory Nutt
|
bc2cded397
Squashed commit of the following:
|
7 years ago |
Gregory Nutt
|
a1469a3e95
Add CONFIG_DEBUG_ERROR. Change names of *dbg() * *err()
|
8 years ago |
Gregory Nutt
|
86b79b33cf
Reserver the name 'err' for other purposes
|
8 years ago |
Gregory Nutt
|
4a7fb2cbc1
binfmt: Cosmetic -- rename binfmt_internal.h to binfmt.h. Move related argument copy logic into new file, binfmt_copyargv.c
|
9 years ago |
Gregory Nutt
|
771bbc1be8
Cosmetic change to debug output
|
10 years ago |
Gregory Nutt
|
d9344793a9
Remove unused setting of a variable
|
10 years ago |
Gregory Nutt
|
bd1b5094b4
Trivial binfmt logic clean-up
|
10 years ago |
Gregory Nutt
|
9e290c10b5
Fix some compile issues introduces with removal of CONFIG_MAX_TASK_ARGS
|
10 years ago |
Gregory Nutt
|
7c119ba787
Binfmt no longer depends on a fixed sized argv[] list
|
10 years ago |
Gregory Nutt
|
62880f60c4
In kernel mode, we have to duplicate the callers argv[] buffer when exec'ing new tasks. When the argv[] buffer is needed, the caller's address environment will not longer be in place
|
10 years ago |
Gregory Nutt
|
b63eea45b6
Improved binfmt debug output
|
10 years ago |
Gregory Nutt
|
205260d5e2
Reanem kzalloc to kmm_zalloc for consistency
|
10 years ago |
Gregory Nutt
|
54fa3b0b59
Rename kfree to kmm_free for consistency with other naming conventions
|
10 years ago |
Gregory Nutt
|
2dd9ce50c8
Clean-up up some warning
|
10 years ago |
Gregory Nutt
|
5df891ff28
Fix an error in exec(). argv[] has not being passed
|
10 years ago |
patacongo
|
329328e5df
New interface task_spawn(); exec_builtin() now uses task_spawn(); All argv types should be char * const * not const char **
|
11 years ago |
patacongo
|
3888a00d2d
Add internal API task_reparent(), used in posix_spawn(). Move libc/spawn/lib_ps.c to sched/task_posixspawn.c; Move libc/spawn/spawn.h to include/nuttx/spawn.h
|
11 years ago |
patacongo
|
4a801e4904
NSH will now run files from the file system; Add logic to unload and clean-up after running a task from a file system; Extensions to builtin apps from Mike Smith
|
11 years ago |
patacongo
|
956bded9c1
Add logic to automatically unload module on exit; Several patches from Mike Smith
|
11 years ago |
patacongo
|
828c1c65c7
Change the way thread priority is handled in binfmt/ to better match the way that priority is set up for the builtin tasks
|
11 years ago |
patacongo
|
c76795d32b
Add execv() and execl(); Move lm3s header files for compatibility
|
11 years ago |
patacongo
|
b8f437ef4b
Move binfmt.h, nxflat.h, elf.h, and symtab.h to include/nuttx/binfmt/
|
12 years ago |
patacongo
|
7a9457bb07
Email address change in nuttx/
|
12 years ago |
patacongo
|
99b0163fba
Changing NuttX fixed size type names to C99 standard names -- things will be broken for awhile
|
15 years ago |
patacongo
|
485c3066e1
Add fileno()
|
15 years ago |
patacongo
|
29899e1069
Added exec()
|
15 years ago |