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

Don't show "toybox" header line for "help" output unless called with no args.

(It still shows it for "ls --help" and bare "help", but not "help ls".)

github.com/landley/toybox - e22443c6332c7ce2e38b395cd397b9b0da6b5145 authored over 3 years ago by Rob Landley <[email protected]>
Use wait -n to keep cpus busier during parallel build.

(No guarantee children complete in the order they're launched. Ability to
wait for "next" was ad...

github.com/landley/toybox - f8e28ad07065b55444ba35c0aa0cccd441c4f2bf authored over 3 years ago by Rob Landley <[email protected]>
Samanta Navarro pointed out leftover 32 bit flag limitation in argument groups.

github.com/landley/toybox - 368ee96fb18d82f75e6bc5394edf1e143394b827 authored over 3 years ago by Rob Landley <[email protected]>
Change xabspath() to more granular (flag based) control interface.

github.com/landley/toybox - 0b00ea7fb8f5be7089815d731251ee20d6dddaab authored over 3 years ago by Rob Landley <[email protected]>
Minor cleanups to lsattr and nsenter.

github.com/landley/toybox - ffe98246d323fb575058b91be55378555a543bf3 authored over 3 years ago by Rob Landley <[email protected]>
Clean up eject.c to use linux/eject.h and FLAG() macros.

github.com/landley/toybox - bd001e498d370b05eb062ddc2c3a674230f4c9dd authored over 3 years ago by Rob Landley <[email protected]>
First guess at realpath tests.

github.com/landley/toybox - 9aa39ab5f09902f5393545c17d3d0be452eb6df1 authored over 3 years ago by Rob Landley <[email protected]>
syslogd: Ensure that socket sends are '\n'-terminated

The documentation for syslog states that "[t]he format string need not
include a terminating new...

github.com/landley/toybox - 20f26073462993faf810b7febfac22522b6e0e20 authored over 3 years ago by Anqi Dong <[email protected]>
Fix TEST_HOST path using symlinked command.

github.com/landley/toybox - a125ba10bcdb4f8ee48dead7e3e7553148bddac9 authored over 3 years ago by Rob Landley <[email protected]>
Minor cleanup and rephrase a comment.

github.com/landley/toybox - 65488aff88730eafe49e7e782b5f705a61f3d4b3 authored over 3 years ago by Rob Landley <[email protected]>
Guo Chuang pointed out that lsattr won't build with headers

still within our 7 year time horizon. Clean up the existing
portability attempts while we're ther...

github.com/landley/toybox - 281f30dde58cc16229690a522a0db5b61802220f authored over 3 years ago by Rob Landley <[email protected]>
Add options for reproducibility tests.

github.com/landley/toybox - b1c071ee037b79e7058ebc03f6ca8536e52dc843 authored over 3 years ago by Rob Landley <[email protected]>
Work around a posix violation in the croups filesystem that LTP requires.

Posix says you removing a non-empty directory "shall fail" in both:
https://pubs.opengroup.org/o...

github.com/landley/toybox - 127cff38809ea6c3a37ed3ce7f428cafdc38e2e1 authored over 3 years ago by Rob Landley <[email protected]>
Add split -n test, handle more than one leftover byte, clarify help text.

github.com/landley/toybox - 3fbacb1f5c5eab1727d0bed0bd50d659af854ec7 authored over 3 years ago by Rob Landley <[email protected]>
Fix tail -F with no arguments.

fstat() doesn't fail on stdin, so check for fd 0 explicitly so we don't
try to access zero lengt...

github.com/landley/toybox - 98613d454671ebc3e1a761788453542cd93e6ada authored over 3 years ago by Rob Landley <[email protected]>
Teach tail -F to work on file that doesn't initially exist (needed

new lib/ flag), allow -s to be fraction of a second, inline (anonymous)
struct so globals.h isn't...

github.com/landley/toybox - ba242e08ee83910596420f42830fd3d6fc1868d0 authored over 3 years ago by Rob Landley <[email protected]>
tail: implement -F (and its companion -s).

(Based on someone else's patch.)

Implementing -F with inotify is a lot more work (including mor...

github.com/landley/toybox - 933f238bd1dfd8931fa3cc60f61aea19802daefd authored over 3 years ago by Elliott Hughes <[email protected]>
Add support for -n in split

github.com/landley/toybox - df7bfd2e1e7906596f5ac2ef4cdd51c7f1d918b9 authored over 3 years ago by Ella-0 <[email protected]>
Add support for -d $'\n' (cut by line!) and posix -nb (wraps to start of -c)

github.com/landley/toybox - f4c6375fad2a54770a05e1fffe3a39071fdf47fa authored over 3 years ago by Rob Landley <[email protected]>
Denys Vlasenko pointed out that other implementations use "t" as "total",

and not many systems need to know "free terabytes".

github.com/landley/toybox - b1b7fec80d205d11d6eca42a94b9f6b45eedd262 authored over 3 years ago by Rob Landley <[email protected]>
Update usage: line to include remaining options.

github.com/landley/toybox - 2185571e9d72301b45df37ef623ea350271c6cb9 authored over 3 years ago by Rob Landley <[email protected]>
Switch to FLAG() macros and forbid -f -F at the same time.

github.com/landley/toybox - 985ee78538e40beacb3c62e643ea827ecdd9e48f authored over 3 years ago by Rob Landley <[email protected]>
Second attempt at making --help work with alias ls="ls --color"

github.com/landley/toybox - 29e7ed94a1fe2836d38960b9b3ab3e3b7e61c791 authored over 3 years ago by Rob Landley <[email protected]>
Avoid division by 0 error and mmap(0) failure for missing or zero length files.

github.com/landley/toybox - 39f64538c2f5f56918d3352bc8a03aae6be0d1d9 authored over 3 years ago by Rob Landley <[email protected]>
Check in the .htaccess file that triggers the server side includes

for the nav menu.

github.com/landley/toybox - f509ccd339679937e80b385aae9515aa0a161adb authored over 3 years ago by Rob Landley <[email protected]>
Revert the --help change, it breaks stuff like "echo -- --help".

github.com/landley/toybox - 08bfbd965e3b7714105ed6c1130f507ae06a5159 authored over 3 years ago by Rob Landley <[email protected]>
Ryan Prichard pointed out --help and --version can't be first in aliases.

github.com/landley/toybox - 0c6000ad4847a21ef1513985b1d96f5e1a0503e4 authored over 3 years ago by Rob Landley <[email protected]>
md5sum.c: simplify the table setup slightly.

I don't think it was wrong before, but the strchr() in particular left
me scratching my head. Th...

github.com/landley/toybox - 412054cff027ee52cadc3684f6018cfb0e5eb8e2 authored over 3 years ago by Elliott Hughes <[email protected]>
netstat.c: fix bounds checks.

github.com/landley/toybox - 827cabf78905d4ccb24087df57f01adfeb30ad84 authored over 3 years ago by Elliott Hughes <[email protected]>
dmesg.c: fix off-by-one.

github.com/landley/toybox - 7ee66e9aec520afa1138876074b815295b6d1821 authored over 3 years ago by Elliott Hughes <[email protected]>
"make install_airlock" no longer needs host versions of sha256/512sum.

github.com/landley/toybox - df63d49f9f661cb48a082a993770c9ba4d76c744 authored over 3 years ago by Rob Landley <[email protected]>
modprobe: fix parsing of short lines.

The intent here seems to have been to ignore lines with too few
arguments to be valid, but since...

github.com/landley/toybox - 0842ada4d6982f1b4c06a1bf08403961ca95f0bc authored over 3 years ago by Elliott Hughes <[email protected]>
More sha*sum cleanup.

Make everything an OLDTOY of md5sum (combining help text), remove enum,
combine unions, actually...

github.com/landley/toybox - d02da4ec606c82108a589826730eefb01c5ca2ed authored over 3 years ago by Rob Landley <[email protected]>
Remove unbalanced parentheses and repeated transition.

github.com/landley/toybox - 70754564fab010a9219735da231dc1e1e1aa7784 authored over 3 years ago by Rob Landley <[email protected]>
Fix big endian in new sha2 commands.

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

github.com/landley/toybox - a0cb955df0978d3a91c560ee66d4c6109acbefed authored over 3 years ago by Rob Landley <[email protected]>
Fix "make tests" exiting on failure when test run in subshell.

github.com/landley/toybox - de474ba0395024e4149ae8be61097dec6b91cf07 authored over 3 years ago by Rob Landley <[email protected]>
date: add -s.

Used by someone's script.

github.com/landley/toybox - b93f5908e2f0932620e5120fb52a942fa5573cf9 authored over 3 years ago by Elliott Hughes <[email protected]>
Add tests for other sha2 variants.

github.com/landley/toybox - c7e261720f3f5295dcb4e2f07d2e5fcb93bb9ce6 authored over 3 years ago by Rob Landley <[email protected]>
Merge sha1sum and sha256sum tests.

github.com/landley/toybox - 5166c7f455d55443b29e7b8e8a0782b18efb1011 authored over 3 years ago by Rob Landley <[email protected]>
Clear environment variables between tests.

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

github.com/landley/toybox - 3eb92247b34466aeff9fa313ea76cb61cf48835c authored over 3 years ago by Rob Landley <[email protected]>
first rough version of built-in hash sums

github.com/landley/toybox - 2513951e9e3449ec8fb585fc5c2b52e0131131ce authored over 3 years ago by Dan Brown <dan@weetabix>
add entry points for sha224,256,384,512

github.com/landley/toybox - db3e9003c5f2c9b10b258728d82dff796c4379de authored over 3 years ago by Dan Brown <dan@weetabix>
attempt to calculate round constants instead of using lookup table; doesn't work for SHA-512's 64-bit values

github.com/landley/toybox - 57be6ee6d193632d53d8e196d6b75d30a612d672 authored over 3 years ago by Dan Brown <dan@weetabix>
add sha256sum command which runs built-in sha1sum routine

github.com/landley/toybox - 71b8c2d9e8bd6526409d440ea4ead410f8d6d8a9 authored over 3 years ago by Dan Brown <dan@weetabix>
clean up unsuccessful attempt to calculate constants

github.com/landley/toybox - 1a1e02aae88b87930818b24f1233b80784e717b8 authored over 3 years ago by Dan Brown <dan@weetabix>
fix USE declarations

github.com/landley/toybox - 3e7561cc63b746c9c0bfcf5b65c69fb4b6094160 authored over 3 years ago by Dan Brown <dan@weetabix>
toysh: wchar_t->unsigned and turn "not" into a flag.

github.com/landley/toybox - 73b1e013f937ef825e4ed033838704b0502abbcb authored over 3 years ago by Rob Landley <[email protected]>
Dear gcc: no, it really can't be used uninitalized.

github.com/landley/toybox - e2975ef43ea4493f3fd666a10dd89e47909a3efd authored over 3 years ago by Rob Landley <[email protected]>
xparsedate should ignore trailing + or - (does not change timezone)

github.com/landley/toybox - 657cc63108993c8b5a8eb69ebba5a708022a786a authored over 3 years ago by Rob Landley <[email protected]>
Teach xparsedate() to handle more whitespace.

github.com/landley/toybox - 54788b5670b1914061763b60a91d0842983ab428 authored over 3 years ago by Rob Landley <[email protected]>
Add find -quit

github.com/landley/toybox - e3062c3bd3666d4641481dbf436c72e3d46ab727 authored over 3 years ago by Rob Landley <[email protected]>
Better link to LP64 documentation.

github.com/landley/toybox - 293185e71e33274610e8b5801f7f41ff0c620edd authored over 3 years ago by Rob Landley <[email protected]>
Freenode->libera.chat ala ethereal->wireshark.

https://boingboing.net/2021/05/19/freenode-irc-staff-quit-after-new-owner-seizes-control.html
ht...

github.com/landley/toybox - 6ce11972ecdf798872b0236b4921cb3ff35f7d29 authored over 3 years ago by Rob Landley <[email protected]>
readelf: fix 32-bit build on Android.

github.com/landley/toybox - b024b85151d6c3ec1c08bd63ae381aef3d4a840c authored over 3 years ago by Elliott Hughes <[email protected]>
Commands in pending do not default y.

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

github.com/landley/toybox - 7a48df38d47057c74d31ac6f80e3aa2b0e88f9af authored over 3 years ago by Rob Landley <[email protected]>
The linux console code is inconsistent: most console= lines accept

/dev/name but for some reason powerpc's hvc driver does not.

github.com/landley/toybox - 462b7237592f9ba14bca995f893cb9ae47d2042d authored over 3 years ago by Rob Landley <[email protected]>
Add black and white mode (x to toggle)

github.com/landley/toybox - 495bedd37f60064a0b67e6a481ea6e7576555e58 authored over 3 years ago by Rob Landley <[email protected]>
Promote readelf to other.

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

github.com/landley/toybox - 36dd3b2d27ac7a89754dbdbed6b81f3662e4dafb authored over 3 years ago by Rob Landley <[email protected]>
modprobe: don't stop on empty lines.

I don't _think_ that can happen with the .dep files since they're
machine-generated, but the con...

github.com/landley/toybox - 267a1a572d8780c11b63fb8640e4c3752ce7f1a1 authored over 3 years ago by Elliott Hughes <[email protected]>
Missed a couple in the wchar_t -> unsigned conversion.

github.com/landley/toybox - 2a8e198104e605b44d8955b6e247d579e098d776 authored over 3 years ago by Rob Landley <[email protected]>
Convert utf8towc from wchar_t to unsigned (to match wctoutf8).

The maximum unicode code point is 0x10ffff which is 21 bits.

github.com/landley/toybox - d3025b14b9c13286b79f256d019a99da9425ea0e authored over 3 years ago by Rob Landley <[email protected]>
Clear errno in loop.

Fixes theoretical bug I haven't actually seen.

github.com/landley/toybox - 08481ee37ad5070ff1033d57351c3fa456d0729d authored over 3 years ago by Rob Landley <[email protected]>
Promote unicode (merge into ascii.c)

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

github.com/landley/toybox - 16e2520bf8d3ac90012bbda150d39856064439c3 authored over 3 years ago by Rob Landley <[email protected]>
The (insane) unicode consortium arbitrarily limited the codepoint space

(utf8 can go to 7 bytes but unicode can't) so only test unicode range.

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

typo

github.com/landley/toybox - 4f927e39c7035ca5447090749eda59fc810886a6 authored over 3 years ago by peterennis <[email protected]>
Add $BASHPID to show current process in () and such. ($$ is top level shell)

github.com/landley/toybox - 2833b8b99ee3db8b3a43644c2d46593f944c6dcb authored over 3 years ago by Rob Landley <[email protected]>
Tighten up echo help text.

github.com/landley/toybox - 1de4b25999392fd72438177661c63a445a477cdf authored over 3 years ago by Rob Landley <[email protected]>
Fix nohang wait.

github.com/landley/toybox - da9786fc64a4e0c54c3eeba2699f8926943a54f0 authored over 3 years ago by Rob Landley <[email protected]>
More job control plumbing.

github.com/landley/toybox - 9abc0ef9336000c71324fed919fa730ff5e8b022 authored over 3 years ago by Rob Landley <[email protected]>
Add OpenBSD support

github.com/landley/toybox - 76676d772db4b7878fc82a879c55e04f21cfbb1d authored over 3 years ago by Ella-0 <[email protected]>
telnet: just use dprintf() for IAC sequences.

I don't see the need for the separate buffer, and just using dprintf()
directly is less code. Th...

github.com/landley/toybox - ecdd8def34c8fb887ac879296b485afcdbf01aed authored over 3 years ago by Elliott Hughes <[email protected]>
Make && and || work on function calls.

github.com/landley/toybox - b8c0b615fcfd78654cab190e6b551cea0acd4ccf authored over 3 years ago by Rob Landley <[email protected]>
Toysh don't free function arguments before function returns.

github.com/landley/toybox - 137ab99aa35a94ad1519b294906522ce108e3451 authored over 3 years ago by Rob Landley <[email protected]>
Make toysh function return properly and run next statement.

github.com/landley/toybox - da735a2052f64cd53a8b79596946ee187cc58a81 authored over 3 years ago by Rob Landley <[email protected]>
Make toysh actually run a shell function.

github.com/landley/toybox - de04ee7f8dede68073518fc8ed3889051a527157 authored over 3 years ago by Rob Landley <[email protected]>
Use cheaper test that works with "toybox" name as a prefix.

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

This patch does two things:

1. Enable line buffering for echo and yes. I found this through tes...

github.com/landley/toybox - 2c30d4f7a6a6ee16f9149519f6e2634b58c281cb authored over 3 years ago by Elliott Hughes <[email protected]>
Don't send reverse DNS lookups out into the world for something that's

mostly only safe to use behind a firewall or through a VPN these days.

github.com/landley/toybox - 4785b7611de7eae714941b2e648ffa85c336108b authored over 3 years ago by Rob Landley <[email protected]>
More toysh function work.

Of course "x() { echo hello; } | tr e f; x" allows the pipe but not the call.
Ok, take out the u...

github.com/landley/toybox - 88ebd0d8150ff983e6a7520dc77cd8b69cf52a25 authored over 3 years ago by Rob Landley <[email protected]>
Bugfix: sed s command couldn't skip initial match.

github.com/landley/toybox - 773d404ee2b99797763012a32b317422ac18d64e authored over 3 years ago by Rob Landley <[email protected]>
First pass at toysh function() definition plumbing.

github.com/landley/toybox - 1a7ebb16ee72f4f19d3c1eae3c4c42cf8734cab9 authored over 3 years ago by Rob Landley <[email protected]>
telnet: various fixes.

This got a bit out of hand. All I wanted to fix was the CR conversion to
get this part of https:...

github.com/landley/toybox - afcb643002302e02631320eebb5c8a15e375693a authored over 3 years ago by Elliott Hughes <[email protected]>
telnetd: handle TIME_WAIT better.

After a network outage, a long-running telnetd was spinning trying to
read from a socket that wa...

github.com/landley/toybox - dbd7a975ec64dc52af704970109f8c637600b088 authored over 3 years ago by Elliott Hughes <[email protected]>
telnetd: pass `-h hostname` to login(1).

Handling utmp is login's job: telnetd should just pass the appropriate
option to login.

(I was ...

github.com/landley/toybox - 35c484489b06134fb1ac56801c621020b935b2a7 authored over 3 years ago by Elliott Hughes <[email protected]>
cpio: Don't lchown() if -t is specified

When using -t to inspect an archive, cpio would try to set the owner of
any symlink in the archi...

github.com/landley/toybox - c366525850cfdfd2884ab9a214be21a4f66505bd authored over 3 years ago by Yi-Yo Chiang via Toybox <[email protected]>
Test doesn't need the < /dev/null and input being a pipe doesn't make

legacy cpio think it's reading from 1970's era reel-to-reel magnetic tape.

github.com/landley/toybox - f73d10a50afb2073c3825614d0d6811737cfaf91 authored over 3 years ago by Rob Landley <[email protected]>
hexedit: various improvements.

I've been using hexedit quite a lot, mainly for _corrupting_ files, and
have been meaning to sen...

github.com/landley/toybox - 76479c3ed071f1e4d985694ad86a144e8a716f5c authored over 3 years ago by Elliott Hughes <[email protected]>
setsid(1): call setsid(2) before setpgrp(2).

The new cpio test that uses setsid fails if you're using the toybox
setsid. Move the setpgrp() c...

github.com/landley/toybox - 9cacde056ce7f6bd4b3a2f181017a33c6dff3e5a authored over 3 years ago by Elliott Hughes <[email protected]>
Teach cpio to skip runs of NUL bytes between records.

github.com/landley/toybox - 95a15d238120167959bd7aee3e71ac5be3a72804 authored over 3 years ago by Rob Landley <[email protected]>
cpio: continue past TRAILER!!! (like kernel does) but error on empty archive.

github.com/landley/toybox - dafb9211c77788d7ea124aca18205e924d1ac48a authored over 3 years ago by Rob Landley <[email protected]>
Fix $IFS: skip trailing whitespace after first non-whitespace separator.

github.com/landley/toybox - 31eb5b82db0f1ec4a7d444fe2d53e2327f1cdd02 authored over 3 years ago by Rob Landley <[email protected]>
readelf: Display properly in 80 columns, don't reject .bss off end of file.

github.com/landley/toybox - 9259cb7c87191a34451c6e295994785e6b35755a authored over 3 years ago by Rob Landley <[email protected]>
toysh: save _resolved_ variable contents in $IFS cache.

github.com/landley/toybox - 2d690ed7f534e19de1b113afe8d8378363849a36 authored over 3 years ago by Rob Landley <[email protected]>
Fix more toysh tests.

github.com/landley/toybox - 554565b70def39c39716ed495cafccb262a6af9a authored almost 4 years ago by Rob Landley <[email protected]>
Fix next couple of sh tests.

Cached $IFS value has to be per function context because local vars.

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