aboutsummaryrefslogtreecommitdiff
path: root/toys/other/losetup.c
AgeCommit message (Collapse)Author
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-09-11Replace toys.exithelp with help_exit() in lib.Rob Landley
2015-01-01Switch a lot of strncpy() calls to xstrncpy().Rob Landley
2014-10-09Various bugfixes (mostly resource leaks) from Ashwini Sharma's static ↵Rob Landley
analysis, plus occasional tweak by me while reviewing them.
2014-07-30As long as I had to write xabspath(), no point in wrapping realpath().Rob Landley
2014-05-29Make "losetup /dev/loop0 filename" work.Rob Landley
Sigh. Implement the complex cases and you screw up the simple cases you already tested...
2013-04-14Move guts of help command into show_help() in lib/help.c, with config ↵Rob Landley
TOYBOX_HELP controlling infrastructure.
2013-02-03Some older build environments don't have LOOP_CTL_GET_FREE or ↵Rob Landley
LOOP_SET_CAPACITY. Substitute constants so they can get the rest of losetup without a build break.
2013-01-14Silence deeply stupid gcc warning. (First non-declaration line of function: ↵Rob Landley
if (file) ffd = open(); at end of of function: if (file) close(ffd); "file" is an argument to the function and nothing else assigns to it. gcc warning on that close, "ffd may be used uninitialized!" _HOW_?)
2013-01-02Have error_msg() and friends set TT.exitval to 1 if it's still 0, clean out ↵Rob Landley
other places that were setting it that no longer need to.
2012-12-30Add losetup. (Who knows, it might even work.)Rob Landley