Ecosyste.ms: OpenCollective

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

github.com/landley/toybox

toybox
https://github.com/landley/toybox

Add HASTIMERS probe to work around bug in gcc 9.3

b0e204b33d77df151e2c33c48973820ba0fe0ca7 authored about 3 years ago
More roadmap/mkstatus tweaks.

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

d2ee698f9031cfd37eb45672d80bd51bceeee136 authored about 3 years ago
wget: Add OpenSSL and BoringSSL support

f574706bb8a16b0cd32fba61c1b259969a70870f authored about 3 years ago
wget: Make ifdefs sane for other people

dedb7419c2ef6a8ba0cc80347b40e8d9ead098c2 authored about 3 years ago
wget: Add TLS Support v2

df6da52cd502398fe6c35f43d83f92d89b3956d3 authored about 3 years ago
wget: Fix bug if read fails

5499b2453c2d679d13113e1efa65207e3757f2f5 authored over 3 years ago
wget: Cleanup and add support for HTTP 1.1 and chunked encoding

2d03640cdc85dd9f9810969bd8ee7d98c5bc67b1 authored over 3 years ago
tftpd: fix the parsing of options

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

2c0a82e3e234d4263a32e759699ba64e4b56dac0 authored over 3 years ago
Update roadmap and mkstatus.

3b41ba187f164907640af2f6e76bd51724848e3e authored over 3 years ago
wget: cleanup, add support for file disposition and fix HTTP protocol version

0f52e6cbddd64fab11aa74deea25ff77f0ef7564 authored over 3 years ago
If you disable buitins, "env -i env" has no $PATH, so $(which env).

018db3feca576afded0da56c9d9c192417833f6a authored over 3 years ago
Help text tweak.

d319b974b8d3b91f9df17ae18bfcf27fbc2d336f authored over 3 years ago
Glibc is so fragile stripping .gnu.version breaks regexec(REG_STARTEND)

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

852e4ca9b87e94afaa7a71f0e70a18eb72f826c3 authored over 3 years ago
mkdir: return error for existing directories without -p flag

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

S...

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

4c450efa50222450f1d30413553496fb8808ed88 authored over 3 years ago
Teach more variable plumbing about +=, rename VAR_GLOBAL -> VAR_EXPORT,

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

d6b8a3cbbbca6cb119cb1f4c167e792a941bee03 authored over 3 years ago
Strip slightly harder.

9d7d87eae4a42ddbdd86233e78e24269c4af09cd authored over 3 years ago
pidof: fix -s.

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

1986075975db4cdab08133f8299ad72dd5af4b23 authored over 3 years ago
Cleanups.

9358f178cb7606e63a1e259949e0f549c32546f3 authored over 3 years ago
new toy: Simple hexdump implementation

- Add simple hexdump implementation
- Add tests for hexdump

6e6b6eb6fa68d5b764751e9658c4fd15b7555b95 authored over 3 years ago
Use -dead_strip for --gc-sections on macOS.

5a82dad22212b163323e23bb0383f3f7cd9002be authored over 3 years ago
The mac compiler can't optimize out unused functions.

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

340b1cf8f79cc9ea7232453e0052d2418c806103 authored over 3 years ago
Attempt to fix yesterday's mac commit.

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

261d72a5efc8aeec307624b19f72769d4a34e771 authored over 3 years ago
Move the sys/personality.h import Mac can't do into portability.h.

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

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

3065c604d821de06ff6acae37fc0de4e6248e1e4 authored over 3 years ago
The VERBOSE= behavior changed a while ago.

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

07beb3816006231d499b85abbffe71e0413461fe authored over 3 years ago
comm: stop using get_line().

Also use FLAG().

2243f6f2ad08d6fb58140ba05a00e5615dff760c authored over 3 years ago
pmap: cleanup.

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

7e7537651abfe3bdaba71082654135886efccccc authored over 3 years ago
Test tweaks.

3dd73e9d1086fa7da9b0514ffd503a2473b31fdc authored over 3 years ago
Add linux32, remove uname 32 bit hack, just say "Toybox" for -o,

add to -a, add to help.

de233eb9fa6f4ebccc74d7e54b650ca935d43927 authored over 3 years ago
www: Fix typo in about page

cbf3ee3a2f2242565ba4c960eefbbc144e58536f authored over 3 years ago
blkid: more scanf fun.

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

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

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

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

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

47258fc9a943e3618e8e6fc637eabe83dda3db28 authored over 3 years ago
Fix warnings.

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

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

dcfac5c983ad4e428db2bce519e37cf221957cef authored over 3 years ago
timeout: use the monotonic clock.

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

81859b8a57567171692f334833d4bbbaf3fc6057 authored over 3 years ago
Fix grep --color to highlight all matches, based on Peter Collingbourne's

patch but with several other cleanups rolled in.

3062fc9e9a9f0d7ce347f32fa2e03cc8a793298f authored over 3 years ago
makedevs: stop using get_line().

Also use FLAG().

2a5dc105a323a20ab3dce82f3b39fa20555ab174 authored over 3 years ago
userdel: stop using get_line().

b1e25f15dd1f0fbec77860b54def2881c9d27f5c authored over 3 years ago
init: stop using get_line().

05e4f52c3ccce4ce370ff272f5339a84ba8f1d69 authored over 3 years ago
crond: stop using get_line().

Also reuse isdotdot() from lib.

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

84b76f4be4deff568ee79b0ef5ed63318018a504 authored over 3 years ago
arp: just use fscanf().

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

bb0dda496d84b3c98b32d6c3905d467de6e298b8 authored over 3 years ago
arp: some cleanup.

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

ae533cb8defdf953bb667899360e75d9c7e39a3a authored over 3 years ago
grep: Implement -L.

fb3c380d070bb310352038a3a29de8506e6ff5af authored over 3 years ago
Add load average to uptime -p.

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

ab833461a0845e633cd392fe9b0ede86b42b9a64 authored over 3 years ago
uptime: trivial modernization.

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

d33a827dc0c52d2f36d3705c30cf72a690e957ab authored over 3 years ago
strace: fix macOS build.

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

0de0a707a53c69b2a4c099294bd36d3f00affd92 authored over 3 years ago
Tweak help text and todo list.

3f8c3059a1f29a8af7a3f26e8474bfcd8ac12e01 authored over 3 years ago
Fix error detection for $((1+3-)) and such.

317f1fa37c31491abea3e46514f06ee18a0305b5 authored over 3 years ago
Start of $((math))

e5ebc2a0af36e45ed121d8a0fa77170c579f1017 authored over 3 years ago
Fix error path that was trying to free constant strings.

(Fixes "while do" segfaulting.)

42c0c0df6c7e04729be3ec27a64d5e11f4c5e31d authored over 3 years ago
strace: initial commit.

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

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

ddfc5ac65584c9177f0429ca8386d1e1297bea77 authored over 3 years ago
The Linux errno from unlink(dir) defies posix and this bothers some

people, so don't depend on it.

a3b423c58e6f67131ef5f1874fc6bd38880322b6 authored over 3 years ago
The default behavior for make " " is just crazy.

744b9532cd3a6c1ddb54eca64188b2a4a96ecd7a authored over 3 years ago
Have uname -o print "Android" on android.

57fbeebb991a40e347df03563a5aae3192fc7d30 authored over 3 years ago
Add a local git mirror (todo item since github was acquired)...

fb47b0120f7aa73c0821a8c55e15540d83baed01 authored over 3 years ago
Tabs + newline added to time.c

5d9432ba05f12301939ad669ecf318a707fdcea8 authored over 3 years ago
modprobe: handle module lists correctly.

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

Also:

* sort the options in ...

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

811ff5254838ec8c6780a1aed03b48c964d425a3 authored over 3 years ago
Fiddle with help text.

59006c40d366f6295b18523e74c48c328f8fe656 authored over 3 years ago
Check for --help before "Not root".

80f82b2b5ee874637b0704f3a5a32c2b6fb86d14 authored over 3 years ago
reboot/halt/poweroff: add -d.

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

5b18047a37d282f2fe4de49714fefea0ed8f263e authored over 3 years ago
rmmod: various fixes.

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

635ab629673cb851f22289e19920dad45c69d7b5 authored over 3 years ago
i2cdump: fix behavior on read failure.

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

a169c46f62dac57a907c58a852d48fdce235d62a authored over 3 years ago
Allow standalone builds to override .config filename too.

5ef32b9530198f22a01c65e6d297644e19b89c5c authored over 3 years ago
Add find -lname -ilname and -d as a synonym for -depth.

358109442c37bec57efd053aa777fd34bfe39186 authored over 3 years ago
Minor cleanup (mostly whitespace and curly brackets).

7ef3a94541d5a932c9d644766235de62d3271474 authored over 3 years ago
Explain a corner case where the source filename matching

the first command name is relevant.

e8f3f6c4f3d1afd51a2bb5a82c9f4e145a0d385f authored over 3 years ago
i2cdetect: add -q.

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

62b43622a16253f9cd09f510b87e087da3b59fe8 authored over 3 years ago
Go ahead and leak the filehandle, the command exits immediately.

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

ba1fad65327d20518e98a824864b16a9e8ccbf57 authored over 3 years ago
Fix leap years, add 3 argument (day month year) mode, cleanup.

d9cf7a047543c9927bc755371769f6380d95a4d2 authored over 3 years ago
Use FLAG macros and optstr ranges, minor cleanups, tweak help text.

01f1a54769c8c1fe30a475e6999357f19b60e6aa authored over 3 years ago
Silence "fortify" warning, add "had errors" message at end, minor cleanups.

3b71ff9d7e4cab52b9d421bc8daf2bdd7810731d authored over 3 years ago
Cleanup pass on file.c, add more tests.

842b0d24e304c57506ca83c147119dac29485bf9 authored over 3 years ago
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 :-)

840560c5eb62907d65a655bf49af36d0e3229c66 authored over 3 years ago
Fix "xsignal 0: Invalid argument" after commit 0737ba9e8dd1.

23f16ee33e85aea73709c2e4d467288d56ad244c authored over 3 years ago
Add kill -0 test.

f438b6731da7e59df4d22ede60e5c8a7b6bd8998 authored over 3 years ago
Comment out tests realpath doesn't implement yet.

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

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

366d5a96b041ebcd71e44249fb1472e27ea0c705 authored over 3 years ago
Minor cleanups.

a2bf4916be195f75c6097188401e472137276d49 authored over 3 years ago
Another getuid->geteuid switch.

b44af2dbc1aa5f020200615a664ec9f5c233d1f0 authored over 3 years ago
Tell dd not to write to status stderr instead of discarding stderr.

(In case of other errors.)

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

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

9e7dbb6586ac98f50520db4b7614466a33e6f508 authored over 3 years ago
Cleanup: use FLAG() macros.

3e30fb883137836a465c34df91af0eac338f5edf authored over 3 years ago
Switch a getuid() check to geteuid()

bc1dde183538670a95f43b13a9c8b1f11b7cfdf2 authored over 3 years ago
Copy data being checksummed to "save.dat" for post-failure analysis.

8d127abe871abee437921084bb34a4eac9cfd381 authored over 3 years ago
mkroot hexagon taget.

6b52142d276bbb3fbd3393f188b4416555bc827c authored over 3 years ago
Log the right name of user switched from.

6968b7a64096132e6e5129ba652b2c7d91c5d079 authored over 3 years ago
fix compilation failure on 3.10 kernel

3cf5ec1e95683b59762759cc8171e427e77b06f0 authored over 3 years ago
People still using Centos 7 asked for some bug workarounds.

f37e5bf24540ff3435734df8100416f404422662 authored over 3 years ago