aboutsummaryrefslogtreecommitdiff
path: root/toys/other
AgeCommit message (Collapse)Author
2017-12-02Android has its loop devices under "block" as Elliott says "by reason ofRob Landley
historical accident", so fall back to check there. Also remove an obsolete comment TODO block, check !parent for dirtree top of tree instead of '/' in the filename, and typecast some printf arguments for 32-bit systems.
2017-10-31Only show LABEL= when there is one.Rob Landley
2017-10-10Tweak help_exit() to show "See %s --help" message on the same line.Rob Landley
2017-09-21Add #warning about musl intentionally breaking chrt.Rob Landley
2017-07-17Split out xgetaddrinfo() from xconnect()Rob Landley
2017-05-27Replace two space indents with tab indents in help text (for consistency).Rob Landley
2017-05-27Add separators in help -a with command name.Rob Landley
2017-05-26Be more consistent about periods in help text.Elliott Hughes
2017-05-24Add and use xmmap.Elliott Hughes
Everyone forgets that mmap returns MAP_FAILED rather than NULL on failure. Every use of mmap in toybox was either doing the wrong check, or no check at all (including the two I personally added).
2017-05-21Promote chrtRob Landley
2017-05-14factor shouldn't give incorrect answers for >64-bit integers.Elliott Hughes
2017-04-30Building mkpasswd on Android makes no sense.Elliott Hughes
And won't work anyway because we don't have crypt(3).
2017-03-22Implement uptime -s.Elliott Hughes
Also add trivial tests.
2017-03-20Add TOYBOX_PEDANTIC_ARGS to check arguments when there are no arguments,Rob Landley
and make uptime use it.
2017-02-18Ascii only showed 15 rows instead of 16 and spacing was wrong for 96-100.Rob Landley
2017-02-07Add ascii: display ascii table.Rob Landley
2017-02-04Switch oneit to use xopen_stdio() for -c (oops) and switch XVFORK() to useRob Landley
__attribute__((returns_twice)) instead of noinline. Yes LLVM supports it: https://llvm.org/bugs/show_bug.cgi?id=6287
2017-01-28Add missing `static`s and remove an unused function.Elliott Hughes
2017-01-28Whitespace.Rob Landley
2016-12-30Remove unnecessary casts in stat.c, fix a claimed buffer length.Elliott Hughes
POSIX does have a name for the struct timespec in struct stat.
2016-12-26Move hostid to toys/example and have it "default n".Rob Landley
A "globally unique 32 bit number" is a concept the Linux world has outgrown.
2016-11-21Have dirtree_notdotdot() pass through !node->parent so . and .. on the commandRob Landley
line aren't filtered out. Audited all the callers and removed redundant calls, adjusted call sequence, etc. (And let rm _not_ do this, because posix.)
2016-10-25Add fallocate -o.Elliott Hughes
Also improve error reporting.
2016-10-22Tweak help text.Rob Landley
2016-10-20Close to cutting a release and I don't want to have setfattr in defconfigRob Landley
without getfattr, so I'm putting it back in pending for now.
2016-09-28Make setns depend on TOYBOX_CONTAINER probed value.Rob Landley
2016-09-05Replace loopfiles' failok with WARN_ONLY open flag.Rob Landley
2016-08-20Promote setfattrRob 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-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-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-07-29Izabera reporeted that FLAG_v was never checked in timeout. (Oops.)Rob Landley
2016-07-05Implement xxd -s.Elliott Hughes
2016-07-03Promote netsat, and move ifconfig, netcat, and rfkill to new toys/net directory.Rob Landley
2016-06-15Add readlink0() and readlinkat0() which null terminate the data.Rob Landley
2016-06-12Finish switching to dev_major/dev_minor.Elliott Hughes
7ca5dc4232b9ac5ee5cd25c8b5b33a58904cd251 didn't switch all callers over to the new functions.
2016-05-16Add stat -tL and -c %m%t%T.Rob Landley
Suggested by Sameer Pradhan, or possibly Bilal Qureshi.
2016-04-23Fiz bzcat segfault reported by John Regehr (bad crc didn't set error message).Rob Landley
2016-04-14Andy Chu pointed out an out of bounds access for zero length lines.Rob Landley
While we're at it, use unsigned for the line length.
2016-03-23Minor blkid cleanup. (There was a while(ptr[-1]==' ') ptr--; that could fallRob Landley
off the start of the string. I pulled on the thread...)
2016-03-22blkid: Handle short/empty vfat labels; update testsSamuel Holland
vfat labels have a fixed space allocated for them. In the case of a shorter label, the remaining bytes are padded with spaces. A vfat filesystem with no label (i.e. that will show up in Windows as "Local Disk (X:)" or "Removable Disk (X:)") is stored as "NO NAME ". Both of these changes match behavior from util-linux.
2016-03-15Add base64.test, and Izabera pointed out that -w0 should disable wrapping.Rob Landley
2016-03-13factor: use long long math (64 bit on 32 bit platforms) and handle negativeRob Landley
numbers even though we use unsigned math now.
2016-03-03Fix bzcat integer overflow reported by John Regehr.Rob Landley
2016-03-02Fix base64 so == wraps properly.Rob Landley
2016-03-02For years the man pages have said to #include <sys/types.h> to getRob Landley
major/minor/makedev, but glibc has vowed to break existing programs (https://sourceware.org/ml/libc-alpha/2015-11/msg00253.html) and replace it with _another_ non-standard header (not in posix or lsb), so let's just add functions to lib/ that do the transform ourselves.
2016-03-01SYS_finit_module isn't there on Ubuntu 12.04 because it was only added to theRob Landley
3.8 kernel in 2012. That's way too new to assume the build environment has it, so #ifdef and simulate a failure if it's not there.
2016-02-25Fix more warnings on 32 bit builds.Rob Landley