Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

Toybox

Toybox provides common Linux command line utilities together in a single BSD-licensed executable that's simple, small, fast, and reasonably standards-compliant.
Collective - Host: opensource - https://opencollective.com/toybox - Website: https://landley.net/toybox/about.html - Code: https://github.com/landley/toybox

Make lib/args.c handle ":;", ": ", and ":; " in combination, and use

":; " in unshare.

github.com/landley/toybox - 92a7778fcf1e8196304bb138b6da6e1b599e1d8a authored over 2 years ago by Rob Landley <[email protected]>
Yes, dreamhost took the mailing list down again. Not just the archive,

whole list this time.

github.com/landley/toybox - 52e3bf19712bc7d8b242a58a4410091722fb3b69 authored over 2 years ago by Rob Landley <[email protected]>
Second attempt to show the diff after the FAIL line instead of before.

github.com/landley/toybox - 5bbef42111b4577d857d556dc00700211f5cc65a authored over 2 years ago by Rob Landley <[email protected]>
timeout.test: fix test for systems that don't have bash.

(Such as Android.)

github.com/landley/toybox - a41bbf8eec0c09470c2d5aa78f451d02b8ea99c3 authored over 2 years ago by Elliott Hughes <[email protected]>
Fix race condition with SIGCHLD being delivered before timeout was ready.

github.com/landley/toybox - ee00e1be0f5bdf1881af91c22d8258bb7046bf96 authored over 2 years ago by Rob Landley <[email protected]>
timeout: silence -Werror=unused-result.

I think this was probably meant to be xpipe() anyway, since nothing
good can come of pipe() fail...

github.com/landley/toybox - ff581f2edfb6ddab0cc42a270a262e07e2143bea authored over 2 years ago by Elliott Hughes <[email protected]>
Another thinko.

github.com/landley/toybox - 3e324025896e8152e23d4f8cdc9dfbf0058c7012 authored over 2 years ago by Rob Landley <[email protected]>
Thinko.

github.com/landley/toybox - 04818be7e023cd7af9894b43e97b473c35d7050f authored over 2 years ago by Rob Landley <[email protected]>
Add skeleton.tests for lib/args.c test coverage.

github.com/landley/toybox - 28603b02b784a0c16840ad9fe0e3752d0eeb6f36 authored over 2 years ago by Rob Landley <[email protected]>
Move example commands from "make list" to "make list_example".

github.com/landley/toybox - 2bf62c7c08ca9f2ccb873207ee98af825b814812 authored over 2 years ago by Rob Landley <[email protected]>
Fix off by one error and add test case.

github.com/landley/toybox - 297a9b4b79e76751cf4a1cfc3c333995073b37a8 authored over 2 years ago by Rob Landley <[email protected]>
Mollify -Werror=format-security-theater which is unhappy with:

char *reset = 0;

if (stuff) reset = "\e[0m";
if (reset) printf(reset);

github.com/landley/toybox - 13aada4b24b45ffdbde80b7cabcfc36e7915d967 authored over 2 years ago by Rob Landley <[email protected]>
tar: implement --null.

No --no-null because it requires new infrastructure, and doesn't (yet)
have a user.

github.com/landley/toybox - 75628938a801c51cc40a49f8bc593c8e8bc22f1f authored over 2 years ago by Elliott Hughes <[email protected]>
Don't close stdin/stdout when passing them through.

github.com/landley/toybox - dc8b46d5ddab048e403637513843d563f21f962f authored over 2 years ago by Rob Landley <[email protected]>
Add -a and -C, use FLAG() macros, inline a function with one caller.

github.com/landley/toybox - d0c52934a39a5795af12bbf904a093306e38981e authored over 2 years ago by Rob Landley <[email protected]>
Fix comment: short options can have optional arguments.

github.com/landley/toybox - df627c90b4d657b5fc929f4bc87fb884bb7d8d1a authored over 2 years ago by Rob Landley <[email protected]>
Normalize one more filename, move a variable assignment.

github.com/landley/toybox - 10f0b1a37856288df8a64021b57b93adc3498522 authored over 2 years ago by Rob Landley <[email protected]>
Update makefile target/wrapper for new name.

github.com/landley/toybox - 924b062c0da9e68c913705f0d26ea88a63bdac1a authored over 2 years ago by Rob Landley <[email protected]>
Rename $MYBUILD to $TEMP (it's not exported so shouldn't conflict).

github.com/landley/toybox - d6488676ceeeac92a168113be0ba08cd1a9aa63c authored over 2 years ago by Rob Landley <[email protected]>
Make dropbear play nice with any other packages adding to qemu command line.

github.com/landley/toybox - a1579483d7f2bea2f75edf1ac018fcd2ab29eadb authored over 2 years ago by Rob Landley <[email protected]>
Minor mkroot tweaks.

github.com/landley/toybox - 7eb1eed041173c1e7044327c371e6a9c25da3df7 authored over 2 years ago by Rob Landley <[email protected]>
Tweaks to mkroot.

Fix non-absolute $CROSS_COMPILE processing.

Consistently name output files. (Don't put target n...

github.com/landley/toybox - ce9d30ea792034b2314f0f9f08cee35b249cc5de authored over 2 years ago by Rob Landley <[email protected]>
Add timeout -i and update tests.

github.com/landley/toybox - 6b03865e9e7c8edbc0fd54a809410fb71b741de2 authored over 2 years ago by Rob Landley <[email protected]>
Update linux kernel workaround so build doesn't require a third ELF package.

See http://lkml.iu.edu/hypermail/linux/kernel/2110.3/00278.html

Linux kernel commit 03f16cd020eb...

github.com/landley/toybox - c0136c08f7d2807e88d4ff0026a9153d3af67d2a authored over 2 years ago by Rob Landley <[email protected]>
Use do_pass and do_fail consistently.

github.com/landley/toybox - 25da95b17a1a1f53b338d6c29dbe34a4b9c7669d authored over 2 years ago by Rob Landley <[email protected]>
Fix "VERBOSE=all make tests" failure reporting.

Moving the tests into a subshell (commit e00b4c26553b) broke it and
commit de474ba03950 wasn't a...

github.com/landley/toybox - 07bbc1f6128060c0305b7b6e49309fc0691c9490 authored over 2 years ago by Rob Landley <[email protected]>
More diff cleanup.

github.com/landley/toybox - f278b85bf5344f5a1e5f484b30795a04eb0e466d authored over 2 years ago by Rob Landley <[email protected]>
Don't typecast something to what it already is.

github.com/landley/toybox - a5b00b49ec00ae601379a28df733f6de84ff0e9f authored over 2 years ago by Rob Landley <[email protected]>
Prevent configure from appending to $CFLAGS twice when it gets read twice.

github.com/landley/toybox - 0bc343f07f14e5995b0d8d92f57141993e2003d4 authored over 2 years ago by Rob Landley <[email protected]>
More diff cleanup.

github.com/landley/toybox - de55da68f2ab36ca220de4cb1ef93faeebc56e0e authored over 2 years ago by Rob Landley <[email protected]>
Minor cleanup.

github.com/landley/toybox - 2609bb80bc40d448d9c744085c136b1884e7dcfb authored over 2 years ago by Rob Landley <[email protected]>
Make diff tests pass with TEST_HOST.

github.com/landley/toybox - c9b95f4b5e22457d978e855025b4d3807ca4f854 authored over 2 years ago by Rob Landley <[email protected]>
Add same_file() and same_def_ino() convenience functions, plus minor cleanups.

github.com/landley/toybox - f51b02947baeb149d12a60befc9988634485af13 authored over 2 years ago by Rob Landley <[email protected]>
Block signals in exit_signal() so sigatexit() list isn't re-entered.

xexit() uses siglongjmp() when not exiting, so should clean itself up.

github.com/landley/toybox - c7342f8b72f8bc2391c660000d4080eb745c6205 authored over 2 years ago by Rob Landley <[email protected]>
Cleanup pass on diff.

github.com/landley/toybox - 9cb611555bcd493e3cf70f47e61c905ac43e0db4 authored over 2 years ago by Rob Landley <[email protected]>
Remove unnecessary dd_sigint.

sigatexit() does xsignal_all_killers(exit_signal) which is the same as
dd_sigint.

github.com/landley/toybox - da2ad20a7612f0e5ae082cd9b40a9471a14bfaf8 authored over 2 years ago by Rob Landley <[email protected]>
Use millitime() instead of deprecated gettimeofday().

Also eliminates unnecessary use of floating point. Yes I could have switched
to clock_gettime() ...

github.com/landley/toybox - 86fc7c94f16eb73597af9c719341b22b66d6dedb authored over 2 years ago by Rob Landley <[email protected]>
Cleanup: remove unnecessary global and mid-block variable declaration.

github.com/landley/toybox - 4bb0df352571cf8c76f609a8185eeecafcf56a7f authored over 2 years ago by Rob Landley <[email protected]>
Next round of dd cleanup (mostly hammering on help text).

github.com/landley/toybox - 2e8be0d4e340b414e6fd3995ec99ec50e69cd373 authored over 2 years ago by Rob Landley <[email protected]>
Fix truncate.test for macOS.

Specifically we were ending up with 2048 blocks allocated, and that --
not the stat(1) behavior ...

github.com/landley/toybox - bb0b256764bf8ec196aa18adce8cd1f578c090e8 authored over 2 years ago by Elliott Hughes <[email protected]>
file: basic linux kernel image support.

github.com/landley/toybox - fa64da59cdeb3b5ef89ed0162fb82977e6cf9943 authored over 2 years ago by Elliott Hughes <[email protected]>
More math tests.

github.com/landley/toybox - abb6958d4f347a0c4efda5a8ded4e9d512b46582 authored over 2 years ago by Rob Landley <[email protected]>
Make cmp's TEST_HOST pass on current debin, adjusting command behavior to match.

github.com/landley/toybox - 85c95036256427f5cab8ab50654fe81a5449d09a authored over 2 years ago by Rob Landley <[email protected]>
Implement for ((;;))

github.com/landley/toybox - 6935563f310b40dc8e06fbf0c266823956199ab8 authored over 2 years ago by Rob Landley <[email protected]>
Enlarge macos_defconfig.

Add everything that uses xgetrandom(), and also everything that has
tests (but isn't still in pe...

github.com/landley/toybox - 1d657cff596217b50eac6f5394678997e5d2cfa3 authored over 2 years ago by Elliott Hughes <[email protected]>
xgetrandom: fix macOS build.

BSD has <sys/random.h> first, but has getentropy() in there. glibc
has getentropy() in addition ...

github.com/landley/toybox - 15d1af8951f68b342a5d093af1a09e65b7d4fd34 authored over 2 years ago by Elliott Hughes <[email protected]>
Switch getrandom() from compile time probe to __has_include()

github.com/landley/toybox - 587ed3db6b4a46090fd09de07fddb8700494a6ce authored over 2 years ago by Rob Landley <[email protected]>
Switch shadow.h and utmpx.h from compile time probes to __has_include().

This does mean "make defconfig" can't automatically drop them out, but
the platforms that don't ...

github.com/landley/toybox - 6cf4d6d4d189587ed2594fbd39dfdb8daaaa4ad9 authored over 2 years ago by Rob Landley <[email protected]>
Make xxd pass TEST_HOST, and fix rounding error in xxd spacing that diverged.

github.com/landley/toybox - 9bfabc294132adbb34bb0c4776fd1f606ab501fa authored over 2 years ago by Rob Landley <[email protected]>
HASTIMERS is a bug workaround for glibc, just test for glibc instead of probing.

github.com/landley/toybox - 2d58f28e9094f80e430457a6cf8999538f801367 authored over 2 years ago by Rob Landley <[email protected]>
The musl prlimit() syscall wrapper was added in 2012, > 7 years.

github.com/landley/toybox - a959bf863d4862d242d2b768fec518729444735e authored over 2 years ago by Rob Landley <[email protected]>
The container support we're using went into the kernel in 2010, we're past

the 7 year support horizon. Remove probe.

github.com/landley/toybox - 8be669332bae1554f45a69e4b8ea1a3c94a7e43b authored over 2 years ago by Rob Landley <[email protected]>
Remove old uClibc test missed by commit 71921dc74d05.

github.com/landley/toybox - 6a098ec9bdd075b29a412024648ea01ab0836a5f authored over 2 years ago by Rob Landley <[email protected]>
Fill out remaining toysh math operators.

github.com/landley/toybox - 55fc4222a42278ce6bf5af2b6f34c69de5634e54 authored over 2 years ago by Rob Landley <[email protected]>
Regex comparison can't be quoted or it won't be used as regex.

github.com/landley/toybox - 17b4176e2e589d7563fca85d9f3b403ee4b4ef1f authored over 2 years ago by Rob Landley <[email protected]>
Remove FIFREEZE probe.

This has been around since 2008, so there doesn't seem much value to a
build-time probe in 2022.

github.com/landley/toybox - eff805afa6d8262056e981b25376d13ce23fe5ea authored over 2 years ago by Elliott Hughes <[email protected]>
Remove unused TOYBOX_ANDROID_SCHEDPOLICY probe.

I removed the only caller in b33d37d6f735 but didn't remove the probe.

github.com/landley/toybox - d9ed648fcf4f6e7ece133c3887d59d16f6e33c8f authored over 2 years ago by Elliott Hughes <[email protected]>
Avoid copy_file_range(2) on Android.

Strictly we could use it if the target API level is high enough,
but that would mean that you co...

github.com/landley/toybox - f564bb3cca39370d2b0ee850ddf913ffc4b1b446 authored over 2 years ago by Elliott Hughes <[email protected]>
Implement ((math)), add inequalities to recalculate, start [[ ]] parsing,

fix <<< handling straddle (half worked like HERE, half like normal redirect),
handle pipeline seg...

github.com/landley/toybox - 98cb9a9a8d9a9b48483fb5cb9bfe56a6d45945c7 authored over 2 years ago by Rob Landley <[email protected]>
Start of help text, several TODOs, fix a memory leak,

and run_command() can't return NULL.

github.com/landley/toybox - 04bde39ba84516dac3a3484b61a76836e6d6cdd5 authored over 2 years ago by Rob Landley <[email protected]>
Minor tweaks.

github.com/landley/toybox - ddfe55f8cd847c7c25e4d47f2b62fc5bdc6fa9b6 authored over 2 years ago by Rob Landley <[email protected]>
Turn the "run make oldconfig" message into a warning instead of an error.

(It's interfering with the Android build's header snapshot thing.
When we rewrite kconfig from s...

github.com/landley/toybox - 3b90857a43430eec7ab3d7c393156d949708fb79 authored over 2 years ago by Rob Landley <[email protected]>
Make test understand [[ < > =~ ]] and add tests to test.test.

(And reorder tests so the line up with the posix page more.)

github.com/landley/toybox - 2407a5f51b58a8c64379345f5eeefe92f72680c9 authored over 2 years ago by Rob Landley <[email protected]>
More sh tests.

github.com/landley/toybox - e8b2b5dc1ebae637b7afadf7ad1312c0dba88552 authored over 2 years ago by Rob Landley <[email protected]>
Reorder functions into logical groups (or at least easier to explain).

github.com/landley/toybox - 3c3373a233f67bb566c8578fb97edf651e2e5f8b authored over 2 years ago by Rob Landley <[email protected]>
Apparently macOS-12.4 isn't an option.

But it's not an _error_ --- github just waits forever for a runner
to be available? Anyway, from...

github.com/landley/toybox - f616302126dd52854d8c2bd97892831c8ca5ca81 authored over 2 years ago by Elliott Hughes <[email protected]>
More shell tests.

github.com/landley/toybox - e6b486a9d9bd8e449748792b4449db61556a8c9f authored over 2 years ago by Rob Landley <[email protected]>
Switch the github macOS CI over to 12.4, which is current.

Needed because the build now relies on `readlink -f`, but I don't
think we really care about old...

github.com/landley/toybox - a7bb09559f3f05fab4f47e75160bf982507ab492 authored over 2 years ago by Elliott Hughes <[email protected]>
Fix case/esac getting confused by nested flow control blocks.

github.com/landley/toybox - 18d58e66d58e1174dcd99bccaae5e96e664c54ad authored over 2 years ago by Rob Landley <[email protected]>
Fix $PREFIX=/path/that/does/not/exist builds.

github.com/landley/toybox - 5eae30d2a5c024eaa6e0ab5c60ac7cdf11e71ab5 authored over 2 years ago by Rob Landley <[email protected]>
Work around gratuitous musl deviation from glibc, adding tests.

Although posix says strtol() _can_ return EINVAL for "", glibc doesn't,
and the command line pri...

github.com/landley/toybox - 9a5d7a063c8c7ad1f7b036282ea4d476e7065167 authored over 2 years ago by Rob Landley <[email protected]>
Don't probe for copy_file_range, we already have an #ifdef.

github.com/landley/toybox - 6ef2431a0f5fa8a2a52769afdac47c429da8e9d6 authored over 2 years ago by Rob Landley <[email protected]>
Don't segfault if xabspath() returns null (spotted by Taolaw).

github.com/landley/toybox - 6d4847934fc0fe47a3254ce6c0396d197a780cf4 authored over 2 years ago by Rob Landley <[email protected]>
More work to get dependencies to handle swapping toolchains,

including detecting when Config.probed changed, requiring "make oldconfig".

github.com/landley/toybox - 20c123b95d92d7b7da5a00bf337c0417f2c61578 authored over 2 years ago by Rob Landley <[email protected]>
Use $(id -u) instead of $UID to detect root.

We can't depend on a value being set for $UID.

github.com/landley/toybox - fae6c10e6b0ac1ce0994782846a8cea9eef51f86 authored over 2 years ago by James Farrell <[email protected]>
Handle test.test being run as root.

Root always has read and write access.

Tested with `sudo make test_test`

github.com/landley/toybox - 9febe910b6c1df9c52c5b0fbbb30e4ac410086fb authored over 2 years ago by James Farrell <[email protected]>
More on cross compiling.

github.com/landley/toybox - f628d68dab3914c68de60985c2cd0b089fb68af3 authored over 2 years ago by Rob Landley <[email protected]>
Check in updated nav bar.

github.com/landley/toybox - 001f14cdddb93529a4baf5bf2be3eb70aab758fc authored over 2 years ago by Rob Landley <[email protected]>
test -x and friends should test access, not permission bit.

chmod u-x but g+x doesn't let you access a file. Presumably selinux
can also interfere, so use a...

github.com/landley/toybox - cc2fb2a5c782417434f26ebc64322b4c589a32ab authored over 2 years ago by Rob Landley <[email protected]>
Minor cleanup.

github.com/landley/toybox - 1ff4c4b140c53a09970ee2be083bb2ccd6ac6c1c authored over 2 years ago by Rob Landley <[email protected]>
Remove unnecessary test.

github.com/landley/toybox - 6edb474ad3a88848b96cad4fd3a4da4da30d0d69 authored over 2 years ago by Rob Landley <[email protected]>
Accept unambiguous --longopt abbreviations.

github.com/landley/toybox - b63778e00f529b6e32d3cbd3b2700cef0f690d5f authored over 2 years ago by Rob Landley <[email protected]>
Add tar --xform.

Adds xrunread() to lib and makes mount use it instead of a local function.

github.com/landley/toybox - ea52d3048af5ec5e612322bc9055853964153bd0 authored over 2 years ago by Rob Landley <[email protected]>
Fix dependency checking.

github.com/landley/toybox - e1f347ef82948ccc3219cc0e957c5a48d3b02365 authored over 2 years ago by Rob Landley <[email protected]>
Fix typo

github.com/landley/toybox - e1a06a6266d3baab75dfdfe1442434367c4c610a authored over 2 years ago by Firas Khalil Khana <[email protected]>
Ubuntu enables gcc's "fortify" false positive generator by default,

which broke the build.

github.com/landley/toybox - 5e8c74d7d63a6f6645692269eae905842e9a74e3 authored over 2 years ago by Rob Landley <[email protected]>
Handle diffing FIFOs.

Also exit immediately if a seek fails.

In addition to the supplied test, also tested manually w...

github.com/landley/toybox - 7ab529557d8f22b2f304e1f78f5ddad18785a4bd authored over 2 years ago by James Farrell <[email protected]>
Allow empty line format flags.

github.com/landley/toybox - fc98edad6ef9917afc7d9e6af3e6162f2167a5ef authored over 2 years ago by James Farrell <[email protected]>
Enable tar in make tests.

github.com/landley/toybox - 8ab79b2da6860b986428ea446271a627165e152f authored over 2 years ago by Rob Landley <[email protected]>
Add ~ to collate bare longopts.

github.com/landley/toybox - 401898110f0c584769f5a0b342993f447553da50 authored over 2 years ago by Rob Landley <[email protected]>
Move the mac-only option into the mac-only section.

github.com/landley/toybox - 0961ea2954afddce9a81e02004d8b50fa5fd2ebb authored over 2 years ago by Rob Landley <[email protected]>
macOS: silence the "vfork() is deprecated" warning spam.

This was the resolution from the discussion on mailing list; basically
"if Apple does remove vfo...

github.com/landley/toybox - 0476d6d1e25eb74588726944229ecfef8e0198f6 authored over 2 years ago by Elliott Hughes <[email protected]>
Clean up build plumbing.

github.com/landley/toybox - 95b79373bac8a8d17f2b6bc72842680fe3cbb5c3 authored over 2 years ago by Rob Landley <[email protected]>
Fix cross compiling example in help text.

github.com/landley/toybox - 4e2d8ad829c54b0cf2f0612450beaf618e5b045d authored over 2 years ago by Rob Landley <[email protected]>
Fix dropbear build (it was looking for $CROSS_COMPILE-gcc not -cc, and

wasn't returning to the right directory so moving its build before the toybox
build broke the lat...

github.com/landley/toybox - 43f61a67b835cb2619a4905e7baf23f819665b2f authored over 2 years ago by Rob Landley <[email protected]>
Another shell test and add a timeout.

github.com/landley/toybox - 868fd0ec8d023d4b7b7786b218f545970a560844 authored over 2 years ago by Rob Landley <[email protected]>
Fall back to /usr/bin/wget when toybox wget wasn't built with https support.

github.com/landley/toybox - 90347d5da0c28a902fb562cea5a1dfcfdf40ecc3 authored over 2 years ago by Rob Landley <[email protected]>
Document the move from C99 to C11.

It's crept up on us for a while, time to explicitly acknowledge it.

github.com/landley/toybox - 0c566f6f9a057bdca9722b3d09cac53fe7d05c6e authored over 2 years ago by Rob Landley <[email protected]>
Switch to C11 noreturn to work around a compiler bug in llvm.

Elliott said:

Works around a clang bug in the version of clang shipping with Android T
that cau...

github.com/landley/toybox - 3625a260065b4cdf2eb5d130f290e64a68578654 authored over 2 years ago by Rob Landley <[email protected]>
Diff line format options.

--unchanged-line-format
--old-line-format
--new-line-format

We want to use Toybox to make AOSP ...

github.com/landley/toybox - 9f5fb9ae9af14f651eb6920e96334e65e6b8cdd4 authored over 2 years ago by James Farrell <[email protected]>