Ecosyste.ms: OpenCollective

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

github.com/landley/toybox

toybox
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".)

e22443c6332c7ce2e38b395cd397b9b0da6b5145 authored over 3 years ago
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...

f8e28ad07065b55444ba35c0aa0cccd441c4f2bf authored over 3 years ago
Samanta Navarro pointed out leftover 32 bit flag limitation in argument groups.

368ee96fb18d82f75e6bc5394edf1e143394b827 authored over 3 years ago
Change xabspath() to more granular (flag based) control interface.

0b00ea7fb8f5be7089815d731251ee20d6dddaab authored over 3 years ago
Minor cleanups to lsattr and nsenter.

ffe98246d323fb575058b91be55378555a543bf3 authored over 3 years ago
Clean up eject.c to use linux/eject.h and FLAG() macros.

bd001e498d370b05eb062ddc2c3a674230f4c9dd authored over 3 years ago
First guess at realpath tests.

9aa39ab5f09902f5393545c17d3d0be452eb6df1 authored over 3 years ago
syslogd: Ensure that socket sends are '\n'-terminated

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

20f26073462993faf810b7febfac22522b6e0e20 authored over 3 years ago
Fix TEST_HOST path using symlinked command.

a125ba10bcdb4f8ee48dead7e3e7553148bddac9 authored over 3 years ago
Minor cleanup and rephrase a comment.

65488aff88730eafe49e7e782b5f705a61f3d4b3 authored over 3 years ago
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...

281f30dde58cc16229690a522a0db5b61802220f authored over 3 years ago
Add options for reproducibility tests.

b1c071ee037b79e7058ebc03f6ca8536e52dc843 authored over 3 years ago
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...

127cff38809ea6c3a37ed3ce7f428cafdc38e2e1 authored over 3 years ago
Add split -n test, handle more than one leftover byte, clarify help text.

3fbacb1f5c5eab1727d0bed0bd50d659af854ec7 authored over 3 years ago
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...

98613d454671ebc3e1a761788453542cd93e6ada authored over 3 years ago
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...

ba242e08ee83910596420f42830fd3d6fc1868d0 authored over 3 years ago
tail: implement -F (and its companion -s).

(Based on someone else's patch.)

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

933f238bd1dfd8931fa3cc60f61aea19802daefd authored over 3 years ago
Add support for -n in split

df7bfd2e1e7906596f5ac2ef4cdd51c7f1d918b9 authored over 3 years ago
Add support for -d $'\n' (cut by line!) and posix -nb (wraps to start of -c)

f4c6375fad2a54770a05e1fffe3a39071fdf47fa authored over 3 years ago
Denys Vlasenko pointed out that other implementations use "t" as "total",

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

b1b7fec80d205d11d6eca42a94b9f6b45eedd262 authored over 3 years ago
Update usage: line to include remaining options.

2185571e9d72301b45df37ef623ea350271c6cb9 authored over 3 years ago
Switch to FLAG() macros and forbid -f -F at the same time.

985ee78538e40beacb3c62e643ea827ecdd9e48f authored over 3 years ago
Second attempt at making --help work with alias ls="ls --color"

29e7ed94a1fe2836d38960b9b3ab3e3b7e61c791 authored over 3 years ago
Avoid division by 0 error and mmap(0) failure for missing or zero length files.

39f64538c2f5f56918d3352bc8a03aae6be0d1d9 authored over 3 years ago
Check in the .htaccess file that triggers the server side includes

for the nav menu.

f509ccd339679937e80b385aae9515aa0a161adb authored over 3 years ago
Revert the --help change, it breaks stuff like "echo -- --help".

08bfbd965e3b7714105ed6c1130f507ae06a5159 authored over 3 years ago
Ryan Prichard pointed out --help and --version can't be first in aliases.

0c6000ad4847a21ef1513985b1d96f5e1a0503e4 authored over 3 years ago
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...

412054cff027ee52cadc3684f6018cfb0e5eb8e2 authored over 3 years ago
netstat.c: fix bounds checks.

827cabf78905d4ccb24087df57f01adfeb30ad84 authored over 3 years ago
dmesg.c: fix off-by-one.

7ee66e9aec520afa1138876074b815295b6d1821 authored over 3 years ago
"make install_airlock" no longer needs host versions of sha256/512sum.

df63d49f9f661cb48a082a993770c9ba4d76c744 authored over 3 years ago
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...

0842ada4d6982f1b4c06a1bf08403961ca95f0bc authored over 3 years ago
More sha*sum cleanup.

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

d02da4ec606c82108a589826730eefb01c5ca2ed authored over 3 years ago
Remove unbalanced parentheses and repeated transition.

70754564fab010a9219735da231dc1e1e1aa7784 authored over 3 years ago
Fix big endian in new sha2 commands.

19e0cbabb4bd32343789febf3729cc91ed5aab4f authored over 3 years ago
Cleanup.

a0cb955df0978d3a91c560ee66d4c6109acbefed authored over 3 years ago
Fix "make tests" exiting on failure when test run in subshell.

de474ba0395024e4149ae8be61097dec6b91cf07 authored over 3 years ago
date: add -s.

Used by someone's script.

b93f5908e2f0932620e5120fb52a942fa5573cf9 authored over 3 years ago
Add tests for other sha2 variants.

c7e261720f3f5295dcb4e2f07d2e5fcb93bb9ce6 authored over 3 years ago
Merge sha1sum and sha256sum tests.

5166c7f455d55443b29e7b8e8a0782b18efb1011 authored over 3 years ago
Clear environment variables between tests.

e00b4c26553beae06e0a30365cba291921106a48 authored over 3 years ago
Add sha256sum tests.

3eb92247b34466aeff9fa313ea76cb61cf48835c authored over 3 years ago
first rough version of built-in hash sums

2513951e9e3449ec8fb585fc5c2b52e0131131ce authored over 3 years ago
add entry points for sha224,256,384,512

db3e9003c5f2c9b10b258728d82dff796c4379de authored over 3 years ago
attempt to calculate round constants instead of using lookup table; doesn't work for SHA-512's 64-bit values

57be6ee6d193632d53d8e196d6b75d30a612d672 authored over 3 years ago
add sha256sum command which runs built-in sha1sum routine

71b8c2d9e8bd6526409d440ea4ead410f8d6d8a9 authored over 3 years ago
clean up unsuccessful attempt to calculate constants

1a1e02aae88b87930818b24f1233b80784e717b8 authored over 3 years ago
fix USE declarations

3e7561cc63b746c9c0bfcf5b65c69fb4b6094160 authored over 3 years ago
toysh: wchar_t->unsigned and turn "not" into a flag.

73b1e013f937ef825e4ed033838704b0502abbcb authored over 3 years ago
Dear gcc: no, it really can't be used uninitalized.

e2975ef43ea4493f3fd666a10dd89e47909a3efd authored over 3 years ago
xparsedate should ignore trailing + or - (does not change timezone)

657cc63108993c8b5a8eb69ebba5a708022a786a authored over 3 years ago
Teach xparsedate() to handle more whitespace.

54788b5670b1914061763b60a91d0842983ab428 authored over 3 years ago
Add find -quit

e3062c3bd3666d4641481dbf436c72e3d46ab727 authored over 3 years ago
Better link to LP64 documentation.

293185e71e33274610e8b5801f7f41ff0c620edd authored over 3 years ago
Freenode->libera.chat ala ethereal->wireshark.

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

6ce11972ecdf798872b0236b4921cb3ff35f7d29 authored over 3 years ago
readelf: fix 32-bit build on Android.

b024b85151d6c3ec1c08bd63ae381aef3d4a840c authored over 3 years ago
Commands in pending do not default y.

22172726c38c3be0b6828b8b180aceec60130a69 authored over 3 years ago
0.8.5 release

7a48df38d47057c74d31ac6f80e3aa2b0e88f9af authored over 3 years ago
The linux console code is inconsistent: most console= lines accept

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

462b7237592f9ba14bca995f893cb9ae47d2042d authored over 3 years ago
Add black and white mode (x to toggle)

495bedd37f60064a0b67e6a481ea6e7576555e58 authored over 3 years ago
Promote readelf to other.

a4430f2fbe5339c256b595c79be00e043ea0458a authored over 3 years ago
Cleanup readelf.

36dd3b2d27ac7a89754dbdbed6b81f3662e4dafb authored over 3 years ago
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...

267a1a572d8780c11b63fb8640e4c3752ce7f1a1 authored over 3 years ago
Missed a couple in the wchar_t -> unsigned conversion.

2a8e198104e605b44d8955b6e247d579e098d776 authored over 3 years ago
Convert utf8towc from wchar_t to unsigned (to match wctoutf8).

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

d3025b14b9c13286b79f256d019a99da9425ea0e authored over 3 years ago
Clear errno in loop.

Fixes theoretical bug I haven't actually seen.

08481ee37ad5070ff1033d57351c3fa456d0729d authored over 3 years ago
Promote unicode (merge into ascii.c)

3670ac7432ea5eb31f7432a20c596c1a990f9975 authored over 3 years ago
Style cleanup.

16e2520bf8d3ac90012bbda150d39856064439c3 authored over 3 years ago
The (insane) unicode consortium arbitrarily limited the codepoint space

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

3748313ffd75cf177d90e209a269e17913fed111 authored over 3 years ago
Update README

typo

4f927e39c7035ca5447090749eda59fc810886a6 authored over 3 years ago
Add $BASHPID to show current process in () and such. ($$ is top level shell)

2833b8b99ee3db8b3a43644c2d46593f944c6dcb authored over 3 years ago
Tighten up echo help text.

1de4b25999392fd72438177661c63a445a477cdf authored over 3 years ago
Fix nohang wait.

da9786fc64a4e0c54c3eeba2699f8926943a54f0 authored almost 4 years ago
More job control plumbing.

9abc0ef9336000c71324fed919fa730ff5e8b022 authored almost 4 years ago
Add OpenBSD support

76676d772db4b7878fc82a879c55e04f21cfbb1d authored almost 4 years ago
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...

ecdd8def34c8fb887ac879296b485afcdbf01aed authored almost 4 years ago
Make && and || work on function calls.

b8c0b615fcfd78654cab190e6b551cea0acd4ccf authored almost 4 years ago
Toysh don't free function arguments before function returns.

137ab99aa35a94ad1519b294906522ce108e3451 authored almost 4 years ago
Make toysh function return properly and run next statement.

da735a2052f64cd53a8b79596946ee187cc58a81 authored almost 4 years ago
Make toysh actually run a shell function.

de04ee7f8dede68073518fc8ed3889051a527157 authored almost 4 years ago
Use cheaper test that works with "toybox" name as a prefix.

a28ad6de961169acf50d96427259f9eba6039b5d authored almost 4 years ago
More line buffering.

This patch does two things:

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

2c30d4f7a6a6ee16f9149519f6e2634b58c281cb authored almost 4 years ago
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.

4785b7611de7eae714941b2e648ffa85c336108b authored almost 4 years ago
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...

88ebd0d8150ff983e6a7520dc77cd8b69cf52a25 authored almost 4 years ago
Bugfix: sed s command couldn't skip initial match.

773d404ee2b99797763012a32b317422ac18d64e authored almost 4 years ago
First pass at toysh function() definition plumbing.

1a7ebb16ee72f4f19d3c1eae3c4c42cf8734cab9 authored almost 4 years ago
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:...

afcb643002302e02631320eebb5c8a15e375693a authored almost 4 years ago
telnetd: handle TIME_WAIT better.

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

dbd7a975ec64dc52af704970109f8c637600b088 authored almost 4 years ago
telnetd: pass `-h hostname` to login(1).

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

(I was ...

35c484489b06134fb1ac56801c621020b935b2a7 authored almost 4 years ago
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...

c366525850cfdfd2884ab9a214be21a4f66505bd authored almost 4 years ago
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.

f73d10a50afb2073c3825614d0d6811737cfaf91 authored almost 4 years ago
hexedit: various improvements.

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

76479c3ed071f1e4d985694ad86a144e8a716f5c authored almost 4 years ago
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...

9cacde056ce7f6bd4b3a2f181017a33c6dff3e5a authored almost 4 years ago
Teach cpio to skip runs of NUL bytes between records.

95a15d238120167959bd7aee3e71ac5be3a72804 authored almost 4 years ago
cpio: continue past TRAILER!!! (like kernel does) but error on empty archive.

dafb9211c77788d7ea124aca18205e924d1ac48a authored almost 4 years ago
Fix $IFS: skip trailing whitespace after first non-whitespace separator.

31eb5b82db0f1ec4a7d444fe2d53e2327f1cdd02 authored almost 4 years ago
readelf: Display properly in 80 columns, don't reject .bss off end of file.

9259cb7c87191a34451c6e295994785e6b35755a authored almost 4 years ago
toysh: save _resolved_ variable contents in $IFS cache.

2d690ed7f534e19de1b113afe8d8378363849a36 authored almost 4 years ago
Fix more toysh tests.

554565b70def39c39716ed495cafccb262a6af9a authored almost 4 years ago
Fix next couple of sh tests.

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

f4003d5803d27519af9050ebd98d6897359c5ebe authored almost 4 years ago