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

help_exit() tweak.

github.com/landley/toybox - 8941e5fef58025591b7441372d486cf5de46dd39 authored over 9 years ago
xvfork went away.

github.com/landley/toybox - 3d9dce3b523f5e4a01189d4735c02a9b33d8c7ab authored over 9 years ago
Make defconfig build for nommu.

Adds XVFORK() macro, teaches xpopen_both() to call /proc/self/exe with NULL
argv (and converts c...

github.com/landley/toybox - 7d6af77804adc069a83e8566250f868a6cb9786e authored over 9 years ago
Another chunk of nommu support, replacing toys.recursion with toys.stacktop.

github.com/landley/toybox - 3b51a07e478d64a84e40b3a7c026b2f8566b194b authored over 9 years ago
xexec() is noreturn.

github.com/landley/toybox - 0593b32337b48d60a521922e2355c78750e635d2 authored over 9 years ago
Add xvfork() as a static inline and use it from various places.

Note: vfork(), like fork(), can return -1 if too many processes, and
we should notice and fail l...

github.com/landley/toybox - 847bcb63b541e4fbbfa3dccfe3022745cbe9a06a authored over 9 years ago
The -o /dev/null trick in probing isn't compatible with elf2flt, so use tempfile.

github.com/landley/toybox - 712e163bb0956b94c27051d0175e719b92f453ad authored over 9 years ago
Fix a couple things gcc is too dumb to figure out on its own.

github.com/landley/toybox - 35c92f1e396d86f04616cd01ef3f045bc2dfb98e authored over 9 years ago
Add find tests.

github.com/landley/toybox - 59cd560200942a063c217e327fc7941ffb70abe9 authored over 9 years ago
Fix a find segfault.

Elliott Hughes found a bug https://android-review.googlesource.com/#/c/170020/
and Daniel K. Lev...

github.com/landley/toybox - edae0b07db841e3bf8449d591971f04c9957ecbc authored over 9 years ago
Replace toys.exithelp with help_exit() in lib.

github.com/landley/toybox - e5354ca12a232b3f97726214254a868771cb70d1 authored over 9 years ago
Squish more warnings in pending.

github.com/landley/toybox - d067571abb2b7934f3350c90ca891beb987c68fd authored over 9 years ago
Squish a warning in pending.

github.com/landley/toybox - a35650c83eaff85714f6483cccb7dd9c8c5bb3e8 authored over 9 years ago
Fix netstat -e.

The -e flag should add "user" and "inode" columns to the TCP output.

Also truncate IP addresses...

github.com/landley/toybox - 0c276c21d205cfc3d8e45581d28f02431d2eef85 authored over 9 years ago
i already did -l and -t, the positive side of -p, plus name filtering...

github.com/landley/toybox - b36123164057c555a1d0769ca26089cd6e002040 authored over 9 years ago
Fix netstat -p.

netstat -p was failing for any cmdline longer than 21 characters. (A
typical Chrome render proce...

github.com/landley/toybox - fe998fe2bb75a73ba58a7c048f50f45ee76a0531 authored over 9 years ago
increase the size of progname to avoid buffer overflow

github.com/landley/toybox - 104fbaaceaf4001d8c9c998981e7bcc22fdb027d authored over 9 years ago
Remove prompt argument from yesno(), caller can fprintf(stderr, "blah") itself.

This fixes the build break, the change to yesno() prototype accidentally got
checked in last com...

github.com/landley/toybox - b1353fb9185928249f273340c601244291e269fe authored over 9 years ago
Switch HR_SI to HR_1000, make binary the default, make HR_B only affect bytes,

and update the tests.

github.com/landley/toybox - 960100aa9cb588a73125d43ec0b0a7152a95b43f authored over 9 years ago
Two large thinkos in oneit: -3 was always enabled and signal numbers were

overwritten before we set up signal handlers.

github.com/landley/toybox - 60d1aea2df9a8cc1e975ed5fee079982612f5966 authored over 9 years ago
Add seq -f tests, tweak help text, and catch one more error case.

github.com/landley/toybox - 73eca9182dfd7c2d52775ca24da6a7a0d55b3cee authored over 9 years ago
ls -h support.

It turns out that people are anticipating the switch to toybox ls from
toolbox ls on the assumpt...

github.com/landley/toybox - 091997e4c6f5655876a3133ae80b52c2d91a8216 authored over 9 years ago
df -h and -H.

This doesn't address the lack of support for a variable-width
"Filesystems" column, but it doesn...

github.com/landley/toybox - c82343fe0bb293d3ed60b9122426f0bbcb0e58b0 authored over 9 years ago
Implement lsof.

This is a superset of the current AOSP lsof (which is itself a
superset of the lsof in Android M...

github.com/landley/toybox - 7309d96822fe5891651b85d22cb8e79285e2d6ba authored over 9 years ago
Make human_readable() handle base 1024 units without floating point.

Rounds correctly via brute force, displayed digits are decimal even when
working with powers of ...

github.com/landley/toybox - d06ea3708d12e3e87fa26441715ac47f6dc63032 authored over 9 years ago
seq -f %0-f is a valid pattern.

github.com/landley/toybox - 5640847b0328c5319f353eed985781e166547ef7 authored over 9 years ago
If you start a git commit and then edit the file more on the filesystem

before saving, the updates don't go in the commit. Behavior difference
between git and mercurial,...

github.com/landley/toybox - 3426da02e60f33114ff0b3eac8680ab5bb3cdd93 authored over 9 years ago
Sanitize seq -f string.

github.com/landley/toybox - 6ff12f703214bee5cb92ba0c851969dffc6c29cd authored over 9 years ago
vmstat: fix units for bi and bo columns

pgpgin and pgpgout in /proc/vmstat are in kbytes, not pages.
(see http://lxr.free-electrons.com/...

github.com/landley/toybox - 54524ccbf83feb842271cf08349d9626b753f20f authored over 9 years ago
Trivial code style tweak.

github.com/landley/toybox - 3b83ab5cc76ea4a1dcd785c7df4957f3b5062f72 authored over 9 years ago
vmstat: reset header pointer when looping

Modifying the headers pointer when printing the headers causes
a buffer overrun the second time ...

github.com/landley/toybox - 7d58b3085c6ebaa02cf567f25a741b878ee0a87c authored over 9 years ago
ls -l user/group/security context should be left-aligned.

Right-aligned looks pretty good to me, but it's not what anyone else does.

github.com/landley/toybox - b1b0399dc701f3c9af19a09164a4f536bc00eb2c authored over 9 years ago
Work around bug in gcc 5.2.0 that miscompiles linux 2.6.12's kconfig.

github.com/landley/toybox - 7cdb8af914777ec68086e9f4f9382168e4ce2ff2 authored over 9 years ago
Fix mv on overwrite.

We need to remove the destination, not the source, to be able to overwrite.

github.com/landley/toybox - f1f20b9306ed3658e9433e00e78f2ac640d0160d authored over 9 years ago
Add portability.h glue to let uptime build without TOYBOX_UTMPX.

github.com/landley/toybox - e96dd0716e5932625af9e8a91bfa3d989abe1fdb authored over 9 years ago
Build updates: make change should use top level .config for global settings,

add NOSTRIP variable to force skipping strip, and save intermediate flag
data in generated/flags....

github.com/landley/toybox - 6fde0f9be2c78d336b2bbcb4c1488bd171c8bccd authored over 9 years ago
Menuconfig option for musl-libc pretending mmu is just pining for the fijords.

github.com/landley/toybox - 8c588d822a4771420fa32571693f728e809bb2f2 authored over 9 years ago
Static analysis from Hyejin Kim found possible pointer underflow.

Now that the kernel's 128k environment size has been lifted, it might be
possible to feed in a g...

github.com/landley/toybox - 9215cbc062f85cd285d8906a0b36941fa44d06c7 authored over 9 years ago
I discovered that the reason SIGINT causes a reboot on sysvinit is that

it's how the kernel signals that ctrl-alt-delete has been pressed;
thus, setting it as the signal...

github.com/landley/toybox - 92f3b785690f5c23e1b84b6e726d7859d0ab1608 authored over 9 years ago
Test for human_readable()

github.com/landley/toybox - 4e49e2cca731f2e1dd01ebc5163beb71e0d640ec authored over 9 years ago
Kylie McClain pointed out that env should clear variables with NAME= by itself.

github.com/landley/toybox - c82be78035e536b2b2248be6d6f3cd5a995f11f1 authored over 9 years ago
Another Android roadmap update.

The three separate lists had got a bit out of sync. The genuinely new
changes are in the top list.

github.com/landley/toybox - 1ed524277be6916b00858b8f983ba812dfae48e6 authored over 9 years ago
Fix ionice default class.

github.com/landley/toybox - 20b3af69bf955237fc195c4416d3bcdca9d7d8d9 authored over 9 years ago
Fix more date bugs.

Correctly and portably check for non-normal dates, and explicitly show
the "before" and "after" ...

github.com/landley/toybox - 05499787ca89fa4b017c2441e89020799f02e4c1 authored over 9 years ago
Bugfixes from Elliott Hughes: debug code got checked in (oops) and

uninitialized trash in struct tm fields could segfault glibc's strftime().

github.com/landley/toybox - 7f6bb3dae7ffe5ffdf10cc2e73a803ff820ebca8 authored over 9 years ago
Different tools have different ideas about what human-readable output

looks like. dd uses "7 MB" where du uses "7M", for example. this patch
adds flags, similar to the...

github.com/landley/toybox - 0fb465194789965b6fb2efd31995a2441144d650 authored over 9 years ago
First pass at proper bunzip2 command line handling.

github.com/landley/toybox - 11d2ff5ffac9382be0d6971b8ac84df21eca85df authored over 9 years ago
Fix ls -l user/group field ordering.

It's user then group, not the other way round.

github.com/landley/toybox - 3501e103b3b1f9d79f733976e338d59478d2e6f6 authored over 9 years ago
More Android roadmap updates.

mkbootimg was rewritten as a python script a while ago, and I just
deleted gpttool. (gptfdisk is...

github.com/landley/toybox - 8a30303771fc2a9a95bf086713c51f9b7b85b3c1 authored over 9 years ago
login: execl() requires a path, not a file name

github.com/landley/toybox - 9bfd2cf0e8499c4dcca41ccd80f86929181868cb authored over 9 years ago
Isaac Dunham pointed out that SIGINT's handler was set twice in init.c.

github.com/landley/toybox - b73f89429f4a28bc1c694094b97abd011a9a2f9e authored over 9 years ago
scripts/mkflags.c: add missing unistd.h, ctype.h

github.com/landley/toybox - 79191b6c4857ee08f093ba792c9d9db4cb4f1258 authored over 9 years ago
modprobe: use -q to silence

github.com/landley/toybox - d5258b43a2f6795cb49203d67deefd78588dedd7 authored over 9 years ago
modprobe: use basename_r()

github.com/landley/toybox - 8f1f8ef2a4546cc6089c12fe09735fb0d345c175 authored over 9 years ago
modprobe: delete perror_exit() that makes no sense

Given modprobe -a, it's important to not exit early for a failure to
load a module; additionally...

github.com/landley/toybox - da8ad27856dfc6729dac8b6fe87d595a0eb9ca23 authored over 9 years ago
Fix switch_root implementation.

Add the MS_MOVE of cwd to / and chroot into it. chdir is also
called to ensure cwd does not poin...

github.com/landley/toybox - 430bf378418e655b06d518a7cd62ae680301af80 authored over 9 years ago
Teach date @unixtime[.fraction], switch -s to be -D (matching busybox and

not stomping on gnu's "an extra argument tells it to set the time so let's
add -s to do the same ...

github.com/landley/toybox - 5fb2766a9b51ee326a14ec9909066b20a2bfa9ac authored over 9 years ago
Reject invalid dates in date(1).

Humans get upset when date(1) lets mktime(3) work out what the 99th day
of the 99th month would ...

github.com/landley/toybox - 400dacdeb69bc13868a625fc2ce8b49b6acd5ae3 authored over 9 years ago
Detect swap partitions, inline loop_partitions(), various cleanups.

github.com/landley/toybox - 1203ddf0e1110a107cbabf4855e07055fabe1e42 authored over 9 years ago
Initialize uninitialized variable. (Oops.)

github.com/landley/toybox - 671ce0c9298091f28c92430482b18c1449dcd09e authored over 9 years ago
Adjust xexec() exit code to be 127, and tweaks for nommu friendliness.

github.com/landley/toybox - 9ce9399c01fd6aca688434dd2c552df2950a15cf authored over 9 years ago
Make multiplexer's "command not found" exit 127.

Somebody (carsonh on freenode) objected that they were running something
like "toybox test 1 == ...

github.com/landley/toybox - 68986475982403b0dbc7c798d0a6e61c1a7be914 authored over 9 years ago
I've added support for running blkid without specifying a partition (so it scans /proc/partitions).

github.com/landley/toybox - 42b7d4b06b55e0090c3be1bc6ca1ed166bd6b2fd authored over 9 years ago
Minor tweak of reboot.c

github.com/landley/toybox - 802642ada1acd23fb4559678a916d2c00f6d1355 authored over 9 years ago
reboot: signal init, add -f option to call reboot();

init: use SIGINT, use xsignal()

Now that oneit supports the same signals as our "sysv"-init for ...

github.com/landley/toybox - a12eec740dc6d0c533fb7d83a0a54de6d3abb17c authored over 9 years ago
Cosmetic tweak: newline at the end of "make change".

github.com/landley/toybox - 5f225ca241cd927ebf148d714ab7e1f69461522c authored over 9 years ago
Switch nbd_client to xconnect() and make xconnect() try all returned addresses

before failing.

github.com/landley/toybox - 31ff1f23dedbfe6e2dccf9d3c7c294a1cd761266 authored over 9 years ago
Tweak xconnect: socket can be a string (ala "ftp") from /etc/services.

Still need a rethink on how to handle socket/bind/connect sequence.

github.com/landley/toybox - 35dafc7b17ce23da62dcce2195bed9b370680e65 authored over 9 years ago
Factor out xconnect(), plus some other small cleanups to telnet.c.

github.com/landley/toybox - ea75e752f930df7b740a773294b997f46927c716 authored over 9 years ago
Mark command-local functions static.

github.com/landley/toybox - 7a3f53ba446ae2600763ee37b7f8dcc91de3ec5f authored over 9 years ago
Long-overdue cleanup on login.

Only tested that it compiled so far.

github.com/landley/toybox - 3aa1d18b727ded4415d8a5f34f90a0726213aa7f authored over 9 years ago
Replace xcheckrange() with atolx_range()

github.com/landley/toybox - 5c6766a3ae30770784d054ffbf47faf290dee80e authored over 9 years ago
Move strlower() from find to lib.

github.com/landley/toybox - 7cc95a79a7a4ed8fb8fb3c5e1946a59c93ff335e authored over 9 years ago
'!' replaces '/' in the sysfs paths of older drivers, so properly

reverse that to get correct paths.
While we're here, reduce the duplication of initialization.

W...

github.com/landley/toybox - ce4188fd1228c8037d1f059cf24a066941c26501 authored over 9 years ago
Check in the note about rebuilding the source tarball.

github.com/landley/toybox - 15e54cecfd90e263b816f105e3d1bcf1969c4790 authored over 9 years ago
Promote fsync.

github.com/landley/toybox - d073e1c0aa17f36fe28338a0787e6b07cc463a1d authored over 9 years ago
Promote hostid.

github.com/landley/toybox - b9fb3067822c0a347905db81af0496743733fad5 authored over 9 years ago
Attached are new toys.

tftp - Client for tftp daemon.
hostid -Print the numeric identifier for the current host.
fsync -...

github.com/landley/toybox - 441d1cedfb8dbe2c720bee791b5240829a5e54f9 authored over 9 years ago
Release notes for 0.6.0.

github.com/landley/toybox - e1937bd599077e744bd4381731ea5683c01eef09 authored over 9 years ago
Fix llvm build break.

github.com/landley/toybox - 2699cad55fbe657a17cb25d5e5da2f010816fc45 authored over 9 years ago
Tweak version number.

github.com/landley/toybox - 8d6cbd494809f510c7947faa1db5a24cab130cf3 authored over 9 years ago
Produce an error message for "cat /mnt", not just return code.

github.com/landley/toybox - ccec4d82798d46a8bc7e7656d08c57544cd08582 authored over 9 years ago
Commit rss feed.

github.com/landley/toybox - fbc81a126f2ed95f041b76530ad497947ba3ecab authored over 9 years ago
Fix 32-bit bionic toybox build.

https://android-review.googlesource.com/159035/

github.com/landley/toybox - ba555808e068d9cc418b6b3bd6fa4238877a599d authored over 9 years ago
Add a basename_r() and use it in names_to_pid() to avoid basename() overwriting

itself on some inputs. (Which makes killall really impolite. Bug report
from Nicholas Noury via E...

github.com/landley/toybox - 6292beb86fa9a3999f0f0b76185e0a893af85cd0 authored over 9 years ago
More explanation of TOYBOX_DEBUG for option string checking.

github.com/landley/toybox - 68771c00530622b5bc52438ae8010c7a6f429791 authored over 9 years ago
Move comment about TOYBOX_DEBUG to start of file so it's more obvious.

github.com/landley/toybox - 1e7b49e25990b6141ffa25da2cd4b6124d435f3d authored over 9 years ago
ifconfig MAC addresses should be lowercase.

A minor nit, but for some reason this really stands out every time I
run ifconfig...

github.com/landley/toybox - f380d139397dd3cd2bcc5df0330304ab1ceded1e authored over 9 years ago
I added dhcpd -6 option.

It's for supporting ipv6, and I referred to RFC 3315 Specification
http://www.rfc-base.org/txt/r...

github.com/landley/toybox - 60cdc06c4825de7688a3879892bf442e0e2f282a authored over 9 years ago
find: add -inum option

-inum is a commonly implemented extension to search by inode number.

Linux's fs-layer tracepoin...

github.com/landley/toybox - d1a577f7bd2148f29a1dff37684ea9c63024fe6e authored over 9 years ago
Rename a function to be more obvious, and factor out a repeated calculation

the compiler was almost certainly retaining in a register anyway.

github.com/landley/toybox - 747e74852b982f8b2c54dc3e3650352843a6bede authored over 9 years ago
Promote hwclock.

github.com/landley/toybox - 78beadd60b81c0b3c92eca38890983a672dbfd93 authored over 9 years ago
Fix hwclock -w.

The gmtime_r/localtime_r error check was backwards, and the wrong argument
was being passed to t...

github.com/landley/toybox - fd4b56a159b9080a329d4471313d636f2b292ad5 authored over 9 years ago
There is a typo in mkfifo.c for __Z__ option.

github.com/landley/toybox - 666b89d8c829b2f1d0301f78208b772645942e23 authored over 9 years ago
Fix ionice.

ioprio_set takes a "prio" argument that combines class and level. Although
bionic (via the uapi ...

github.com/landley/toybox - 29b0a2e823e2b451e793b9cd891107d4daec3864 authored over 9 years ago
Avoid integer overflow with insane input data.

github.com/landley/toybox - 3487bd353b4448bbdc9ece6d62fc4c4f4fd6ae4a authored over 9 years ago
Save failure reason for each make change .bad file.

github.com/landley/toybox - cc585db6949917ef8d9d72d88e2fdbb8d6c63df0 authored over 9 years ago
Kylie McClain pointed out that -z affects both input and output.

Can't say I'm happy with the API (-z and -Z to keep them independent would
be nice), but compati...

github.com/landley/toybox - 137ac1f8000b1c50b2485912de6e8f553a498230 authored over 9 years ago
Actually set time with touch -d and -t when you don't specify nanonseconds.

There's a nanoseconds field value that says use current time, which I set
but forgot to clear in...

github.com/landley/toybox - 671146c3b41460ec3ad25f64f1269be0f3924b27 authored over 9 years ago