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

Minor cleanup pass.

github.com/landley/toybox - f383983d9868d2f3151b307c5f5bbc506e2f87d6 authored over 10 years ago by Rob Landley <[email protected]>
Add nbd-client.

github.com/landley/toybox - 8525d7873098b780de2575bf4bcce6be29c33a1e authored over 10 years ago by Rob Landley <[email protected]>
Promote killall5 by merging it into kill.

Slight conflict here: this puts killall5 in the posix directory. But the commands sharing code t...

github.com/landley/toybox - ffa7e3b05eea2d404758758c561f534824ca77c8 authored over 10 years ago by Rob Landley <[email protected]>
Try to lookup all umounts in /proc/mounts so we can auto-zap loopback devices.

github.com/landley/toybox - 36f6dea7ea3c9973910f38af61a58f20513b95c8 authored over 10 years ago by Rob Landley <[email protected]>
TAR - this supports archive creation and extraction based on the USTAR format (described in PAX Spec). For (de)compression '-z' gzip is supported.

github.com/landley/toybox - 15e02f09549e34e839a6b74fdfb3c1d1974bb635 authored over 10 years ago by Ashwini Sharma <[email protected]>
Cut down from 1000+ file attribute tests to a more manageable number.

github.com/landley/toybox - d6f8c41e25428c8a0caf6f52fbe665d3baa06adc authored over 10 years ago by Rob Landley <[email protected]>
I have developed few testsuites for toybox commands -

1. lsattr/chattr
2. mount
3. chmod
4. pgrep/pkill
5. groupadd
6. groupdel
7. useradd

github.com/landley/toybox - ef0ed68d5ba5794c1352e64273d4c5039e62476b authored over 10 years ago by Divya Kothari <[email protected]>
Have "make test" run tests in testdir/testdir instead of same directory as command symlinks. (Makes cleanup easier.)

github.com/landley/toybox - 4a855d6cf62cebe40fa9fe97c7e6b9ca49f79b5b authored over 10 years ago by Rob Landley <[email protected]>
date -r wasn't saving the result in the right variable. (And make date -ur work.)

github.com/landley/toybox - feb696ae85c34ba65da30fde9545153398b1a2de authored over 10 years ago by Rob Landley <[email protected]>
Fix rm -rf of chmod 000 directories.

github.com/landley/toybox - 5ce682e4f4b0c789d591afce1e053efd01313f2d authored over 10 years ago by Rob Landley <[email protected]>
Promote makedevs to other.

github.com/landley/toybox - 9bf93edd68742bbc9e814ec49c8a3a31ca8d3fff authored over 10 years ago by Rob Landley <[email protected]>
Bugfixes for cleaned up makedevs.

Newline after table = <stdin>, move start/increment/count loop around entire
device creation if/...

github.com/landley/toybox - 936ab6d68b747ed7a315ef9c27bb9b90088686f3 authored over 10 years ago by Rob Landley <[email protected]>
Use dlist_terminate() in patch.

github.com/landley/toybox - 7a9f7d1fbc9b72dc43296f7de8b5ab64536938b1 authored over 10 years ago by Rob Landley <[email protected]>
Add : as an alias for true (toysh needs this).

github.com/landley/toybox - f1a3098fb332ae0db638da408088a7b9d2c0c14b authored over 10 years ago by Rob Landley <[email protected]>
Make fallocate depend on probe for libc support.

github.com/landley/toybox - 4f1d655b5c859a0af7bf452b8da4320a620f4c2d authored over 10 years ago by Rob Landley <[email protected]>
Add fallocate probe for uClibc.

github.com/landley/toybox - 434cefb863591eebbf29a0b9ff73a529fc731be1 authored over 10 years ago by Rob Landley <[email protected]>
Promote mkpasswd from pending to other.

github.com/landley/toybox - 474d0a9e00b72ee73c0c908c65a09f7dde495019 authored over 10 years ago by Rob Landley <[email protected]>
Cleanup read_password(), factor out set_terminal(), fix salt bug (des wants the salt raw, no $ at the beginning).

github.com/landley/toybox - c0e5ff3c9755503016581a2ed3ae91caaf785366 authored over 10 years ago by Rob Landley <[email protected]>
Update cleanup page, now linking to descriptions of all of the ifconfig cleanup.

github.com/landley/toybox - f23d317e445bb7516238afbaf589d888d4c056ba authored over 10 years ago by Rob Landley <[email protected]>
I have developed few testsuite for toybox commands - ls, ln, rm, mv, printf, dd, renice.

github.com/landley/toybox - a0f56beaf63052179c69fb258478f851ef1e5ca2 authored over 10 years ago by Divya Kothari <[email protected]>
Cleanup pass on mkpasswd.c

github.com/landley/toybox - 6d15f0d33fbc422689f92fbbf4dc65d3ab1fb970 authored over 10 years ago by Rob Landley <[email protected]>
Cleanup pass on makedevs. Need to test it before promoting.

github.com/landley/toybox - 6ad3207b65438870dfc9f76a3dcf4bb04096297e authored over 10 years ago by Rob Landley <[email protected]>
Glibc and uClibc provide CERASE from termios.h, but musl requies you to #include a non-posix header and the maintainer considers this a feature. So just use the constant directly.

github.com/landley/toybox - c962e0fd295525978de0d9a0af584f47a83d9699 authored over 10 years ago by Rob Landley <[email protected]>
find_in_path() is supposed to work with a NULL path, but didn't. Fix it.

github.com/landley/toybox - 0aad9e4395c3077ed82c58981e9495586d6c8a01 authored over 10 years ago by Rob Landley <[email protected]>
Tweak license page to explicitly say that zero clause BSD is functionally equivalent to placing the code in the public domain.

This license variant looks like BSD, but is an unrestricted permission grant that doesn't requir...

github.com/landley/toybox - 1748bdb6bfe48cfe122973d26ab15186ee925101 authored over 10 years ago by Rob Landley <[email protected]>
Move deallocvt.c into openvt.c, cleanup both.

github.com/landley/toybox - d3cd45babc2e3bc72b53c08e48fac7f94887b72b authored over 10 years ago by Rob Landley <[email protected]>
Forgot to check in main() part of TOYFLAG_LOCALE change.

github.com/landley/toybox - fc49761a9c992a120a27cca016d6a3ed31b1f3d3 authored over 10 years ago by Rob Landley <[email protected]>
The readme, a text file, has an HTML close paragraph tag.

(Sheer force of habit.)

github.com/landley/toybox - 52dea1258516773784504cda3681483d0e6c68b7 authored over 10 years ago by Rob Landley <[email protected]>
Option parsing for nohup needs to stop at first nonoption argument. Minor cleanups.

github.com/landley/toybox - 0cf6a2dbcd58511a775c031112e25ecf3b5b5b5b authored over 10 years ago by Rob Landley <[email protected]>
Cleanup pass on login

github.com/landley/toybox - 2109b158f496b3ecccea34c960b45f7aeba6679e authored over 10 years ago by Rob Landley <[email protected]>
Enable fallocate in defconfig.

github.com/landley/toybox - eb3c44367a3c92c52e6c203e18578016a9c1a705 authored over 10 years ago by Rob Landley <[email protected]>
Cleanup pass on host.c

github.com/landley/toybox - 59fa8b4f48818f5a4f634633b48440ed3a466c8a authored over 10 years ago by Rob Landley <[email protected]>
Move toys.toycount initialization _after_ zeroing toys, so help -a works again.

github.com/landley/toybox - 90b200cac621ee925476297a2b70ddf3101cbb45 authored over 10 years ago by Rob Landley <[email protected]>
Promote strings.

github.com/landley/toybox - ff2bc8551c697a909118f580b26b6cb1e0e47f61 authored over 10 years ago by Rob Landley <[email protected]>
Cleanup strings.

github.com/landley/toybox - 11c3924f8c29a36a80233326937ad21f504ae658 authored over 10 years ago by Rob Landley <[email protected]>
Update toybox help to say how to install the static binary.

github.com/landley/toybox - 8431692738dc14412c236ab4ebc6464463b6327a authored over 10 years ago by Rob Landley <[email protected]>
pending/useradd: unbreak build

When useradd started using xfork(), the conditional in else if (pid > 0)
became unnecessary, sin...

github.com/landley/toybox - b5f97805cee1daab12641ad8927d0539aa0d99ac authored over 10 years ago by Isaac Dunham <[email protected]>
Promote rfkill.

github.com/landley/toybox - ef377cf6f6a1e89696df1b0c8d847000a172f846 authored over 10 years ago by Rob Landley <[email protected]>
Forgot to check in strstart().

github.com/landley/toybox - 8115fc121c0ee0b11ba2752438ff500cce48e347 authored over 10 years ago by Rob Landley <[email protected]>
Cleanup pass on rfkill.

github.com/landley/toybox - e031a5e24e5b0479717474d5d08ca9abda2f580a authored over 10 years ago by Rob Landley <[email protected]>
host needs -lresolv

github.com/landley/toybox - 368e264f92463ed5d82f522cd81927ee5b028b2d authored over 10 years ago by Rob Landley <[email protected]>
When locale is enabled, sprintf("%.123s", str) is counting characters, not bytes, so we can't globally enable locale without opening stack/heap smashing vulnerabilities. Make commands individually request setlocale() using TOYFLAGS instead.

github.com/landley/toybox - 89a62bf2907412cb562d22c875736357e314c8c8 authored over 10 years ago by Rob Landley <[email protected]>
Warning fix from Rich Felker.

github.com/landley/toybox - c421b7068c5dd95baa10f9bd97e578d04ba48c70 authored over 10 years ago by Rob Landley <[email protected]>
Add host by Rich Felker.

github.com/landley/toybox - e266735d08ccf6cac442ac4e6e0defcd05fdea7a authored over 10 years ago by Rob Landley <[email protected]>
Isaac Dunham also reported that some diff implementations can't handle nonseekable input, so write to a temporary file instead of <(command).

Use trap EXIT to make sure the temporary files get deleted.

github.com/landley/toybox - 298fcd94d21413a80a5e5a0684c6fc2397fc95b3 authored over 10 years ago by Rob Landley <[email protected]>
Isaac Dunham pointed out that busybox diff only implements unified diffs, and sent a patch to convert bloatcheck to use that. I tweaked it a bit.

github.com/landley/toybox - 0fe882b375253308de34f8a912d006021c1ac48f authored over 10 years ago by Rob Landley <[email protected]>
Replace large parenthetical in bloatcheck with a function.

github.com/landley/toybox - 471c4d25b724b11fce043c293e03ac024bd2a0e3 authored over 10 years ago by Rob Landley <[email protected]>
Minor tweaks to code style section.

github.com/landley/toybox - d0c0422e601226101d28e954a4fc974d78a139eb authored over 10 years ago by Rob Landley <[email protected]>
Make md5sum/sha1sum -b flag be "brief" output (just the hash).

(It's not like systems implementing -b binary and -t text still matter.)

github.com/landley/toybox - 2682551a4b192d566383afcdd57081fd222656ed authored over 10 years ago by Rob Landley <[email protected]>
mount: start on option parsing, implement loopback and bind mount autodetection.

github.com/landley/toybox - 44e68a1bec9b342c01e2f4e6ccf9f1e7a3ee8081 authored over 10 years ago by Rob Landley <[email protected]>
Help text should have a blank line after usage: lines, and a couple other whitespace tweaks.

github.com/landley/toybox - 314f19e4d2099eb19824df49d71953946486f78f authored over 10 years ago by Rob Landley <[email protected]>
The tests for link and du are attached.

github.com/landley/toybox - 8b3b9aa1bdbd3a1d721873e4359f650ff52427e5 authored over 10 years ago by Isaac Dunham <[email protected]>
cpio: archive more files

While writing tests for cpio, I found that cpio tries to open empty
files if they're regular file...

github.com/landley/toybox - 670626ab009f1d369be94def71f48be2e88f0106 authored over 10 years ago by Isaac Dunham <[email protected]>
Promote partprobe.

github.com/landley/toybox - f71abed76bd2eacc6ebf43663059631c7cf213ed authored over 10 years ago by Rob Landley <[email protected]>
Cleanup partprobe.

github.com/landley/toybox - 4d22a09d76ef09a169db48a4d6599d8a5fe547ad authored over 10 years ago by Rob Landley <[email protected]>
Introduce xfork() and make commands use it, and make some WEXITSTATUS() use WIFEXITED() and WTERMSIG()+127.

github.com/landley/toybox - d8872c43b48eae5501998a4e5a84337017d8fbe6 authored over 10 years ago by Rob Landley <[email protected]>
iconv: some fixes

- fix problem with sequences at buffer boundaries
- add (ignored) -c and -s options
- don't try ...

github.com/landley/toybox - c20fb908bb733a3d7c1dda77a3c1d22d5c3fafec authored over 10 years ago by Felix Janda <[email protected]>
killall5 - kill all the processes not in its session.

github.com/landley/toybox - b0d97a0059555cb0e7e0009b72c038aa67aaa769 authored over 10 years ago by Ashwini Sharma <[email protected]>
makedevs - making devices/nodes in a range. Supports reading the tabled entry from file.

github.com/landley/toybox - 9f1a00a859d1b085fdf7a1a5f66e51f41c6217ee authored over 10 years ago by Ashwini Sharma <[email protected]>
strings - print the strings in the file.

github.com/landley/toybox - 877884d2bf8f9d4b48afcfd1a88680fb363c27ad authored over 10 years ago by Ashwini Sharma <[email protected]>
First stab at mount, very incomplete.

github.com/landley/toybox - 414c0cf9f5e91f7d755ba935595bbd7f3fd7c29e authored over 10 years ago by Rob Landley <[email protected]>
Make "losetup /dev/loop0 filename" work.

Sigh. Implement the complex cases and you screw up the simple cases you already tested...

github.com/landley/toybox - c6fcf1d25da72a45d59a3791062bd5241034eb8a authored over 10 years ago by Rob Landley <[email protected]>
Switch mtab_list to doubly linked so we can traverse in either order. Convert umount and df. Add dlist_terminate() to break lists for traversal in either direction.

github.com/landley/toybox - dc640259adff6007d195fd4cc78dcf9829e5e6ee authored over 10 years ago by Rob Landley <[email protected]>
Add mount options to data getmountlist collects.

github.com/landley/toybox - 55e9f35223e40f455b80671f25b412072d9af678 authored over 10 years ago by Rob Landley <[email protected]>
Brush the dust off toysh.

Simplify the config micromanagement tangle to just a single "interactive"
option. Fix an unused ...

github.com/landley/toybox - 369a4e0dd08130d2e22140280932b138ab283106 authored over 10 years ago by Rob Landley <[email protected]>
Isaac Dunham suggested xprintf() should call fflush() instead of ferror(), and posix-2008 doesn't say if fflush() covers ferror() (or can return success when the stream's error state is set), so call both.

github.com/landley/toybox - ddbaa718dbe3370786eae97000f4c1e8bb259a61 authored over 10 years ago by Rob Landley <[email protected]>
I have attached a patch adding a program that allows re-reading the partition table. This is often used on embedded systems booting from SD/USB devices that need to resize partitions on first boot.

github.com/landley/toybox - 7cb7cca7f5759c6921d68a384fd838e01ce446e0 authored over 10 years ago by Bertold Van den Bergh <[email protected]>
atolx_range() is already added into lib/lib.c, in vconfig.c atolx_range() can be used in place of locally defined strtorange() function.

github.com/landley/toybox - 1c806ca536dc938f949546b28974db79ae85941f authored over 10 years ago by Ashwini Sharma <[email protected]>
logname and whoami are the same as id -un, so merge them.

Since the starting letters are greater than those for 'id' or 'groups',
we cn just check if the ...

github.com/landley/toybox - 80a438dd35782db8d3e0bca81ca78dea128f9c37 authored over 10 years ago by Isaac Dunham <[email protected]>
Bugfix from Isaac Dunham (new pci database has # comments in it) and some minor cleanups I had in my tree already.

github.com/landley/toybox - 67ba22986d84b8d793d9bb39d6d7545204924124 authored over 10 years ago by Rob Landley <[email protected]>
Pending commands should default n

github.com/landley/toybox - f9c3fc8475722679029cd653d98965fb2767f20c authored over 10 years ago by Rob Landley <[email protected]>
Single-user login.

github.com/landley/toybox - 5e936d65972316c26b7271086cc57838bf1f1e28 authored over 10 years ago by Ashwini Sharma <[email protected]>
The "not root" test happens before looking for --help, so "./sulogin --help" doesn't show it. Instead make the "not root" failure case always show help text.

github.com/landley/toybox - 3bc5d3d880627b1a9c38ed4b92ff894c7752f124 authored over 10 years ago by Rob Landley <[email protected]>
Remove debug detritus I didn't mean to to check in, and treat an "this variable can never actually be used uninitialized but gcc's warning generator can't tell and fails spamwards" warning.

github.com/landley/toybox - 7dfee8efa743c7dffc3803109a143a4d6333556f authored over 10 years ago by Rob Landley <[email protected]>
Pass the same $CFLAGS to the library probe as the final build, to work with broken build environments that provide different libraries for --static and dynamic builds.

github.com/landley/toybox - 6c54928f1f68ce0378172737b449785d49147425 authored over 10 years ago by Rob Landley <[email protected]>
patch from ashwini sharma: treat 0 length read at the start of password read as EOF.

github.com/landley/toybox - a17c5f22632b74aa17b1e395c0b175d7c1f52ab9 authored over 10 years ago by Rob Landley <[email protected]>
rfkill - enable/disable the radio devices

e.g. Wireless adapter, Bluetooth devices...

github.com/landley/toybox - 984f90c07025168bf2b42ec37f027005229daa02 authored over 10 years ago by Ashwini Sharma <[email protected]>
inotifyd - watch for filesystem events.

github.com/landley/toybox - 6958429d84cff06fefdc898d837a71c239f1e214 authored over 10 years ago by Ashwini Sharma <[email protected]>
Ashwini Sharma pointed out I screwed up last.c.

Renamed the function, missed a user...

github.com/landley/toybox - a76175cbdaf4878491deadd68860b07c8d4846ff authored over 10 years ago by Rob Landley <[email protected]>
date: add -ds, document +FORMAT escapes.

github.com/landley/toybox - 0369ba56ef4f4c14c62ee6bf77bddd444862398a authored over 10 years ago by Rob Landley <[email protected]>
Update docs for example and pending directories.

github.com/landley/toybox - 002a11e7bdfe0c2d3d80d721a851fb45e2fcff98 authored over 10 years ago by Rob Landley <[email protected]>
Convert bootchartd to generic_signal().

github.com/landley/toybox - f8e940c52cd4016821e582cfbf1458084d4229c8 authored over 10 years ago by Rob Landley <[email protected]>
Make telnet use generic_signal(), minor in-passing cleanups.

github.com/landley/toybox - 755e040916d94d0124162a6c345cb783c0931b77 authored over 10 years ago by Rob Landley <[email protected]>
Make telnetd use generic_signal(), inline kill_session(), close race window where a SIGCHLD could get lost.

github.com/landley/toybox - bf30fe981772d97e6399b3ce9aeafffe35848c89 authored over 10 years ago by Rob Landley <[email protected]>
Add generic_signal() handler, which sets toys.signal and writes byte to toys.signalfd if set.

github.com/landley/toybox - 1bc522424f6bb21842366ccd11953136436b684b authored over 10 years ago by Rob Landley <[email protected]>
First pass init cleanup: use sigatexit() to set multiple signal handlers, rename set_sane_term() to reset_term() and have it take the fd it works on as an argument, some whitespace and help text tweaks.

github.com/landley/toybox - 9b4158c09cdb766369c45dd2dbc44556d0892694 authored over 10 years ago by Rob Landley <[email protected]>
Make fsck.c use common list free function, collate cleanup code and move inline.

github.com/landley/toybox - dce76e0be9fb24b095ed59acc90ac62ac08c2c78 authored over 10 years ago by Rob Landley <[email protected]>
Make last use common llist free function, minor cleanups.

github.com/landley/toybox - 7a6b82277db3caee1214cdbc8f6bc546818aec6e authored over 10 years ago by Rob Landley <[email protected]>
Add free functions for predefined llist types.

github.com/landley/toybox - e604d5344466df8584c48c8492397fcffa63a671 authored over 10 years ago by Rob Landley <[email protected]>
dhcp client had a segfault, when DHCP message contained 'pad' option.

The parsing logic kept checking for other options beyond __pad__ option, without
checking if it ...

github.com/landley/toybox - 95d2ce84789011970e2f814b2fb6c819084bde8c authored over 10 years ago by Ashwini Sharma <[email protected]>
lspci text output: add -i, allow -n when disabled

-i is how standard lspci handles changing the PCI ID database.
lspci -n should be a no-op when t...

github.com/landley/toybox - b06b0fe32361f7fc5b3fb98bf5f2c2791be757e8 authored over 10 years ago by Isaac Dunham <[email protected]>
Cleanup pass on bootchartd.

Might have broken something, don't actually have a test case for bootchartd yet.

github.com/landley/toybox - 098ff070fdafc1b3f5ec037a8b17365a176ec184 authored over 10 years ago by Rob Landley <[email protected]>
Fluff out the coding style section, but the result was a bit big for the start of code.html, so move it to design.html.

github.com/landley/toybox - ca73392a472f5425ea5059e05c82f104da10ce9d authored over 10 years ago by Rob Landley <[email protected]>
Quick cleanup pass on ps.

github.com/landley/toybox - 3fdbdac0b4762aafae8daa0e2d292b7440c2dc50 authored over 10 years ago by Rob Landley <[email protected]>
Cleanup pass on lspci

github.com/landley/toybox - fd71bca1213b0d31d4079505520f30ed57014b19 authored over 10 years ago by Rob Landley <[email protected]>
Teach singleconfig to switch on sub-options of commands it's building.

If we're building a standalone version, it might as well have all the bells and whistles enabled.

github.com/landley/toybox - 3be2e3ea9fb3d0485a9ab4ef790b3dbd8eb92510 authored over 10 years ago by Rob Landley <[email protected]>
bootchartd by Bilal Qureshi.

github.com/landley/toybox - e9b7fcf57bbc6c7ad58592f7ab9bd3224ef4aae1 authored over 10 years ago by Rob Landley <[email protected]>
Here's a quick cleanup of md5sum. Executive summary: smaller and faster.

On my machine, for a 2.2 GB file of random bytes, the timings with
warm cache are:
toybox before...

github.com/landley/toybox - afe951b19c0f8313731e28a5f347304d82e7f7af authored over 10 years ago by Daniel Verkamp <[email protected]>
Promote sysctl from pending to other, default y.

github.com/landley/toybox - 97641f459a3e74045305b4ef9b80bb00bc56a29f authored over 10 years ago by Rob Landley <[email protected]>
More sysctl cleanup: fix error message on nonexistent key, write path, and -p.

github.com/landley/toybox - 08f2d7d333f1a52ad48bcdc1c2ec1387b9053784 authored over 10 years ago by Rob Landley <[email protected]>