aboutsummaryrefslogtreecommitdiff
path: root/toys/pending
AgeCommit message (Collapse)Author
2018-03-23Inline toys/e2fs.h into mke2fs.c. (Debris from the dawn of time.)Rob Landley
2018-03-18Un-default fmt(1) while it's in pending.Elliott Hughes
2018-03-18The author of that bc.c says it won't be ready for 6 months and I'm notRob Landley
to touch it in the meantime, so no point having it in pending.
2018-03-13Add beep feature to watchMinghui Liu
2018-03-12bc cleanup: a few obvious inlines.Rob Landley
Inline #define bcg TT (from generated/globals.h) Inline BC_FLAG with FLAG_ values from generated/flags.h. Replace BC_MAX() and BC_MIN() with maxof() and minof() from Inline BC_INVALID_IDX (it's used twice and doesn't need a typecast). Inline bc_func_insertParam() and bc_func_insertAuto() (each is used once).
2018-03-12bc cleanup: move for(int i;) declarations to int i; for(i;).Rob Landley
Coding style: declarations go at the start of blocks.
2018-03-11Add bc to pendingGavin Howard
2018-01-31Ahem, I _said_ basic ping support.Rob Landley
2018-01-21gzip cleanup: fix test_gzip, unify do_gzip/do_gunzip, inline gzerror_msg().Rob Landley
2018-01-20Fix gunzip to past test_gunzip.Rob Landley
2018-01-03Cleanup pass on gzip.c.Rob Landley
2018-01-01Promote logger, and fluff up help text a bit.Rob Landley
2018-01-01Cleanup logger.c, and move the facilitynames/prioritynames SYSLOG_NAMESRob Landley
stuff syslog.h does into lib.c and portability.h
2017-12-29Promote iconv.Rob Landley
2017-12-29Cleanup iconv.Rob Landley
Implement -c, fix endless loop when illegal char happens with !outleft (don't need to check errno, just in == toybuf), refill buffer each time (less efficient handling of illegal chars but never have to worry about how long constitutes a valid sequence in unknown encoding). Fix input longer than 2k (memmove() has src/dest switched, second time through loop in starts at offset inleft...) Made it start at beginning every time. Switch iconv_open() error msg to show to/from and errno (rather than hardwired english text).
2017-12-27Promote setfattrRob Landley
2017-12-27Minor cleanup on setfattr.cRob Landley
2017-12-24Add fmt.Elliott Hughes
A very simple implementation of fmt, good enough for my daily use of !!fmt in vi to reflow checkin comments like this.
2017-12-10Cleanup pass on stty: collate do_stty() calls for future inlining,Rob Landley
collapse flag arrays to fewer lines, factor out xtcgetattr(), strip curly brackets around single lines, don't have a separate error message for tcsetattr() return code if more thorough check is on next line, take advantage of O_RDONLY being zero, document -F.
2017-12-05Use NULL rather than 0 in vargs.Elliott Hughes
Top bits count too!
2017-12-03Commands in pending should default n.Rob Landley
2017-12-03Add stty(1).Elliott Hughes
Full POSIX stty with Linux extensions. Output and behavior match coreutils 8.26 as far as I can tell. For some reason busybox 1.22 stty always shows all the special characters, even when they match "sane". I've matched coreutils, since "shows differences from sane" is easy to describe and obviously useful. Flags in the various arrays are not in the order they're introduced in POSIX or in the Linux header file: they're in the order that they're output by coreutils' stty. The -g output matches coreutils and busybox. I implemented iuclc, xcase, and olcuc even though they've been removed from POSIX because the others implement them, and "man stty" defines "raw" and "sane" in terms of them (where POSIX doesn't define "sane" in any useful sense). This builds fine against glibc 2.24, and as far as I can tell all the constants used were in Linux 2.6 so I'm assuming that there shouldn't be any #ifdef nonsense needed for any reasonable vintage of C library.
2017-12-03Gaƫl PORTAY wants mdev to work when Linux has the block layer configured out.Rob Landley
2017-08-23Fix iconv build and add trivial test.Elliott Hughes
2017-08-17lsof cleanup.Rob Landley
2017-07-17Redo ping plumbing. Actual ping part isn't there yet because kernel weirdness.Rob Landley
2017-07-17Split out xgetaddrinfo() from xconnect()Rob Landley
2017-07-09dd cleanup: binary search is overkill, eliminate struct pair,Rob Landley
simplify strstarteq, use local variable "conv" instead of toys.optargs.
2017-07-09Fix -Wformat compiler warning in expr.c.Elliott Hughes
Android forces -Wformat on for all source. toys/pending/expr.c:116:28: warning: field precision should have type 'int', but argument has type 'long' [-Wformat] ret->s = xmprintf("%.*s", m[1].rm_eo-m[1].rm_so, target+m[1].rm_so); ~~^~ ~~~~~~~~~~~~~~~~~~~~~
2017-07-07Make dd use atolx_range(), and teach atolx_range() about "w" suffix (word, *2).Rob Landley
2017-06-09Promote dmesg back to lsb.Rob Landley
2017-06-09Cleanup dmesg (as posted to the list).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-23Add minof/maxof macros that autodetect type. Make xzcat use them.Rob Landley
2017-05-21Promote chrtRob Landley
2017-05-21Cleaup chrtRob Landley
2017-05-19Add bzip2 support to tar.Elliott Hughes
Also trivial cleanup of pipe -> xpipe. Bug: http://b/38215123
2017-05-07Fix error in writing output that was causing zcat to always fail.Mike Moreton
2017-04-30Implement zlib-based gzip/gunzip/zcat.Elliott Hughes
2017-04-11Make fdisk buildable.Elliott Hughes
The argument to help_exit is a char*, not a FILE*.
2017-04-03Implement dmesg -T.Elliott Hughes
Also refactor so that legacy mode gets all the new functionality too, and add -S to make it easier to test legacy mode on 3.5 or newer kernels (at least on the host; on Android the syslog(2) system call is no longer allowed). Bug: http://b/36090178
2017-02-20Declaring todo bankruptcy, dmesg goes back into pending until I get a chanceRob Landley
to unify the two codepaths in Elliott's rewrite.
2017-01-28modprobe: Small cleanup pass, described on the list.Rob Landley
2017-01-28modprobe: use finit_module when possibleSteve Muckle
The finit_module() system call, introduced in Linux 3.8, reads the module from a supplied file descriptor. This allows the kernel to do security checks based on the file's location.
2017-01-28modprobe: add -d option to specify module directory path(s)Steve Muckle
While most systems have their kernel modules, modules.dep etc located at /lib/modules/`uname -r` this is not always the case. The -d option may be used to specify a nonstandard path for these files. It may be used more than once to specify multiple directories where these files may be found.
2017-01-25Promote microcom to net.Rob Landley
2017-01-25Switch escape charcter to ^] (ascii 29, doesn't conflict with emacs or joe).Rob Landley
Recognize full range of linux serial speeds (only error cfsetspeed returns is invalid speed value).
2017-01-17Fix microcom command-line help and -X.Elliott Hughes
2017-01-14Add "microcom" to pending.Elliott Hughes
Our device bringup folks wanted a simple serial console, both on the host and on the device. This is certainly enough to replace what I've been using personally on the host. I'd never heard of "microcom" until I asked the internets what busybox users use, so I don't care what we call this or what the options are called. (But would like to decide before it gets ossified in a million factory test scripts and the like!) The tool that this replaces for me defaulted to /dev/ttyUSB0, but since I don't know whether that default would be useful for most other people too, I left that out. Command-line history will solve my transition problem.