search for: rsprintf

Displaying 7 results from an estimated 7 matches for "rsprintf".

Did you mean: sprintf
2019 Apr 26
1
Fix: menu indent for menu entry
...ruct menu *m, struc struct menu_entry *me; const struct syslinux_ipappend_strings *ipappend; + /* Handle indentation of item with sub-menu while there's no item yet */ + if (m->parent_entry && m->nentries == 0 && ld->menuindent) { + const char *dn; + + rsprintf(&dn, "%*s%s", ld->menuindent, "", m->parent_entry->displayname); + refstr_put(m->parent_entry->displayname); + m->parent_entry->displayname = dn; + } + if (!ld->label) return; /* Nothing defined */ # end of patch
2019 Jul 09
0
[PATCH] core: Add support for BLS Type 1 entries
...pin); + p++; + if (strstr(tmp, p)) + fmt = (bls1_ascend) ? "2%s" : "0%s"; + refstr_put(tmp); + } + free(pin); + + if (!fmt) + fmt = "1%s"; + + tmp = format_bls_data(bd, (bls1_sortby) ? bls1_sortby : BLS1_SORTBY); + refstr_put(bd->sort_field); + rsprintf(&bd->sort_field, fmt, tmp); + refstr_put(tmp); + + return (bd->freax || bd->efi) ? 0 : -1; +} + +/* + * inspired by syslinux/com32/modules/ls.c:display_directory + * + * returns the number of files that were successfully parsed, + * or -1 on error + */ +static int parse_bls1_dir(...
2008 Mar 01
0
SYSLINUX 3.62 released
...ression by allowing two-byte run lengths VESA: work around bug in the Bochs VESA BIOS memdump: fix typo Submenu support: development snapshot Actually implement syslinux_ipappend_strings() Actually implement strnlen() submenu snapshot: it compiles now... [v]rsprintf(): actually set the return pointer... refstr_get(): handle NULL, force inline Simple menu: use refstrings consistently; now works again refstr: handle NULL in refstr[n]dup() simple menu: first cut at working submenus simple menu: The use of realloc() requires indirect...
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
2012 Jul 16
5
[PATCH 0/5] Deleting __intcall() from Syslinux
From: Matt Fleming <matt.fleming at intel.com> Since we can't use __intcall() for EFI, and since we can now have the ELF module code resolve all our symbols at runtime, we should delete as many references to __intcall() as possible and just access the symbols directly. The most interesting patch is the support for weak symbols. We need to be able to reference derivative-specific
2012 Aug 14
1
[GIT PULL] elflink fixes
..._KERNEL) { const char *ext; /* @@ -189,7 +187,7 @@ static void load_kernel(const char *command_line) free((void *)kernel); kernel = k; - type = parse_kernel_type(kernel); + type = parse_image_type(kernel); } } @@ -204,7 +202,7 @@ bad_kernel: */ if (onerrorlen) { rsprintf(&cmdline, "%s %s", onerror, default_cmd); - execute(cmdline, KT_COM32); + execute(cmdline, IMAGE_TYPE_COM32); } } @@ -225,6 +223,35 @@ static void enter_cmdline(void) } } +void ldlinux_enter_command(bool prompt) +{ + const char *cmdline = default_cmd; + + if (prompt) + go...
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