search for: skipspac

Displaying 20 results from an estimated 46 matches for "skipspac".

Did you mean: skipspace
2019 May 24
3
[PATCH] (vesa)menu.c32: Add support for BLS
...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, "title")) { + refstr_put(bd->title); + bd->title = refstrdup(skipspace(p + 5)); + } else if (looking_at(p, "version")) { + refstr_put(bd->version); + bd->version = refstrdup(skips...
2019 May 25
2
[PATCH] (vesa)menu.c32: Add support for BLS
...s(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...
2019 Jul 09
0
[PATCH] core: Add support for BLS Type 1 entries
...; static struct labeldata ld; static 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 =...
2019 May 25
0
[PATCH] (vesa)menu.c32: Add support for BLS
...(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); > +...
2013 Jun 24
2
[bug] Syslinux-5.11-pre2: IPAPPEND/SYSAPPEND inconsistent base
...n 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 if ((ep = looking_at(p, "ipappend")) || (ep = looking_at(p, "sysappend"))) { if (ld.label)...
2019 May 27
0
[PATCH] (vesa)menu.c32: Add support for BLS
...; + 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")) { > > &...
2012 May 04
3
[GIT PULL] elflink fixes
.../* 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 (looking_at(p, "ontimeout")) { - m->ontimeout = refs...
2013 Jun 24
2
[5.11-pre1] SYSAPPEND does not work (IPAPPEND alias works)
...mlinuz386 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 of "sysappend" (9) differs from "ipappend" (8) but > parsed in the same way. I think I see a good solution here. -- -Gene
2013 Jun 24
2
[bug] Syslinux-5.11-pre2: IPAPPEND/SYSAPPEND inconsistent base
...rection: 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 >> SysAppends = s; >> >> com32/menu/readconfig.c >> } else if ((ep = looking_at(p, "ipappend")) || (ep = >> looking...
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.
2013 Jun 24
0
[bug] Syslinux-5.11-pre2: IPAPPEND/SYSAPPEND inconsistent base
...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; > > com32/menu/readconfig.c > } else if ((ep = looking_at(p, "ipappend")) || (ep = > looking_at(p, "sysappend")))...
2016 Apr 27
2
PXERETRY directive
...e? > > $ 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 4f989f247 for 4.03. What is a recommend value for the directive? Has it a default value? Groeten Geert St...
2016 Jun 29
0
Fwd: [PATCH] {vesa}menu.c32 feature => hide menu entry for specific sources
...+ 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_background = refdup_word(&p); + } else if ((ep = looking_at(p, "hideifnot"))){ + if (ld.label) { + refstr_put(...
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
2016 Apr 22
4
PXERETRY directive
Would someone please be so kind to explain / describe the PXERETRY directive? TIA, Ady.
2007 Feb 23
1
Patch: Readconfig wont parse certain options anymore
...32,10 @@ ld.menulabel = NULL; ld.ipappend = ipappend; ld.menudefault = ld.menuhide = 0; - } else if ( (p = is_kernel_type(p, &type)) ) { + } else if ( (kp = is_kernel_type(p, &type)) ) { if ( ld.label ) { free(ld.kernel); - ld.kernel = strdup(skipspace(p)); + ld.kernel = strdup(skipspace(kp)); ld.type = type; } } else if ( looking_at(p, "timeout") ) {
2009 Jul 13
0
[PATCH] gfxboot: change handling of keywords
...ecx - mov si,configbuf - mov di,default_keyword+1 - mov cl, byte [default_keyword] - call memcmp - pop di - pop si - jz .do_default +.not_found: + add bx,4 + pop cx + loop .keywords_loop .nextline: call skipline jmp .read -.do_label: +.eof: +.noparm: + ret + +do_label: call skipspace jz .eof jc .noparm @@ -742,10 +748,11 @@ parse_config: pop di pop es inc word [label_cnt] +.eof: +.noparm: + ret - jmp .read - -.do_default: +do_default: call skipspace jz .eof jc .noparm @@ -759,8 +766,6 @@ parse_config: pop di pop es - jmp .read - .eof: .no...
2011 Mar 30
2
[GIT PULL] gfxboot module changes
...e following changes since commit 0620743d1e54cf48aa8e5cf5636739addae49d60: H. Peter Anvin (1): Merge remote-tracking branch 'mcb30/empty-tftp-ip' are available in the git repository at: git://repo.or.cz/syslinux/sherbszt.git gfxboot32 Sebastian Herbszt (4): gfxboot: use skipspace() gfxboot: don't use the bounce buffer gfxboot: remove lowmem_buf_size variable gfxboot: remove save_read() function com32/gfxboot/gfxboot.c | 66 +++++++++++++--------------------------------- 1 files changed, 19 insertions(+), 47 deletions(-) Sebastian
2013 Jun 23
0
[5.11-pre1] SYSAPPEND does not work (IPAPPEND alias works)
...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) differs from "ipappend" (8) but parsed in the same way. -- Gerardo Exequiel Pozzi \cos^2\alpha + \sin^2\alpha = 1 -------------- next part ----...
2013 Jun 24
0
[5.11-pre1] SYSAPPEND does not work (IPAPPEND alias works)
...r> 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 of "sysappend" (9) differs from "ipappend" (8) but >> parsed in the same way. > > I think I see a good solution here. &g...