Age | Commit message (Collapse) | Author | |
---|---|---|---|
2019-03-10 | Make multiple sendfile variants, and teach xpopen_both() to use existing | Rob Landley | |
stdin/stdout filehandles. | |||
2019-03-09 | Half-finished su change checked in, sorry. | Rob Landley | |
2019-03-07 | Add reset_env() and make su and login use it. Do long-delayed login cleanup. | Rob Landley | |
2019-02-23 | Bumper typo cleanup. | Elliott Hughes | |
Inspired by some of the small patches that have gone by recently. Limited to only things found in `generated/help.h`, plus a wider cleanup for the more common "milisecond" typo. | |||
2019-02-13 | Move nanomove(), nanodiff(), union socksaddr, and xrecvwait() to lib. | Rob Landley | |
2019-01-22 | Fix sigjmp_buf/jmp_buf mismatches. | Elliott Hughes | |
Broke the bionic build: external/toybox/toys/net/netcat.c:188:37: error: incompatible pointer types assigning to 'sigjmp_buf *' (aka 'long (*)[33]') from 'jmp_buf *' (aka 'long (*)[32]') [-Werror,-Wincompatible-pointer-types] if (toys.optflags&FLAG_L) NOEXIT(child = XVFORK()); ^~~~~~~~~~~~~~~~~~~~~~~~ external/toybox/lib/lib.h:375:19: note: expanded from macro 'NOEXIT' #define NOEXIT(x) WOULD_EXIT(_noexit_res, x) ^~~~~~~~~~~~~~~~~~~~~~~~~~ external/toybox/lib/lib.h:367:16: note: expanded from macro 'WOULD_EXIT' toys.rebound = &_noexit; \ ^ ~~~~~~~~ 1 error generated. | |||
2019-01-16 | Move xsendto() to lib/net.c. | Rob Landley | |
2019-01-12 | sed: add -z. | Elliott Hughes | |
Used to construct SELinux policies in the AOSP build. I left loopfiles_lines with its hard-coded '\n' because although cut(1) also has a -z option, I can't find any case where it's used in any of the codebases searchable by me. (And fmt(1), the other user, doesn't even have the option.) YAGNI. Bug: http://b/122744241 | |||
2019-01-12 | Merge xconnect/xbind. | Rob Landley | |
2018-12-27 | Make poke() alignment-agnostic. | Rob Landley | |
2018-12-23 | Add grep --color | Rob Landley | |
2018-12-14 | Add xrename() | Rob Landley | |
2018-12-10 | nc: add IPv6 support. | Josh Gao | |
2018-11-28 | macOS: replace local strnstr with strcasestr. | Elliott Hughes | |
bionic, glibc, macOS, and musl all have strcasestr (see http://man7.org/linux/man-pages/man3/strstr.3.html). macOS (via BSD) has a strnstr that does what strnstr sounds like it should do by analogy with strnlen and strncpy. So we at least need to rename strnstr, but it probably makes more sense just to switch to strcasestr instead. | |||
2018-11-28 | macOS: noreturn. | Elliott Hughes | |
The macOS libc headers use `__attribute__((noreturn))` rather than `__attribute__((__noreturn__))`, so toybox's `noreturn` macro trips them up. Since we already have a variety of uses of `__attribute__` that aren't guarded in this way, let's do the same here. | |||
2018-10-21 | Add % to lib/args.c (long time in milliseconds), add xmillitime(), redo | Rob Landley | |
xparsetime() not to need floating point, adjust callers. | |||
2018-10-21 | Move start_redraw() to lib/ and have ps.c (top) use it. | Rob Landley | |
2018-10-10 | Add xsignal_flags() and more consistently use xsignal() instead of signal(). | Rob Landley | |
xsignal() wraps sigaction() giving control of SA_RESTART behavior and such. | |||
2018-08-17 | Make microcom use set_terminal() and move speed setting into set_terminal(). | Rob Landley | |
2018-08-07 | Forgot to check in the deflate header change, and pending shouldn't default y. | Rob Landley | |
2018-07-04 | diff: add timestamps to the ---/+++ lines and --color. | Elliott Hughes | |
(My apologies for mixing these two unrelated changes up.) | |||
2018-04-08 | Add cp --parents | Rob Landley | |
2018-04-08 | Add mkpath() for common case of mkpathat(), and #define magic constants. | Rob Landley | |
2018-04-03 | Factor out xtempfile() | Rob Landley | |
2018-03-31 | Remove semicolon from WOULD_EXIT() macro (screws up if statement levels). | Rob Landley | |
2018-03-10 | Split "comma separated values" parsing from mntent.h plumbing. | Rob Landley | |
2018-03-10 | Add a way for commands to distinguish "ps -ax" from "ps ax". | Rob Landley | |
2018-01-30 | Basic ping support. | Rob Landley | |
Requires echo 0 $((1<<30)) > /proc/sys/net/ipv4/ping_group_range (as root) | |||
2018-01-14 | Switch xgettty() -> tty_fd() (returning -1 instead of erroring out if none). | Rob Landley | |
2018-01-06 | Move millitime() into lib.c. | Rob Landley | |
2017-10-10 | Complete rewrite of cut. Handle multipe ranges, add -DFO options, start | Rob Landley | |
of utf8 support (not finished yet)... Adds new loopfiles_lines() wrapper to lib.c that calls do_lines from loopfiles. | |||
2017-10-01 | Fix xargs to obey POSIX's ARG_MAX restrictions. | Elliott Hughes | |
This avoids "xargs: exec echo: Argument list too long" errors in practice. find(1) needs to be fixed too, but that's a bit more complicated and a working xargs provides a workaround. Bug: http://b/65818597 Test: find /proc | strace -f -e execve ./toybox xargs echo > /dev/null | |||
2017-09-09 | Last commit used xstrtod(), forgot to check it in. | Rob Landley | |
2017-09-02 | utf8towc() has to be in lib.c if strlower() is going to use it, because | Rob Landley | |
scripts/*.c builds against lib.c but not linestack.c. | |||
2017-09-02 | In wc, replace mbrtowc() with new utf8towc() which doesn't have a context struct | Rob Landley | |
or care about locale. | |||
2017-07-17 | Split out xgetaddrinfo() from xconnect() | Rob Landley | |
2017-05-24 | Add 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-23 | Add minof/maxof macros that autodetect type. Make xzcat use them. | Rob Landley | |
2017-05-21 | Cleaup chrt | Rob Landley | |
2017-05-08 | Move strend() to lib/lib.c | Rob Landley | |
2017-02-04 | Posix says stdio.h should define 'stdout' as a macro, and bionic turns it into | Rob Landley | |
an array index, which doesn't work as a local variable name. So rename it. | |||
2017-02-04 | Switch oneit to use xopen_stdio() for -c (oops) and switch XVFORK() to use | Rob Landley | |
__attribute__((returns_twice)) instead of noinline. Yes LLVM supports it: https://llvm.org/bugs/show_bug.cgi?id=6287 | |||
2017-01-04 | Some lib fixes: mark xvfork() noinline, make xsendfile() return bytes copied, | Rob Landley | |
make xsocket()'s returned fd CLOEXEC. | |||
2016-12-08 | Add DIRTREE_PROC to skip non-numeric entries and make ps/top etc use it. | Rob Landley | |
2016-11-21 | Have dirtree_notdotdot() pass through !node->parent so . and .. on the command | Rob 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-11 | Make netcat work with nommu and factor out poll() loop into net/net.c. | Rob Landley | |
2016-09-05 | Replace loopfiles' failok with WARN_ONLY open flag. | Rob Landley | |
2016-09-05 | Export notstdio() wrapper. | Rob Landley | |
2016-09-04 | Add openro() and WARN_ONLY flag so xopen() and friends can warn without exiting. | Rob Landley | |
2016-09-03 | Move genericish function to lib. | Rob Landley | |