search for: refstrdup

Displaying 20 results from an estimated 20 matches for "refstrdup".

2019 May 24
3
[PATCH] (vesa)menu.c32: Add support for BLS
...*p; + char *sort_field; + + dprintf("Opening bls entry: %s ", filename); + + f = fopen(filename, "r"); + dprintf("%s\n", f ? "ok" : "failed"); + + if (!f) + return -1; + + refstr_put(bd->filename); + bd->filename = refstrdup(filename); + + while (fgets(line, sizeof line, f)) { + p = strchr(line, '\r'); + if (p) + *p = '\0'; + p = strchr(line, '\n'); + if (p) + *p = '\0'; + + p = skipspace(line); + + if (looking_at(p, &quo...
2019 May 25
2
[PATCH] (vesa)menu.c32: Add support for BLS
...> > + > > + f = fopen(filename, "r"); > > + dprintf("%s\n", f ? "ok" : "failed"); > > + > > + if (!f) > > + return -1; > > + > > + refstr_put(bd->filename); > > + bd->filename = refstrdup(filename); > > + > > + while (fgets(line, sizeof line, f)) { > > + p = strchr(line, '\r'); > > + if (p) > > + *p = '\0'; > > + p = strchr(line, '\n'); > > + if (p) > > + *p =...
2019 Jul 09
0
[PATCH] core: Add support for BLS Type 1 entries
...rcat(ml, field); + } + i = j; + } + } + for (j = i; fmt[j] && fmt[j] != '$'; j++); + if (j > i) { + ml_len += j - i; + ml = realloc(ml, ml_len + 1); + strncat(ml, fmt+i, j - i); + ml[ml_len] = '\0'; + i = j; + } + } + free(tmp); + + rv = refstrdup(ml); + free(ml); + + return rv; +} + +/* + * pads the numeric fields of a version string with zeros + * to get kernel versions to sort a little better + */ +const char *padver(const char *version, const int pad) +{ + int i, j, p, len; + char *bwd = NULL, *fwd = NULL, *tmp; + const ch...
2019 May 25
0
[PATCH] (vesa)menu.c32: Add support for BLS
...uot;Opening bls entry: %s ", filename); > + > + f = fopen(filename, "r"); > + dprintf("%s\n", f ? "ok" : "failed"); > + > + if (!f) > + return -1; > + > + refstr_put(bd->filename); > + bd->filename = refstrdup(filename); > + > + while (fgets(line, sizeof line, f)) { > + p = strchr(line, '\r'); > + if (p) > + *p = '\0'; > + p = strchr(line, '\n'); > + if (p) > + *p = '\0'; > + > + p =...
2019 May 27
0
[PATCH] (vesa)menu.c32: Add support for BLS
...n(filename, "r"); > > > + dprintf("%s\n", f ? "ok" : "failed"); > > > + > > > + if (!f) > > > + return -1; > > > + > > > + refstr_put(bd->filename); > > > + bd->filename = refstrdup(filename); > > > + > > > + while (fgets(line, sizeof line, f)) { > > > + p = strchr(line, '\r'); > > > + if (p) > > > + *p = '\0'; > > > + p = strchr(line, '\n'); > > > +...
2012 May 04
3
[GIT PULL] elflink fixes
...space(p + 7)) * CLK_TCK + 9) / 10; + kbdtimeout = (atoi(skipspace(p + 7)) * CLK_TCK + 9) / 10; } else if (looking_at(p, "totaltimeout")) { totaltimeout = (atoll(skipspace(p + 13)) * CLK_TCK + 9) / 10; } else if (looking_at(p, "ontimeout")) { - m->ontimeout = refstrdup(skipspace(p + 9)); + ontimeout = refstrdup(skipspace(p + 9)); + ontimeoutlen = strlen(ontimeout); } else if (looking_at(p, "allowoptions")) { - m->allowedit = !!atoi(skipspace(p + 12)); + allowoptions = !!atoi(skipspace(p + 12)); } else if (looking_at(p, "ipapp...
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 May 25
1
[GIT PULL] elflink ldlinux
Hi, These patches contain support for some features that are already in Syslinux 4 but weren't working properly on the elflink branch. It's another step closer to feature parity with Syslinux 4. Having to jump through the comboot API for localboot support is less than ideal and I'll eventually fix that, probably when we move a big chunk of code from asm to C. Also, there's a
2019 Apr 16
1
Fix: menu immediate for submenu
...*Patch* --- syslinux-6.03.orig/com32/menu/readconfig.c 2019-04-16 07:42:25.281964266 -0500 +++ syslinux-6.03/com32/menu/readconfig.c 2019-04-16 07:43:06.332309963 -0500 @@ -437,6 +437,7 @@ static struct menu *begin_submenu(const me = new_entry(current_menu); me->displayname = refstrdup(tag); + me->immediate = current_menu->immediate; return new_menu(current_menu, me, refstr_get(me->displayname)); } # end-of-patch
2012 Apr 17
2
[GIT PULL] elflink warning fixes and auto extension support
...inux_init() as __constructor ldlinux: Match arg types to function prototypes ldlinux: Fix check for last command line entry ldlinux: Add print_labels() prototype to config.h ldlinux: Silence gcc warning about uninitialized variable ldlinux: Fix build warnings caused by refstrdup() usage core: Add open_config() prototype ldlinux: Use '\0' instead of NULL when dealing with characters ldlinux: Cast some arguments to avoid compiler warnings ldlinux: Fix number of arguments to start_ldlinux() ldlinux: Add prototype for new_linux_kernel()...
2016 Jun 29
0
Fwd: [PATCH] {vesa}menu.c32 feature => hide menu entry for specific sources
...; - m->menu_background = refdup_word(&p); + p = skipspace(ep); + refstr_put(m->menu_background); + m->menu_background = refdup_word(&p); + } else if ((ep = looking_at(p, "hideifnot"))){ + if (ld.label) { + refstr_put(ld.visiblesource); + ld.visiblesource = refstrdup(skipspace(p + 9)); + } } else if ((ep = looking_at(p, "hidden"))) { hiddenmenu = 1; } else if (looking_at(p, "hiddenkey")) { As always , I'm sorry for my english :) !! hope this can help. Bruno Levert Developer's Certificate of Origin 1.1 By making a cont...
2010 Oct 02
4
[PATCH 0/4] some fixes on elflink branch
This is a small set of patches for elflink branch based on feng's elflink branch. hpa, It seems that I can't log on terminus by ssh at home. So I can't push these patches on my git tree. Liu Aleaxander (4): elflink: Cleanup some warnings elflink: Fix the wrong malloc size in enter_cmdline elflink: Do clear screen even if we have no pDraw_Menu method elflink: Add Ctrl-p +
2013 Jun 12
3
[5.10] PXE + dhcp opts 209, 210 and path issues in tftp/http
On Wed, 12 Jun, at 11:17:44AM, Gerardo Exequiel Pozzi wrote: > Cool thanks!. Now looks better, but still not work. > > For some reason, "ldlinux.c32" is apparently sent but "Failed to load" > by PXELINUX and few seconds later, dnsmasq shows an error message > "failed sending": Argh! The patch was broken. I missed the new core/path.c file. My bad.
2013 Jun 12
5
[5.10] PXE + dhcp opts 209, 210 and path issues in tftp/http
...r line[MAX_LINE], *p, *ep, ch; @@ -1337,24 +1370,8 @@ do_include: } else if (looking_at(p, "say")) { printf("%s\n", p+4); } else if (looking_at(p, "path")) { - /* PATH-based lookup */ - const char *new_path; - char *_p; - size_t len, new_len; - - new_path = refstrdup(skipspace(p + 4)); - len = strlen(PATH); - new_len = strlen(new_path); - _p = malloc(len + new_len + 2); - if (_p) { - strncpy(_p, PATH, len); - _p[len++] = ':'; - strncpy(_p + len, new_path, new_len); - _p[len + new_len] = '\0'; - free(PATH); - PATH = _p; - } else...
2013 Jun 12
0
[5.10] PXE + dhcp opts 209, 210 and path issues in tftp/http
...r line[MAX_LINE], *p, *ep, ch; @@ -1337,24 +1370,8 @@ do_include: } else if (looking_at(p, "say")) { printf("%s\n", p+4); } else if (looking_at(p, "path")) { - /* PATH-based lookup */ - const char *new_path; - char *_p; - size_t len, new_len; - - new_path = refstrdup(skipspace(p + 4)); - len = strlen(PATH); - new_len = strlen(new_path); - _p = malloc(len + new_len + 2); - if (_p) { - strncpy(_p, PATH, len); - _p[len++] = ':'; - strncpy(_p + len, new_path, new_len); - _p[len + new_len] = '\0'; - free(PATH); - PATH = _p; - } else...
2013 Jun 11
2
[5.10] PXE + dhcp opts 209, 210 and path issues in tftp/http
On Mon, 10 Jun, at 07:57:50AM, H. Peter Anvin wrote: > Either that or make the path a list rather than a string, using the > normal word separators when entered on the command line, a bit like the > (t)csh does. That is a bigger change but is probably a better solution. How would this solution handle filenames containing spaces? Would we need to escape (presumably with a backslash)
2013 Jun 12
0
[5.10] PXE + dhcp opts 209, 210 and path issues in tftp/http
...370,8 @@ do_include: > } else if (looking_at(p, "say")) { > printf("%s\n", p+4); > } else if (looking_at(p, "path")) { > - /* PATH-based lookup */ > - const char *new_path; > - char *_p; > - size_t len, new_len; > - > - new_path = refstrdup(skipspace(p + 4)); > - len = strlen(PATH); > - new_len = strlen(new_path); > - _p = malloc(len + new_len + 2); > - if (_p) { > - strncpy(_p, PATH, len); > - _p[len++] = ':'; > - strncpy(_p + len, new_path, new_len); > - _p[len + new_len] = '\0'; &...
2011 Mar 16
0
[GIT PULL] elflink compiler warning fixes
.../printf("", menu->); - //printf("", menu->); - //printf("", menu->); -} - void parse_configs(char **argv) { const char *filename; struct menu *m; struct menu_entry *me; - char *cmdline; dprintf("enter"); empty_string = refstrdup(""); diff --git a/com32/elflink/modules/background.c b/com32/elflink/modules/background.c index 61d8c60..467f6fd 100644 --- a/com32/elflink/modules/background.c +++ b/com32/elflink/modules/background.c @@ -12,6 +12,7 @@ #include <consoles.h> #include <string.h> +#include &...
2012 Mar 23
19
[PATCH 00/19][elflink] Improve compatibility with 4.x
From: Matt Fleming <matt.fleming at intel.com> The following patch series is available at, git://git.zytor.com/users/mfleming/syslinux.git elflink All patches are against the 'elflink' branch. This series fixes a few serious bugs and some behavioural incompatibilities with the 4.x series. Matt Fleming (19): ldlinux: Initialise 'p' before using it. ldlinux: Parse
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