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

Add HASTIMERS probe to work around bug in gcc 9.3

github.com/landley/toybox - b0e204b33d77df151e2c33c48973820ba0fe0ca7 authored about 3 years ago by Rob Landley <[email protected]>
More roadmap/mkstatus tweaks.

Use more _cmd suffixes on anchor tags because <a name=blah> and <span id=blah>
apparently stomp ...

github.com/landley/toybox - d2ee698f9031cfd37eb45672d80bd51bceeee136 authored about 3 years ago by Rob Landley <[email protected]>
wget: Add OpenSSL and BoringSSL support

github.com/landley/toybox - f574706bb8a16b0cd32fba61c1b259969a70870f authored about 3 years ago by Eric Molitor <[email protected]>
wget: Make ifdefs sane for other people

github.com/landley/toybox - dedb7419c2ef6a8ba0cc80347b40e8d9ead098c2 authored about 3 years ago by Eric Molitor <[email protected]>
wget: Add TLS Support v2

github.com/landley/toybox - df6da52cd502398fe6c35f43d83f92d89b3956d3 authored about 3 years ago by Eric Molitor <[email protected]>
wget: Fix bug if read fails

github.com/landley/toybox - 5499b2453c2d679d13113e1efa65207e3757f2f5 authored about 3 years ago by Eric Molitor <[email protected]>
wget: Cleanup and add support for HTTP 1.1 and chunked encoding

github.com/landley/toybox - 2d03640cdc85dd9f9810969bd8ee7d98c5bc67b1 authored about 3 years ago by Eric Molitor <[email protected]>
tftpd: fix the parsing of options

TFTP supports passing options such as 'blksize' as part of the initial
RRQ or WRQ packet. These ...

github.com/landley/toybox - 2c0a82e3e234d4263a32e759699ba64e4b56dac0 authored about 3 years ago by Michael Hope <[email protected]>
Update roadmap and mkstatus.

github.com/landley/toybox - 3b41ba187f164907640af2f6e76bd51724848e3e authored about 3 years ago by Rob Landley <[email protected]>
wget: cleanup, add support for file disposition and fix HTTP protocol version

github.com/landley/toybox - 0f52e6cbddd64fab11aa74deea25ff77f0ef7564 authored about 3 years ago by Eric Molitor <[email protected]>
If you disable buitins, "env -i env" has no $PATH, so $(which env).

github.com/landley/toybox - 018db3feca576afded0da56c9d9c192417833f6a authored about 3 years ago by Rob Landley <[email protected]>
Help text tweak.

github.com/landley/toybox - d319b974b8d3b91f9df17ae18bfcf27fbc2d336f authored about 3 years ago by Rob Landley <[email protected]>
Glibc is so fragile stripping .gnu.version breaks regexec(REG_STARTEND)

and thus grep's match-after-null test.

github.com/landley/toybox - 852e4ca9b87e94afaa7a71f0e70a18eb72f826c3 authored about 3 years ago by Rob Landley <[email protected]>
mkdir: return error for existing directories without -p flag

Existing directories should be ignored without errors only with -p flag (according
to POSIX).

S...

github.com/landley/toybox - b8418383a033a5bb6967889b3d1502e15127250b authored about 3 years ago by Mikhail Kashkarov <[email protected]>
tail: add the long option synonyms for -n and -c.

Believe it or not -- I struggle to believe it myself -- we've been
ignoring tail's complaint tha...

github.com/landley/toybox - 4c450efa50222450f1d30413553496fb8808ed88 authored about 3 years ago by Elliott Hughes <[email protected]>
Teach more variable plumbing about +=, rename VAR_GLOBAL -> VAR_EXPORT,

add calculate() wrapper around recalculate(), add the two EPOCH time magics,
handle VAR_TOUPPER, ...

github.com/landley/toybox - d6b8a3cbbbca6cb119cb1f4c167e792a941bee03 authored about 3 years ago by Rob Landley <[email protected]>
Strip slightly harder.

github.com/landley/toybox - 9d7d87eae4a42ddbdd86233e78e24269c4af09cd authored over 3 years ago by Rob Landley <[email protected]>
pidof: fix -s.

Also modernize pidof.c, even though the bug was in lib.

github.com/landley/toybox - 1986075975db4cdab08133f8299ad72dd5af4b23 authored over 3 years ago by Elliott Hughes <[email protected]>
Cleanups.

github.com/landley/toybox - 9358f178cb7606e63a1e259949e0f549c32546f3 authored over 3 years ago by Rob Landley <[email protected]>
new toy: Simple hexdump implementation

- Add simple hexdump implementation
- Add tests for hexdump

github.com/landley/toybox - 6e6b6eb6fa68d5b764751e9658c4fd15b7555b95 authored over 3 years ago by Moritz Röhrich <[email protected]>
Use -dead_strip for --gc-sections on macOS.

github.com/landley/toybox - 5a82dad22212b163323e23bb0383f3f7cd9002be authored over 3 years ago by Elliott Hughes <[email protected]>
The mac compiler can't optimize out unused functions.

For some reason "configure" is explicitly NOT passing
LDOPTIMIZE="-Wl,--gc-sections" to the mac ...

github.com/landley/toybox - 340b1cf8f79cc9ea7232453e0052d2418c806103 authored over 3 years ago by Rob Landley <[email protected]>
Attempt to fix yesterday's mac commit.

github.com/landley/toybox - a39df1343a42f810cde5a6f5ff446eb3ff9c8b8b authored over 3 years ago by Rob Landley <[email protected]>
about.html: when was Android M again?

M was long enough ago that even I don't remember exactly when, and I
work on Android! The year i...

github.com/landley/toybox - 261d72a5efc8aeec307624b19f72769d4a34e771 authored over 3 years ago by Elliott Hughes <[email protected]>
Move the sys/personality.h import Mac can't do into portability.h.

(Need to test this on FreeBSD too...)

github.com/landley/toybox - 7af571d485b7baa659919b7e1716e06fc24052a5 authored over 3 years ago by Rob Landley <[email protected]>
lsof: explicit size for device major:minor buffer.

Major and minor get 12 bits and 20 bits respectively, so when displayed
that's up to 3 digits (b...

github.com/landley/toybox - 3065c604d821de06ff6acae37fc0de4e6248e1e4 authored over 3 years ago by Elliott Hughes <[email protected]>
The VERBOSE= behavior changed a while ago.

Update the documentation and github CI actions (seeing all failures on
github makes sense becaus...

github.com/landley/toybox - 07beb3816006231d499b85abbffe71e0413461fe authored over 3 years ago by Elliott Hughes <[email protected]>
comm: stop using get_line().

Also use FLAG().

github.com/landley/toybox - 2243f6f2ad08d6fb58140ba05a00e5615dff760c authored over 3 years ago by Elliott Hughes <[email protected]>
pmap: cleanup.

Remove unbounded scanfs. Also reduce the amount of allocation and
freeing by reusing the getline...

github.com/landley/toybox - 7e7537651abfe3bdaba71082654135886efccccc authored over 3 years ago by Elliott Hughes <[email protected]>
Test tweaks.

github.com/landley/toybox - 3dd73e9d1086fa7da9b0514ffd503a2473b31fdc authored over 3 years ago by Rob Landley <[email protected]>
Add linux32, remove uname 32 bit hack, just say "Toybox" for -o,

add to -a, add to help.

github.com/landley/toybox - de233eb9fa6f4ebccc74d7e54b650ca935d43927 authored over 3 years ago by Rob Landley <[email protected]>
www: Fix typo in about page

github.com/landley/toybox - cbf3ee3a2f2242565ba4c960eefbbc144e58536f authored over 3 years ago by Johannes Schmitz <[email protected]>
blkid: more scanf fun.

The unbounded %[] here made me look at the kernel, where the size of a
block device name is limi...

github.com/landley/toybox - cb1af1882a40096e97759d159e6a7e58719c729a authored over 3 years ago by Elliott Hughes <[email protected]>
chvt: remove old workarounds.

We don't need the fd=fd hack for GCC 3.4 in 2021, and <linux/vt.h> has
given names to the two ma...

github.com/landley/toybox - a07921d80b7b71c493d47e655f6419c844bc7108 authored over 3 years ago by Elliott Hughes <[email protected]>
getline() returns -1 on EOF, not 0.

...but you can get 0 if you have a "no newline at end of file" file.

I've been through all the ...

github.com/landley/toybox - b30b1857da88f38f5f9f2e943f872d81ec6eb680 authored over 3 years ago by Elliott Hughes <[email protected]>
arp: fix the scanf %s numbers.

Just like every other time I've used %s with scanf, I was off by
one... The number _doesn't_ inc...

github.com/landley/toybox - 7c608c506465a633cc5e51f490a34b7c7ff301f9 authored over 3 years ago by Elliott Hughes <[email protected]>
Add += prefix and direct assignment (not in export x+=y and friends yet),

add tests, and update TEST_HOST tests that bash 5.x broke.

github.com/landley/toybox - 47258fc9a943e3618e8e6fc637eabe83dda3db28 authored over 3 years ago by Rob Landley <[email protected]>
Fix warnings.

github.com/landley/toybox - f3559dc06f5d2a55417a824e494d1138d6017811 authored over 3 years ago by Rob Landley <[email protected]>
macOS: add a timer_create() and timer_settimer() to fix the build.

Note that these aren't equivalent to the CLOCK_MONOTONIC timer we
have on Linux, but short of sp...

github.com/landley/toybox - 92d1ceffe8da58eaa0910ed9bcc17faab7416a43 authored over 3 years ago by Elliott Hughes <[email protected]>
The FS_IOC_{GET,SET}{VERSION,FLAGS} ioctls are historically broken

(see https://www.spinics.net/lists/linux-api/msg49101.html) and use
an unsigned int argument whil...

github.com/landley/toybox - dcfac5c983ad4e428db2bce519e37cf221957cef authored over 3 years ago by Rob Landley <[email protected]>
timeout: use the monotonic clock.

On a desktop or server the difference between the realtime and monotonic
clocks doesn't matter m...

github.com/landley/toybox - 81859b8a57567171692f334833d4bbbaf3fc6057 authored over 3 years ago by Elliott Hughes <[email protected]>
Fix grep --color to highlight all matches, based on Peter Collingbourne's

patch but with several other cleanups rolled in.

github.com/landley/toybox - 3062fc9e9a9f0d7ce347f32fa2e03cc8a793298f authored over 3 years ago by Rob Landley <[email protected]>
makedevs: stop using get_line().

Also use FLAG().

github.com/landley/toybox - 2a5dc105a323a20ab3dce82f3b39fa20555ab174 authored over 3 years ago by Elliott Hughes <[email protected]>
userdel: stop using get_line().

github.com/landley/toybox - b1e25f15dd1f0fbec77860b54def2881c9d27f5c authored over 3 years ago by Elliott Hughes <[email protected]>
init: stop using get_line().

github.com/landley/toybox - 05e4f52c3ccce4ce370ff272f5339a84ba8f1d69 authored over 3 years ago by Elliott Hughes <[email protected]>
crond: stop using get_line().

Also reuse isdotdot() from lib.

github.com/landley/toybox - 762400721d7bfc760a5612efde55d599ee3525c2 authored over 3 years ago by Elliott Hughes <[email protected]>
bootchartd: stop using get_line().

We don't even need to read from /proc at all here: we can get the time
since boot from clock_get...

github.com/landley/toybox - 84b76f4be4deff568ee79b0ef5ed63318018a504 authored over 3 years ago by Elliott Hughes <[email protected]>
arp: just use fscanf().

Actually, the general get_line() -> getline() transformation isn't
necessary here. These are all...

github.com/landley/toybox - bb0dda496d84b3c98b32d6c3905d467de6e298b8 authored over 3 years ago by Elliott Hughes <[email protected]>
arp: some cleanup.

Remove another get_line() caller, but also fix the basic "show ARP
table" behavior which was pre...

github.com/landley/toybox - ae533cb8defdf953bb667899360e75d9c7e39a3a authored over 3 years ago by Elliott Hughes <[email protected]>
grep: Implement -L.

github.com/landley/toybox - fb3c380d070bb310352038a3a29de8506e6ff5af authored over 3 years ago by Peter Collingbourne <[email protected]>
Add load average to uptime -p.

This is already the non-machine-readable version, most scripts ignore
extra fields on the end th...

github.com/landley/toybox - ab833461a0845e633cd392fe9b0ede86b42b9a64 authored over 3 years ago by Rob Landley <[email protected]>
uptime: trivial modernization.

(I was looking at this code because I was looking at the output in a bug
report, and wasn't sure...

github.com/landley/toybox - d33a827dc0c52d2f36d3705c30cf72a690e957ab authored over 3 years ago by Elliott Hughes <[email protected]>
strace: fix macOS build.

Obviously we're never going to be able to build strace for macOS,
but right now the reference to...

github.com/landley/toybox - 0de0a707a53c69b2a4c099294bd36d3f00affd92 authored over 3 years ago by Elliott Hughes <[email protected]>
Tweak help text and todo list.

github.com/landley/toybox - 3f8c3059a1f29a8af7a3f26e8474bfcd8ac12e01 authored over 3 years ago by Rob Landley <[email protected]>
Fix error detection for $((1+3-)) and such.

github.com/landley/toybox - 317f1fa37c31491abea3e46514f06ee18a0305b5 authored over 3 years ago by Rob Landley <[email protected]>
Start of $((math))

github.com/landley/toybox - e5ebc2a0af36e45ed121d8a0fa77170c579f1017 authored over 3 years ago by Rob Landley <[email protected]>
Fix error path that was trying to free constant strings.

(Fixes "while do" segfaulting.)

github.com/landley/toybox - 42c0c0df6c7e04729be3ec27a64d5e11f4c5e31d authored over 3 years ago by Rob Landley <[email protected]>
strace: initial commit.

This is most notably lacking -p and -f, and only covers a small subset
of system calls, but it's...

github.com/landley/toybox - d62ee37816b3de528a19059bcf9911709fd55f0b authored over 3 years ago by Elliott Hughes <[email protected]>
log(1): add no-arguments=>stdin behavior to match logger(1).

Requested by Facebook to avoid difficult quoting, but something we
should do anyway just to matc...

github.com/landley/toybox - ddfc5ac65584c9177f0429ca8386d1e1297bea77 authored over 3 years ago by Elliott Hughes <[email protected]>
The Linux errno from unlink(dir) defies posix and this bothers some

people, so don't depend on it.

github.com/landley/toybox - a3b423c58e6f67131ef5f1874fc6bd38880322b6 authored over 3 years ago by Rob Landley <[email protected]>
The default behavior for make " " is just crazy.

github.com/landley/toybox - 744b9532cd3a6c1ddb54eca64188b2a4a96ecd7a authored over 3 years ago by Rob Landley <[email protected]>
Have uname -o print "Android" on android.

github.com/landley/toybox - 57fbeebb991a40e347df03563a5aae3192fc7d30 authored over 3 years ago by Rob Landley <[email protected]>
Add a local git mirror (todo item since github was acquired)...

github.com/landley/toybox - fb47b0120f7aa73c0821a8c55e15540d83baed01 authored over 3 years ago by Rob Landley <[email protected]>
Tabs + newline added to time.c

github.com/landley/toybox - 5d9432ba05f12301939ad669ecf318a707fdcea8 authored over 3 years ago by [email protected] <[email protected]>
modprobe: handle module lists correctly.

The while loop for -a or -r was forgetting that argv is a char**.

Also:

* sort the options in ...

github.com/landley/toybox - f4c9e355e8c5816918aebd6400e1891f56dd55c9 authored over 3 years ago by Elliott Hughes <[email protected]>
insmod: tiny cleanup.

finit_module(2) was added in Linux 3.8, and even CentOS 7.2 has 3.10, so
we should be able to as...

github.com/landley/toybox - 811ff5254838ec8c6780a1aed03b48c964d425a3 authored over 3 years ago by Elliott Hughes <[email protected]>
Fiddle with help text.

github.com/landley/toybox - 59006c40d366f6295b18523e74c48c328f8fe656 authored over 3 years ago by Rob Landley <[email protected]>
Check for --help before "Not root".

github.com/landley/toybox - 80f82b2b5ee874637b0704f3a5a32c2b6fb86d14 authored over 3 years ago by Rob Landley <[email protected]>
reboot/halt/poweroff: add -d.

busybox has a -d that delays before proceeding. Annoyingly systemd also
has a -d, but that's to ...

github.com/landley/toybox - 5b18047a37d282f2fe4de49714fefea0ed8f263e authored over 3 years ago by Elliott Hughes <[email protected]>
rmmod: various fixes.

My original intent was to just get rid of the meaningless O_EXCL, which
isn't used by the kernel...

github.com/landley/toybox - 635ab629673cb851f22289e19920dad45c69d7b5 authored over 3 years ago by Elliott Hughes <[email protected]>
i2cdump: fix behavior on read failure.

The other implementations just show Xs for the missing data and carry on.

github.com/landley/toybox - a169c46f62dac57a907c58a852d48fdce235d62a authored over 3 years ago by Elliott Hughes <[email protected]>
Allow standalone builds to override .config filename too.

github.com/landley/toybox - 5ef32b9530198f22a01c65e6d297644e19b89c5c authored over 3 years ago by Rob Landley <[email protected]>
Add find -lname -ilname and -d as a synonym for -depth.

github.com/landley/toybox - 358109442c37bec57efd053aa777fd34bfe39186 authored over 3 years ago by Rob Landley <[email protected]>
Minor cleanup (mostly whitespace and curly brackets).

github.com/landley/toybox - 7ef3a94541d5a932c9d644766235de62d3271474 authored over 3 years ago by Rob Landley <[email protected]>
Explain a corner case where the source filename matching

the first command name is relevant.

github.com/landley/toybox - e8f3f6c4f3d1afd51a2bb5a82c9f4e145a0d385f authored over 3 years ago by Rob Landley <[email protected]>
i2cdetect: add -q.

When I implemented this, I didn't actually have any i2c devices to test
with, and "quick write" ...

github.com/landley/toybox - 62b43622a16253f9cd09f510b87e087da3b59fe8 authored over 3 years ago by Elliott Hughes <[email protected]>
Go ahead and leak the filehandle, the command exits immediately.

github.com/landley/toybox - 2f2c53f15b498e3ecf5cde499c5fdca4a965bd55 authored over 3 years ago by Rob Landley <[email protected]>
You can't use logwrapper through the multiplexer because

the point is to symlink other command names to it, and toybox
will see argv0 as the other command...

github.com/landley/toybox - ba1fad65327d20518e98a824864b16a9e8ccbf57 authored over 3 years ago by Rob Landley <[email protected]>
Fix leap years, add 3 argument (day month year) mode, cleanup.

github.com/landley/toybox - d9cf7a047543c9927bc755371769f6380d95a4d2 authored over 3 years ago by Rob Landley <[email protected]>
Use FLAG macros and optstr ranges, minor cleanups, tweak help text.

github.com/landley/toybox - 01f1a54769c8c1fe30a475e6999357f19b60e6aa authored over 3 years ago by Rob Landley <[email protected]>
Silence "fortify" warning, add "had errors" message at end, minor cleanups.

github.com/landley/toybox - 3b71ff9d7e4cab52b9d421bc8daf2bdd7810731d authored over 3 years ago by Rob Landley <[email protected]>
Cleanup pass on file.c, add more tests.

github.com/landley/toybox - 842b0d24e304c57506ca83c147119dac29485bf9 authored over 3 years ago by Rob Landley <[email protected]>
file: basic Mach-O universal binary support.

PowerPC may be dead and gone, but arm64 is the new x86-64, and
x86-64 the new PowerPC :-)

github.com/landley/toybox - 840560c5eb62907d65a655bf49af36d0e3229c66 authored over 3 years ago by Elliott Hughes <[email protected]>
Fix "xsignal 0: Invalid argument" after commit 0737ba9e8dd1.

github.com/landley/toybox - 23f16ee33e85aea73709c2e4d467288d56ad244c authored over 3 years ago by Rob Landley <[email protected]>
Add kill -0 test.

github.com/landley/toybox - f438b6731da7e59df4d22ede60e5c8a7b6bd8998 authored over 3 years ago by Rob Landley <[email protected]>
Comment out tests realpath doesn't implement yet.

github.com/landley/toybox - 8b64d4ac83b9406f587543ed99927f2175b82b2d authored over 3 years ago by Rob Landley <[email protected]>
kill: allow `kill -0` for testing process existence.

Allow num_to_sig(0) so kill doesn't disallow -0 because it can't
round-trip, and then teach list...

github.com/landley/toybox - 0737ba9e8dd19c101bee7798170a7ad8f5c90c40 authored over 3 years ago by Elliott Hughes <[email protected]>
ps: exit with exit status 1 if no processes shown.

This matches procps ps, and at least one LTP test relies on it. The
behavior is specifically "no...

github.com/landley/toybox - 366d5a96b041ebcd71e44249fb1472e27ea0c705 authored over 3 years ago by Elliott Hughes <[email protected]>
Minor cleanups.

github.com/landley/toybox - a2bf4916be195f75c6097188401e472137276d49 authored over 3 years ago by Rob Landley <[email protected]>
Another getuid->geteuid switch.

github.com/landley/toybox - b44af2dbc1aa5f020200615a664ec9f5c233d1f0 authored over 3 years ago by Rob Landley <[email protected]>
Tell dd not to write to status stderr instead of discarding stderr.

(In case of other errors.)

github.com/landley/toybox - 593ccd3cb4a38b9d57955d3b83361990918a07bc authored over 3 years ago by Rob Landley <[email protected]>
Avoid race condition where child process complains about nothing.

Two NUL headers indicate end of archive, but some implementations add lots
of extra NUL padding ...

github.com/landley/toybox - de72ce4aa5f01faec6d03cf1c9ed918c058b3942 authored over 3 years ago by Rob Landley <[email protected]>
First guess at implementing tar --selinux, passes regression tests but

haven't got a test environment for the new stuff yet.

Note: this implementation does not require...

github.com/landley/toybox - 9e7dbb6586ac98f50520db4b7614466a33e6f508 authored over 3 years ago by Rob Landley <[email protected]>
Cleanup: use FLAG() macros.

github.com/landley/toybox - 3e30fb883137836a465c34df91af0eac338f5edf authored over 3 years ago by Rob Landley <[email protected]>
Switch a getuid() check to geteuid()

github.com/landley/toybox - bc1dde183538670a95f43b13a9c8b1f11b7cfdf2 authored over 3 years ago by Rob Landley <[email protected]>
Copy data being checksummed to "save.dat" for post-failure analysis.

github.com/landley/toybox - 8d127abe871abee437921084bb34a4eac9cfd381 authored over 3 years ago by Rob Landley <[email protected]>
mkroot hexagon taget.

github.com/landley/toybox - 6b52142d276bbb3fbd3393f188b4416555bc827c authored over 3 years ago by Rob Landley <[email protected]>
Log the right name of user switched from.

github.com/landley/toybox - 6968b7a64096132e6e5129ba652b2c7d91c5d079 authored over 3 years ago by Rob Landley <[email protected]>
fix compilation failure on 3.10 kernel

github.com/landley/toybox - 3cf5ec1e95683b59762759cc8171e427e77b06f0 authored over 3 years ago by GuoChuang <[email protected]>
People still using Centos 7 asked for some bug workarounds.

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