Commit Graph

8 Commits

Author SHA1 Message Date
Rob Landley
a6e0c86f77 All PEDANTIC_ARGS does is set a macro that's never used. 2022-04-12 02:31:17 -05:00
Rob Landley
4e47b8e583 The "fall back to C.UTF-8" check was backwards, and make TOYFLAG_LINEBUF
configurable.
2020-12-11 19:50:36 -06:00
Rob Landley
60dd7c8a79 Add TOYFLAG_MAYFORK and annotate a couple commands.
A TOYFLAG_NOFORK command must run in the context of toysh, but a MAYFORK
can either run standalone or run in the toysh process. MAYFORK means it
cleans up after itself: no leaked resources (malloc, mmap, filehandles, etc),
even in error_exit() paths that would longjmp() back to the shell. It also
doesn't discard anything we need to retain (don't close stdout, change
toys.optargs[] so we can't free it, etc)...
2019-08-04 16:17:37 -05:00
Rob Landley
677cd8cea2 Add TOYFLAG_ARGFAIL() to allow argument parsing failures to exit with value. 2019-03-10 23:05:24 -05:00
Rob Landley
0c5577513f Tweak/add some comments. 2018-07-19 23:27:14 -05:00
Rob Landley
cb8e5ad6c5 Add TOYBOX_PEDANTIC_ARGS to check arguments when there are no arguments,
and make uptime use it.
2017-03-20 12:41:22 -05:00
Rob Landley
e98089ab9a Add TOYFLAG_NOHELP to disable --help processing for individual commands,
apply it to "true" and "false".
2016-08-13 17:50:54 -05:00
Rob Landley
df07fb73be Wean scripts/install.c off toys.h so cross compiling less brittle. 2016-02-10 23:27:55 -06:00