Displaying 16 results from an estimated 16 matches for "max_cmdline_len".
2015 Oct 13
2
[PATCH 1/1] ldlinux: Fix return pointer to local data
...i.c
index 6ff30c6..3119b11 100644
--- a/com32/elflink/ldlinux/cli.c
+++ b/com32/elflink/ldlinux/cli.c
@@ -125,7 +125,7 @@ const char *edit_cmdline(const char *input, int top /*, int width */ ,
int (*pDraw_Menu) (int, int, int),
void (*show_fkey) (int), bool *timedout)
{
- char cmdline[MAX_CMDLINE_LEN] = { };
+ static char cmdline[MAX_CMDLINE_LEN] = { };
int key, len, prev_len, cursor;
int redraw = 0;
int x, y;
--
2.6.1
2010 Oct 03
3
[PATCH 0/3] elflink: Another small fixes on CLI
Hi,
This is a another small set of fixes about CLI on elflink branch.
Liu Aleaxander (3):
elflink: use 'input' as the prompt of the CLI
elflink: Add ctrl-R key bind support
elflink: handle the NULL return of edit_cmdline
core/elflink/cli.c | 88 +++++++++++++++++++++++++++++++++++++++++---
core/elflink/load_env32.c | 4 ++-
2 files changed, 85 insertions(+), 7
2008 Oct 27
0
NEW: COM32 module to alias (Revised)
...* alias.c
*
* Alias COM32 application; Call as a KERNEL with a boot line command as the
* APPEND line.
*/
/*
* History
* b003 Work on resolving a potential overflow issue with building the
* command string to pass to syslinux_run_command()
* Reformatted {} in more visual style.
* Use MAX_CMDLINE_LEN or COMMAND_LINE_SIZE (in that order) if available
* b002 Alter the concatenation of the command line arguments to use memcpy
* b001 Initial version
*/
#include <stdio.h>
#include <stdlib.h>
// #include <stdbool.h>
#include <string.h>
#include <limits.h>
#ifdef __C...
2011 Mar 16
0
[GIT PULL] elflink changes
...inux/cli.c b/com32/elflink/ldlinux/cli.c
index 77d32cd..defc6d0 100644
--- a/com32/elflink/ldlinux/cli.c
+++ b/com32/elflink/ldlinux/cli.c
@@ -68,6 +68,65 @@ int mygetkey(clock_t timeout)
}
}
+static const char * cmd_reverse_search(int *cursor)
+{
+ int key;
+ int i = 0;
+ char buf[MAX_CMDLINE_LEN];
+ const char *p = NULL;
+ struct cli_command *last_found;
+ struct cli_command *last_good = NULL;
+
+ last_found = list_entry(cli_history_head.next, typeof(*last_found), list);
+
+ memset(buf, 0, MAX_CMDLINE_LEN);
+
+ printf("\033[1G\033[1;36m(reverse-i-search)`': \033[...
2009 Feb 22
2
NEW: COM32 module to run another command, optionally clearing the screen
...5 Rename from aliasclr.c to runc.c
* b004 aliasclr.c; Add NUM_NL newlines to beginning of output
* Cleanup code to standards
* b003 Work on resolving a potential overflow issue with building the
* command string to pass to syslinux_run_command()
* Reformatted {} in more visual style.
* Use MAX_CMDLINE_LEN or COMMAND_LINE_SIZE (in that order) if available
* b002 Alter the concatenation of the command line arguments to use memcpy
* b001 Initial version
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <limits.h>
#include <consoles.h>
#ifdef __COM...
2011 Feb 17
5
[PATCH 0/4] Reduce core size
From: Matt Fleming <matt.fleming at linux.intel.com>
These patches are based on the elflink branch.
This set of patches is my attempt at moving the command-line interface
functionality out of the core and into an ELF module to reduce the
size of the core.
The most interesting patch is [PATCH 4/4] which moves the cli code out
of core/elflink and into com32/elflink/modules. [PATCH 4/4] is
2015 Oct 16
0
[PATCH 1/1] ldlinux: Fix return pointer to local data
...gt; --- a/com32/elflink/ldlinux/cli.c
> +++ b/com32/elflink/ldlinux/cli.c
> @@ -125,7 +125,7 @@ const char *edit_cmdline(const char *input, int top /*, int width */ ,
> int (*pDraw_Menu) (int, int, int),
> void (*show_fkey) (int), bool *timedout)
> {
> - char cmdline[MAX_CMDLINE_LEN] = { };
> + static char cmdline[MAX_CMDLINE_LEN] = { };
> int key, len, prev_len, cursor;
> int redraw = 0;
> int x, y;
>
Tested-by: poma <pomidorabelisima at gmail.com>
2015 Oct 19
0
ldlinux: Fix return pointer to local data
...gt; --- a/com32/elflink/ldlinux/cli.c
> +++ b/com32/elflink/ldlinux/cli.c
> @@ -125,7 +125,7 @@ const char *edit_cmdline(const char *input, int top /*, int width */ ,
> int (*pDraw_Menu) (int, int, int),
> void (*show_fkey) (int), bool *timedout)
> {
> - char cmdline[MAX_CMDLINE_LEN] = { };
> + static char cmdline[MAX_CMDLINE_LEN] = { };
> int key, len, prev_len, cursor;
> int redraw = 0;
> int x, y;
@huddy: check your setup (with the very long command line)
with the above patch applied
Groeten
Geert Stappers
--
Leven en laten leven
----------...
2005 Aug 27
3
SYSLINUX 3.11-pre5 -- release candidate -- release on Tuesday
SYSLINUX 3.11-pre5 is hereby a bug fix release candidate. If I don't
receive any problem reports, I will release it as-is on Tuesday, August 30.
http://www.kernel.org/pub/linux/utils/boot/syslinux/Testing/
-hpa
2010 Jun 27
1
[PATCH] ROSH: Upgraded
...ensize(int fd, int
*rows, int *cols)
/* Size of buffer string */
#define ROSH_BUF_SZ 16384
-/* Size of screen output buffer (80*40) */
-#define ROSH_SBUF_SZ 1200
+/* Size of screen output buffer (80*40) //HERE */
+#define ROSH_SBUF_SZ ((80 + 2) * 40)
/* Size of command buffer string */
#ifdef MAX_CMDLINE_LEN
-#define ROSH_CMD_SZ MAX_CMDLINE_LEN
-#else
-#ifdef COMMAND_LINE_SIZE
-#define ROSH_CMD_SZ COMMAND_LINE_SIZE
+# define ROSH_CMD_SZ MAX_CMDLINE_LEN
+#elif COMMAND_LINE_SIZE
+# define ROSH_CMD_SZ COMMAND_LINE_SIZE
#else
-#define ROSH_CMD_SZ 2048
-#endif /* COMMAND_LINE_SIZE */
+# define ROSH_CM...
2011 Apr 01
0
[GIT PULL] elflink cmdline
...+ if (nocomplete)
+ break;
+
+ p = cmdline;
+ len = 0;
+ while(*p && !my_isspace(*p)) {
+ p++;
+ len++;
+ }
+
+ print_labels(cmdline, len);
+ redraw = 1;
+ break;
+ }
default:
if (key >= ' ' && key <= 0xFF && len < MAX_CMDLINE_LEN - 1) {
diff --git a/com32/elflink/ldlinux/config.h b/com32/elflink/ldlinux/config.h
index 37c57da..8f708f1 100644
--- a/com32/elflink/ldlinux/config.h
+++ b/com32/elflink/ldlinux/config.h
@@ -36,4 +36,6 @@ extern short nohalt; //idle.inc
extern const char *default_cmd; //"default" comma...
2009 Feb 15
2
COM32 module: Read-Only shell
...ROSH_COM32(f, ...) ((void)0)
+#define syslinux_run_command(f) ((void)0)
+#endif /* __COM32__ */
+
+#define SEP '/'
+
+/* Size of buffer string */
+#define ROSH_BUF_SZ 16384
+/* Size of screen output buffer (80*40) */
+#define ROSH_SBUF_SZ 1200
+
+/* Size of command buffer string */
+#ifdef MAX_CMDLINE_LEN
+#define ROSH_CMD_SZ MAX_CMDLINE_LEN
+#else
+#ifdef COMMAND_LINE_SIZE
+#define ROSH_CMD_SZ COMMAND_LINE_SIZE
+#else
+#define ROSH_CMD_SZ 2048
+#endif /* COMMAND_LINE_SIZE */
+#endif /* MAX_CMDLINE_LEN */
+
+/* Size of path buffer string */
+#ifdef PATH_MAX
+#define ROSH_PATH_SZ PATH_MAX
+#elif NAME...
2010 Apr 23
1
Path simple menu integrated progress indicator
...-#define HELPMSGEND_ROW (cm->mparm[P_HELPMSGEND_ROW])
-#define HSHIFT (cm->mparm[P_HSHIFT])
-#define VSHIFT (cm->mparm[P_VSHIFT])
-#define HIDDEN_ROW (cm->mparm[P_HIDDEN_ROW])
-
static char *pad_line(const char *text, int align, int width)
{
static char buffer[MAX_CMDLINE_LEN];
diff -uprN syslinux-3.86-vanilla//com32/menu/readconfig.c syslinux-3.86/com32/menu/readconfig.c
--- syslinux-3.86-vanilla//com32/menu/readconfig.c 2010-03-31 11:24:25.000000000 -0500
+++ syslinux-3.86/com32/menu/readconfig.c 2010-04-15 09:36:23.000000000 -0500
@@ -49,6 +49,7 @@ static...
2012 Nov 02
10
[PATCH 0/9] elflink fixes
From: Matt Fleming <matt.fleming at intel.com>
Here are the patches that I've got queued up based on the very helpful
feedback I received from people testing Syslinux 5.00-pre9. Unless
anyone has any concerns these will make it into Syslinux 5.00-pre10.
Matt Fleming (9):
pxe: Don't call open_config() from the pxe core
ldlinux: Print a warning if no config file is found
2011 Mar 09
14
[PATCH 00/12] elflink shrinkage
From: Matt Fleming <matt.fleming at linux.intel.com>
This is a series of patches that,
* shrink the core by moving things into an ldlinux ELF module
* begin wiring up some of the C versions of various functions
The core now only contains essential code and loads the ldlinux module
to do everything else, like providing a command line interface and
loading kernels.
The config file parsing
2011 Apr 16
20
[PATCH 00/20] Switch to ELF modules
From: Matt Fleming <matt.fleming at linux.intel.com>
This series fixes some bugs and switches the elflink branch to be
entirely ELF modules. It applies on top of,
http://syslinux.zytor.com/archives/2011-April/016369.html
The deletions in the diff stat below are mainly from deleting
com32/elflink/modules (finally!). Now there should be no duplicate
code because we don't need COM32 and