Age | Commit message (Collapse) | Author | |
---|---|---|---|
2018-12-02 | Fresh implementation of test.c. | Rob Landley | |
2018-12-01 | Stop testing the shell builtin, test the actual command. | Rob Landley | |
2018-11-30 | macOS: remove unnecessary <stdio.h> workarounds. | Elliott Hughes | |
These were added in macOS 10.7 in 2011-07, so the seven year rule applies... | |||
2018-11-30 | macOS: fix uname. | Elliott Hughes | |
Don't hard-code Linux's buffer size. | |||
2018-11-30 | Tweak comments. | Rob Landley | |
2018-11-30 | macOS: Apple's ancient linker doesn't have --as-needed or --gc-sections. | Elliott Hughes | |
2018-11-30 | macOS: work around header idiosyncracies. | Elliott Hughes | |
2018-11-30 | macOS: move struct sysinfo out of GLOBALS. | Elliott Hughes | |
Even if we don't build ps, we can't have a Linux-only struct in GLOBALS. The obvious alternative to this would be to have a fake struct sysinfo in lib/portability.h. Since having a real macOS replacement for sysinfo(2) seems unlikely at this point, I went this route instead. | |||
2018-11-30 | macOS: fix endian macros for macOS. | Elliott Hughes | |
I've also flipped the `#if` because `#ifdef` feels more naturally readable than #ifndef when there's also a `#else`. (I've preserved the oddness of the clearenv declaration being here, because there isn't currently a more suitable `#ifdef __APPLE__` to move it too. Later...) | |||
2018-11-29 | Marius Adaskevicius pointed out mdev -s should follow symlinks. | Rob Landley | |
2018-11-29 | Remove an extra #include <string.h> | Rob Landley | |
2018-11-29 | macOS: remove glibc 2.10 workarounds. | Elliott Hughes | |
The only part of this I actually need for macOS is to remove __APPLE__ from the getdelim/getline workaround, but if we're following the usual "seven year rule", glibc 2.10 is dead to us anyway, and we should just remove all of this. | |||
2018-11-28 | mktemp: add -t and fix behavior. | Elliott Hughes | |
The new tests pass on the host (coreutils 8.28) and with toybox after this patch is applied. | |||
2018-11-28 | macOS: there's no <features.h> on the Mac. | Elliott Hughes | |
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-11-28 | macOS: use -E rather than -r for sed extended regular expressions. | Elliott Hughes | |
GNU sed supports -E, -r, and --regexp-extended. BSD sed only supports -r. | |||
2018-11-28 | head: add --bytes synonym for -c. | Elliott Hughes | |
Used by OTA package scripts in AOSP, and quite widely inside Google. I've also added --lines because it seems crazy to support one and not the other, and --lines is also widly used inside Google too. | |||
2018-11-26 | file: small do_regular_file optimization | Reverend Homer | |
There are a bunch of if (!memcmp(s+28,...)) lines, let's make them "else if" | |||
2018-11-20 | Skip tests that don't have the executable bit set unless $TEST_ALL set. | Rob Landley | |
2018-11-20 | Chmod +x tests that pass with VERBOSE=fail and -x on tests needing work. | Rob Landley | |
2018-11-20 | Fix up some tests for running as a normal user. | Rob Landley | |
2018-11-20 | Eduardas Meile asked umount to ignore -c due to broken init systems. | Rob Landley | |
2018-11-19 | A few more GLOBALS() single character argument style conversions. | Rob Landley | |
2018-11-19 | Eduardas Meile reported "The -Werror=format-security flag is applied by | Rob Landley | |
default in Yocto 2.6 Thud release" and identified several error_exit() and friends that should use the _raw versions. | |||
2018-11-17 | Convert more GLOBALS argument vars to the new single letter code style. | Rob Landley | |
2018-11-17 | hostname: add -s/-f and -d. | Elliott Hughes | |
At least the AOSP build doesn't try to _set_ the hostname... | |||
2018-11-17 | cmp: add --quiet and --silent synonyms for -s. | Elliott Hughes | |
I actually only need --quiet to build AOSP, but it seems weird to add --quiet as a synonym for -s but _not_ add the more obviously related --silent. | |||
2018-11-17 | dirname: support multiple arguments. | Elliott Hughes | |
2018-11-17 | Volodymyr Medvid reported that install -d doesn't honor -o or -g. | Rob Landley | |
2018-11-17 | Cosmetic leanup (hide stderr prompts). | Rob Landley | |
2018-11-17 | Remove the "const" and "restrict" nonsense so it compiles without tainting lib.c | Rob Landley | |
2018-11-17 | Update bc for 1.1 release | Gavin Howard | |
2018-11-13 | Instead of #warning about the musl bug, work around it (wrap syscalls ourselves) | Rob Landley | |
2018-11-13 | basename: -s SUFFIX. | Elliott Hughes | |
AOSP doesn't need -a specifically, but since it's needed for -s we may as well accept it too. | |||
2018-11-13 | touch: ignore -f like everyone else. | Elliott Hughes | |
I assume it's actually meaningful on BSD/macOS and makes them behave like us, but I don't have access to a Mac to test that theory. | |||
2018-11-13 | mkdir: accept both --parent and --parents as synonyms for -p. | Elliott Hughes | |
Both occur in AOSP. (Until I looked, I had no idea there were _two_ long versions of -p...) | |||
2018-11-02 | Convert more option vars to the new (single letter) coding style. | Rob Landley | |
2018-11-02 | Trivial cleanup of uniq.c. | Rob Landley | |
2018-11-01 | Discard harmless error messages. | Rob Landley | |
genbuild() is a bunch of echo statements, and with enough parallelism piping its output to "head" can close the pipe before all the echo statements have run, then they complain about writing to a closed pipe. (We're intentionally discarding the output, it's not an error, so...) | |||
2018-11-01 | Update news.html for 0.7.8 release. | Rob Landley | |
2018-10-31 | Update version to 0.7.8.0.7.8 | Rob Landley | |
2018-10-30 | Promote watch to other. | Rob Landley | |
2018-10-30 | Use % for -n and shut up gcc's broken "may be used uninitialized" warnings. | Rob Landley | |
(Alas, llvm doesn't understand -Wno-maybe-uninitialized yet.) | |||
2018-10-30 | Update roadmap for AOSP. | Elliott Hughes | |
We've removed the need for perl and runalarm, rsync was misleading (as you'd hope!), and we now use a prebuilt of the xmllint in AOSP itself. | |||
2018-10-30 | getconf: add -a, fix the LFS_ output, and blame bionic rather than musl for ↵ | Elliott Hughes | |
UIO_MAXIOV/_SC_UIO_MAXIOV. | |||
2018-10-28 | Rename interestingtimes.c to tty.c. (It's the "not curses" code.) | Rob Landley | |
2018-10-27 | Don't unnecessarily recalculate library list. | Rob Landley | |
2018-10-27 | Zach Van Rijn asked for "find -empty". | Rob Landley | |
2018-10-27 | Dirtree shouldn't put a "No" in front of filename for "permission denied". | Rob Landley | |