9
0
Fork 0
barebox/common
Sascha Hauer aed0e6ba03 getopt: save and restore context
execute_command is the single point where commands are executed and thus a new
getopt context is needed. currently we call getopt_reset here to reset the
context. This breaks though when a command tries to run a command itself by
calling execute_command or run_command.  In this case we have to store the
context and restore it afterwards. The same is necessary in builtin_getopt.
Currently noone does this so this one shouldn't fix a bug, but merely allows
us to do such things later.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2012-02-27 19:53:47 +01:00
..
.gitignore update .gitignore files for linker scripts 2009-01-21 23:28:14 +01:00
Kconfig Select CMD_LOADENV with DEFAULT_ENVIRONMENT 2012-02-07 23:17:43 +01:00
Makefile filetype: add config to disable it 2012-01-11 21:22:34 +08:00
block.c block: reimplement caching 2012-02-15 08:21:43 +01:00
clock.c poller_call: move from getc to is_timeout 2012-01-04 14:10:13 +01:00
command.c getopt: save and restore context 2012-02-27 19:53:47 +01:00
complete.c auto-completion: add auto-completion for path files 2011-12-21 12:38:14 +01:00
console.c console: use container_of instead of type_data 2012-02-25 15:16:14 +01:00
console_simple.c console_simple: fix compiler warning 2011-12-07 13:05:54 +01:00
date.c doc added and some reorganised 2007-10-19 14:56:45 +02:00
digest.c digest: factorise file digest to common/digest.c 2011-10-12 08:52:49 +02:00
dlmalloc.c rename include/mem_malloc.h to include/memory.h 2011-09-23 16:32:48 +02:00
dlmalloc.src * Code cleanup: 2003-06-27 21:31:46 +00:00
dummy_malloc.c dummy_malloc: add calloc support 2012-01-11 09:36:30 +01:00
env.c introduce some env helpers 2011-11-29 20:55:50 +01:00
environment.c environment: make default env path configurable 2011-04-12 09:54:56 +02:00
filetype.c filetype: Add oftree detection 2011-12-15 10:20:09 +01:00
hush.c getopt: save and restore context 2012-02-27 19:53:47 +01:00
image.c move code now only used in mkimage to mkimage 2011-12-15 11:07:15 +01:00
kallsyms.c kallsyms/printk: enable symbol printing support (%pS) 2011-03-10 14:50:16 +01:00
memory.c add tlsf-based malloc implementation 2011-12-23 11:26:42 +01:00
memsize.c common/memsize.c: add missing include 2010-10-21 22:21:25 +02:00
menu.c readkey: add define for Ascii keys 2012-02-16 18:17:32 +08:00
misc.c add string for -ETIMEDOUT 2012-02-19 18:51:03 +01:00
module.c module: CONFIG_COMMAND does not exist anymore, remove ifdefs 2011-03-10 14:48:49 +01:00
module.lds.S rename U-Boot-v2 project to barebox 2009-12-15 10:18:30 +01:00
oftree.c oftree: add of_fix_tree() 2011-12-15 10:18:14 +01:00
parser.c parser: use debug macros 2010-11-01 11:44:48 +01:00
partitions.c dos partitions: Do not register as fixed partitions 2012-02-17 10:27:15 +01:00
password.c password: remove not used variable 'second' 2011-11-22 21:04:32 +01:00
poller.c Add generic poll infrastructure 2010-12-20 09:28:21 +01:00
resource.c add resource management functions 2011-12-03 10:09:29 +01:00
s_record.c Initial revision 2002-08-17 09:36:01 +00:00
startup.c startup: use regular debug statements in initcall debugging 2012-01-26 14:12:04 +01:00
tlsf.c tlsf: enable assertions 2011-12-23 11:29:10 +01:00
tlsf_malloc.c tlsf: implement malloc_stats 2011-12-23 11:29:10 +01:00
tlsfbits.h tlsf: remove unused stuff from tlsfbits.h 2011-12-23 11:29:10 +01:00
uimage.c make uimages work on tftpfs 2012-02-19 18:51:03 +01:00
version.c remove EARLY_INIT and EARLY_CONSOLE support 2011-09-27 10:27:18 +02:00