summaryrefslogtreecommitdiff
path: root/usr.sbin/binmiscctl
Commit message (Collapse)AuthorAgeFilesLines
* binmiscctl(8): miscellaneous cleanupKyle Evans2020-11-072-12/+12
| | | | | | | | | | | | - Bad whitespace in Makefile. - Reordered headers, sys/ first. - Annotated fatal/usage __dead2 to help `make analyze` out a little bit. - Spell a couple of sizeof constructs as "nitems" and "howmany" instead. MFC after: 1 week Notes: svn path=/head/; revision=367441
* Add RISC-V interpreter exampleMitchell Horne2020-05-011-1/+12
| | | | | | | | | | | | Now that RISC-V support has landed in qemu-user-static, add to the list of examples in the binmiscctl(8) manpage. Reviewed by: kevans MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D24646 Notes: svn path=/head/; revision=360519
* Remove sparc64 example.Warner Losh2020-02-101-12/+1
| | | | | | | | Reivewed by: cy@, bcr@ Differential Revision: https://reviews.freebsd.org/D23593 Notes: svn path=/head/; revision=357734
* Improve the binmiscctl manual pageMateusz Piotrowski2018-07-201-49/+65
| | | | | | | | | | | | | | | | | | - Use "Fl -" instead of "Cm --" for long options. - Sort options alphabetically. - Pet "mandoc -Tlint". - Clean up the description of the "--interpreter" option. - Clean up the description of the first example in the examples section. - Use ".Bd -literal -offset indent" for all example code blocks for consistency. - Use "Nm" instead of "Cm binmiscctl". - Indent all examples for consistency. Reviewed by: allanjude Approved by: mat (mentor) Differential Revision: https://reviews.freebsd.org/D15589 Notes: svn path=/head/; revision=336567
* Don't leak resources on duplicate -m or -M arguments. Last one wins.Warner Losh2017-12-281-0/+2
| | | | | | | CID: 1204385, 1204384 Notes: svn path=/head/; revision=327262
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-10-311-1/+0
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
* Correct the binmiscctl(8) man page for powerpc64Justin Hibbits2017-09-041-1/+1
| | | | | | | | | | Magic for powerpc64 erroneously specified ELFCLASS32 instead of ELFCLASS64. Submitted by: luca.pizzamiglio _AT_ gmail DOT com MFC after: 3 days Notes: svn path=/head/; revision=323161
* binmiscctl should use modfind instead of kldfindSean Bruno2017-07-281-1/+2
| | | | | | | | | | | | | | | | | kldfind() only matches kernel modules, so if you link imgact_binmisc directly into the kernel, binmiscctl can't find it, tries to load it, and errors out with: Can't load imgact_binmisc kernel module: File exists A quick search of other base commands shows that the correct procedure is to call modfind(), and then try kldload() if that fails. PR: 218593 Submitted by: Dan Nelson <dnelson_1901@yahoo.com> MFC after: 1 week Notes: svn path=/head/; revision=321658
* Another attempt at resolving CID 1305629. The test of cmd == -1Don Lewis2016-05-131-1/+1
| | | | | | | | | | | | may make Coverity think that other negative values of cmd (used as an index) are possible. Testing < 0 is a more common idiom in any case. Reported by: Coverity CID: 1305629 Notes: svn path=/head/; revision=299687
* Revert r299584:Don Lewis2016-05-131-1/+1
| | | | | | | | | | Mark usage() as __dead2 so that Coverity doesn't think that execution continues after the call and uses a negative array subscript. Requested by: bde Notes: svn path=/head/; revision=299588
* Mark usage() as __dead2 so that Coverity doesn't think that executionDon Lewis2016-05-131-1/+1
| | | | | | | | | | continues after the call and uses a negative array subscript. Reported by: Coverity CID: 1305629 Notes: svn path=/head/; revision=299584
* META MODE: Update dependencies with 'the-lot' and add missing directories.Bryan Drewery2015-12-011-0/+18
| | | | | | | | | | | | | | | | | This is not properly respecting WITHOUT or ARCH dependencies in target/. Doing so requires a massive effort to rework targets/ to do so. A better approach will be to either include the SUBDIR Makefiles directly and map to DIRDEPS or just dynamically lookup the SUBDIR. These lose the benefit of having a userland/lib, userland/libexec, etc, though and results in a massive package. The current implementation of targets/ is very unmaintainable. Currently rescue/rescue and sys/modules are still not connected. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=291563
* Add example for upcoming aarch64/arm64 targets.Sean Bruno2015-02-161-0/+11
| | | | Notes: svn path=/head/; revision=278862
* If no arguments are passed to a subcommand that requires arguments,Sean Bruno2015-02-151-1/+3
| | | | | | | | | | | error out before we deref a null pointer in the check for max length. Thanks to otis in IRC for the bug report. MFC after: 3 days Notes: svn path=/head/; revision=278827
* Check for invalid length or more than max length for the interpreter, insteadSean Bruno2015-01-281-1/+1
| | | | | | | | | | | of the validity of the string pointer holding the interpreter. Submitted by: sson Reviewed by: dim MFC after: 3 days Notes: svn path=/head/; revision=277853
* Move the explanation for examples before the example itself. AddWarren Block2014-12-301-16/+118
| | | | | | | | | | | | | | numerous QEMU examples and explanations supplied by sbruno, with thanks to Ingo Schwarze for help with the mdoc markup. Code, text, testing, proofreading, cinematography, stunts, and the haunting theme song supplied by sbruno. Submitted by: sbruno Reviewed by: sbruno MFC after: 1 week Notes: svn path=/head/; revision=276419
* mdoc: kill EOL whitespace.Joel Dahl2014-07-291-4/+4
| | | | Notes: svn path=/head/; revision=269251
* mdoc: use display block in the beginning of the EXAMPLES section.Joel Dahl2014-06-151-4/+4
| | | | Notes: svn path=/head/; revision=267502
* More mdoc/spelling/grammar cleanup.Christian Brueffer2014-04-101-30/+36
| | | | Notes: svn path=/head/; revision=264314
* Quick mdoc/whitespace/spelling pass, this needs some more work.Christian Brueffer2014-04-081-20/+24
| | | | Notes: svn path=/head/; revision=264276
* Add Stacey Son's binary activation patches that allow remapping ofSean Bruno2014-04-083-0/+704
execution to a emumation program via parsing of ELF header information. With this kernel module and userland tool, poudriere is able to build ports packages via the QEMU userland tools (or another emulator program) in a different architecture chroot, e.g. TARGET=mips TARGET_ARCH=mips I'm not connecting this to GENERIC for obvious reasons, but this should allow the kernel module to be built by default and enable the building of the userland tool (which automatically loads the kernel module). Submitted by: sson@ Reviewed by: jhb@ Notes: svn path=/head/; revision=264269