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 riscv64 and sh4eb compiler targets.

7768b83385b2fa7bd095f7fa6a118635bfefdcbb authored 10 months ago by Rob Landley <[email protected]>
Upstream musl-cross-make finally updated to musl-1.2.4.

c39a6eefc8ed61b4d9581b7e2c4356804446874d authored 10 months ago by Rob Landley <[email protected]>
Add mv -x to atomically swap two files.

No idea if Mac or FreeBSD has renameat2(), but glibc refusing to wrap a 10
year old Linux syscal...

a2419ad52d489bf1a84a9f3aa73afb351642c765 authored 10 months ago by Rob Landley <[email protected]>
Promote getopt.

cc67996f8096269465f4035a09027dde5a475d13 authored 10 months ago by Rob Landley <[email protected]>
Cleanup pass.

71f05097a5fd40d666f02ac6118757e2d62e6a2f authored 10 months ago by Rob Landley <[email protected]>
bc: remove a ton of auto-generated test cases that are useless

481ec7b80e2aeb7f976b9debb257127a75bdb6b6 authored 10 months ago by Oliver Webb <[email protected]>
getopt.c: Formatting, printf -> xprintf/xputsn/putchar, Referance link

e58d53d77a6980cadadf0aebf20be794355b6a2d authored 10 months ago by Oliver Webb <[email protected]>
Roadmap updates.

We removed catv, less was listed twice, and dd was promoted.

878786c67e9a75177528e4a7e53213bd91a9043f authored 10 months ago by Rob Landley <[email protected]>
Bugfix for last patch: don't end the stream before writing the data.

a675c9a96c34e26ceaf882698da586df4dda9517 authored 10 months ago by Rob Landley <[email protected]>
xzcat.c: Formatting, Cleanup, Resolve ifdefs, Tests for errors, testing -> testcmd, Rearange/Rewrite large comments to be C99, reange code (main at bottom, do_command above it), Remove some function prototypes, Remove "!= 0/NULL", "x == 0" to "!x", uint32_t to unsigned, uint8_t to char, remove vli_type typedef, remove inline (useless in modern C), Hex -> Dec when under 10,

93cb1c299fdff613cc96e042c3397f51ab1b1f0a authored 10 months ago by Oliver Webb <[email protected]>
ts, remove MAYFORK, add in LINEBUF

c2deb895ac552e640aee5f0a682bbc193c8db72e authored 10 months ago by Oliver Webb <[email protected]>
Change file list collection for build.

Oliver Webb noticed that selecting allnoconfig then enabling just sh
(instead of "make sh" singl...

1e3708a912686557e38a4d023a76ce3f551531c1 authored 10 months ago by Rob Landley <[email protected]>
Shut the compiler up.

c1f29df00588bdee003e7bfe714d307670c197e8 authored 10 months ago by Rob Landley <[email protected]>
When xargs child exits with 255, stop processing input.

b89c8914513ea055fdb686a765aaf4c65eaf706d authored 10 months ago by Rob Landley <[email protected]>
Update getfattr/setfattr tests

In commit 2c96060, the tests for getfattr and setfattr were updated to
only query specific names...

f79b72761f4950021cf97e8c683830d1ff969ead authored 10 months ago by Thiébaud Weksteen <[email protected]>
Fix tests for getfattr/setfattr

The test system may have extended attributes set by default (for
instance, security.selinux on A...

2c96060080ec6f8ea07ede14c8ea2f36293a6379 authored 10 months ago by Thiébaud Weksteen <[email protected]>
Fix nbd-client.test to not abort "make tests".

(If we exit instead of return from scripts/test.sh the subshell doesn't
marshall $FAILCOUNT into...

43c9ee33216cf5a49f227c566367a013a0f165ed authored 10 months ago by Rob Landley <[email protected]>
Fix stty not setting baud rate to 57600

5c8cd70ae0365568ddc98b3f060aa1756fe54519 authored 10 months ago by Taisuke Matsushiro <[email protected]>
Forgot to check in nbd-client.test.

ea51fa537ac9f7ece6befd87640951aeb738634f authored 10 months ago by Rob Landley <[email protected]>
Fixed typo in mkroot/packages/busybox

2663d8e3e7ac870835d9fb87adf35c1f045a5e15 authored 10 months ago by Askar Safin <[email protected]>
Oliver Webb noticed that MAYFORK OLDTOY() aliases don't become builtins.

9f4df994dd9342f8e9a7bb11e92d28e89033a243 authored 10 months ago by Rob Landley <[email protected]>
Whitespace: remove unnecessary/inconsistent newline

73645dac0bc721f69fdd1491b0b558a21f15bda5 authored 11 months ago by Rob Landley <[email protected]>
Whitespace cleanup.

Remove trailing spaces and leading tabs that crept in.

570fc119c68f56f4f3c82bad05fd5957109d49b3 authored 11 months ago by Rob Landley <[email protected]>
Rewrite globals.h generation to only call sed twice.

This version runs every time (much faster), and only includes enabled
structures so the union's ...

8a2d19bf12c2bcfe250bb711df267cd5bd9e755e authored 11 months ago by Rob Landley <[email protected]>
Convert more testing->testcmd.

bd6357ebe5a615a081c09fe7e53596c295a2ee23 authored 11 months ago by Rob Landley <[email protected]>
Grep -Am test (for commit 4277f1801036)

1dd04fe95769086873dbf40fc91e197414908624 authored 11 months ago by Rob Landley <[email protected]>
Add wc -L and tests.

8fbff9dc2e8f3f444437c82835f22ba5d6a73367 authored 11 months ago by Rob Landley <[email protected]>
toybox: Make readelf aware of NT_ANDROID_TYPE_PAD_SEGMENT

Android includes a new note in of type NT_ANDROID_TYPE_PAD_SEGMENT [1],
make readelf -n able to ...

0562629fa863a751e04e4a5979c76b1106e467d3 authored 11 months ago by Kalesh Singh <[email protected]>
top -b: add missing flush.

We need to flush after each batch in batch mode.

(Found by inspection, looking for sleeps simil...

ca6bde9e1c43cb839d974be583e9b05069b4906a authored 11 months ago by Elliott Hughes <[email protected]>
vmstat: fix buffering.

a57e42a386b04f27aa9c000d6425f13bb644c70c authored 11 months ago by Elliott Hughes <[email protected]>
Fix TEST_HOST for wc, adding "utf8locale" function.

792c5a2882e226046cbc83b69b7d16ad20edb038 authored 11 months ago by Rob Landley <[email protected]>
netcat: Implement zero I/O mode

98f982d8b9fce9463dd4862237b574893cf6d6f8 authored 11 months ago by कारतोफ्फेलस्क्रिप्ट™ <[email protected]>
Explain why toybox doesn't have (or need) cttyhack.

bb3d8eb56f2d502370ec37b7b2d85b1881165cc1 authored 11 months ago by Rob Landley <[email protected]>
Fix grep -w and add lots of tests.

6d9a752ac585d4ffc83c00e90985826150ff8298 authored 11 months ago by Rob Landley <[email protected]>
Don't leak script filehandles into child process.

a60c1d84faab4fd3da41d6cd2a14792d7cf5c572 authored 11 months ago by Rob Landley <[email protected]>
Fix ps in mkroot (claim tty) and redirect stdout/stderr to real console as well.

105afc755c31ea9ff12ca9ebed80cca30b15d918 authored 11 months ago by Rob Landley <[email protected]>
Teach setsid to grab tty more forcefully, and that -cc means steal.

2904747da9e41440ebe593ff2cabb601538c3eaf authored 11 months ago by Rob Landley <[email protected]>
Fix "./truncate -s 1e2" to say "not integer" instead of "too large".

It's not scientific notation, it's "exabyte suffix" and then the check
for trailing 'd' meaning ...

4030e4564f849cb4b6f04a8f14990ec4b878f6b6 authored 11 months ago by Rob Landley <[email protected]>
Switch to newer sed syntax to make generated/config.h, as long as we're

using $SED instead of sed anyway (and thus gsed instead of ancient sed
on MacOS). Also, yank chec...

316a2676cce2995a0ff608432f1b7743643568c4 authored 11 months ago by Rob Landley <[email protected]>
grep: add missing flags to usage line.

Since this is my second attempt over a fairly short period of time,
I'm not 100% confident this ...

85341e3e24ceb6f6009d52b5ebd9bbf8c7943a4f authored 11 months ago by Elliott Hughes <[email protected]>
memeater: fixes.

The ULONG_MAX turns into -1 here, which isn't what was intended.
I'll avoid the bikeshed of the ...

1e04fb285c3c09c4ddb38a89368ca5e7c17c3e88 authored 11 months ago by Elliott Hughes <[email protected]>
My own pending local documentation changes to patch.c,

now on top of Elliott's.

1e4362ba3f85879eb3b8affd534d61f2f91ad5ef authored 11 months ago by Rob Landley <[email protected]>
Various help fixes.

Ensure that the usage lines include everything mentioned below in
the detailed help, and vice ve...

d3ee1d94574e28ed3b84fbed7ff5a065bec009be authored 11 months ago by Elliott Hughes <[email protected]>
Cleanup and promote memeater.

Add -M option to switch off mlock(), and only touch start of each page
to dirty them (leaving th...

ebcd678451feadfdec87277c48c12d01f936b391 authored 11 months ago by Rob Landley <[email protected]>
memeater: consume a given amount of memory.

This seems to be a popular reinvention. There are three different
variants in the Android tree, ...

77d4207dbe76c55becf7f56eb01d443eb0bfc319 authored 11 months ago by Elliott Hughes <[email protected]>
docs: stop referring to xflush() after its removal.

6b0ce0acb1f5deb7c9494c10db7854a061ffdb9b authored 11 months ago by Elliott Hughes <[email protected]>
Consistently use xferror() instead of if (fflush()) perror_exit();

and yank an obsolete comment Elliott spotted.

5a4c35342642c1760ccea8be80e95d2f5dd47e03 authored 11 months ago by Rob Landley <[email protected]>
Switch stdout default to block buffering, replace xflush() with xferror(),

change xputs*() to fwrite() instead of write() but add a flush to maintain
previous semantics. Th...

3e0e8c687eee4c292db106efab20f8e565549bf8 authored 11 months ago by Rob Landley <[email protected]>
The dtb files wander around the linux source tree, so use find.

I have no idea why Linux 6.7 decided the dtb path now needs "arm" it _twice_,
but the move broke...

0968ae683fe6b9f0780e84c0e80cc3f86883cda7 authored 11 months ago by Rob Landley <[email protected]>
Compress help text with gzip.

e64f361e407264681f7b97381fd393ea1ee6014b authored 12 months ago by Rob Landley <[email protected]>
ip: add missing flags.

(Same as the ifconfig change, but in a separate patch since this is in
pending and more likely t...

c74ee573d6b49ba5c0666dc225b4de215d17f332 authored 12 months ago by Elliott Hughes <[email protected]>
ifconfig: add missing flags.

I haven't seen these in the wild, but happened to be dealing with the
corresponding header file ...

12ba2c5c2f3e1488ff163b3ac763a49a2bccde91 authored 12 months ago by Elliott Hughes <[email protected]>
Clean up some version skew in the mkroot instructions.

30621e9b0b52372e0255c983d20bdc8b430494a7 authored 12 months ago by Rob Landley <[email protected]>
Silence more false positive gcc warnings.

ASAN finds leaks. The gcc array overlap detector isn't even close to sane,
and we have to switch...

a17fee77885125974adf3499f23d6de8835d0f38 authored 12 months ago by Rob Landley <[email protected]>
Fix sh "exit" command to actually exit (broken in commit 7fac232b4d25).

176abf43dd8b41e66256ad7bb78d7a4df974a978 authored 12 months ago by Rob Landley <[email protected]>
Move the target config if/else staircase into its own function.

6dcd962981c1c4e463665249a219504fa5d7b142 authored 12 months ago by Rob Landley <[email protected]>
Stop using oneit, manually redirect console instead.

a49244ea3987cc00d21438a423a518d7f5862924 authored 12 months ago by Rob Landley <[email protected]>
date: silence gcc 13.2.

The code is correct (and doesn't seem to bother clang), but gcc can't
tell that we don't touch o...

00be08ddd52b53b2fd5332f396d97de9e61ec00c authored 12 months ago by Elliott Hughes <[email protected]>
Change findglobals output.

9a83d36f5fbc2b7d0f974f8064197f2beee9270f authored 12 months ago by Rob Landley <[email protected]>
file: parse JPEG files enough to pull out their size in pixels.

This doesn't handle refilling toybuf in the case where there's so
much EXIF data before the head...

40e73a3873297040f3d57ffa7e1bebcf43f7a267 authored about 1 year ago by Elliott Hughes <[email protected]>
Missed an int64_t in the peek() conversion.

25cae192c6156512776de49b5d5569825a6931c5 authored about 1 year ago by Rob Landley <[email protected]>
Not RFCs of interest, and minor cleanup while I was there.

b8c19ce74bf6fd68121b27dfcb7138516505374d authored about 1 year ago by Rob Landley <[email protected]>
Switch peek() family from int64_t to long long so base types are consistent

on 32/64 bit, and switch some 64 bit constants to ULL for 32 bit.

5e48211929b6842ece062bee871675c9be36102f authored about 1 year ago by Rob Landley <[email protected]>
First chunk of mkroot README. Still missing a lot.

a967146c9c181ed5b2880c1db3d2e184a105f750 authored about 1 year ago by Rob Landley <[email protected]>
Move the modules archive under docs.

If you build kernel modules, it archives them up separately and then appends
them to the initram...

675d992b400a9889e28378ec9c86bf41cd38b7c9 authored about 1 year ago by Rob Landley <[email protected]>
Give tests unique names.

adef982a681f1f90f1122f40ba07e8598daa443c authored about 1 year ago by Rob Landley <[email protected]>
Add basic or1k support. (Kernel doesn't know how to exit qemu yet.)

5647741f66877a236a3102bc88e0f7d21b5a4548 authored about 1 year ago by Rob Landley <[email protected]>
Replace panic=1 argument with PANIC_TIMEOUT=1 confg symbol, and

automatically enable module plumbing if any $MODULES selected.

f0c870d6c1c95195c89d20788ee03a56ed66fbcd authored about 1 year ago by Rob Landley <[email protected]>
Add NOTOYBOX variable to optionally skip the toybox build.

438d237775e261ef77c7f3c2e7d36a73eb13a2b5 authored about 1 year ago by Rob Landley <[email protected]>
Exit with (eventual) error if any characters failed to convert without -c.

53d8a6707e3cf635004927a920c8b7fa967ea966 authored about 1 year ago by Rob Landley <[email protected]>
Fix macOS posix_fallocate().

The fallback ftruncate() call was wrong, because posix_fallocate()
will never shrink a file, but...

d908031520fb3a1b847dde5c55b1f0d698d49edf authored about 1 year ago by Elliott Hughes <[email protected]>
Add fold(1) to the default macOS configuration.

20d5dade3aa59913848205cd745ec8af8f05b590 authored about 1 year ago by Elliott Hughes <[email protected]>
Add second stage toolchain to command line dependencies.

Because we statically link the binaries against musl-libc, we need a musl-libc
toolchain for the...

8092111b9daf2a33760cc9e5ed54872bbddca8cf authored about 1 year ago by Rob Landley <[email protected]>
Add or1k toolchain.

ab046139f9d83136ff1cb143ee5923b3ee22a972 authored about 1 year ago by Rob Landley <[email protected]>
Fetch user/group names with stat.

eccdfdf8e7ef9239c03e90a5cf38e3a1b285bb76 authored about 1 year ago by Rob Landley <[email protected]>
A few more shell tests.

b3691449460ff9ac6167e34fd56da95c4777ec82 authored about 1 year ago by Rob Landley <[email protected]>
Minor cleanup.

82f62a8d86a19b91cff1e264e144dd695784843c authored about 1 year ago by Rob Landley <[email protected]>
Tweak help text and minor variable initialization cleanup.

992a1071e5d75e3311ccf6ccce9c2d17be157115 authored about 1 year ago by Rob Landley <[email protected]>
Fix 32 bit lib/args.c to report out of range numeric values.

Test with "skeleton -c 8g" for example.

c96cdc19b3791eaa0a8038b0ed2f03c6d93c747e authored about 1 year ago by Rob Landley <[email protected]>
Fix truncate -8g on 32 bit.

310c6790cb7cd5e30d5e305d9aba4e6a8116473e authored about 1 year ago by Rob Landley <[email protected]>
Cleanup pass: FLAG() macros, yank unnecessary globals, whitespace/indent.

26883294d524c69aaf007629607232bc3c0fff8b authored about 1 year ago by Rob Landley <[email protected]>
readelf: Fix the section flags handling.

The array of section flags was missing the G flag, so any flags
after it were displayed incorrec...

b6d1d9068c41a0dec960f723b66555c0d96e1535 authored about 1 year ago by Christopher Ferris <[email protected]>
strace: fix arm64 test.

We're not specifically looking for armv8; we want any aarch64.

I've also changed the 32-bit arm...

bf51dae965ff237007377edd93d44c4c682a7d26 authored about 1 year ago by Elliott Hughes <[email protected]>
Redo help text and add ~ to potential output.

10749f0422686db7261f7da35a53d17e0d5a41d6 authored about 1 year ago by Rob Landley <[email protected]>
Don't trigger ASAN leak detector.

7fac232b4d25e51372ee22512c92e724ce97734e authored about 1 year ago by Rob Landley <[email protected]>
Cleanup pass.

c570ab47b03797c460873bf127c497d6133a43c2 authored about 1 year ago by Rob Landley <[email protected]>
Fix gz/xz mismatch.

b5be73ab5e18fcf3a4c6710e01190f633f17a52b authored about 1 year ago by Rob Landley <[email protected]>
Update mcm-buildall.sh wrapper to autodetect host type and automatically

select package versions. This means it now builds arm hosted toolchains on
arm, builds x86-64 (no...

3690494282cf06b58f60b083d3b1c1484077897f authored about 1 year ago by Rob Landley <[email protected]>
Make changes to help text size show up in bloatcheck.

117c020ebcdb6bfcbfed48fa1a6754471a355ecb authored about 1 year ago by Rob Landley <[email protected]>
Elliott wants to use CTRL(), and glibc implicitly pulls this in anyway.

(The explicit #include is because musl and bionic don't.)

8aad4f42671818fd94b7f94d5f6ecead3d3b1e01 authored about 1 year ago by Rob Landley <[email protected]>
Update package version and hit build with a rock until it finishes.

979ee153b217683eba8e4b996429e8a6bda4c5eb authored about 1 year ago by Rob Landley <[email protected]>
Add probes README and move bloatcheck into probes, adjusting makefile.

b166aa7e6240e601219c92a5f289272b3f286a29 authored about 1 year ago by Rob Landley <[email protected]>
Fix sed --help to show full help.

fb2e8ff8133a746a655691887784d7e4873e7341 authored about 1 year ago by Rob Landley <[email protected]>
Let run-qemu.sh be run from other directories.

e54ab9010cfd944f893d1871b8578de313d851ca authored about 1 year ago by Rob Landley <[email protected]>
Add scripts/probes directory with script to measure GLOBALS() size,

and move findglobals and showasm into it.

ef46c278697020671bf97647af22f896b823f715 authored about 1 year ago by Rob Landley <[email protected]>
Don't try to free old optargs in toy_init().

The shell frees it after running a NOFORK and the minor memory leak in
a "nice nohup setsid task...

500a0f93e879244c878c92c83aabf92d871f600a authored about 1 year ago by Rob Landley <[email protected]>
Remove old TODO block, people can ask if they want more features.

e829fe1ca01ea3f8148a88e9a11435ce41d1b7ef authored about 1 year ago by Rob Landley <[email protected]>
file: recognize wasm binary modules.

cf63277fc064c4b566fa27869dadb3540a04f756 authored about 1 year ago by Elliott Hughes <[email protected]>
Move linux32 command to its own file, because BSD can't build it.

(It's also kind of silly: it makes uname -m produce different output.
That's it. It doesn't stop...

d2bada0e42e668ec65e1a853d32ac021feed4952 authored about 1 year ago by Rob Landley <[email protected]>
Use FLAG() macros.

918f1a885b2ff2ad06bf6188962fd2503273cf93 authored about 1 year ago by Rob Landley <[email protected]>