Commit History

Author SHA1 Message Date
  Rob Landley a4b84d92d9 Remove unused function. 3 years ago
  Rob Landley 664c417af5 Add lots of "static" annotations, make a couple things use FLAG() macros, etc. 3 years ago
  Antoni Villalonga f486337d9f Add missing longopts alias for chgrp/chown and rmdir 3 years ago
  Elliott Hughes 763e85820b Canonicalize the usage: lines for the POSIX toys. 4 years ago
  Rob Landley 51aab4cd76 Don't print (null) in error messages. 5 years ago
  Elliott Hughes 141a075c0e Clean up some --help formatting. 5 years ago
  Elliott Hughes eb7e847adc Be more consistent about periods in help text. 7 years ago
  Rob Landley 3d64b0cc95 Change xgetpwnamid/xgetgrnamid to xgetuid/xgetgid returning the id number 7 years ago
  Rob Landley 8d95074b7d Cleanup pass on the dirtree infrastructure, in preparation for making rm -r 8 years ago
  Rob Landley aab9164df3 Add DIRTREE_SHUTUP to disable dirtree warnings if file vanishes out from 9 years ago
  Rob Landley b8140d1880 Factor out xgetgrnamid() and xgetpwnamid() into xwrap.c. 9 years ago
  Elliott Hughes 50d320777a i found a few problems while manually smoke testing toybox chown versus toolbox (NetBSD) chown... 9 years ago
  Rob Landley 698a160868 Let chown build standalone. 9 years ago
  Rob Landley f3e56f4e4f Redo option parsing infrastructure so #define FORCE_FLAGS can unzero flag macros for a disabled command (needed when multiple commands share infrastructure with a common set of flags). 9 years ago
  Rob Landley 7196d758a0 Fix use-after-free spotted by Ashwini Sharma's static analysis. 9 years ago
  Rob Landley fec3fd1f8a Move DIRTREE_COMEAGAIN second callback up to when the filehandle is still open, and add dir->again variable to distinguish second call instead of checking for -1 filehandle. 10 years ago
  Rob Landley 9fbd5ef630 Use OPTSTR_command macro for more oldtoys, to avoid keeping two option strings in sync. (todo: figure out how to make OLDTOY() automatically use macro. Still need the raw version for subset ala cp/mv though.) 11 years ago
  Rob Landley 799515eabe Fix a warning when debug code enabled. 11 years ago
  Rob Landley 662a267c9b Have error_msg() and friends set TT.exitval to 1 if it's still 0, clean out other places that were setting it that no longer need to. 11 years ago
  Rob Landley 090c5c607e Make dirtree_handle_callback() start with dirtree_ like the rest of the dirtree functions. 11 years ago
  Rob Landley 3162c27324 Have dirtree_add_node() set parent so error message can provide full path. 11 years ago
  Rob Landley 7aa651a6a4 Reindent to two spaces per level. Remove vi: directives that haven't worked 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. 11 years ago
  Rob Landley c0e56edaf2 New build infrastructure to generate FLAG_ macros and TT alias, #define 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. 11 years ago
  Rob Landley f91b7c89bc Regularize command headers, update links to standards documents. 12 years ago
  Rob Landley 3a9241add9 Move commands into "posix", "lsb", and "other" menus/directories. 12 years ago