Age | Commit message (Collapse) | Author | |
---|---|---|---|
2018-12-07 | Forgot to check the portability.? changes. (Oops.) | Rob Landley | |
2018-12-04 | macOS: move getmountlist.c functions into portability.c. | Elliott Hughes | |
I think this was the preferred option for this code that turns out to be very different on Linux vs BSD. I don't yet have a BSD implementation, and I'm not likely to have chance to work on one in the near future, so this just #ifdefs it out for macOS right now. With this (and a suitably minimal .config), toybox builds for macOS out of the box. | |||
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: work around header idiosyncracies. | Elliott Hughes | |
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 | 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 | 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-10-28 | Rename interestingtimes.c to tty.c. (It's the "not curses" code.) | Rob Landley | |
2018-10-27 | Dirtree shouldn't put a "No" in front of filename for "permission denied". | Rob Landley | |
2018-10-22 | Don't call TIOCGWINSZ on non-ttys | Nick Kralevich | |
Prior to calling TIOCGWINSZ on stdin/stdout/stderr, check to see if the file descriptor is a tty. Calling TIOCGWINSZ on a non-tty doesn't make any sense. Calling TIOCGWINSZ on a non-tty is mildly problematic for systems like Android where strict ioctl filtering is in place, and generates SELinux audit noise. Strict ioctl filtering for non-filesystem fifo_files (eg pipe() or pipe2() generated pipes) was enabled in Android in commit https://android-review.googlesource.com/c/platform/system/sepolicy/+/792599 | |||
2018-10-21 | Make ./top -d .1234567890m work. | Rob Landley | |
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-20 | The static NDK fix broke the dynamic NDK build. | Rob Landley | |
2018-10-10 | Fix static Android NDK build. | Rob Landley | |
2018-10-10 | Rewrite of watch. | Rob Landley | |
2018-10-10 | Trivial speedup to format_iso_time(), teach parsetime() leading garbage != 0. | 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-10-07 | Fix non-android ps build. | Rob Landley | |
2018-10-07 | libcutils isn't in the NDK. | Elliott Hughes | |
Bug: https://github.com/landley/toybox/issues/43 | |||
2018-10-04 | Make it possible to build the AOSP .config against glibc. | Elliott Hughes | |
It's possible that we should just pull setprop back out of toybox to live with getprop in system/core/, but this lets us build the same toybox configuration for device and host in AOSP. (Longer term we'd like to use host bionic, but if we enable this we can start experimenting on the tobyox side before the bionic side is finished.) | |||
2018-09-16 | Nommu systems want to _exit() after vfork when exec fails, but should do ↵ | Rob Landley | |
cleanup ala fflush(0) after a normal exec() failure. | |||
2018-09-15 | Fix glibc build after 013876f067a11ebfcf47789921b376e7bf3bf5b8. | Elliott Hughes | |
/usr/include/unistd.h:626:15: error: conflicting types for 'confstr' | |||
2018-09-09 | Variable data needs to go at the end. | Rob Landley | |
2018-09-08 | Tweaks to make building with Android NDK's llvm happier. | Rob Landley | |
2018-08-21 | Use \033 instead of \e gcc extension. | Rob Landley | |
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-08-03 | xgetrandom: use getrandom result if it succeeds | Patrick Oppenlander | |
2018-08-02 | Move pending/compress.c to lib/deflate.c, first pass at genericizing it. | Rob Landley | |
2018-07-19 | Tweak/add some comments. | Rob Landley | |
2018-07-13 | Fix typo in a macro name | Konst Mayer | |
2018-07-08 | Fix division by zero errors and double summary in ping. | Rob Landley | |
2018-07-06 | Bionic ships newer libc with older kernels, so Android needs to fallback at | Rob Landley | |
runtime for ENOSYS. | |||
2018-07-04 | Add xgetrandom() with probe for new system call (else open/read /dev/{,u}random) | 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-07-02 | Fix bugs in yesterday's bufgetgrgid() work (reported by Elliott). | Rob Landley | |
2018-06-30 | Loop retrying larger allocation sizes for bufgetpwuid/bufgetgrgid. | Rob Landley | |
Slightly tweaked version of Elliott's patch. We probably only need to do this for groups (struct group * has a list of users that belong to it, but struct passwd doesn't, getgrouplist() is separate) but keeping the code of the two similar in case there's a way to merge them later. | |||
2018-06-14 | Change do_lines() semantics to end with a callback(0,0) to indicate EOF, | Rob Landley | |
adjusting existing users. | |||
2018-05-06 | Support fractional seconds (and other time units) in `top -d`. | Elliott Hughes | |
LTP uses `top -d 0.1`, which isn't convincingly useful, but general support for other time units might be useful, and switching to xparsetime addresses both at once. Also fix 3169d948c049664bcf7216d4c4ae751881099d3e where I mistakenly treated `rev` and `toys.optflags&FLAG_b` as interchangeable. (Without this second fix, `top -b` looks fine but `top` is broken!) Also fix xparsetime to reject input such as "monkey" or "1monkey". | |||
2018-05-03 | Add uuidgen. | Elliott Hughes | |
Reuse create_uuid, but make it match the current RFC. | |||
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-08 | Add readlink -m to show where a missing path would be. | Rob Landley | |
Note: ubuntu will show -m through a file, this treat that as error. | |||
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-22 | atolx should use tolower instead of toupper | Minghui Liu | |