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

Silence another "warning: is never used uninitialized" false positive from gcc.

github.com/landley/toybox - acfcc9572fc7d61fd55042bc1b067dc41c312ad9 authored over 1 year ago by Rob Landley <[email protected]>
Fix oneit sysfs console autodetection

oneit appears to have made the assumption that
/sys/class/tty/console/active provides a list of ...

github.com/landley/toybox - fdba43ea0af4bee99676019cc818d982e969e9f9 authored over 1 year ago by Daniel Mentz <[email protected]>
Two small fixes from zhmars.

github.com/landley/toybox - c8f758c734506d6131c2eefdb5ce2618d4b2b1d2 authored over 1 year ago by Rob Landley <[email protected]>
Add requested --gratuitous-longopt synonym.

github.com/landley/toybox - 25d72febcc2fbb0cb3bfb872557a939c69782390 authored over 1 year ago by Rob Landley <[email protected]>
Better adler32.

github.com/landley/toybox - aa88571a6b847a96bb8ee998a9868c5a1bdb3a6e authored over 1 year ago by Rob Landley <[email protected]>
Don't error when /proc entries missing (usually due to kernel config),

adust spacing to fit in 80 columns where possible,
use LP64 long long instead of unintelligiblelo...

github.com/landley/toybox - 1ad96558227fd57506099ba31af6d557d8c8dc50 authored over 1 year ago by Rob Landley <[email protected]>
Don't show revision 0.

github.com/landley/toybox - 704278e45d0441c5a13777af727e4159f2ebffd9 authored over 1 year ago by Rob Landley <[email protected]>
Attempt to handle pci bridges (no DRIVER line).

github.com/landley/toybox - 3fe9aaa567b595b50c5090f6f67f9cd5b6163746 authored over 1 year ago by Rob Landley <[email protected]>
lspci: add -x.

I caught someone using pciutils lspci, asked why, and -x (including
-xxx) and -v (specifically -...

github.com/landley/toybox - 9f683b843678048d6008bf26f3e6cdef085258db authored over 1 year ago by Elliott Hughes <[email protected]>
The non-anchored --wildcards logic broke full-string matching.

(It matched after every / but when there was one it didn't check
start of string. Oops.)

github.com/landley/toybox - 24133d5e23d7e271cd788a8250975d9ee83b5717 authored over 1 year ago by Rob Landley <[email protected]>
Convert to testcmd, minor tidying, fix -N test.

github.com/landley/toybox - 51014a26da9fdb698af3434ff48073bb7372c98a authored over 1 year ago by Rob Landley <[email protected]>
Fix redundant name appending when testcmd's first argument is blank.

github.com/landley/toybox - a228c0698e61c163dec3f3e03a805ed6cc319283 authored over 1 year ago by Rob Landley <[email protected]>
Switch testing->testcmd.

github.com/landley/toybox - 16387c91d02a7a1c028a76fa14bde728364d3986 authored over 1 year ago by Rob Landley <[email protected]>
Add a sed test.

github.com/landley/toybox - cb2e4cc6e818114fca195dd0060bca7ec43e62e5 authored over 1 year ago by Rob Landley <[email protected]>
Octal escaped ~ (used as literal -~ flag) was still getting parsed as

control char, so move the de-escaping further down.

github.com/landley/toybox - d72f08576d930466bf4555d0cc6787ecc5b38124 authored over 1 year ago by Rob Landley <[email protected]>
Use sprintf() instead of itoa().

Somebody's actually building toybox with cygwin, which pollutes the
namespace with leftover DOS ...

github.com/landley/toybox - b6732af9d7bc6a9545a8f59704d146d98f412042 authored over 1 year ago by Rob Landley <[email protected]>
Dear LLVM: I put an octal escape into a string for a reason. Just accept it.

github.com/landley/toybox - 0115a4cbd7873db6f9f8fa7f569ca73e668ac5dc authored over 1 year ago by Rob Landley <[email protected]>
gzip: add -t

github.com/landley/toybox - 1e3b99ea2fceafe99b52f7e24e130f0ab22a7b51 authored over 1 year ago by Ethan Sommer <[email protected]>
Move new ls --sort options to unique short flags, using -~ and -! to

avoid collision with other implementations.

(First version was reusing short flags in a way that...

github.com/landley/toybox - b3eb194102c7ce910601e7d9fa0d20573925ed9c authored over 1 year ago by Rob Landley <[email protected]>
cp: remove unneeded semicolons following one-line function declarations

github.com/landley/toybox - f9acf3b2f17970264f409df1e3f8f48ee4ba97f9 authored over 1 year ago by Ethan Sommer <[email protected]>
Add shuf.

github.com/landley/toybox - 6ca844da053f979d169a6de01167dfa7a02b4696 authored over 1 year ago by Rob Landley <[email protected]>
Unwrap ls tests so they don't have to dodge expected/actual files.

github.com/landley/toybox - 2a68a5ffe4f20d50fe7c517670a13c300e957b28 authored over 1 year ago by Rob Landley <[email protected]>
Tweak test plumbing so expected/actual aren't in the test working directory.

github.com/landley/toybox - 4acaebea5a08307dd7269265b590af7ab2816515 authored over 1 year ago by Rob Landley <[email protected]>
Add ls --sort and a few new short sort flags.

Didn't cause test regressions but doesn't have new test entries yet.

github.com/landley/toybox - ad05ade2c0313335c003f3f86b9dc26b85faf29e authored over 1 year ago by Rob Landley <[email protected]>
change xrunread parameter name to to_stdin, matching xwrap.c

github.com/landley/toybox - 46e64fb415d9516ef6116336635370545045c3d3 authored almost 2 years ago by Dan Bryant <[email protected]>
Fix a couple bugs and minor cleanup:

Don't read(fd, 1, &int) and leave the other 3 bytes uninitialized.

confirm() sharing -y between...

github.com/landley/toybox - 1819be919d0566e2d2130bf90d90483a4e2318b6 authored almost 2 years ago by Rob Landley <[email protected]>
Check in todo notes.

github.com/landley/toybox - 0f202cbcbab32aa73cc768cd98daef995d5bde8d authored almost 2 years ago by Rob Landley <[email protected]>
Minor tweaks from in-passing code review.

github.com/landley/toybox - 6856f06af3cba1505e101a2ee929384d3ee4d182 authored almost 2 years ago by Rob Landley <[email protected]>
Cleanup: fix argument type warnings, use same name for option and

argument variable.

github.com/landley/toybox - 662c79c4016ad0c35743d51a653198cd3078644c authored almost 2 years ago by Rob Landley <[email protected]>
Cleanup: use FLAG() macros.

github.com/landley/toybox - 158f3c735ea382cab42182cfb7f6349faa5d97bd authored almost 2 years ago by Rob Landley <[email protected]>
Teach oneit to autodetect console from sysfs when no -c argument.

github.com/landley/toybox - f377bbc32cb8f8725f5e26d4917a373b373d2a3a authored almost 2 years ago by Rob Landley <[email protected]>
i2cget: add support for reading without passing command

i2cget can be used without passing command byte
i2cget 3 0x50 0x5F <-- should shift out register...

github.com/landley/toybox - ba5b7c209898f7de347f5fb96173ad7a92a0e7c9 authored almost 2 years ago by Jarno Mäkipää <[email protected]>
Add "next address" support to i2cget, and enforce bus limit.

github.com/landley/toybox - e8f2f55d5298f2b879c7b9a62971ee30a30d49f0 authored almost 2 years ago by Rob Landley <[email protected]>
remove type i in cpio call

github.com/landley/toybox - 53a464ba04a29ab47a33fff5f39a631bd4794081 authored almost 2 years ago by Bo Svangård <[email protected]>
Add new test for "directory exists" and make TEST_HOST less chatty.

github.com/landley/toybox - 6b6578da250d89a0a5929d4639fd8e44303c5a3d authored almost 2 years ago by Rob Landley <[email protected]>
Merge the dev and symlink chown cases (neither can reliably get a fd

so we can't close a stat/chown race, so both use lchown() now),
move free(tofree) to the start of...

github.com/landley/toybox - 4e68a9268c3b53ab037429e997bf3422208e9ca1 authored almost 2 years ago by Rob Landley <[email protected]>
cpio -i trying to create a directory that exists is not an error,

and don't exit (just warn) for the -d case having an error.

github.com/landley/toybox - d95ea079466c0f21c3482108a54d92f6b77a682e authored almost 2 years ago by Rob Landley <[email protected]>
Fix up help plumbing. It's got HELP_FLAGS now.

Last release "help toybox", "help -u", and "help -au" didn't work, and
the "see" logic was all w...

github.com/landley/toybox - 53272482ef40a4343c39f666ca2ff7c56e446762 authored almost 2 years ago by Rob Landley <[email protected]>
Re-implement the wait $PID codepath because macos needs it.

github.com/landley/toybox - dd56ea086435bc05fac01bfdf792c98fcb5cad3c authored almost 2 years ago by Rob Landley <[email protected]>
Dear gcc, please stop threatening me with a good time.

(Yes, it will always be 1. That's what I WANT. The test is so that when
it's 0, the 0 can be rep...

github.com/landley/toybox - 9bca2b1515bf851b56b4a5d092a4fb9e269f98ea authored almost 2 years ago by Rob Landley <[email protected]>
llvm warns without an extra ,0 and gcc now warns _with_ the extra ,0

(because it distinguishes between "1" and "true" for no obvious reason)
so switch to a puts variant.

github.com/landley/toybox - 3f708772947a4ee7905bc70b1545adfe03719322 authored almost 2 years ago by Rob Landley <[email protected]>
Mac's gsed is slow to launch, so avoid one repeated call in a loop.

github.com/landley/toybox - 3dc487d989d47a71286d27f0c47a5189e19ee01e authored almost 2 years ago by Rob Landley <[email protected]>
Remove -n from todo and add --longopt aliases for -DFO.

github.com/landley/toybox - 9b108ab90b6346d93d62322b29325e084bc38995 authored almost 2 years ago by Rob Landley <[email protected]>
Change FLAG(x) macros to always return 0 or 1. Treewide audit of FLAG()

users to make sure nobody NEEDED FLAG(x) to return the masked bit value,
and to remove now-redund...

github.com/landley/toybox - b367482e9c102f49001a7e2d1ddb048bdce8b06e authored almost 2 years ago by Rob Landley <[email protected]>
log: fix stdin handling.

Make log (which is what Android uses) match logger.

github.com/landley/toybox - 078e95bba4fa0ce2aaf3e17502bba05b8551a93d authored almost 2 years ago by Elliott Hughes <[email protected]>
logger: fix stdin handling.

Rather than assume it's a single chunk of <= sizeof(toybuf) bytes, read
line by line and log eac...

github.com/landley/toybox - a7e7d9500b5036e374eea0ca6f110a417867c275 authored almost 2 years ago by Elliott Hughes <[email protected]>
Reorder find help text so match filers that take an argument are mostly in

the left column, and while I'm there move -quit to "Actions" because it
is, then implement -reada...

github.com/landley/toybox - df0eb047c7646acc01831c424f97d6673c08581c authored almost 2 years ago by Rob Landley <[email protected]>
ps, vi: fix flicker.

My earlier trick to ensure that we buffer whole screens full works fine
on glibc, but both bioni...

github.com/landley/toybox - 922d4af37ff2e5aafe6f35886aed9d8c20a69d29 authored almost 2 years ago by Elliott Hughes <[email protected]>
ps: widen the VSIZE field for Android's default view.

On LP64 systems, address space is effectively free, and the security
folks have found a variety ...

github.com/landley/toybox - 3917d770db166df52e831afb69f6682119519a12 authored almost 2 years ago by Elliott Hughes <[email protected]>
Fix some accumulated HERE document issues.

github.com/landley/toybox - edcafa920b0cea03aec449f233154a80442391bc authored almost 2 years ago by Rob Landley <[email protected]>
Fix s/// tests get skipped before realloc() allocates new string memory.

(They tried to copy the unchanged data to a destination that didn't exist
yet: skip copy for null...

github.com/landley/toybox - abd8b1b2215bbc17747e3ff2693c77fa08d4f75e authored almost 2 years ago by Rob Landley <[email protected]>
Tweak help text.

github.com/landley/toybox - dbc6311ec7c9a0fe1c02a3acd8afb3be2ddb8e33 authored almost 2 years ago by Rob Landley <[email protected]>
Try C.UTF-8 (MacOS hasn't got) before en_US.UTF-8 (Gentoo hasn't got).

github.com/landley/toybox - b34ed81323dce0df4e80ab330d23c402724c4e01 authored almost 2 years ago by Rob Landley <[email protected]>
xxd: add -e (little endian).

Useful when trying to read tables of addresses/offsets (in ELF files,
for example).

github.com/landley/toybox - 28e3c38e3c0490ac8bcb581feca44a2682280df2 authored almost 2 years ago by Elliott Hughes <[email protected]>
Add blkid iso test file and tweak iso output fields.

Note: TEST_HOST outputs iso fields in unique order, which we don't.
But there's incoming version...

github.com/landley/toybox - 1e6844737ec5d3f98d05e4ad31817ae66d523b24 authored almost 2 years ago by Rob Landley <[email protected]>
BLKID: Add support for iso9660

github.com/landley/toybox - f67f74a60a3f3825c4f1944372894b4d499bf217 authored almost 2 years ago by Eric Molitor <[email protected]>
Don't kill archiver now we're listening for its exit code,

shut it up by draining the trailing zeroes instead.

Note: cpio lets you concatenate archives, bu...

github.com/landley/toybox - a3fc87752193cc9fb406b4c4b152e4ffb435dce5 authored almost 2 years ago by Rob Landley <[email protected]>
Fix vi -s and minor style cleanups.

github.com/landley/toybox - 26e0b44c9dac19799bf68b882ed6db462a90240f authored almost 2 years ago by Rob Landley <[email protected]>
Fix a couple tar --sort leaks.

github.com/landley/toybox - 8cee8c278a88d134ce2a0ece12b31f83e261677e authored almost 2 years ago by Rob Landley <[email protected]>
Fix leading / on realpath --relative-to $PWD subdir and add some

TODO comment tests to realpath.tests.

github.com/landley/toybox - 71b95f7ae8ae5cef495cc481bdea7da42c524e13 authored almost 2 years ago by Rob Landley <[email protected]>
vi: fix regression on wq, add modified() subroutine

Replaced TT.modified with function that checks if buffer has changed.

Fix problems with empty f...

github.com/landley/toybox - 2b986821b8f8f32436df5608294382cc0a14256f authored almost 2 years ago by Jarno Mäkipää <[email protected]>
I need a test environment before nontrivially cleaning up bootchartd.

github.com/landley/toybox - 87855d0560ceffdbdfe33a9f405386fd90ec7065 authored almost 2 years ago by Rob Landley <[email protected]>
Make head lseek backwards to return unused data from seekable inputs.

github.com/landley/toybox - f0b4f9e5bb263ea63207d9355c87d02f9f04efed authored almost 2 years ago by Rob Landley <[email protected]>
Modernize head tests.

github.com/landley/toybox - e95bb78591590ef4c72fbfbd9247d04473e3d341 authored almost 2 years ago by Rob Landley <[email protected]>
vi: added backspace

github.com/landley/toybox - 0a45fa3fbd9af0d8286407cb20f0c028c2f14c31 authored almost 2 years ago by Jarno Mäkipää <[email protected]>
Point to the same binary cross compilers as the FAQ.

github.com/landley/toybox - 027e1dc8cd43d1641c68f8a93b15c7a701b9b2e6 authored almost 2 years ago by Rob Landley <[email protected]>
nohup: use the same mode constant for open() and xcreate().

The open() call was the only remaining use of the named permission
constants, and the equivalent...

github.com/landley/toybox - c2d8e184f8aaeb40c845cfcd360b3934eb73405c authored almost 2 years ago by Elliott Hughes <[email protected]>
vi: don't call open() with O_CREAT but no mode.

This was invisible before because we were calling xopen(), which
always passes mode 0 to open()....

github.com/landley/toybox - 5c03ad18bd46898c61a8dc8b5f81680e16431c57 authored almost 2 years ago by Elliott Hughes <[email protected]>
Helps to check in the dirtree changes. (Oops.)

github.com/landley/toybox - 5330de20b3df5cd88f683e95149490e8ec6df377 authored almost 2 years ago by Rob Landley <[email protected]>
Add tar -s --sort

Always does alphabetical sort, ignores optional --sort=argument.

github.com/landley/toybox - 9ba775e805bd7b4928698314aae22742ef95dc91 authored almost 2 years ago by Rob Landley <[email protected]>
vi: add "w <filename>".

(Issues reported by an Android partner; basically "vi" with no arguments
is broken, and "vi foo"...

github.com/landley/toybox - 169edc2989a217508f1e62ccc313f062d251ce9f authored almost 2 years ago by Elliott Hughes <[email protected]>
Don't pull in a header for a constant 1 that's not even in ELF spec

and hasn't changed since 1995. (If file and readelf didn't need elf.h...
even the ptrace man page...

github.com/landley/toybox - 8f259a1427d5cce7e4ad4d322d29861c855bfa2e authored almost 2 years ago by Rob Landley <[email protected]>
strace.c: add risc-v support, fix non-legacy architectures.

The man page's threat that not all architectures will have PTRACE_GETREGS
is true... Also #if mo...

github.com/landley/toybox - 27e7a1e7cc317b187f898b55ef1e4bafe52fa4e7 authored almost 2 years ago by Elliott Hughes <[email protected]>
Implement tar --wildcards and friends (filter options).

Also some pending portability.h comments, and wait for archiver exit.

github.com/landley/toybox - 2e952a47820d3e03dd7b56d50954c92cc0caa20b authored almost 2 years ago by Rob Landley <[email protected]>
login: Don't prompt for password if shadow password is empty

The 'login' command doesn't prompt for a password if the password is
empty. However, the current...

github.com/landley/toybox - f1efcb18a1acb898bb6ed52e1f6294df6718807d authored almost 2 years ago by Eli Lipsitz <[email protected]>
login: Fix segfault if unknown username is provided

The 'login' command segfaults if the user provides an invalid username.
This happens because 'ge...

github.com/landley/toybox - 1e3b75dc4ef9d34daecacba3dc096e0103cc8ac7 authored almost 2 years ago by Eli Lipsitz <[email protected]>
Implement DIRTREE_BREADTH.

github.com/landley/toybox - 733e7b58aadbaad83ecd61e2f4d8f971ad3f235d authored almost 2 years ago by Rob Landley <[email protected]>
init: Remove trailing newline when parsing inittab

Commit 05e4f52c3c modified init to use the standard getline instead of
get_line when parsing the...

github.com/landley/toybox - c23b3ff44948416d67ff30f38116bed3b2efb6e5 authored almost 2 years ago by Eli Lipsitz <[email protected]>
Switch dirtree to set macro bits instead of hardwired numbers.

github.com/landley/toybox - c3127b5f9f3099ea526fe6da571ddf77bd72871d authored almost 2 years ago by Rob Landley <[email protected]>
Convert to FLAG() macros.

github.com/landley/toybox - 30d280d8921f35ad5a3f7f1543e9164d6876dfe5 authored almost 2 years ago by Rob Landley <[email protected]>
Missing 's' was causing a segfault due to file not found

github.com/landley/toybox - a7c98a00683b6140dc48513a089d6b9887fb513c authored almost 2 years ago by Moritz C. Weber <[email protected]>
Fixed 3 bugs from the android code review

github.com/landley/toybox - ba640e5aca2cdfaaa23a6a9b2e18d4463da54304 authored almost 2 years ago by Moritz C. Weber <[email protected]>
Fix help text.

github.com/landley/toybox - d8e6f49d90bce35de201efc13b787858dcbf0ba6 authored almost 2 years ago by Rob Landley <[email protected]>
Subshell all piped segments.

(Creating new child block before pipe status check: look at parent block.)

github.com/landley/toybox - b61cdb44128b4c6be29b7dbac3a5dd58ad5fe53f authored almost 2 years ago by Rob Landley <[email protected]>
Ensure make wrapper sees success return code in verbose mode (V=1)

github.com/landley/toybox - c5e7495fe46d4b2b2c225f222efc6b9070de2c3a authored almost 2 years ago by Rob Landley <[email protected]>
sleep: admit to accepting multiple durations.

github.com/landley/toybox - 9765a32331275e9ea33c98e3f73938dc5f5e8d98 authored almost 2 years ago by Elliott Hughes <[email protected]>
Add cpio -R, tweak help text.

github.com/landley/toybox - d94bda4baba49a88baa25b202ce5ae61c26acd1a authored almost 2 years ago by Rob Landley <[email protected]>
ifconfig.test: small fixes.

Android's modprobe outputs help to stdout when no modules directory
is given, but we have the du...

github.com/landley/toybox - c342345d2d26aaf9581eb42b18cd84aebd5f72cf authored almost 2 years ago by Elliott Hughes <[email protected]>
Bash automatically exports PWD but mksh apparently sets it without exporting.

github.com/landley/toybox - d01b02f138ffac169d8b956a2e532518f4b7864a authored almost 2 years ago by Rob Landley <[email protected]>
More cleanup.

github.com/landley/toybox - 9a2fb3151d779c753dff6fce07e58afc5cc63621 authored almost 2 years ago by Rob Landley <[email protected]>
fix out of bounds read on error message.

ASAN previously would crash on this new test. The filename passed to
error_exit() was not zeroed...

github.com/landley/toybox - 3309e660712dd064bd05db9323801a63588d58bd authored almost 2 years ago by Eric Roshan-Eisner <[email protected]>
Fix another case found by Eric Roshan-Eisner's fuzzing.

github.com/landley/toybox - 58b42b238471493eda66973393ee82b5a72389c6 authored almost 2 years ago by Rob Landley <[email protected]>
There's always something.

github.com/landley/toybox - 687490a30d8b8fd65e182a2dd7eb79be0c3f7856 authored almost 2 years ago by Rob Landley <[email protected]>
Release 0.8.9

github.com/landley/toybox - c62d8a9f7471ebbb95d0bc2a6ccd6ee195719b44 authored almost 2 years ago by Rob Landley <[email protected]>
Quick glance at mkstatus and roadmap.html to make sure nothing jumps out.

github.com/landley/toybox - e352f70553bea5a73e326de2bc03f624187b5b31 authored almost 2 years ago by Rob Landley <[email protected]>
Add another link to the local toolchains to the documentation.

github.com/landley/toybox - e32feb5dcc254da4b4270fe6a0aa5c1dcc074f63 authored almost 2 years ago by Rob Landley <[email protected]>
Don't force "make tests" or scripts/tests.sh to rebuild every time.

github.com/landley/toybox - 77381506e9ed02f0bd7e54bec5783796bc803ba0 authored almost 2 years ago by Rob Landley <[email protected]>
Teach scripts/test_mkroot.sh to tak targets to test on the command line.

github.com/landley/toybox - d091142ae3c8c9b3f86ea0f57c97999cdc9b50b4 authored almost 2 years ago by Rob Landley <[email protected]>
Update FAQ a bit.

github.com/landley/toybox - 6581ceaad5ded8a721fb5758a70777f8310eb7e6 authored almost 2 years ago by Rob Landley <[email protected]>
Bump some changes to next release.

The date tests need a patched musl but I'm not rebuilding the cross
compilers yet. And I have pa...

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