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

Reorder functions to get rid of unnecessary prototypes, and move a global into GLOBALS.

github.com/landley/toybox - 42cf443ab6fc488572e31233e603323c5a6479ba authored over 10 years ago by Rob Landley <[email protected]>
rm -rf needs to chmod directories to u+rwx, because directories need +x to search.

(Fixes messages about not being able to delete directories when running make test).

github.com/landley/toybox - 7e96783ee7ea149d157f14151a8c2592c36f074e authored over 10 years ago by Isaac Dunham <[email protected]>
A few fixes for issues reported in static analysis.

github.com/landley/toybox - 14a11ed5ebfb2309a3fdfea1ce7a741519e44693 authored over 10 years ago by Ashwini Sharma <ak.ashwini1981.gmail.com>
Cleanup pass on README.

Other versions are adding Cached from /proc/meminfo to free buffers/cache
(and subtracting it fr...

github.com/landley/toybox - 40b20421e42cce9834d13ab52ac58efd78838ede authored over 10 years ago by Rob Landley <[email protected]>
Update README for pending directory, include list of code outside of pending (grandfathered) awaiting cleanup.

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

github.com/landley/toybox - 1b7e562a286b528a440e56b48a4afe3823b2d86b authored over 10 years ago by Rob Landley <[email protected]>
Cleanup pass on cut, more to do.

Cut predates the "pending" directory, so was checked in as-is. Ashwini
Sharma's recent static an...

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

github.com/landley/toybox - 38cb603c1f169febdffcf5c2fbe041c276f47d08 authored over 10 years ago by Rob Landley <[email protected]>
Add cpio -p

github.com/landley/toybox - eca573cbca392dd10a88b4a799d4a87d60d3bd08 authored over 10 years ago by Rob Landley <[email protected]>
find -xdev should return mount points, just not contents.

github.com/landley/toybox - a6336b942302b92f0b65ec35299e7667b9fcbe19 authored over 10 years ago by Rob Landley <[email protected]>
Second attempt at one way xpopen().

github.com/landley/toybox - 8a9907119bf22f2279470be40cf40027dc37018c authored over 10 years ago by Rob Landley <[email protected]>
Split xpopen() into xpopen_both(), xpopen(), and xrun() depending on whether we want to redirect both, one, or neither of stdin/stdout.

github.com/landley/toybox - 360d57f843f5435a75270e54583430dcb8f62546 authored over 10 years ago by Rob Landley <[email protected]>
Bug report from luckboy: rm -f on a broken symlink didn't work because our "does it exist" test (to avoid errors on rm -f of nonexistent files) said it didn't.

The fix: replace the access() with unlink(), which produces the same "does not
exist" errno and ...

github.com/landley/toybox - e1366f02fea3cb035cc4ed0b59d12f1962b6ebfd authored over 10 years ago by Rob Landley <[email protected]>
Create a generated/build.sh with a single compiler command line to rebuild the toybox_unstripped binary using the existing generated/*.h files.

This way we can snapshot the generated/*.{h,sh} from a defconfig build into
a "shipped" director...

github.com/landley/toybox - 8aa87ab9b4ee68eec75af26d550fbcfb732d660f authored over 10 years ago by Rob Landley <[email protected]>
Oops, unbreak make.sh.

Clearing out old .o files needs -r now that generated/obj has its own subdirectory. (Works if yo...

github.com/landley/toybox - 09af6a7d3f5076b52a89a4be5cebebdb9c9d00c8 authored over 10 years ago by Rob Landley <[email protected]>
Ignore -m option to cpio, it's what we do anyway so it's not an error.

github.com/landley/toybox - f8c411cc26460d1cc920c15ad9e57d994f072129 authored over 10 years ago by Rob Landley <[email protected]>
Two problems: 1) Sometimes toy_exec() needs to re-exec to gain dropped root permissions, 2) shouldn't recurse forever without exec, stack depth increases and we may leak other resources. Limit it to ~5 levels.

github.com/landley/toybox - c6705af4231b8071830721f98021d0e79223da12 authored over 10 years ago by Rob Landley <[email protected]>
Make tweaks: collate generated/*.o files into their own subdirectory, add PIPEFAIL for better error reporting, and simpler regex to select toys/*/*.c list based on NEWTOY/OLDTOY macros.

github.com/landley/toybox - 7a07c6bc431d441a2363b58a1d82fe7a2a6d75f2 authored over 10 years ago by Rob Landley <[email protected]>
Fix more memory leaks reported by Ashwini Sharma.

github.com/landley/toybox - 3edbb571ab5ba1d0c177d5b9bee6c67f021ed06a authored over 10 years ago by Rob Landley <[email protected]>
Don't close device handle until after calling flush ioctls, reported by Ashwini Sharma.

github.com/landley/toybox - 12eff430e9d20c62fa9cc81d0b6ecface61bac18 authored over 10 years ago by Rob Landley <[email protected]>
Add error test and fix memory leak, reported by Ashwini Sharma.

github.com/landley/toybox - 6634e46216410161f0f56dc54b16da2de6a8f2b3 authored over 10 years ago by Rob Landley <[email protected]>
Promote mount. It's not perfect, but it basically works now.

github.com/landley/toybox - 9b4ea9cf9934d5639a7d1a9b50b90b8d5569ba7e authored over 10 years ago by Rob Landley <[email protected]>
Fix mount --move bug.

github.com/landley/toybox - cc3bf66666cb0d2c8937b1a60c2be8d3f5a49d04 authored over 10 years ago by Rob Landley <[email protected]>
Debugging pass on mount. Not quite done yet, but the basics seem to work now.

github.com/landley/toybox - 25fe0e0bea85f1d851ce03a90c0f1bf41ab431f2 authored over 10 years ago by Rob Landley <[email protected]>
Work around uClibc brain-damage.

github.com/landley/toybox - 980458f62748d273a006da3ddcd2b619d44598ce authored over 10 years ago by Rob Landley <[email protected]>
Don't hang for $CPUS=1.

echo prints a newline if it has nothing to print, so wc -l always returns at least 1. Fix: echo -n

github.com/landley/toybox - 9bb73ade0bb019c0819052d27c34959ec55dbe02 authored over 10 years ago by Rob Landley <[email protected]>
Testsuites for toybox command - "tar", "bzcat", "xzcat", "zcat" and "hostname".

github.com/landley/toybox - 01e6a73bf9506803bd1725726177f55e58498dba authored over 10 years ago by Divya Kothari <[email protected]>
chmod testsuite and link testsuite.

Chmod ?

In this testsuite after change file mode bits, we are comparing file mode with expected...

github.com/landley/toybox - 207b6a66ba0c225a7977cedcf8537883a434db3e authored over 10 years ago by Divya Kothari <[email protected]>
Add cp -F to force delete of existing destination files, and make install command use that.

-F is equivalent to the gnu/dammit flag --we-think-long-options-without-short-options-are-a-good...

github.com/landley/toybox - c164960f468ffae19b080b264f6e9960e0eb1027 authored over 10 years ago by Rob Landley <[email protected]>
More parallel build tweaks.

echo "$PENDING" needs the quotes to avoid gluing the lines together, which
prevents wc -l or hea...

github.com/landley/toybox - 658887a48c11b0933c74dd399b8fe5feaf0aa018 authored over 10 years ago by Rob Landley <[email protected]>
Next mount checkpoint.

Testing level: It compiled. If any portion of this works, I'll be amazed.

Still a bunch of todo...

github.com/landley/toybox - 72e84a2f3b758026dcb37abdb8c8383c9a07ec94 authored over 10 years ago by Rob Landley <[email protected]>
Give a hint when setuid logic fails.

Toybox expects to be setuid root; setuid some other user confuses the attempt to drop privileges...

github.com/landley/toybox - 5c87c1426b5c99dd1f2a3ac7493996c342efef4e authored over 10 years ago by Rob Landley <[email protected]>
Old compilers complain about linker options passed with -c, so split out $LDOPTIMIZE.

github.com/landley/toybox - 96146200ea3b7b67b7e4a6b91f3419013d4cfaab authored over 10 years ago by Rob Landley <[email protected]>
Another fix from Johan Bergstr?m, using the gnu/dammit version of sort on the host can be screwed up by more than one environment variable.

github.com/landley/toybox - 082a9a7d25f78856daf1dc9bb8f1f70f98f7470f authored over 10 years ago by Rob Landley <[email protected]>
Add VERBOSE=fail to "make tests", based on suggestion from Johan Bergstr?m.

github.com/landley/toybox - 50b82970b1bd599fb84fd3add0b60cb0cb3e40c7 authored over 10 years ago by Rob Landley <[email protected]>
ipcs : display all the IPC fascilities information

crond : CRON scheduler

github.com/landley/toybox - 14c8ef42870ca9623b44e369c0231766e8371bfd authored over 10 years ago by Ashwini Sharma <[email protected]>
Work in progress snapshot of mount, with fallout to umount. (Not done yet.)

github.com/landley/toybox - e996bddf88a946a8ac8338c02e14add57e3d588c authored over 10 years ago by Rob Landley <[email protected]>
Fix parallel make not always catching errors before link time.

jobs -p removes finished jobs from the list after reporting them once,
so we need to record the ...

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

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

github.com/landley/toybox - 62d796a75dd2e0f0c63615e937cfd3d7ccb0a27d authored over 10 years ago by Rob Landley <[email protected]>
getty needs fd 0 to stay open.

The O_CLOEXEC reversal resulted in login failing.

github.com/landley/toybox - c106a7861b67e37d5ae7c7abc1abcad75cee0354 authored over 10 years ago by Isaac Dunham <[email protected]>
Promote inotifyd to other.

github.com/landley/toybox - e70eea41eeed05e0ac938a6aceab27c918090fde authored over 10 years ago by Rob Landley <[email protected]>
Minor help text tweak for inotifyd.

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

github.com/landley/toybox - 01a806ff123aa091e0d41023432dfe2c0173a62d authored over 10 years ago by Rob Landley <[email protected]>
Cleanups on useradd/groupadd/groupdel, and put TOYBOX_UID_SYS and TOYBOX_UID_USR in the top level Config.

github.com/landley/toybox - a8bee46cfebcf1ae9c3749b820c483054be81295 authored over 10 years ago by Rob Landley <[email protected]>
Add install to cp/mv.

github.com/landley/toybox - 5cf4bd1922e6a87b5d0e14403e55cce2ab74bb12 authored over 10 years ago by Rob Landley <[email protected]>
Fix bug reported by Ashwini Sharma: [-abc] syntax to switch off a command forget

s _all_ saved command line arguments in GLOBALS(), not just for the command bein
g dropped.

github.com/landley/toybox - 845c8da42a505835c67e2dff98353a7205e555a5 authored over 10 years ago by Rob Landley <[email protected]>
If string_to_mode() is called on a base mode with S_ISDIR() and such set, pass those extra bits through.

github.com/landley/toybox - 3b5b19e7bf4598536bc7ef501598c0f6e28e4e5a authored over 10 years ago by Rob Landley <[email protected]>
Enable a command's sub-options in single builds.

github.com/landley/toybox - be3a48c269cfa4cf35e0bb31155553a8d3c6d6c1 authored over 10 years ago by Rob Landley <[email protected]>
A toy _BLOCKDEV_ to get/set block device properties.

github.com/landley/toybox - 056bc9029d8830a18a4e2dd7ad5fc0a4f661cdc4 authored over 10 years ago by Ashwini Sharma <[email protected]>
Patches to commands for issues reported from static analysis tool.

portability.h.patch - it is for O_CLOEXEC, as compiler complained of it.
Makefile.patch - for cl...

github.com/landley/toybox - 7eb3e4364c2bcebd2fdfef52c07f5101aa03e5bb authored over 10 years ago by Ashwini Sharma <[email protected]>
Promote lspci.

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

github.com/landley/toybox - 32a3a0806403d5bd652df1a8fefc318c7812ddca authored over 10 years ago by Rob Landley <[email protected]>
Update clean to clean up after new parallel build.

github.com/landley/toybox - 579ce3511a9bd9f288201c16553c866384e14a79 authored over 10 years ago by Rob Landley <[email protected]>
Disable xopen's default O_CLOEXEC for oneit.

github.com/landley/toybox - b843203842448f144f895f7b4c5b2adb3af69048 authored over 10 years ago by Rob Landley <[email protected]>
Parallelize the build. (set CPUS=1 to force single processor build, or another number to override processor count autodetect.)

github.com/landley/toybox - 91b360a42c56997302cd6a6bbb7a820dee67f46e authored over 10 years ago by Rob Landley <[email protected]>
Fix -mindepth and -maxdepth to not drill down into excluded directories.

The fact other implementations don't implement "! -mindepth" doesn't mean we can't. Also, find u...

github.com/landley/toybox - c572530223ddad725e0f7606bf4b898d8f95f640 authored over 10 years ago by Rob Landley <[email protected]>
More find bugfixes.

github.com/landley/toybox - c39a337101de8613e71c5c474feb54297cce5eaa authored over 10 years ago by Rob Landley <[email protected]>
Rereading posix find.c page: "Specifying more than one of the mutually-exclusive options -H and -L shall not be considered an error. The last option specified shall determine the behavior of the utility."

github.com/landley/toybox - 5e4787ea3144364983944c38eb2a5ab2f12351bc authored over 10 years ago by Rob Landley <[email protected]>
find.c: Posix wants loop detection.

github.com/landley/toybox - 6804d2324ff2524cdf9ac013cb2b6b72c2295117 authored over 10 years ago by Rob Landley <[email protected]>
Building busybox from source needs find -not (a synonym for posix's "!").

github.com/landley/toybox - 2c2eaba63fd42442453b1ad87fadc7d02532ea28 authored over 10 years ago by Rob Landley <[email protected]>
Fix a couple patch bugs concerning error output.

github.com/landley/toybox - 9fdc1fe5033cbc8922e4bb65900b3696b7ae938d authored over 10 years ago by Rob Landley <[email protected]>
find.c: add -mindepth, -maxdepth, and document -newer and -depth.

github.com/landley/toybox - 4edcd084f4782518249b888efc5d8f965bd5742e authored over 10 years ago by Rob Landley <[email protected]>
Implement exec -user, -group, and -newer. Enable find in defconfig.

github.com/landley/toybox - 60c35c486a2ea1c6ea8920c599abf992b27542c5 authored over 10 years ago by Rob Landley <[email protected]>
Squash mix of tabs and spaces to just spaces.

github.com/landley/toybox - 64038da9fe9eab1fcf7e1fb6c654a6820c6d2064 authored over 10 years ago by Rob Landley <[email protected]>
Missed checking in dirtree_recurse() change (now needs specific DIRTREE_SYMFOLLOW value, not just true/false).

github.com/landley/toybox - 44b89867e0bfc085083e17657697af74e273a534 authored over 10 years ago by Rob Landley <[email protected]>
Cosmetic tweak, slightly more conventional for loop.

github.com/landley/toybox - dc48a0c7c5d5bd001adfe2827f357aaaf7dcbb7c authored over 10 years ago by Rob Landley <[email protected]>
Yank xrealpath prototype since the function's gone.

github.com/landley/toybox - bd0ad99d2e39c0eaf86ef8a92cceafd79989f470 authored over 10 years ago by Rob Landley <[email protected]>
Add --help support to single.sh builds.

github.com/landley/toybox - 825d7148d057a012fd8df0851a768a0d438f6c61 authored over 10 years ago by Rob Landley <[email protected]>
Unbreak find -exec.

github.com/landley/toybox - e686dcc30ba4505f813b9f5ccfa8ed9cf8644d3f authored over 10 years ago by Rob Landley <[email protected]>
New toys unified DIFF and USERDEL.

github.com/landley/toybox - 3acdbc16e8e474c99ba945a869059beccc6ac1d5 authored over 10 years ago by Ashwini Sharma <[email protected]>
mix.c - A very basic mixer.

github.com/landley/toybox - 732ef894567bf1d98abd88594bd68b8ccf309d72 authored over 10 years ago by Bradley Conroy <[email protected]>
factor: catch integer overflow.

Now factor 9223372036854775783 (largest positive 64 bit signed prime) takes a
couple minutes but...

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

I was reading http://www.muppetlabs.com/~breadbox/txt/rsa.html and it mentioned
"factor" and I n...

github.com/landley/toybox - 2a53f53d74167353cf434af59392c72a885cb7f6 authored over 10 years ago by Rob Landley <[email protected]>
find.c: fix -iname.

github.com/landley/toybox - b3c2d1cd4ef97f200bb7b668ae4c3be06d59063c authored over 10 years ago by Rob Landley <[email protected]>
As long as I had to write xabspath(), no point in wrapping realpath().

github.com/landley/toybox - 3c69835d6e0b4f8e72e441ae5e34439612790844 authored over 10 years ago by Rob Landley <[email protected]>
find.c: first pass at case case insensitivity and exec. (Needs more debugging.)

github.com/landley/toybox - fd14a61e941828c580bd476bb51f371f3d1ddf09 authored over 10 years ago by Rob Landley <[email protected]>
Actually set the again flag when calling the dirtree comeagain callback.

github.com/landley/toybox - 749c523240100484151b94a57b94ea44f2f28315 authored over 10 years ago by Rob Landley <[email protected]>
Patch from Isaac Dunham to work around the deficiencies in musl's regex engine (which break building under alpine linux).

Musl's regex engine doesn't support \| which changes the behavior of busybox
sed, breaks toybox ...

github.com/landley/toybox - 1e1f4412d8c4ef7c0442b62ee507ca48a07ade06 authored over 10 years ago by Rob Landley <[email protected]>
Move DIRTREE_COMEAGAIN second callback up to when the filehandle is still open, and add dir->again variable to distinguish second call instead of checking for -1 filehandle.

github.com/landley/toybox - fec3fd1f8ac1db9ed87b79bd3eb5e38aa835e881 authored over 10 years ago by Rob Landley <[email protected]>
Default xcreate/xopen to O_CLOEXEC. (Pass O_CLOEXEC in the flags to switch it back off.)

This way we're not leaking filehandles to children from things like find -exec.

github.com/landley/toybox - ccb73f8bf9191c01c90975958a210c47175bd98c authored over 10 years ago by Rob Landley <[email protected]>
Document more cleanup.

github.com/landley/toybox - dc62a012d7ce3e9a397e28022ab1fb6568a867c2 authored over 10 years ago by Rob Landley <[email protected]>
Have single.sh enable I18N and FLOAT.

github.com/landley/toybox - 63352139e7b957c930a756563f7cf2a75c8955de authored over 10 years ago by Rob Landley <[email protected]>
Improve gid/uid error messages.

github.com/landley/toybox - 4fd07e0f6698cdb873aab0113369eb36c81853a9 authored over 10 years ago by Rob Landley <[email protected]>
Little endian and big endian versions of peek (for host.c).

github.com/landley/toybox - 546b293cb9369c9c421981c71577af29d83b925a authored over 10 years ago by Rob Landley <[email protected]>
Fix memory leak in error path.

github.com/landley/toybox - 280bb5942526c06211185144a5cdb4c5d05aa2f6 authored over 10 years ago by Rob Landley <[email protected]>
Don't go into an endless loop if we hit a bad utf8 sequence without -q.

github.com/landley/toybox - 31db579265fa9e0acea036faa486be26f508e67a authored over 10 years ago by Rob Landley <[email protected]>
Isaac Dunham spotted that dhcp was also reimplementing daemon().

github.com/landley/toybox - 4a86c8193bf05646cdca9faa5253c607d6df5d35 authored over 10 years ago by Rob Landley <[email protected]>
Add utf8 support to ls -C.

Use wcwidth() instead of strlen(), and extend the -q substitution to also
whiteout nonprintable ...

github.com/landley/toybox - 8fb779954829f923ee2935d81cd4446973aaa01f authored over 10 years ago by Rob Landley <[email protected]>
find needs "c" suffix to -size.

github.com/landley/toybox - 87c06e15329a0ef39385408a2e41be82e56a5418 authored over 10 years ago by Rob Landley <[email protected]>
Find bugfixes.

The check for -print vs -print0 was tested before I optimized out the "-" in the strcmps, and I ...

github.com/landley/toybox - a873444aa3e57d05c639c849a41a2add146f0309 authored over 10 years ago by Rob Landley <[email protected]>
Apparently I deleted this locally but forgot to commit the removal. Oops.

github.com/landley/toybox - 1f80e11e3b85d72544d3b52178d0ea7a8c36c177 authored over 10 years ago by Rob Landley <[email protected]>
Use libc daemon() instead of pending daemonize.

github.com/landley/toybox - c880061f511e85d55afe3966f5eda0df7c3ebb56 authored over 10 years ago by Rob Landley <[email protected]>
Write a new find. Not quite done, but the basics work.

github.com/landley/toybox - fc7bc38af05fc882472d310a0b68648ed990ef2d authored over 10 years ago by Rob Landley <[email protected]>
fdisk : partitions > 60, are deleted, offset entry for extended partitions was wrong.

fsck: memory leak/segfault resolved.
ftpget : warning for unused variable 'ptr' removed.

github.com/landley/toybox - 30f6ef5fcd571c554c2c59585d126b92793379d0 authored over 10 years ago by Ashwini Sharma <[email protected]>
Implement -HL for cp.

github.com/landley/toybox - fbe5dda4d488fdd9961ef1fd21beee59467d8e29 authored over 10 years ago by Rob Landley <[email protected]>
Release notes for 0.4.9.

github.com/landley/toybox - 8bae314ab43037498fc0eeceb5dd6fa5f1a1e16c authored over 10 years ago by Rob Landley <[email protected]>
Added tag 0.4.9 for changeset ffc015bddb26

github.com/landley/toybox - 1446fecef589dbd5678c6cdb1ad985c2967dac1b authored over 10 years ago by Rob Landley <[email protected]>
Autodetect --bind and --loop mounts in a way that doesn't interfere with network filesystems or -t newtype mounts that trigger a module load.

github.com/landley/toybox - 056d0a00de99639fb39d19e984dd66fe82be7820 authored over 10 years ago by Rob Landley <[email protected]>
minor cleanup: move a global variable into GLOBALS(), inline strchr_null(), some whitespace and bracket cleanups.

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