aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-09-05Replace loopfiles' failok with WARN_ONLY open flag.Rob Landley
2016-09-05Export notstdio() wrapper.Rob Landley
2016-09-05Fluff up cmp tests.Rob Landley
2016-09-04make test_cmp caused the make invocation to exit with an error because theRob Landley
last test exited with nonzero status and the script preserved it. In the current context, that's counterproductive.
2016-09-04Add comment so I don't undo and then redo a thing again.Rob Landley
2016-09-04Remove a chunk of copied header that hasn't been upated in a while.Rob Landley
2016-09-04Add openro() and WARN_ONLY flag so xopen() and friends can warn without exiting.Rob Landley
2016-09-04Switch help.c from #ifdef to if()Rob Landley
2016-09-03Move genericish function to lib.Rob Landley
2016-08-28Add tap support to tunctl.Rob Landley
2016-08-27Make "LC_ALL=C ls -Cs --color" produce the same output on toybox and ubuntu.Rob Landley
(Two spaces padding between columns, and -k is hardwired on.)
2016-08-27Remove some redundancy and unnecessary xprintf().Rob Landley
(We should use xprintf and similar to flush and check if stdout went away once per line. No point flushing partway through a line, so in ls only use it on things outputting a newline char.)
2016-08-27Fix ls -sh.Elliott Hughes
-h should apply to -s too. (Previously it only applied to the "total" line in -s output.)
2016-08-25Add chrt to pending.Elliott Hughes
Requested by a Google team whose product is based on Android.
2016-08-22Add tunctl.Rob Landley
2016-08-21A round of dd cleanup.Rob Landley
2016-08-20Promote setfattrRob Landley
2016-08-20Clean up setfattr.Rob Landley
2016-08-18Change xgetpwnamid/xgetgrnamid to xgetuid/xgetgid returning the id numberRob Landley
instead of a struct. This means it can return "12345" even if that user/group doesn't exist in /etc/passwd and similar. All the users were immediately dereferencing it to get pw_uid or gr_gid anyway, so just return it directly and adjust the users. This fixes things like "chown 12345:23456 filename".
2016-08-16Add length modifier to date escapes, and length sanity check.Rob Landley
2016-08-15Make "stat -c %37G file" and "stat -c %.5G file" work, and fix %U and %G toRob Landley
not segfault on a lookup failure (they print the number instead of UNKNOWN). The whitespace in the default output may need some adjusting.
2016-08-14Explain shared library policy, fix an unblanaced tag, add some links.Rob Landley
2016-08-13Document deviations from posix for echo.Rob Landley
2016-08-13Add TOYFLAG_NOHELP to disable --help processing for individual commands,Rob Landley
apply it to "true" and "false".
2016-08-13Move getusername/getgroupname to lib. (Return name or string representationRob Landley
of number, but never NULL. Both returned in static buffer good through next call.)
2016-08-11Matthias Urhahn pointed out that %b returns hardwired 512 byte unitsRob Landley
(man 2 stat says so) and %B is the units on %b (I.E. always 512), so change output and help text. This matches what other implementations produce.
2016-08-06Inline setup_inout(), test ftruncate() return value, move gettimeofday() beforeRob Landley
seek so seek time is included in total.
2016-08-04Make xopen() skip stdin/stdout/stderr, add xopen_stdio() if you want stdout,Rob Landley
add xopenro() that takes one argument and understands "-" means stdin, and switch over lots of users.
2016-08-02Fix warning: 'XATTR_NAME_SMACK' macro redefined.Elliott Hughes
Recent Linux uapi <linux/xattr.h> headers define XATTR_NAME_SMACK. The <sys/xattr.h> include at the top of lib/lsm.h means that even though the direct include of <linux/xattr.h> is guarded, it may have already happened transitively anyway. (The alternative fixes would be to hard-code the correct value for XATTR_NAME_SMACK here instead, or #undef XATTR_NAME_SMACK.)
2016-08-01Fix touch(1) date parsing on tzcode-derived systems.Elliott Hughes
The IANA tzcode implementation of mktime (used on Android and BSDs) sets errno in some cases where it doesn't return -1 to indicate failure, so the existing test always failed on those systems. I don't think glibc ever sets errno (which is fine by ISO C, but not POSIX). Other uses of mktime in toybox are already fine. This one would have been caught by the existing tests if I was running them on the device :-(
2016-07-30Single builds skip commands with 0 in the install location soRob Landley
"make test_scankey" didn't work.
2016-07-29Izabera reporeted that FLAG_v was never checked in timeout. (Oops.)Rob Landley
2016-07-26Move regexec0 into lib (regexec that takes length and matches after NUL).Rob Landley
2016-07-23Usischev Yury pointed out that id shouldn't use exit() directly.Rob Landley
2016-07-23Usischev Yury pointed out a use after free error.Rob Landley
2016-07-23Many failing tests I need to fix grep to pass while adding --color.Rob Landley
2016-07-21Common test infrastructure says command name, don't have sed.tests say 'sed sed'Rob Landley
2016-07-18Add getfattr(1) and setfattr(1).Elliott Hughes
Plus basic tests.
2016-07-17The recent option parsing changes broke the multiplexer, because the "toybox"Rob Landley
command was trying to parse their options and failing. (Commands that aren't just disabled but have no option string even in the allyesconfig case need an OPTSTR of 0.) This is probably only a partial fix, there's some design work to think through here.
2016-07-16Remove sendevent from the Android roadmap.Elliott Hughes
Also update the list of things Android builds from pending, which has shrunk.
2016-07-15Fix non-library md5sum build. (Oops.)Rob Landley
2016-07-15Add optional openssl accelerated versions of hash functions, loosely based onRob Landley
a patch from Elliott Hughes, who said: [PATCH] Add support for libcrypto for MD5/SHA. Orders of magnitude faster (for architectures where OpenSSL/BoringSSL has optimized assembler). Also adds sha224sum, sha256sum, sha384sum, and sha512sum for folks building with libcrypto. The fallback portable C implementations could easily be refactored to be API-compatible, but I don't know whether they'd stay here or move to lib/ so I've left that part alone for now.
2016-07-15Don't close stdin when loopfiles reads "-".Rob Landley
2016-07-15Somebody asked a FAQ on irc, so answer it.Rob Landley
2016-07-14Add Android's "sendevent".Elliott Hughes
The lack of support for named constants is not a regression relative to the toolbox implementation.
2016-07-14Add -c to md5sum and sha1sum.Rob Landley
2016-07-13Increase ps' default RSS and VSIZE widths.Elliott Hughes
This is enough for everything on Android and everything except Java on my desktop. Even desktop Chrome fits!
2016-07-13Bugfix: suffixless string was feeding terminating NUL to strchr() and matching.Rob Landley
2016-07-12Implement NOP find -noleafRob Landley
2016-07-12Convert atolx() and friends to use long long internally. Update design.htmlRob Landley
to use this (and tail) as examples of simplicity of implementation winning and losing.