aboutsummaryrefslogtreecommitdiff
path: root/toys/pending/fdisk.c
AgeCommit message (Collapse)Author
2014-01-16Rename xmsprintf() to just xmprintf().Rob Landley
Partly because there's no supplied target string ala sprintf, and partly because I can never remember what order the m and s go in.
2013-08-11fdisk: remove goto; inline valid(); merge xprintf() calls; shrink sys_typesIsaac Dunham
sys_types had used char[_PATH_MAX] for 22-char max strings. When this is done 48 times, it nearly doubles the size of toybox. goto should only be used when it is the easiest way to bail out. That does not mean "when we need to fall back to returning a one-liner that asks user input", nor is it suitable for looping: C has while () and do { } while (); for a reason. valid was called once. As such, it belonged inline. print_*menu could probably be inlined, but I did not do this yet in case a table-driven approach works better. This uses C string concatenation to break an overly long message up, while not wasting function calls.
2013-08-11Ashwini Sharma said that Kyungwan Han should be in the contact info for the ↵Rob Landley
commands he sent recently.
2013-08-05I have implemented FDISK command.Ashwini Sharma
This supports '-l' option for listing and other options [-bCHS] for giving values like block size, Cylinders, Heads,...