aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-11-19Fix find -perm.Elliott Hughes
1) It read st_dev instead of st_mode. 2) It reversed the semantics of absolute vs minimal ('-' prefixed) tests. Add tests for these, and move the "unterminated -exec" test into the "Still fails" section because it's still dumping core for me.
2015-11-16TypoRob Landley
2015-11-16Rewrite of the about page, re-triage of sbase, and other documentation updates.Rob Landley
2015-11-14Documentation tweaks.Rob Landley
2015-11-12Document %s in date(1).Elliott Hughes
2015-11-12Fix year parsing in date(1).Elliott Hughes
Four-digit years were being mangled by the code for two-digit years. Move all the two-digit year code into the "we only saw two digits" case. Add some new tests and fix existing tests.
2015-11-09Cleanup pass: inline find_tty_name(), bounds check fscanf(), use libcRob Landley
functions to read major()/minor(), fix printf format warnings in error msg.
2015-11-09Make ps try harder to find a name for a tty.Elliott Hughes
2015-11-09On Android, ps' default output should match toolbox.Elliott Hughes
2015-11-09Add ps -n.Elliott Hughes
Both Android and GNU interpret -n to mean "show numeric users and groups", despite what POSIX says.
2015-11-09Add ps -o CMDLINE.Elliott Hughes
This is equivalent to Android's historical "NAME" column, showing the first element of /proc/pid/cmdline.
2015-11-08NOEXIT(thingy()) wrapper to turn xwrap() functions into warning versions.Rob Landley
Also WOULD_EXIT(x, thingy()) to set a variable to 1 or 0 showing whether or not thingy() tried to exit. I'd love to be able to do "x = NOEXIT(thingy());" but haven't figured out a syntax to make that work yet...
2015-11-08Route cleanup: whitespace and curly bracket changes.Rob Landley
2015-11-08Bugfix for route flags.Rob Landley
2015-11-08Remove TEST_ARGV() and logic to adjust irtt by "clock ticks/100" when clock ↵Rob Landley
ticks _is_ 100...
2015-11-07More route cleanup.Rob Landley
2015-11-07Let's start the route cleanup.Rob Landley
Collate some repeated increments, remove some useless coments.
2015-11-05Fix sed bug where any ] right after [ was skipped, not just first one in range.Rob Landley
2015-11-03dhcp leanup: remove flag_get() and flag_chk()Rob Landley
2015-11-03New dhcp6 command from Sameer Pradhan.Rob Landley
2015-11-03Version 0.6.10.6.1Rob Landley
2015-11-03Whitespace and parentheses.Rob Landley
2015-11-02Explain signals in oneit help text.Rob Landley
2015-11-02Don't pass target $CFLAGS to host builds (telling x86 compiler to be big-endianRob Landley
seldom ends well). Instead add -DBUILD_FOR_HOST to $HOSTCC and wrap #ifdefs around problematic (smack) includes from toys.h.
2015-11-02Add -P as short option for --ppid.Rob Landley
(The help infrastructure can collate and alphebetize short options, long options haven't got a standardized help text format. Not a hard requirement to have a short opt, but it's nice.)
2015-11-02Fix the ps -o CMD vs COMM distinction.Elliott Hughes
"comm" is the command name without arguments, and "cmd" the command line including arguments. Confusingly, "command" is a synonym for the *latter*, not the former. This implementation of "comm" matches the GNU ps behavior where the names are truncated, but Android historically used the full name from /proc/pid/cmdline instead, so this patch isn't sufficient to let us match the Android behavior.
2015-11-02Make ps -o error reporting intelligible.Elliott Hughes
I actually thought ps was segfaulting, and it wasn't until I was in gdb that I even noticed there was an error message at all, and even then I had to read the source to work out what it was trying to tell me. Before: $ ps -o user,pid,ppid,vsize,rss,nice,wchan,addr,unknown,stat,cmd ps: -o 'user,pid,ppid,vsize,rss,nice,wchan,addr,unknown,stat,cmd'@41 USER PID PPID VSZ RSS NI WCHAN ADDR$ After: $ ps -o user,pid,ppid,vsize,rss,nice,wchan,addr,unknown,stat,cmd ps: bad -o field 'user,pid,ppid,vsize,rss,nice,wchan,addr,unknown,stat,cmd' ^
2015-11-02If chomp() needs to test it found \n, should also test it's at end of string.Rob Landley
2015-11-02Add ps -Z.Elliott Hughes
As with ls, it doesn't seem like -Z should be guarded behind LSM availability. On a non-SELinux system, the label is always "unconfined".
2015-11-02Add ps --ppid.Elliott Hughes
Used by Android.
2015-11-01Last patch broke creating new file as a patch, fix it.Rob Landley
(Matches beginning and EOF at once.)
2015-11-01Fix applying patch hunks with trailing context to the start of the file.Rob Landley
2015-11-01Change grep -w to checking matches after the fact rather than modifing regex.Rob Landley
This lets '(x)\1' match, as reported by Isabella Parakiss.
2015-10-30Now that toybox is chmod -w, mv needs -f to overwrite it.Rob Landley
2015-10-29Tweak permissions of toybox binary.Rob Landley
2015-10-29Update Android section of roadmap.Elliott Hughes
Change-Id: I5a0f49b17bc5866689608e73af94b31744fd3dc9
2015-10-29Note Debian abandoning LSB and our own decision not to worry about LSB 5.0 yet.Rob Landley
2015-10-29Fix sed bug reported by Isabella Parakiss, where sed -e "/x/c\" -e "y" addedRob Landley
an extra newline because the test for whether we have an existing string to append a newline to was checking if struct step had data appended to it, and the /x/ regex is data appended to it. Change test to check for null terminator at ->arg1 offset.
2015-10-28Oops, forgot to check in the header file change for ps.c.Rob Landley
2015-10-28Promote ps to posix.Rob Landley
2015-10-28Free more stuff in debug cleanup.Rob Landley
Tempted to convert the struct arg_list and ptr_len stuff to arrays and make the parsing table driven, but there's enough direct usages of each field it's not a net win.
2015-10-28Implement -suUgG and -o majfl,minfl, move uid/ruid/gid/rgid into slots[31-34]Rob Landley
and vmlck into slot[18], pass error message to comma_args(), collate -stuUgG callbacks into parse_rest().
2015-10-28Tweak build instructions in README/code.html.Rob Landley
2015-10-27Use the /proc/self/fd/%d workaround for O_PATH not letting you read xattrs,Rob Landley
inspired by: https://android-review.googlesource.com/#/c/152663/4/libc/bionic/fgetxattr.cpp
2015-10-27Fix ls error message for chmod -r directories.Rob Landley
Also, if you mkdir "$(echo -e "one\ntwo"); chmod -r one*; ls -q one* it honors -q.
2015-10-27Install without a mode should use 0755, and check FLAG_preserve instead ofRob Landley
the global so "install -g 0" doesn't alias to "cp --preserve 0" and error out. through to --preserve 0"
2015-10-27Replace xcount_cpus() with a call to sysconf(_SC_NPROCESSORS_CONF)Rob Landley
2015-10-25Add xcount_cpus()Rob Landley
2015-10-25Add comma_args() and factor out parse_o(), parse_t(), and parse_p() to use it.Rob Landley
Fix FLAG_w.
2015-10-25Factor out parse_o() and make -l -f and default output work on stringsRob Landley
rather than bitfields.