aboutsummaryrefslogtreecommitdiff
path: root/toys/other/reboot.c
AgeCommit message (Collapse)Author
2014-12-31Redo option parsing infrastructure so #define FORCE_FLAGS can unzero flag ↵Rob Landley
macros for a disabled command (needed when multiple commands share infrastructure with a common set of flags). This means the flag space is no longer packed, but leaves gaps where the zeroes go. (Actual flag bit positions are the same for all configs.) Since the option parsing needs to know where the holes are, the OPTSTR values are now generated as part of flags.h with ascii 1 values for the disabled values. (So generated/oldflags.h went away.) This also means that the option string argument for OLDTOY() went away, it now uses the same arguments as the NEWTOY() it references.
2013-10-17Minor cleanup of rebootRob Landley
2013-10-01New toy: reboot/halt/poweroffElie De Brauwer