libcmdline.git
13 years agocmdline (merge-intel): don't limit output len of cmdline_printf()
Olivier Matz [Fri, 24 Dec 2010 12:56:06 +0000 (13:56 +0100)]
cmdline (merge-intel): don't limit output len of cmdline_printf()

It was using a big buffer in stack. Now use vdprintf() if _GNU_SOURCE
is defined, or a malloc + free if not.

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
13 years agocmdline (merge-intel): reverse compilation flags for floats and socket
Olivier Matz [Fri, 24 Dec 2010 12:55:43 +0000 (13:55 +0100)]
cmdline (merge-intel): reverse compilation flags for floats and socket

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
13 years agocmdline (merge-intel): support ctrl-w in librte_cmdline
Olivier Matz [Fri, 24 Dec 2010 12:55:33 +0000 (13:55 +0100)]
cmdline (merge-intel): support ctrl-w in librte_cmdline

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
13 years agocmdline (merge-intel): fix display of last char when using backspace
Olivier Matz [Fri, 24 Dec 2010 12:55:28 +0000 (13:55 +0100)]
cmdline (merge-intel): fix display of last char when using backspace

This was introduced by previous commit on this file.

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
13 years agocmdline (merge-intel): don't display control character at the end of line
Olivier Matz [Fri, 24 Dec 2010 12:55:19 +0000 (13:55 +0100)]
cmdline (merge-intel): don't display control character at the end of line

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
13 years agocmdline (merge-intel): add cmdline_quit()
Olivier Matz [Fri, 24 Dec 2010 12:55:04 +0000 (13:55 +0100)]
cmdline (merge-intel): add cmdline_quit()

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
13 years agocmdline (merge-intel): cosmetic fixes, conform to coding rules
Olivier Matz [Fri, 24 Dec 2010 12:54:37 +0000 (13:54 +0100)]
cmdline (merge-intel): cosmetic fixes, conform to coding rules

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
13 years agocmdline (merge-intel): remove duplicated definitions of vt100 codes
Olivier Matz [Fri, 24 Dec 2010 12:54:34 +0000 (13:54 +0100)]
cmdline (merge-intel): remove duplicated definitions of vt100 codes

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
13 years agocmdline (merge-intel): replace harcoded return values with defines
Olivier Matz [Fri, 24 Dec 2010 12:54:31 +0000 (13:54 +0100)]
cmdline (merge-intel): replace harcoded return values with defines

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
13 years agocmdline (merge-intel): move basic_char_loop() in cmdline lib, as cmdline_interact()
Olivier Matz [Fri, 24 Dec 2010 12:54:25 +0000 (13:54 +0100)]
cmdline (merge-intel): move basic_char_loop() in cmdline lib, as cmdline_interact()

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
13 years agocmdline (merge-intel): fix compilation with icc
Olivier Matz [Fri, 24 Dec 2010 12:54:22 +0000 (13:54 +0100)]
cmdline (merge-intel): fix compilation with icc

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
13 years agocmdline (merge-intel): compilation under baremetal environment
Olivier Matz [Fri, 24 Dec 2010 12:54:19 +0000 (13:54 +0100)]
cmdline (merge-intel): compilation under baremetal environment

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
13 years agocmdline (merge-intel): add intel licences
Olivier Matz [Fri, 24 Dec 2010 12:53:59 +0000 (13:53 +0100)]
cmdline (merge-intel): add intel licences

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
13 years agocmdline (merge-intel): use maximum int values defines from stdint.h
Olivier Matz [Fri, 24 Dec 2010 12:53:20 +0000 (13:53 +0100)]
cmdline (merge-intel): use maximum int values defines from stdint.h

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
13 years agocmdline (merge-intel): cmdline: disable float parsing
Olivier Matz [Fri, 24 Dec 2010 12:53:16 +0000 (13:53 +0100)]
cmdline (merge-intel): cmdline: disable float parsing

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
13 years agocmdline (merge-intel): fix compilation warnings
Olivier Matz [Fri, 24 Dec 2010 12:52:49 +0000 (13:52 +0100)]
cmdline (merge-intel): fix compilation warnings

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
13 years agocmdline (merge-intel): fix whitespaces
Olivier Matz [Fri, 24 Dec 2010 12:52:24 +0000 (13:52 +0100)]
cmdline (merge-intel): fix whitespaces

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
13 years agoInitial import from http://www.droids-corp.org/hg/libcmdline/rev/db316e4289a1
Olivier Matz [Fri, 24 Dec 2010 11:35:58 +0000 (12:35 +0100)]
Initial import from droids-corp.org/hg/libcmdline/rev/db316e4289a1

Signed-off-by: Olivier Matz <zer0@droids-corp.org>