aboutsummaryrefslogtreecommitdiff
path: root/sys/boot/common/interp_parse.c
Commit message (Collapse)AuthorAgeFilesLines
* Move sys/boot to stand. Fix all references to new locationWarner Losh2017-11-141-222/+0
| | | | | | | Sponsored by: Netflix Notes: svn path=/head/; revision=325834
* Improve boot loader quote parsingAllan Jude2016-07-301-7/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | parse() is the boot loader's interp_parse.c is too naive about quotes both single and double quotes were allowed to be mixed, and single quotes did not follow the usual semantics (re variable expansion). The old code did not check for terminating quotes This update implements: * distinguishing single and double quote * variable expansion will not be done inside single quote protected area * will preserve inner quote for values like "value 'some list'" * ending quote check. this diff does not implement ending quote order check, it shouldn't be too hard, needs some improvements on parser state machine. PR: 204602 Submitted by: Toomas Soome <tsoome@me.com> Relnotes: yes Differential Revision: https://reviews.freebsd.org/D6000 Notes: svn path=/head/; revision=303556
* Replace index() and rindex() calls with strchr() and strrchr().Ed Schouten2012-01-031-1/+1
| | | | | | | | | | | | | The index() and rindex() functions were marked LEGACY in the 2001 revision of POSIX and were subsequently removed from the 2008 revision. The strchr() and strrchr() functions are part of the C standard. This makes the source code a lot more consistent, as most of these C files also call into other str*() routines. In fact, about a dozen already perform strchr() calls. Notes: svn path=/head/; revision=229403
* Use __FBSDID().David E. O'Brien2003-08-251-3/+4
| | | | | | | Also some minor style cleanups. Notes: svn path=/head/; revision=119483
* Cleanup warnings. Most of these are signed/unsigned warnings, as well asJohn Baldwin2000-08-031-10/+8
| | | | | | | some added const's. Notes: svn path=/head/; revision=64187
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50477
* Fix a number of memory leaks and other memory-related disorders.Daniel C. Sobral1999-03-081-1/+2
| | | | | | | | | | | | | | | | | | Also, unbreak the breakage introduced at the last revision of module.c. This changes the semantics of mod_searchfile() (and mod_searchmodule()) to make the caller's responsibility freeing the buffer returned. This is different from other functions in loader's code, and was done as a fix for kern/9631. If someone wants to revert this to the original behavior, don't forget to fix kern/9631 in another way. This should also fix bin/10462, which was introduced as a result of the first try at kern/9631 (module.c last revision). PR: bin/10462 Submitted by: Takanori Saneto <sanewo@ba2.so-net.ne.jp> Notes: svn path=/head/; revision=44570
* Typo in patch application.Mike Smith1999-01-131-2/+2
| | | | | | | | PR: kern/9459 Submitted by: "Daniel C. Sobral" <dcs@newsguy.com> Notes: svn path=/head/; revision=42620
* Enable escapes for $ to make it possible to insert variable names intoMike Smith1999-01-101-2/+6
| | | | | | | other variable values. Notes: svn path=/head/; revision=42465
* Initial integration of the i386 bootloader and BTX.Mike Smith1998-09-171-2/+1
| | | | | | | | | | | | | | - Discard large amounts of BIOS-related code in favour of the more compact BTX vm86 interface. - Build the loader module as ELF, although the resulting object is a.out, make gensetdefs 32/64-bit sensitive and use a single copy of it. - Throw away installboot, as it's no longer required. - Use direct bcopy operations in the i386_copy module, as BTX maps the first 16M of memory. Check operations against the detected size of actual memory. Notes: svn path=/head/; revision=39441
* Generic plug-and-play enumerator infrastructure. Query suppliedMike Smith1998-09-041-2/+2
| | | | | | | | enumerators, crossreference returned identifiers with a text-format database and automatically load corresponding modules and dependancies. Notes: svn path=/head/; revision=38789
* Allow quoted strings (single or double) for grouping whitespace separatedJordan K. Hubbard1998-09-031-5/+16
| | | | | | | items. Eliminate warnings. Notes: svn path=/head/; revision=38765
* New commandline/script parser, supports backslash quoting and environmentMike Smith1998-09-011-0/+190
variable substitution. Submitted by: Jordan Hubbard <jkh@freebsd.org> Notes: svn path=/head/; revision=38716