search for: looking_at

Displaying 20 results from an estimated 32 matches for "looking_at".

2019 May 24
3
[PATCH] (vesa)menu.c32: Add support for BLS
...lename = 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, "title")) { + refstr_put(bd->title); + bd->title = refstrdup(skipspace(p + 5)); + } else if (looking_at(p, "version")) { + refstr_put(bd->version); + bd->version = refstrdup(skipspace(p + 7)); + bd->...
2019 May 25
2
[PATCH] (vesa)menu.c32: Add support for BLS
...rchr(line, '\r'); > > + if (p) > > + *p = '\0'; > > + p = strchr(line, '\n'); > > + if (p) > > + *p = '\0'; > > + > > + p = skipspace(line); > > + > > + if (looking_at(p, "title")) { > > + refstr_put(bd->title); > > + bd->title = refstrdup(skipspace(p + 5)); > > + } else if (looking_at(p, "version")) { > > + refstr_put(bd->version); > > + bd->version =...
2013 Jun 24
2
[bug] Syslinux-5.11-pre2: IPAPPEND/SYSAPPEND inconsistent base
core and the simple menu do not interpret the IPAPPEND/SYSAPPEND directives in the same way. Which is the proper way? Either way, this should be clarified in the documentation. com32/elflink/ldlinux/readconfig.c: } else if ((ep = looking_at(p, "ipappend")) || (ep = looking_at(p, "sysappend"))) { uint32_t s = strtoul(skipspace(ep), NULL, 16); if (ld.label) ld.ipappend = s; else SysAppends = s; com32/menu/readconfig.c } else...
2019 May 25
0
[PATCH] (vesa)menu.c32: Add support for BLS
...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, "title")) { > + refstr_put(bd->title); > + bd->title = refstrdup(skipspace(p + 5)); > + } else if (looking_at(p, "version")) { > + refstr_put(bd->version); > + bd->version = refstrdup(skipspace(p +...
2019 Jul 09
0
[PATCH] core: Add support for BLS Type 1 entries
...tic int parse_main_config(const char *filename); +static int parse_bls1_dir(const char *dirname); static char *is_kernel_type(char *cmdstr, enum kernel_type *type) { @@ -1239,6 +1252,40 @@ static void parse_config_file(FILE * f) default_cmd = refstrdup(skipspace(p + 2)); } + else if (looking_at(p, "bls1")) { + p = skipspace(p + 4); + if (looking_at(p, "include")) { + p = skipspace(p + 7); + parse_bls1_dir((*p) ? p : BLS1_DIR); + } else if (looking_at(p, "labelf")) { + p = skipspace(p + 6); + bls1_labelf = realloc(bls1_labelf, strlen(p) + 1); +...
2019 May 27
0
[PATCH] (vesa)menu.c32: Add support for BLS
...if (p) > > > + *p = '\0'; > > > + p = strchr(line, '\n'); > > > + if (p) > > > + *p = '\0'; > > > + > > > + p = skipspace(line); > > > + > > > + if (looking_at(p, "title")) { > > > + refstr_put(bd->title); > > > + bd->title = refstrdup(skipspace(p + 5)); > > > + } else if (looking_at(p, "version")) { > > > + refstr_put(bd->version); > > > +...
2013 Jun 24
2
[bug] Syslinux-5.11-pre2: IPAPPEND/SYSAPPEND inconsistent base
...tation. > > To be clear: core treats the value as always hexidecimal while simple > menu treats it as decimal unless a 0x prefix is present. Correction: simple menu always does decimal (as should be expected). >> com32/elflink/ldlinux/readconfig.c: >> } else if ((ep = looking_at(p, "ipappend")) || >> (ep = looking_at(p, "sysappend"))) { >> uint32_t s = strtoul(skipspace(ep), NULL, 16); >> if (ld.label) >> ld.ipappend = s; >> else >> Sy...
2013 Jun 24
2
[5.11-pre1] SYSAPPEND does not work (IPAPPEND alias works)
On Sun, Jun 23, 2013 at 3:16 PM, Gerardo Exequiel Pozzi <vmlinuz386 at yahoo.com.ar> wrote: > I guess the bug is here (com32/menu/readconfig.c) > > 910 } else if (looking_at(p, "ipappend") || looking_at(p, > "sysappend")) { > 911 if (ld.label) > 912 ld.ipappend = atoi(skipspace(p + 8)); > 913 else > 914 ipappend = atoi(skipspace(p + 8)); > > since the length...
2012 May 04
3
[GIT PULL] elflink fixes
...= 0; long long totaltimeout = 0; +unsigned int kbdtimeout = 0; /* Keep track of global default */ static int has_ui = 0; /* DEFAULT only counts if UI is found */ @@ -1081,13 +1083,14 @@ do_include: //dprintf("got a kernel: %s, type = %d", ld.kernel, ld.type); } } else if (looking_at(p, "timeout")) { - m->timeout = (atoi(skipspace(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 (look...
2016 Jun 29
0
Fwd: [PATCH] {vesa}menu.c32 feature => hide menu entry for specific sources
...+ break; + case SYSLINUX_FS_UNKNOWN: // if booting from CD unknown => hide + break; + default: + m = hide_menu; + break; + } + } + if (ld->label) { char ipoptions[4096], *ipp; const char *a; @@ -744,9 +774,14 @@ static void parse_config_file(FILE * f) } else if ((ep = looking_at(p, "include"))) { goto do_include; } else if ((ep = looking_at(p, "background"))) { - p = skipspace(ep); - refstr_put(m->menu_background); - m->menu_background = refdup_word(&p); + p = skipspace(ep); + refstr_put(m->menu_background); + m->menu_back...
2013 Jun 24
0
[bug] Syslinux-5.11-pre2: IPAPPEND/SYSAPPEND inconsistent base
...ame way. Which is the proper way? Either way, > this should be clarified in the documentation. To be clear: core treats the value as always hexidecimal while simple menu treats it as decimal unless a 0x prefix is present. > com32/elflink/ldlinux/readconfig.c: > } else if ((ep = looking_at(p, "ipappend")) || > (ep = looking_at(p, "sysappend"))) { > uint32_t s = strtoul(skipspace(ep), NULL, 16); > if (ld.label) > ld.ipappend = s; > else > SysAppends = s; > >...
2013 Jun 14
2
[5.11-pre1] SYSAPPEND does not work (IPAPPEND alias works)
On 06/13/2013 10:15 PM, Gene Cumm wrote: > On Thu, Jun 13, 2013 at 8:08 PM, Gerardo Exequiel Pozzi > <vmlinuz386 at yahoo.com.ar> wrote: >> Hello >> >> While testing PXE booting, I decided to change IPAPPEND to the new >> SYSAPPEND and does not work: nothing is appended to command line. >> >> I tested using menu.c32 and vesamenu.c32, same issue.
2010 May 30
1
[RFC PATCH] menu: support single key booting
...= 0; me->action = ld->action ? ld->action : MA_CMD; me->save = ld->save ? (ld->save > 0) : m->save; + me->commit = !!ld->menucommit; if (ld->menuindent) { const char *dn; @@ -653,6 +655,8 @@ static void parse_config_file(FILE * f) } } else if (looking_at(p, "hide")) { ld.menuhide = 1; + } else if (looking_at(p, "commit")) { + ld.menucommit = 1; } else if (looking_at(p, "passwd")) { if (ld.label) { refstr_put(ld.passwd); @@ -931,7 +935,7 @@ do_include: ld.helptext = NULL; ld.ipappend...
2016 Apr 27
2
PXERETRY directive
....com> wrote: > > Would someone please be so kind to explain / describe the PXERETRY > > directive? > > $ git grep -ni pxeretry -i ignore case ("thanks" said the person who exact case matching search ) > com32/elflink/ldlinux/readconfig.c:1305: else if (looking_at(p, "pxeretry")) > com32/elflink/ldlinux/readconfig.c:1306: PXERetry = > atoi(skipspace(p + 8)); > > core/fs/pxe/pxe.c:275: int i = PXERetry; > > > It's used in pxe_searchdir() to affect how many times it retries to > open a file and added in commit...
2016 Apr 22
4
PXERETRY directive
Would someone please be so kind to explain / describe the PXERETRY directive? TIA, Ady.
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
2013 Jun 23
0
[5.11-pre1] SYSAPPEND does not work (IPAPPEND alias works)
...(vesa)menu.c32, has its own configuration >> parser. Did you try the LABEL outside of the simple menu system? >> > > Good point. Yes it works. :) starting using the label from the boot: prompt. > I guess the bug is here (com32/menu/readconfig.c) 910 } else if (looking_at(p, "ipappend") || looking_at(p, "sysappend")) { 911 if (ld.label) 912 ld.ipappend = atoi(skipspace(p + 8)); 913 else 914 ipappend = atoi(skipspace(p + 8)); since the length of "sysappend" (9) diff...
2013 Jun 26
0
[bug] Syslinux-5.11-pre2: IPAPPEND/SYSAPPEND inconsistent base
On Sun, 23 Jun, at 11:21:45PM, Gene Cumm wrote: > Correction: simple menu always does decimal (as should be expected). > > >> com32/elflink/ldlinux/readconfig.c: > >> } else if ((ep = looking_at(p, "ipappend")) || > >> (ep = looking_at(p, "sysappend"))) { > >> uint32_t s = strtoul(skipspace(ep), NULL, 16); > >> if (ld.label) > >> ld.ipappend = s; > >> else &g...
2013 Jun 24
0
[5.11-pre1] SYSAPPEND does not work (IPAPPEND alias works)
On Sun, Jun 23, 2013 at 8:24 PM, Gene Cumm <gene.cumm at gmail.com> wrote: > On Sun, Jun 23, 2013 at 3:16 PM, Gerardo Exequiel Pozzi > <vmlinuz386 at yahoo.com.ar> wrote: >> I guess the bug is here (com32/menu/readconfig.c) >> >> 910 } else if (looking_at(p, "ipappend") || looking_at(p, >> "sysappend")) { >> 911 if (ld.label) >> 912 ld.ipappend = atoi(skipspace(p + 8)); >> 913 else >> 914 ipappend = atoi(skipspace(p + 8)); >&g...
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.