search for: parse_config_fil

Displaying 20 results from an estimated 21 matches for "parse_config_fil".

Did you mean: parse_config_file
2013 Jun 27
3
Syslinux 6.00 released
...ConfigName to store the filename of the config file we intend to open in execute() since it interfered with the filesystem-specific open_config() implementations. But a side-effect of this change is that syslinux_config_file() no longer works if we explicitly pass a filename to parse_config_file(). The logical place to keep ConfigName in sync is in parse_config_file() since it's expected that all the filesystem-specific open_config() functions will fill out ConfigName for us. In the case where the filename is supplied by the caller, we need to fill it out ourselve...
2013 Jun 27
0
Syslinux 6.00 released
...store the filename of the config file we intend to open in | execute() | since it interfered with the filesystem-specific open_config() | implementations. But a side-effect of this change is that | syslinux_config_file() no longer works if we explicitly pass a | filename to parse_config_file(). | | The logical place to keep ConfigName in sync is in | parse_config_file() | since it's expected that all the filesystem-specific | open_config() | functions will fill out ConfigName for us. In the case where the | filename is supplied by the caller, we need t...
2011 Dec 04
0
[GIT PULL] klibc minor fixes
...void) /* * Record the use of a CONFIG_* word. */ -void use_config(char *m, int slen) +static void use_config(char *m, int slen) { char s[PATH_MAX]; char *p; @@ -217,7 +216,7 @@ void use_config(char *m, int slen) printf(" $(wildcard include/config/%s.h) \\\n", s); } -void parse_config_file(char *map, size_t len) +static void parse_config_file(char *map, size_t len) { int *end = (int *) (map + len); /* start at +1, so that p can never be < map */ @@ -247,7 +246,7 @@ void parse_config_file(char *map, size_t len) } /* test is s ends in sub */ -int strrcmp(char *s, char *sub...
2019 Jul 09
0
[PATCH] core: Add support for BLS Type 1 entries
...n", 10}, @@ -641,6 +653,7 @@ extern uint16_t PXERetry; 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&q...
2013 Jun 27
3
Syslinux 6.00 released
Hi, I have the same problem as Helmut with INCLUDE keyword and extlinux 5.10 an later. The following configuration has been tested and worked with extlinux 4.05, 4.06, 5.01 Contents of "boot_label" file DEFAULT 1 --------------------------------------- Contents of "extlinux.conf" file # Enable menu.c32 UI menu.c32 # Disable the boot: prompt PROMPT 0 # 5 sec TIMEOUT 50 #
2008 Jan 25
7
vorbis-tools 1.2.0 Release Candidate
I bumped the version number of vorbis-tools and am preparing it for an eventual release in a few days. A changelog of what's new may be found at [1]. Meanwhile, what's in SVN is a "Release Candidate" to find out if anything was broken since version 1.1.1. Report any (or lack of) problems you may find, so we'll be able to put out a new version of vorbis-tools. -Ivo [1]
2007 Feb 23
1
Patch: Readconfig wont parse certain options anymore
...9;t parsed ever. This is particularily visible, if you use timeout option, which wont work in the latest 3.40-pre7. Patch: --- com32/modules/readconfig.c /opensource/syslinux-3.40-pre7/com32/modules/readconfig.c#2 +++ com32/modules/readconfig.c 07-02-22 20:45:46 @@ -412,7 +412,7 @@ static void parse_config_file(FILE *f) { - char line[MAX_LINE], *p, *ep, ch; + char line[MAX_LINE], *p, *kp, *ep, ch; enum kernel_type type; while ( fgets(line, sizeof line, f) ) { @@ -532,10 +532,10 @@ ld.menulabel = NULL; ld.ipappend = ipappend; ld.menudefault = ld.menuhide = 0; - } else if...
2010 May 30
1
[RFC PATCH] menu: support single key booting
...abeldata *ld, const char *append) me->hotkey = 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:...
2016 Jun 29
0
Fwd: [PATCH] {vesa}menu.c32 feature => hide menu entry for specific sources
...urce, "SYS")!=0) + m = hide_menu; + 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...
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
...+ const char *str; + + while (*p) { + /* Find the next directory */ + str = refdup_word(&p); + if (!str) + goto bail; + + entry = path_add(str); + refstr_put(str); + + if (!entry) + goto bail; + + p = skipspace(p); + } + + return 0; + +bail: + return -1; +} + static void parse_config_file(FILE * f) { char 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, ne...
2013 Jun 12
0
[5.10] PXE + dhcp opts 209, 210 and path issues in tftp/http
...+ const char *str; + + while (*p) { + /* Find the next directory */ + str = refdup_word(&p); + if (!str) + goto bail; + + entry = path_add(str); + refstr_put(str); + + if (!entry) + goto bail; + + p = skipspace(p); + } + + return 0; + +bail: + return -1; +} + static void parse_config_file(FILE * f) { char 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, ne...
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
...amp;p); > + if (!str) > + goto bail; > + > + entry = path_add(str); > + refstr_put(str); > + > + if (!entry) > + goto bail; > + > + p = skipspace(p); > + } > + > + return 0; > + > +bail: > + return -1; > +} > + > static void parse_config_file(FILE * f) > { > char 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 *...
2017 Sep 29
0
Wine release 2.18
...Introduce EventTarget_Init. mshtml: Introduce EventTarget_QI. mshtml: Added IEventTarget stub implementation. ntdll/tests: Test NtQueryVolumeInformationFile calls on named pipe object. mscoree: Added CreateConfigStream implementation. mscoree: Use CreateConfigStream in parse_config_file. rpcrt4: Wait for available pipe when connecting to busy server. mshtml: Inherit document mode from parent document. mshtml: Correctly handle VT_EMPTY in set_event_handler_disp in standard compliant mode. mshtml/tests: Run events tests in IE9 mode. Józef Kucia (3): x...
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
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
2019 May 24
3
[PATCH] (vesa)menu.c32: Add support for BLS
...clear_bls_data(nbd); + free(nbd); + } + + free(filename); + } + + closedir(d); + + qsort(bdx, n_bd, sizeof *bdx, compare_blsdata); + + /* For each of the BLS entries, + do essentially the same as the looking_at(p, "label") + clause of the parse_config_file() function */ + for (i = 0; i < n_bd; i++) { + record(m, &ld, append); + + char *label = malloc(16); + snprintf(label, 16, "BLS%03d", i); + ld.label = refstrdup(label); + free(label); + + ld.kernel = (bdx[i]->linux_) ? refstrdup(bdx[...
2009 Nov 18
6
[PATCH 1/3] libxenlight: Clean up logging arrangements
* Introduce new variants of the logging functions which include errno values (converted using strerror) in the messages passed to the application''s logging callback. * Use the new errno-including logging functions everywhere where appropriate. In general, xc_... functions return errno values or 0; xs_... functions return 0 or -1 (or some such) setting errno. * When
2002 Oct 05
2
ogg123 remote interface
...*array); #endif /* __PLAYLIST_H__ */ -------------- next part -------------- diff -urN -X diff.ignore ogg123.orig/cfgfile_options.c ogg123/cfgfile_options.c --- ogg123.orig/cfgfile_options.c Sat Oct 5 14:40:18 2002 +++ ogg123/cfgfile_options.c Sat Oct 5 16:00:26 2002 @@ -443,7 +443,7 @@ parse_config_file(opts, "/etc/ogg123rc"); if (homedir && strlen(homedir) < FILENAME_MAX - 10) { - /* Try ~/.ogg123 */ + /* Try ~/.ogg123rc */ strncpy(filename, homedir, FILENAME_MAX); strcat(filename, "/.ogg123rc"); parse_config_file(opts, filename); ----------...