History log of /external/toybox/lib/args.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
aaecbbac2f94b7a93eb2df7f9db78828cbb7b647 10-Dec-2015 Rob Landley <rob@landley.net> Expand toys.optargs to 64 bits so people adding more options to ls don't run out.

Keep the low 32 bits of FLAG_x constants as 32 bit numbers so that at least
on little endian platforms it's still normal 32 bit math outside of lib/args.c.
/external/toybox/lib/args.c
e5354ca12a232b3f97726214254a868771cb70d1 11-Sep-2015 Rob Landley <rob@landley.net> Replace toys.exithelp with help_exit() in lib.
/external/toybox/lib/args.c
1e7b49e25990b6141ffa25da2cd4b6124d435f3d 10-Jul-2015 Rob Landley <rob@landley.net> Move comment about TOYBOX_DEBUG to start of file so it's more obvious.
/external/toybox/lib/args.c
2c1cf4a02783e2a570ddf7b7ea968c7bed781f91 18-Jan-2015 Rob Landley <rob@landley.net> Remove trailing whitespace.
/external/toybox/lib/args.c
cf2516ab4bcf2c1d4cb571539dae794c6a40c5c6 01-Jan-2015 Rob Landley <rob@landley.net> Debris from flag handling rewrite: don't allow -^A to actually trigger.
/external/toybox/lib/args.c
845c8da42a505835c67e2dff98353a7205e555a5 16-Aug-2014 Rob Landley <rob@landley.net> Fix bug reported by Ashwini Sharma: [-abc] syntax to switch off a command forget
s _all_ saved command line arguments in GLOBALS(), not just for the command bein
g dropped.
/external/toybox/lib/args.c
c705b95cef54b13f2caf801d929207ec7f5fbce7 21-Sep-2013 Rob Landley <rob@landley.net> Tweak args (yank old + that never worked, rename | to +), and add uname -o as a synonym for -s.
/external/toybox/lib/args.c
dc6db1a81ab2642927a2c431b7ffab120eeb92ca 21-Sep-2013 Rob Landley <rob@landley.net> Fluff out option parsing documentation, add another DEBUG test.
/external/toybox/lib/args.c
9d4cd46b82b4e5d05c26dc4fa40ef20174ca0355 09-Sep-2013 Rob Landley <rob@landley.net> Fix [-group] argument dropping.
/external/toybox/lib/args.c
c8a49971cbec622573980c276c860aa43ba43b36 06-Sep-2013 Rob Landley <rob@landley.net> Make [-abc] exclude logic clear argument slots when disabling options.
/external/toybox/lib/args.c
b7162a47e71a69e30bb9103b5caae72e5097f68f 01-Sep-2013 Rob Landley <rob@landley.net> Improve --longopt parsing: general bugfixes, better error reporting, new ; option for optional arguments only suppliable with =.
/external/toybox/lib/args.c
9e89d47a29dbcc353004c968c0b5da05ff89c653 31-Jul-2013 Rob Landley <rob@landley.net> Cleanup renice and implement '|' (required option) in argument parsing.
/external/toybox/lib/args.c
4d3b3da2746f6b71b4f1f2649a800818e88a1b66 22-Jun-2013 Rob Landley <rob@landley.net> Option type @ counts number of occurrences, it doesn't take an argument.
/external/toybox/lib/args.c
6938c0b78948bbec9f0a8853663eea5e7c614429 30-Apr-2013 Rob Landley <rob@landley.net> Fix bare longopts to set unique optflag bits.
/external/toybox/lib/args.c
36ffc5aa3e6bfcab5d628208f4f1508f9b1c2620 15-Apr-2013 Rob Landley <rob@landley.net> Move guts of help command into show_help() in lib/help.c, with config TOYBOX_HELP controlling infrastructure.
/external/toybox/lib/args.c
a137c3fdf3af02042edc1c9f53910640c61c3072 07-Apr-2013 Rob Landley <rob@landley.net> Fix argument parsing so -- doesn't include itself in output.
/external/toybox/lib/args.c
8abf095265341f1db12abb1497b5c92b683c6890 29-Dec-2012 Rob Landley <rob@landley.net> Ashwini Sharma pointed out that my previous tweak to [!abc] groups still didn't get the error reporting right (test case "touch -d 12 -r f2 f1"). This says "no 'r' with 'd'" for that, and still shouldn't be able to fall off the end of the list (segfault) because an option can't conflict with itself (that's what the ~(1<<i) on lib/args.c line 317 is for).
/external/toybox/lib/args.c
6d91e0fcaa4e80eac6053ea14944537d7a6a057b 28-Dec-2012 Rob Landley <rob@landley.net> Fix option grouping.
/external/toybox/lib/args.c
de51192c854d20b19d25daedca9e7ecdc72e13f1 25-Nov-2012 Rob Landley <rob@landley.net> Fix typo.
/external/toybox/lib/args.c
7f909bd163630a2ce710653e0fafb7bae7171745 19-Nov-2012 Rob Landley <rob@landley.net> Teach option parsing about [groups] of related options.
/external/toybox/lib/args.c
7aa651a6a4496d848f86de9b1e6b3a003256a01f 14-Nov-2012 Rob Landley <rob@landley.net> 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.

The actual code should be the same afterward, this is just cosmetic refactoring.
/external/toybox/lib/args.c
58fe702905a02a0a5da43a06177d7e88dae82128 02-Nov-2012 Rob Landley <rob@landley.net> Use stridx.
/external/toybox/lib/args.c
9e2b6db36ab6486172fccd0e1786532826d58c53 16-Jul-2012 Rob Landley <rob@landley.net> Genericize llist code a bit: rename llist_free() to llist_traverse(), and no longer accept NULL as a synonym for free.
/external/toybox/lib/args.c
2c48247a01a19c709f693d649d8158bccb5fbf70 12-Mar-2012 Rob Landley <rob@landley.net> Redo tail to use optargs and optionally support lseek. Add support to optargs and llist.c, plus add a test suite entry. Still no -f support though.
/external/toybox/lib/args.c
b73d8e3c2d3b606295453940e602d173924cd380 28-Feb-2012 Rob Landley <rob@landley.net> Add "-" type to optargs and teach tail.c to use it. Tighten up help text, use xzalloc() and xputc() as appropriate.
/external/toybox/lib/args.c
b081ce98999111aa5518388ed7eb8e5ceb5629f9 26-Feb-2012 Rob Landley <rob@landley.net> Teach lib/args.c that " " this option must take a _separate_ argument, so "kill -stop" and "kill -s top" aren't the same thing. Make kill.c use it, and remove leftover debug printfs.
/external/toybox/lib/args.c
2b54b1ab1a796ef89426f021319c11ff22710947 19-Feb-2012 Rob Landley <rob@landley.net> Nathan McSween convinced me compilers that inline memset() can optimize the bzero case pretty well.
/external/toybox/lib/args.c
d387c0183a95f029d1624726b27a3c9094792113 03-Feb-2012 Luis Felipe Strano Moraes <luis.strano@gmail.com> Removing unecessary allocation.
/external/toybox/lib/args.c
b6063de0382e9145df7fdb63383244f68d355243 29-Jan-2012 Rob Landley <rob@landley.net> Add <>= to lib/args.c, with documentation.
/external/toybox/lib/args.c
763e42b152a1cb80790c3720faaf3d102a35434c 30-Nov-2011 Rob Landley <rob@landley.net> Split out parse_optflaglist(), and move local variables to optflagstate.
/external/toybox/lib/args.c
3e87923575eb224a05e069f9ef2bff60dde9475b 28-Nov-2011 Rob Landley <rob@landley.net> Fix "tar cvjfC file dir", make @ not eat an argument, add debug check for (as yet) unsupported multi-function option (ala "x*@").
/external/toybox/lib/args.c
1a35c47e460f785f5979d756c7f5d4f201f3f87e 04-Jul-2008 Rob Landley <rob@landley.net> Teach option parsing logic that ^ means stop parsing after this option.
/external/toybox/lib/args.c
b1487dc9ed8c892afde94a8ac04350e3ca0e7074 27-Jun-2008 Rob Landley <rob@landley.net> Option parsing: stopearly is now a ^ prefix (not +), and an option string with
no flags auto-enables stopearly (so seq doesn't have to specify it to avoid
having negative number arguments eaten by the option parsing logic).
/external/toybox/lib/args.c
4ac6656b5798edf61b05500dbc525b8740d5ad6a 17-Jun-2008 Rob Landley <rob@landley.net> Assemble '*' repeated argument list in order. Also implement '@' counter.
/external/toybox/lib/args.c
1a221d9b4f058d05aa250691c381f0cfeaaeab9e 18-May-2008 Rob Landley <rob@landley.net> Fix command line option parsing so "echo -xen" actually prints "-xen". Add
echo.test while I'm at it.
/external/toybox/lib/args.c
8e99874c4743032b9cd236c84098570e4476657a 05-May-2008 Rob Landley <rob@landley.net> Fluffier error message.
/external/toybox/lib/args.c
aba353e33169e3842723b49c21e32bc6f05aac10 24-Mar-2008 Rob Landley <rob@landley.net> Enabling debugging should not change behavior. Oops.
/external/toybox/lib/args.c
61190a3637a73c73eb6d936f446b2a14f3c9562c 18-Feb-2008 Rob Landley <rob@landley.net> Add enable/disable/exclude logic, update docs.
/external/toybox/lib/args.c
26bf9e642eba4ea00cdf736d7ac4cd6be095a6af 13-Feb-2008 Rob Landley <rob@landley.net> Add toys.optc, an argv-style count for toys.optargs.
/external/toybox/lib/args.c
b1aaba1fc8176ac0b7c202a664d2554aa0967116 21-Jan-2008 Rob Landley <rob@landley.net> Zap toylist.h, moving contents of global structures into DEFINE_GLOBALS()
macros in each C file, and making generated/globals.h from that. Rename
"toy" to "this" along the way to avoid toy/toys confusion.
/external/toybox/lib/args.c
860f2634173d269d2dabfcbbccfb7f95dee4106c 27-Nov-2007 Rob Landley <rob@landley.net> Patch from Charlie Shepherd: remove extra \n from error_exit() arguments.
/external/toybox/lib/args.c
2c226859cfc911c4a1eea009897050a16714aeec 16-Nov-2007 Rob Landley <rob@landley.net> Remove trailing whitespace (thanks to Charlie Shepherd), and a couple comment
tweaks.
/external/toybox/lib/args.c
d06c58df5c723594c4f214dd5d1842a178d2a5e1 11-Oct-2007 Rob Landley <rob@landley.net> Promote help to global config option, teach error_exit() to output usage message when called
from get_optflags().
/external/toybox/lib/args.c
7aa9d8fbf1d56a5b41fb007c0bf2089a6e3dae98 18-Jun-2007 Rob Landley <rob@landley.net> Fix "Need 1 arguments".
/external/toybox/lib/args.c
f5757161aff8caeec8e70b9709ccdce96e41dd14 17-Feb-2007 Rob Landley <rob@landley.net> Add atolx() which understands extensions for kilobytes and megabytes and such.
/external/toybox/lib/args.c
de05a7024f4be6826d05c40aa029fe2bbf6d2818 31-Jan-2007 Rob Landley <rob@landley.net> Add "make defconfig". Modify global options to start with CONFIG_TOYBOX_.
/external/toybox/lib/args.c
028a54424e08cb8bf88bd2014ffd7d485f15ba51 25-Jan-2007 Rob Landley <rob@landley.net> Update args.c to implement numeric arguments.
/external/toybox/lib/args.c
1322beb384ea43a15c17f8229e7db070949dd331 08-Jan-2007 Rob Landley <rob@landley.net> xopen() wants 2 arguments unless you're creating a file, in which case you
need 3. Doing varargs for this doesn't really appeal to me (bugs in waiting)
so I made an xcreate() that takes 3 args, and had xopen() call it with 0 for
the third argument. That way, if we feed O_CREAT to xopen() the permission
000 result should be easy to spot.
/external/toybox/lib/args.c
58c6c1be60d96df4b7cb8d77625948b0da297144 25-Nov-2006 Rob Landley <rob@landley.net> More work on option parsing. "df -t tmpfs" actually seems to work now.
/external/toybox/lib/args.c
fdb667e1a4201afea95a717ac4af5b038f6f1d9a 24-Nov-2006 Rob Landley <rob@landley.net> Fix a half-dozen bugs in argument parsing. More seems to work than not now.
/external/toybox/lib/args.c
54ebcce10b5ca9f517c1f55e1b59b1371dd1d81c 20-Nov-2006 Rob Landley <rob@landley.net> Allocate a more sane amount of memory.
/external/toybox/lib/args.c
2a813ffadf19957f1798cfc68a3ea78199ce1f49 19-Nov-2006 Rob Landley <rob@landley.net> Add one if() that has lots of whitespace fallout.
/external/toybox/lib/args.c
8324b89598b2aee0957a0378f0f63ff5755498be 19-Nov-2006 Rob Landley <rob@landley.net> New option parsing infrastructure (doesn't use getopt). Hook it up to
existing applets. Still a bit buggy, but bits of it work.
/external/toybox/lib/args.c