aboutsummaryrefslogtreecommitdiff
path: root/toys/other/modinfo.c
AgeCommit message (Collapse)Author
2019-03-04Consistently use ARRAY_LEN.Elliott Hughes
2019-01-25OpenEmbedded needs commands installed in specific places.Rob Landley
2018-11-02Convert more option vars to the new (single letter) coding style.Rob Landley
2017-05-24Add and use xmmap.Elliott Hughes
Everyone forgets that mmap returns MAP_FAILED rather than NULL on failure. Every use of mmap in toybox was either doing the wrong check, or no check at all (including the two I personally added).
2016-11-21Have dirtree_notdotdot() pass through !node->parent so . and .. on the commandRob Landley
line aren't filtered out. Audited all the callers and removed redundant calls, adjusted call sequence, etc. (And let rm _not_ do this, because posix.)
2016-01-05Add error_msg_raw() and friends, replace error_msg("%s", s) uses, enable formatRob Landley
checking, and fix up format checking complaints. Added out(type, value) function to stat to avoid a zillion printf typecasts.
2015-05-31Move the magic list of commands needing cleanup from toys/pending/READMERob Landley
to greppable TODO annotations in the individual files. (grep -riw TODO)
2015-03-01Fix several printf_format warnings.Rob Landley
2014-06-02Help text should have a blank line after usage: lines, and a couple other ↵Rob Landley
whitespace tweaks.
2013-07-10add paramtype in to the list of tagsIsaac Dunham
2013-06-28modinfo: support -b basedir and -k kernel.release, fix two bugsIsaac Dunham
Add two less-frequently used flags for modinfo; -b specifies an alternate root and -k replaces the output of uname -r. Additionally, avoid a potential overflow in sprintf, and correct an inverted test.
2013-06-23Modinfo cleanups.Rob Landley
Don't use xopen() if you want to iterate through multiple files. Don't abort if unable to open the file, but return error if it can't map it. (And leak the filehandle.) All modinfo_file() actually uses is the filename, no reason to go through dirtree() for that. Nothing is actually _checking_ the return value of modinfo_file(). Avoid global data outside of toy_union. Make sure extension is at end of file (we can add support for more extensions later).
2013-06-23Patch that assumes that the presence of the string ".ko" indicatesIsaac Dunham
use of a path to a module (*.ko.xz and similar included, but not supported).
2013-06-16Upgrade modinfo to support multiple modules, and add tests, from Isaac Dunham.Rob Landley
2013-04-27Add firmware field to modinfo output.idunham
2013-04-24Isaac Dunham pointed out that the kernel treats - and _ as identical in ↵Rob Landley
module names, so modinfo should too. Made it use mmap() while I was there, and some cosmetic refactoring.
2012-11-13Reindent to two spaces per level. Remove vi: directives that haven't worked ↵Rob Landley
right in years (ubuntu broke its' vim implementation). Remove trailing spaces. Add/remove blank lines. Re-wordwrap in places. Update documentation with new coding style. The actual code should be the same afterward, this is just cosmetic refactoring.
2012-10-08New build infrastructure to generate FLAG_ macros and TT alias, #define ↵Rob Landley
FOR_commandname before #including toys.h to trigger it. Rename DEFINE_GLOBALS() to just GLOBALS() (because I could never remember if it was DECLARE_GLOBALS). Convert existing commands to use new infrastructure, and replace optflag constants with FLAG_ macros where appropriate.
2012-08-25Move commands into "posix", "lsb", and "other" menus/directories.Rob Landley