aboutsummaryrefslogtreecommitdiff
path: root/toys/pending
AgeCommit message (Collapse)Author
2015-10-06Decode netlink sockets in lsof.Elliott Hughes
Refactor the /proc/net parsing so this only adds 7 lines overall. Also clear the DEVICE field for sockets and fix alignment for long usernames (until someone implements the two-pass output that measures columns).
2015-10-04Minor cleanup and add "MODALIAS" handler (suggested by Isaac Dunham).Rob Landley
2015-10-03Back to chipping away at ps...Rob Landley
2015-09-29xvfork went away.Rob Landley
2015-09-29Make defconfig build for nommu.Rob Landley
Adds XVFORK() macro, teaches xpopen_both() to call /proc/self/exe with NULL argv (and converts cpio -p to use that), adds TOYBOX_FORK guards to some unconverted commands.
2015-09-23Add xvfork() as a static inline and use it from various places.Rob Landley
Note: vfork(), like fork(), can return -1 if too many processes, and we should notice and fail loudly.
2015-09-11Replace toys.exithelp with help_exit() in lib.Rob Landley
2015-09-08Squish more warnings in pending.Rob Landley
2015-09-08Fix netstat -e.Elliott Hughes
The -e flag should add "user" and "inode" columns to the TCP output. Also truncate IP addresses in non-wide (no -W) mode. This also removes a bit more of the duplication, though there's still plenty left in this file!
2015-09-08i already did -l and -t, the positive side of -p, plus name filtering...Elliott Hughes
2015-09-08Fix netstat -p.Elliott Hughes
netstat -p was failing for any cmdline longer than 21 characters. (A typical Chrome render process has about half a kilobyte of cmdline.) There's still a lot of cleanup to be done later, but this is enough to fix -p and remove a fair amount of unnecessary custom code into the bargain.
2015-09-08increase the size of progname to avoid buffer overflowLipi Lee
2015-09-07Remove prompt argument from yesno(), caller can fprintf(stderr, "blah") itself.Rob Landley
This fixes the build break, the change to yesno() prototype accidentally got checked in last commit. (Oops, sorry.)
2015-09-03Implement lsof.Elliott Hughes
This is a superset of the current AOSP lsof (which is itself a superset of the lsof in Android M). It fixes several bugs/misfeatures and adds support for decoding IPv4/IPv6 tcp/udp/raw sockets and Unix domain sockets.
2015-08-20I discovered that the reason SIGINT causes a reboot on sysvinit is thatIsaac Dunham
it's how the kernel signals that ctrl-alt-delete has been pressed; thus, setting it as the signal for reboot prevents ctrlaltdel scripts from working. SIGTERM is what Busybox uses, so we might as well be compatible.
2015-08-08Different tools have different ideas about what human-readable outputElliott Hughes
looks like. dd uses "7 MB" where du uses "7M", for example. this patch adds flags, similar to the BSD humanize_number. most callers will pass 0.
2015-08-08Isaac Dunham pointed out that SIGINT's handler was set twice in init.c.Rob Landley
2015-08-08modprobe: use -q to silenceIsaac Dunham
2015-08-08modprobe: use basename_r()Isaac Dunham
2015-08-08modprobe: delete perror_exit() that makes no senseIsaac Dunham
Given modprobe -a, it's important to not exit early for a failure to load a module; additionally, the rest of the code presumes that this can fail without exiting.
2015-08-05reboot: signal init, add -f option to call reboot();Isaac Dunham
init: use SIGINT, use xsignal() Now that oneit supports the same signals as our "sysv"-init for shutdown, make reboot et al. signal pid 1 with the appropriate signal. Of these signals, only SIGINT works with sysvinit 2.88, causing a reboot. The others are only supported in Busybox init. Also, make init accept SIGINT and use xsignal().
2015-08-05Tweak xconnect: socket can be a string (ala "ftp") from /etc/services.Rob Landley
Still need a rethink on how to handle socket/bind/connect sequence.
2015-08-03Factor out xconnect(), plus some other small cleanups to telnet.c.Rob Landley
2015-08-01'!' replaces '/' in the sysfs paths of older drivers, so properlyIsaac Dunham
reverse that to get correct paths. While we're here, reduce the duplication of initialization. While this is enough for some drivers, it won't get 'input/' stuff in the right folder.
2015-07-24Promote fsync.Rob Landley
2015-07-24Promote hostid.Rob Landley
2015-07-24Attached are new toys.Sameer Pradhan
tftp - Client for tftp daemon. hostid -Print the numeric identifier for the current host. fsync -Synchronize a file's in-core state with storage device.
2015-07-20Fix llvm build break.0.6.0Rob Landley
2015-07-10I added dhcpd -6 option.Yeongdeok Suh
It's for supporting ipv6, and I referred to RFC 3315 Specification http://www.rfc-base.org/txt/rfc-3315.txt There are some different kind of requests in dhcpd6, but I inplemented only a basic protocol. (Solicit - Advertise - Request - Reply) There's a sample packet as below. toybox dhcpd works in the same way. http://packetlife.net/captures/DHCPv6.cap
2015-07-10Rename a function to be more obvious, and factor out a repeated calculationRob Landley
the compiler was almost certainly retaining in a register anyway.
2015-07-10Promote hwclock.Rob Landley
2015-07-10Fix hwclock -w.Elliott Hughes
The gmtime_r/localtime_r error check was backwards, and the wrong argument was being passed to the RTC_SET_TIME ioctl. Also, the error reporting was misleading (showing errno for functions that don't set errno) and too vague for the user to tell what failed.
2015-07-03Promote xxd to other.Rob Landley
2015-07-03Added i option to use other interface on running dhcpd.Hyejin Kim
2015-07-02Cleanup xxd.Rob Landley
2015-07-02Minor cleanups on xxd.Rob Landley
2015-07-02The android guys sent in xxd. It doesn't share code with od and hexdump. Hmmm...Rob Landley
2015-07-01Fix top.c build.Elliott Hughes
Broken by recent lib.h additions.
2015-05-31Move the magic list of commands needing cleanup from toys/pending/READMERob Landley
to greppable TODO annotations in the individual files. (grep -riw TODO)
2015-05-31On testing fold command, I found w option didnt check the range of value.Hyejin Kim
2015-05-14Promote reset (actually write a new one using the simple man 4 console_codesRob Landley
terminal reset escape sequence) and add gettty() function to lib so terminal gets reset even when we redirect stdout/stderr. (This is apparently the expected behavior.)
2015-05-10Git hates me.Rob Landley
2015-05-09Add DIRTREE_SHUTUP to disable dirtree warnings if file vanishes out fromRob Landley
under traversal. Pass through full flag set in dirtree_add_node(), add dirtree_start() wrapper to provide symlink-only behavior (avoiding a lot of DIRTREE_SYMFOLLOW*!!(logic) repeated in callers).
2015-05-06Fix more with missing files.Elliott Hughes
Previously we'd go into an infinite loop because we weren't incrementing optargs. Also add a missing flush so an error on stderr won't overtake the escape code that resets reverse video. Disclaimer: the new behavior isn't exactly like the desktop version; surprisingly they try to open the next file _before_ they prompt. That feels weird to me as a user, and seems like it would lead to a more awkward implementation, but if you're more concerned about authenticity...
2015-05-03dhcpd writes leases on "dhcpd.leases" file.Hyejin Kim
but, dumpleases read from "udhcpd.leases".
2015-04-27Promote hexedit to other.Rob Landley
2015-04-27Some infrastructure hexedit needs. (Poor man's curses.)Rob Landley
2015-04-27Teach hexedit to actually edit. Add -r option for read only mode.Rob Landley
2015-04-25Fix display and cursor control (to respect bottom boundary).Rob Landley
No actual editing yet.
2015-04-24Too tired on the flight back from Japan to work on thinky stuff, so...Rob Landley