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

Thinko.

setvar_found() returns its argument or null, so we don't need to store the
return value, and def...

github.com/landley/toybox - bfcc997b55061a4cc362723d7540b21696408f91 authored over 2 years ago by Rob Landley <[email protected]>
Shut up llvm's "fortify" about not checking the fscanf() return value.

We already confirm that the sender is another toysh instance (the
ppid!=getppid() line), set the...

github.com/landley/toybox - 6d28316864a44ea16669de79f2aefab2933fbf3a authored over 2 years ago by Rob Landley <[email protected]>
Release 0.8.7.

github.com/landley/toybox - 7b5025367abf18adad3aa2781b561df6115e2a0f authored over 2 years ago by Rob Landley <[email protected]>
A little more ANSI cheat sheet.

github.com/landley/toybox - abb6ebbe6720149914760c23b988baec572d8d67 authored over 2 years ago by Rob Landley <[email protected]>
Don't diff against a base and then add the offset right back to the base.

github.com/landley/toybox - 36679f4adc837bb6907fb2088aa25d1e231e4200 authored over 2 years ago by Rob Landley <[email protected]>
Fix memset calls and keep track of vars capacity.

Stops a leak when unsetting variables.

github.com/landley/toybox - 6dc3d9e2bbe8d16ee6993a02629f6a1806c50d6d authored over 2 years ago by James Farrell <[email protected]>
Fix segfault when trying to unset variable.

Test case: toybox bash -c 'unset FOO'

github.com/landley/toybox - 1cfb19a85ca9957c5adf89a8392c818abe559dbe authored over 2 years ago by James Farrell <[email protected]>
Add README files for binaries.

github.com/landley/toybox - e04cf99288d290baeb879fccf68016528f28de36 authored over 2 years ago by Rob Landley <[email protected]>
Add a few more things macos should be able to build.

github.com/landley/toybox - d69a77d817fcf6349559d4a64ad52e52f4e601e5 authored over 2 years ago by Rob Landley <[email protected]>
First stab at an android_defconfig.

Not actually used by the android build, but I should keep better track.
Based on .config-device ...

github.com/landley/toybox - 15839e5b616dd00206d505ebfee044cbb291b0b7 authored over 2 years ago by Rob Landley <[email protected]>
Add the two options netbsd has for this command.

github.com/landley/toybox - 529fe97a4bd5fc067ff549fc3d29c753b7387778 authored over 2 years ago by Rob Landley <[email protected]>
Quick pass over the roadmap.

github.com/landley/toybox - c3c3670b9d3632578593304cf166322b7bb5537b authored over 2 years ago by Rob Landley <[email protected]>
xxd -r: don't seek unnecessarily on the output stream.

Also add a dup() to fix a double close() noticed in strace when looking at
the lseek() issue...
...

github.com/landley/toybox - c6cb9445e288f24f69eaf44de99c52543f1aebc5 authored over 2 years ago by Elliott Hughes <[email protected]>
Display label properly.

github.com/landley/toybox - 14efda08aa25af17e49ce8bd5d6ac23f805bd09d authored over 2 years ago by Rob Landley <[email protected]>
Remove obsolete config symbols.

github.com/landley/toybox - 3e6797bb69f23cbfb755cefe22f6a0a9de7aaa28 authored over 2 years ago by Rob Landley <[email protected]>
Add mkroot dynamic linking support, ala "scripts/mkroot.sh dynamic".

github.com/landley/toybox - bc6d3db757b108cb76a8fdad9cfeddbbe19f4c82 authored over 2 years ago by Rob Landley <[email protected]>
Only at one #define __MUSL__ to features.h.

github.com/landley/toybox - b24289340e9cfbec04c63734e02abd07fe307451 authored over 2 years ago by Rob Landley <[email protected]>
When building musl-git-master, don't let "clean" delete it.

(Otherwise it'll git clone it again for each architecture, requiring net
access to build and undo...

github.com/landley/toybox - 0a2b9b9dc4fff21da09ef5a976f062b170a8ba56 authored over 2 years ago by Rob Landley <[email protected]>
Add filename and line number to syntax error.

github.com/landley/toybox - a3dd4d45c46f549489ae39a4dc77c0aa66b9a3e6 authored over 2 years ago by Rob Landley <[email protected]>
Fix big endian again.

github.com/landley/toybox - e5b7997a0744bd2822b03a1c2839369d8acbb30c authored over 2 years ago by Rob Landley <[email protected]>
Silence gcc warning that two 32 bit integers are identical.

(This warning is not generated on 64 bit targets, where two 64 bit integers
are identical.)

github.com/landley/toybox - 3cfc0b54c43d1cc26e818b19042bd66d912656bd authored over 2 years ago by Rob Landley <[email protected]>
brctl: Fix addif and defif

In br_addif and br_delif, the bridge
name is not passed to the ioctl.

github.com/landley/toybox - 80206bb537658b5eba609d1f363cd27a960ec2c2 authored over 2 years ago by Keith Mok <[email protected]>
Identify PDF

github.com/landley/toybox - e8324105d0f970bf1de74a7ac9fe3b907e85bbfb authored over 2 years ago by Rob Landley <[email protected]>
Slight improvement to "is binary" check.

Freebsd's zlib/doc/txtvsbin.txt has an algorithm that's a little more
complicated but does point...

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

github.com/landley/toybox - f29ec45e39ec8940ef284b865813cadef503ff93 authored over 2 years ago by Rob Landley <[email protected]>
Fix wget port and have httpd return http 1.1 so wget recognizes it.

github.com/landley/toybox - 28a095f7709e07aebd7b32843d787e08369e1568 authored over 2 years ago by Rob Landley <[email protected]>
Put the test names in the test, not in a comment before the test.

github.com/landley/toybox - 6a31ec877e3d0a12a4b6446ba01bb590b0e8142f authored over 2 years ago by Rob Landley <[email protected]>
Test cut -DF on TEST_HOST too.

I taught busybox to do it, and proposed it at coreutils months ago.
(They say not this release b...

github.com/landley/toybox - 491a88ef4bf8efa430fbcdfeb4dbd61990407e1b authored over 2 years ago by Rob Landley <[email protected]>
Basic httpd smoketests.

github.com/landley/toybox - 5427339c2a8b658d1b12d8493e9ef7a5592543b6 authored over 2 years ago by Rob Landley <[email protected]>
Remove duplicate argument.

github.com/landley/toybox - 6e77d995574b6d9519a3b9fb73fcf7e20321f762 authored over 2 years ago by Rob Landley <[email protected]>
Remove wget from $PENDING lists.

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

github.com/landley/toybox - 9d4197aaf785efded6d835c18b6c3678feb844da authored over 2 years ago by Rob Landley <[email protected]>
Silence two more "are never used uninitialized" warnings.

github.com/landley/toybox - e3b461fc3fb7b7c1dd118329e9287c6f372934c4 authored over 2 years ago by Rob Landley <[email protected]>
Promote httpd to net

github.com/landley/toybox - a03525b1f66fceb9b7218adf45557b91b9d3bc27 authored over 2 years ago by Rob Landley <[email protected]>
Add simple static httpd.

And move url escape/unescape into lib/net.c.

github.com/landley/toybox - a9d0e2386f5f494bb9b4e9d56f6b95b40d7579d4 authored over 2 years ago by Rob Landley <[email protected]>
Eliminate one more sub-option (merge NETCAT_LISTEN into main netcat).

While I'm there, zap set_alarm(). Not a useful wrapper.

github.com/landley/toybox - 565f125b1c01668ad37c4d23df6dff191c8ba4ca authored over 2 years ago by Rob Landley <[email protected]>
Delete catv, which nobody uses (cat -v won long ago).

One less command sub-option requiring help text merging.

Minor cleanups while I'm there ala whi...

github.com/landley/toybox - c1065c7a34ecd7cdb81aa3d034ffda120e6711c6 authored over 2 years ago by Rob Landley <[email protected]>
xargs: open child's stdin non-O_CLOEXEC.

O_CLOEXEC is the default in toybox, so although the code as written
_looked_ correct, we need to...

github.com/landley/toybox - 1a87671b2e5aecfdd0b31f3f53ae893923417024 authored over 2 years ago by Elliott Hughes <[email protected]>
Teach wget about basic url escapes, and don't allow server to specify

../../../file as a filename.

github.com/landley/toybox - f5edb3fd79742a14eb1b150061fe56f41560b1d2 authored over 2 years ago by Rob Landley <[email protected]>
Promote wget.

github.com/landley/toybox - 88508108c09ab506bbae0a0b94db1063b5ef58ae authored over 2 years ago by Rob Landley <[email protected]>
Have wget use TOYBOX_LIBCRYPTO for openssl support.

github.com/landley/toybox - 2cb5c879dbc484d1df590a2bb673f779eba061c1 authored over 2 years ago by Rob Landley <[email protected]>
Fix ssl selection visibility in menuconfig, and detect local filename for

for wget http://landley.net/toybox

github.com/landley/toybox - 1b2750d4445fa56834fc8395661f32dece944855 authored over 2 years ago by Rob Landley <[email protected]>
Move struct ptr_len into only remaining user.

github.com/landley/toybox - feb39a12c3fc79171c9ea78e5f40d6634e7edc91 authored over 2 years ago by Rob Landley <[email protected]>
Don't use ptr_len and fix error return from "make test_bc" when it succeeds.

github.com/landley/toybox - f6c1bbc89e990badf3677ffec3a1d9e4fa78d0ae authored over 2 years ago by Rob Landley <[email protected]>
Thinko spotted by Elliott: actually compare with variable, not if (constant).

github.com/landley/toybox - 8b97a1fb86b06e329c77c64cdbef29d7738f5840 authored over 2 years ago by Rob Landley <[email protected]>
Grab definition of UNSTRIPPED and friends.

github.com/landley/toybox - 9798b6066986391a606051c3bf0fe45dbfb4e30f authored over 2 years ago by Rob Landley <[email protected]>
Unset ASAN after consuming it so scripts/portability.sh can be sourced twice.

github.com/landley/toybox - ee089094453ff5bd2ff831fc7d75933b4ddcb0c6 authored over 2 years ago by Rob Landley <[email protected]>
Move arch-specific dead code elimination setup into scripts/portability.sh

github.com/landley/toybox - cda84ae98884edd8d2b89003c741d5aafc734510 authored over 2 years ago by Rob Landley <[email protected]>
Collate ASAN setup, move generated/instlist into generated/unstripped,

use $UNSTRIPPED variable in more places and move definition to ./configure.

github.com/landley/toybox - cecd169cde3ccb072dbbcf1cbbf76c5e19145371 authored over 2 years ago by Rob Landley <[email protected]>
Comment template tweak.

github.com/landley/toybox - c37196772962b8ea1c5b06a0e2ae24f29f3a206a authored over 2 years ago by Rob Landley <[email protected]>
Add kconfig-language.txt from Linux 2.6.12.

github.com/landley/toybox - b08d3573d42bbde2f4d9ae29c6d8eec38939d2f0 authored over 2 years ago by Rob Landley <[email protected]>
All PEDANTIC_ARGS does is set a macro that's never used.

github.com/landley/toybox - a6e0c86f77cbb97cd56249b3fe04822d0f897304 authored over 2 years ago by Rob Landley <[email protected]>
lib/portability.c: don't assume we have __NR_copy_file_range.

Android's host tools currently build with glibc from 2012, but even if
we were more up to date (...

github.com/landley/toybox - 50361a1b07b9d9e4fff983ef2a5e233625851de2 authored over 2 years ago by Elliott Hughes <[email protected]>
Update man page URL in hello/skeleton examples, and fix hello to

wait for PID 1. (rdinit=/bin/hello would kernel panic if pid 1 exits,
and wait() returns "No chil...

github.com/landley/toybox - cd4c2da20a24116117842060798002032c4f5bb0 authored over 2 years ago by Rob Landley <[email protected]>
Fix mkroot m68k target's network connection.

github.com/landley/toybox - 164b1c72f604fcbad052c247ddd7f5ebec45c815 authored over 2 years ago by Rob Landley <[email protected]>
More wget cleanup.

Fix path, null terminate THIS line instead of chomp() whole header
(no guarantee the line we're ...

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

TT.postdata -> TT.p, replace both WGET_IS_HTTP macros with a test in
wget_info() setting TT.http...

github.com/landley/toybox - 418405e22175580f07cbad1298d3a7321cd8543c authored over 2 years ago by Rob Landley <[email protected]>
mkroot: add wget to pending build list, always rebuild .config when

$PENDING set, reset wordwrap after qemu exits (as well as in init script).

The wordwrap reset se...

github.com/landley/toybox - 965fabbe2c3d24972301426f9f63919ef87ffb12 authored over 2 years ago by Rob Landley <[email protected]>
Add "ifconfig eth0 rename NEWNAME".

github.com/landley/toybox - f22bec1f33c5de69c20321097cb01dbad7ce5ac6 authored almost 3 years ago by Rob Landley <[email protected]>
realpath should parse -e

The test USED to work because "unknown option -e" was ALSO an error,
until last commit passed th...

github.com/landley/toybox - fb3c28fe89f9ca056404c14998f81a8ae46f7529 authored almost 3 years ago by Rob Landley <[email protected]>
When args.c is just enforcing max/min argument count with no options, imply ?

so "command -123" isn't an unknown option error.

github.com/landley/toybox - 42ce6272f5a3824bc3512c1888384e3914a386b5 authored almost 3 years ago by Rob Landley <[email protected]>
Earlier test ensures dev isn't null when !FLAG(a), so don't test same again.

github.com/landley/toybox - a682f18b338d1eda088744d9b103689ff674f580 authored almost 3 years ago by Rob Landley <[email protected]>
Minor cleanups, and switch lll to "long long" for 32 bit platforms.

github.com/landley/toybox - b6eb5a16dcc1b50b20cc00b504cd03beea27e17b authored almost 3 years ago by Rob Landley <[email protected]>
Give "make install" a default location it can actually install to, where

you can tar it up from to extract somewhere else if you like.

github.com/landley/toybox - 5d0fcd04ffc66bd5718c3b9877df0c71429e1ab3 authored almost 3 years ago by Rob Landley <[email protected]>
Replace another hardwared "generated/" with $GENDIR

github.com/landley/toybox - 5e7aef4d24b084a51bd2c6dd6258d32873e61b34 authored almost 3 years ago by Rob Landley <[email protected]>
Fix a segfault due to a wrong order global variables of wget

github.com/landley/toybox - 4774d00a9fa501467ed922a17f744bf6b6a76c34 authored almost 3 years ago by Moritz C. Weber <[email protected]>
Replaced sizeof by strlen in wget POST

github.com/landley/toybox - 1189bf9857252f6bddbe9535730ce0ae6552c999 authored almost 3 years ago by Moritz C. Weber <[email protected]>
Add tar --strip-components.

Also in lib/ add bufget name variants for password and group.

github.com/landley/toybox - 72e7e3821b4a0cce07e6d1450efef09ca9d3a5db authored almost 3 years ago by Rob Landley <[email protected]>
Cleanup openvt/deallocvt and merge with chvt, promote out of pending.

github.com/landley/toybox - cfea8f012d6d755026e27297dca5293c4973b2d4 authored almost 3 years ago by Rob Landley <[email protected]>
Fix "toybox command --help" for NEEDROOT commands.

github.com/landley/toybox - d040b01c2eab4e13efe20cf916e6bc80e7927a0d authored almost 3 years ago by Rob Landley <[email protected]>
Fix "toybox command --help".

github.com/landley/toybox - 83d5d7a0bbf60f5d08a1e145058758e717f3a03a authored almost 3 years ago by Rob Landley <[email protected]>
Make tar tests more portable, and add --owner :UID and --group :GID

github.com/landley/toybox - 690526a84ffcab500ccaebc70cea4d0ca3989a3a authored almost 3 years ago by Rob Landley <[email protected]>
Add git and bash to airlock install's $PENDING.

make.sh tries to use "git describe" for --version, and the linux kernel's
powerpc64le build uses...

github.com/landley/toybox - 0f77c9981882d94f06c633c8ed834611f160a666 authored almost 3 years ago by Rob Landley <[email protected]>
Update make.sh to avoid library probe when toolchain hasn't changed.

github.com/landley/toybox - 132b7cfcd287ad0d3bfd6dcbe55348cde30497b4 authored almost 3 years ago by Rob Landley <[email protected]>
Added basic post-data support

github.com/landley/toybox - bd723cf89f79144466a5da9ce130d18e198cfa3c authored almost 3 years ago by Moritz C. Weber <[email protected]>
Update docs.

github.com/landley/toybox - a59792c73caefa7c81c9d1b22b20c60dd3e34926 authored almost 3 years ago by Rob Landley <[email protected]>
Cleanup pass and make -O - write to stdout.

Teach chomp() to remove any number of trailing \r\n

github.com/landley/toybox - 5f3655239420471774faaa1cb648056a3406340f authored almost 3 years ago by Rob Landley <[email protected]>
Video was made private, but the same guy gave the same talk at another

conference.

github.com/landley/toybox - 0c31ee1fe8a072c02b6744a903eff89ce427675c authored almost 3 years ago by Rob Landley <[email protected]>
Don't say "see toybox --help" in "toybox --help".

github.com/landley/toybox - 0fd6b768879f8f48f54c314fb06e9a66f9b4d987 authored almost 3 years ago by Rob Landley <[email protected]>
Avoid redundant strlen() inside libc.

github.com/landley/toybox - 1ba8a12c4da4439a310864c278e156bce0774537 authored almost 3 years ago by Rob Landley <[email protected]>
Fix a memory leak and update reference after discarding blank pipeline segment.

github.com/landley/toybox - 3f7ea911d886343d3f388371f6dad7572428625a authored almost 3 years ago by Rob Landley <[email protected]>
use $GENDIR variable for (some) generated/ references, and move

build binaries (config2help/mkflags/mktags) to $GENDIR/unstripped.

github.com/landley/toybox - bbe709fb879ad51fb50b845290dd787645686fda authored almost 3 years ago by Rob Landley <[email protected]>
The ".." removal logic was looping on file/dir names starting with "..",

reported by hg42 on github.

github.com/landley/toybox - 4fca350fb34c31e681fd6750692d6089b9810c3d authored almost 3 years ago by Rob Landley <[email protected]>
Fix copy_file_range() fallback.

github.com/landley/toybox - 7baa9906839e7affe226f3fbca092d594b903753 authored almost 3 years ago by Rob Landley <[email protected]>
Fix macOS build after copy_file_range() changes.

github.com/landley/toybox - 2f4e6e18b45efe91d78cbbb428d3168eb26dd025 authored almost 3 years ago by Elliott Hughes <[email protected]>
Update comments and add "sanity check" from kernel commit f16acc9d9b376.

(The kernel's been doing this since 2019, but older kernels may not, so...)

github.com/landley/toybox - 9b368059deec8c9270bb0b384e894fc34ee07995 authored almost 3 years ago by Rob Landley <[email protected]>
Enable copy_file_range when it is available.

Fallback to read+write when copy_file_range failed, as both fd_in and fd_out must refer to regul...

github.com/landley/toybox - 613db35596e37c16063d531de6d635f0bd3b2f52 authored almost 3 years ago by LongPing Wei <[email protected]>
file(1): call out apparently invalid ELF files.

Realistically, corrupt ELF files are rare enough that it's more likely
that we've actually found...

github.com/landley/toybox - 745947434342b5ae8b8147849561c5fff4b0d82b authored almost 3 years ago by Elliott Hughes <[email protected]>
file: don't be confused by BSS sections.

BSS sections are *expected* to claim a larger size than is actually
present in the file. Unlike ...

github.com/landley/toybox - 8a23ac205cb4995d4510a5af880939eda4a5343e authored almost 3 years ago by Elliott Hughes <[email protected]>
Add "cd -", teach cd to handle deleted directories, fix ${X: -1:1}

github.com/landley/toybox - 1533ccf51215e591729c0b3e64925527d2ce0bca authored almost 3 years ago by Rob Landley <[email protected]>
Minor tweaks.

github.com/landley/toybox - 34e4bfb5313fa32e36ff208335cef34942ed142b authored almost 3 years ago by Rob Landley <[email protected]>
Silence more false positive warnings in llvm.

github.com/landley/toybox - 20376512ae99be103875a1605ad69a7c876b818a authored almost 3 years ago by Rob Landley <[email protected]>
Move UNSTRIPPED to configure, merge LDASNEEDED into LDFLAGS

(which comes early enough in the command line now), use shoter : ${NAME:=val}
syntax for the if-n...

github.com/landley/toybox - 7a5cb958177d4a1efd96f7b4074307731bfe9c06 authored almost 3 years ago by Rob Landley <[email protected]>
Add spaces to lsusb output, trigger on the correct entries, tweak help text.

github.com/landley/toybox - 6f24967142db9b4780249d17af1f53ec1cd406e1 authored almost 3 years ago by Rob Landley <[email protected]>
Move config variables to configure.

github.com/landley/toybox - 4d9c2a56a0c79aa7a9a017fec0c9e0dcf7e782ad authored almost 3 years ago by Rob Landley <[email protected]>
Add top -h to show bar graphs (start of htop plumbing).

Only does memory/swap so far.

github.com/landley/toybox - d9301d2b7e772ccfcb4d2b1b4e1f9c3925a62b83 authored almost 3 years ago by Rob Landley <[email protected]>
Traverse doubly linked list non-infinitely.

(Can't test this, don't have the hardware, so trying to do only simple
cleanups. Still screwed i...

github.com/landley/toybox - 946f7d63d6c39c8a6555da30f54bf3a1548befde authored almost 3 years ago by Rob Landley <[email protected]>
Minor cleanups.

github.com/landley/toybox - e851ed9363b56051094b00aa2b0a3901c382d477 authored almost 3 years ago by Rob Landley <[email protected]>
gpiod: new commands.

Equivalent to the content of the gpiod debian package. Very different
interface to the tradition...

github.com/landley/toybox - da0514458624ccb02fda91e4dc2f16c6bae41f4a authored almost 3 years ago by Elliott Hughes <[email protected]>
Merge lspci.c with lsusb.c to share infrastructure.

The lspci database loading code should work now, and it can be stored .gz,
and the output is clo...

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