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

Rich Felker's reading of posix is that fchown() and fchmod() must be allowed

on files opened read-only, so revert last commit (force writeable logic).

github.com/landley/toybox - 6be15f4143a40cf7b2985be88ad16bc996310b59 authored about 9 years ago
Add ps -o psr,rtprio,sched.

These three are currently available in Android's ps but not in toybox ps.

github.com/landley/toybox - fde3a9300868b7505b76a652be27ac42ee534df3 authored about 9 years ago
Implement tail -f.

github.com/landley/toybox - 908d9edb66e736f4004c91e148922cbb1d7b3090 authored about 9 years ago
Redo linestack to handle embedded NULs.

github.com/landley/toybox - 146d219e117b56cc6f7e77c1083e91a961b906b5 authored about 9 years ago
Start of vi.

github.com/landley/toybox - b64abbc1c637f8b79a4a5f1382ae7d6f4bcc0d4d authored about 9 years ago
Next giant chunk of ps work: add _NAME_TAG bitmask values to tags.h

(leading underscore version is 1<<NAME_TAG version, with 1LL for >31 shift),
suck lots of magic c...

github.com/landley/toybox - 8b64a3e64775ddf779f828560543393bdcf2f31d authored about 9 years ago
Don't discard previous block when mkstatus finds another span tag with same id.

github.com/landley/toybox - 1efcb17d971666d334468149c5a604e76b5d9092 authored about 9 years ago
Start of TAGGED_ARRAY() infrastructure.

This lets you have struct arrays with a string as the first member, ala:

struct {char *name; ...

github.com/landley/toybox - f96bb3d8e7ec3882c70b861b998d8573083ffe55 authored about 9 years ago
Make "ps -o TIME+ -k TIME+" work. Factor out -o field names, field lengths,

and slot numers into a structure. (Keeping multiple arrays in sync may have
been efficient but it...

github.com/landley/toybox - fc7543b7f63c159d966ca6b71caf17f877eae985 authored about 9 years ago
Add a useless memset (under CFG_TOYBOX_DEBUG) to shut up valgrind.

Valgrind complains that we add uninitalized memory to totals[] fields we never
read from. (If we...

github.com/landley/toybox - 047bcb8e7d37847b96dbf621ea22ff00e9541d32 authored about 9 years ago
Expand toys.optargs to 64 bits so people adding more options to ls don't run out.

Keep the low 32 bits of FLAG_x constants as 32 bit numbers so that at least
on little endian pla...

github.com/landley/toybox - aaecbbac2f94b7a93eb2df7f9db78828cbb7b647 authored about 9 years ago
tail: use off_t instead of ssize_t for file offset.

github.com/landley/toybox - 5cb65054067391af7602bc303d77349c76648faf authored about 9 years ago
Rename dirtree->data to dirfd, and don't store symlink length in it.

github.com/landley/toybox - d336af4180542c9d526dece02d1a27232ef1ca6a authored about 9 years ago
Attempt at making cpio chown() mode 000 files sanely.

github.com/landley/toybox - 3af50964c7fba60666a4e5ae8d1bae741d385dd0 authored about 9 years ago
Remove trailing whitespace and wrap lines to 80 chars.

github.com/landley/toybox - ac82aa91cf6c7cfab86845e44e3a4d806e4ec97a authored about 9 years ago
CPIO: Add --no-preserve-owner option.

github.com/landley/toybox - ecae7831e88f52b0ec1d9e1890a4b8d67b9ac8fa authored about 9 years ago
Correct setting of guid and uid when extracting from a cpio archive.

github.com/landley/toybox - 83250d1f0a87fd184e5b9a5bba8618c3e8ed2c7a authored about 9 years ago
Enable matching any perm bits.

Includes tests for the new feature, and a failure case for the minimal
perms test as well.

Also...

github.com/landley/toybox - f49f291939afae44bda438bf2509c7ba20a2a78f authored about 9 years ago
Add free -h, based on a patch from Isabella Parakiss.

github.com/landley/toybox - 9e563e1c6c053ad848a15c30efbbe8a079154fb4 authored about 9 years ago
Add start of top infrastructure to ps, null terminate some stridx() searches,

move slot[] documentation into C code, add PR %VSZ VIRT RES SHR

github.com/landley/toybox - 21e80db17da160a60804f1e1e072f3665ead5628 authored about 9 years ago
Tom Marshall reported that blkid was handling ext2 wrong.

Even though ext2 has a comment that it has to be at the start, I added swap
to the start of the ...

github.com/landley/toybox - 2a3ac1459f857f17e1c273c49a8df000b14fc8db authored about 9 years ago
Replace duplicate sed test with case we hadn't covered yet.

github.com/landley/toybox - 88d207790e277aa864e6ed114be1c6e59d8ee3f4 authored about 9 years ago
Twitter's page seems reasonably simple and straightforward, use that.

github.com/landley/toybox - b057bacd2203b22a60c72672e355a8527932dcf4 authored about 9 years ago
Implement ps --sort.

github.com/landley/toybox - f79050aa3ce985cace67a6909b3180c641c1bbb0 authored about 9 years ago
Add basic sort logic.

github.com/landley/toybox - c39e3ef22369306698d177ffc0c7d09008671823 authored about 9 years ago
Split out string_field() from show_ps().

github.com/landley/toybox - 3f628345a74d0a0c2affa1793b9fef20be96cc28 authored about 9 years ago
Save string offsets rather than recalculating them each time, and use struct

instead of carving up toybuf by hand. This makes breaking out the field
conversion logic into its...

github.com/landley/toybox - 463c56b4fb5c63ffa294b126b41d26942d37f9dc authored about 9 years ago
Split do_ps() into get_ps() and show_ps() as a start on implementing --sort.

Change readfileat() to pass back length of read.

github.com/landley/toybox - 12a487b61f809aa4794578e14efe32d717f22bdb authored about 9 years ago
Fix find -perm.

1) It read st_dev instead of st_mode.
2) It reversed the semantics of absolute vs minimal ('-' p...

github.com/landley/toybox - 0f3d8ee513d63282e72df37b97e35ff1a4e4d646 authored about 9 years ago
Rewrite of the about page, re-triage of sbase, and other documentation updates.

github.com/landley/toybox - 79af65b116a736e7f5ac5b6609664fd37805d5ec authored about 9 years ago
Documentation tweaks.

github.com/landley/toybox - a46fcd42123c8c4960be8d233a6e2a19f6b684dc authored about 9 years ago
Document %s in date(1).

github.com/landley/toybox - 4e39281c1f380c53ee6ef8b9795111e0695a55be authored about 9 years ago
Fix year parsing in date(1).

Four-digit years were being mangled by the code for two-digit years.
Move all the two-digit year...

github.com/landley/toybox - d885b528f2d26435ecff83da9e50e815ac73605b authored about 9 years ago
Cleanup pass: inline find_tty_name(), bounds check fscanf(), use libc

functions to read major()/minor(), fix printf format warnings in error msg.

github.com/landley/toybox - 26ec1c05b0eef896b59fe3c870f6885fa7edf4ae authored about 9 years ago
Make ps try harder to find a name for a tty.

github.com/landley/toybox - b0f4710754fde8cea483c4ca89ccef0d85d32219 authored about 9 years ago
On Android, ps' default output should match toolbox.

github.com/landley/toybox - 86cef660e4a5a2d9e764486bc62c37a1c75fac6d authored about 9 years ago
Add ps -n.

Both Android and GNU interpret -n to mean "show numeric users and groups",
despite what POSIX says.

github.com/landley/toybox - 5c2e1f60d38d6dd389d4b4910ef420d7da87b98a authored about 9 years ago
Add ps -o CMDLINE.

This is equivalent to Android's historical "NAME" column, showing the
first element of /proc/pid...

github.com/landley/toybox - 976eaf88226776260c41b44cce98125ca0b638d6 authored about 9 years ago
NOEXIT(thingy()) wrapper to turn xwrap() functions into warning versions.

Also WOULD_EXIT(x, thingy()) to set a variable to 1 or 0 showing whether or
not thingy() tried t...

github.com/landley/toybox - 2f69ee2f0f25c6fc1dbc440c14c52aeaaf35b6a8 authored about 9 years ago
Route cleanup: whitespace and curly bracket changes.

github.com/landley/toybox - 6fd77eab77ba51579eaece4d3e12b5b890638124 authored about 9 years ago
Bugfix for route flags.

github.com/landley/toybox - 8a1509d0a6e7aedc1c3f6f13f0d7b2e0d83d6e2d authored about 9 years ago
Remove TEST_ARGV() and logic to adjust irtt by "clock ticks/100" when clock ticks _is_ 100...

github.com/landley/toybox - f0ddca8f88152f25f5aefba7483c389e970c5155 authored about 9 years ago
More route cleanup.

github.com/landley/toybox - d18c10977e29ea1c1641909e20aeced529cf4556 authored about 9 years ago
Let's start the route cleanup.

Collate some repeated increments, remove some useless coments.

github.com/landley/toybox - 6256a5c8b9d7db4bcbb5b255d33354aecd95d9fe authored about 9 years ago
Fix sed bug where any ] right after [ was skipped, not just first one in range.

github.com/landley/toybox - 769341fdd7497683136d1a9ae08f6009dbad6c8c authored about 9 years ago
dhcp leanup: remove flag_get() and flag_chk()

github.com/landley/toybox - 547c9167565cf8a2bba8bd79850889101866814a authored about 9 years ago
New dhcp6 command from Sameer Pradhan.

github.com/landley/toybox - 54a13f9ef4380501d3b12bb1f04408f5607d46ee authored about 9 years ago
Version 0.6.1

github.com/landley/toybox - 87ede171eeaa90db3b76d2cb6230f947d2497e65 authored about 9 years ago
Whitespace and parentheses.

github.com/landley/toybox - 31cb5fc41086f5b2903f473f85e6305bf47cfa2c authored about 9 years ago
Explain signals in oneit help text.

github.com/landley/toybox - 729401d267d6ce53443505210dd3dd9471056155 authored about 9 years ago
Don't pass target $CFLAGS to host builds (telling x86 compiler to be big-endian

seldom ends well). Instead add -DBUILD_FOR_HOST to $HOSTCC and wrap #ifdefs
around problematic (s...

github.com/landley/toybox - d20b9ff3ee0f1014a740baed908dc0a08c646fb6 authored about 9 years ago
Add -P as short option for --ppid.

(The help infrastructure can collate and alphebetize short options,
long options haven't got a s...

github.com/landley/toybox - 539f8c8b56729d1b6562ade260bf6c44d1f9637b authored about 9 years ago
Fix the ps -o CMD vs COMM distinction.

"comm" is the command name without arguments, and "cmd" the command
line including arguments. Co...

github.com/landley/toybox - 9d57762c921e77a7237981916d3109bbd3607891 authored about 9 years ago
Make ps -o error reporting intelligible.

I actually thought ps was segfaulting, and it wasn't until I was in gdb
that I even noticed ther...

github.com/landley/toybox - 3c0f6a19a271a7b85d62fc85d0ac1c6f661849f2 authored about 9 years ago
If chomp() needs to test it found \n, should also test it's at end of string.

github.com/landley/toybox - 45e0acc110465175afc678ee103f2f5c4e6b270f authored about 9 years ago
Add ps -Z.

As with ls, it doesn't seem like -Z should be guarded behind LSM
availability. On a non-SELinux ...

github.com/landley/toybox - 11d6079ed3cb067dc66a795a1c7565c13afd5a00 authored about 9 years ago
Add ps --ppid.

Used by Android.

github.com/landley/toybox - 71617b9ea00ed774c202346c9bf8ac2bf80dfc2e authored about 9 years ago
Last patch broke creating new file as a patch, fix it.

(Matches beginning and EOF at once.)

github.com/landley/toybox - 2fe69382d37bf75ecf4ef4d730339c4982a82461 authored about 9 years ago
Fix applying patch hunks with trailing context to the start of the file.

github.com/landley/toybox - 8205f5a88de29369b777533bb7ec4051454d31bc authored about 9 years ago
Change grep -w to checking matches after the fact rather than modifing regex.

This lets '(x)\1' match, as reported by Isabella Parakiss.

github.com/landley/toybox - 73e3a644c1af8e28ca45c3b5169dee8acc06b179 authored about 9 years ago
Now that toybox is chmod -w, mv needs -f to overwrite it.

github.com/landley/toybox - f3dc8a81c56209d7ae0fcd859a359d13e577d63d authored about 9 years ago
Tweak permissions of toybox binary.

github.com/landley/toybox - b8f5eff75187cf1b9774a8e65fe705efbb436c65 authored about 9 years ago
Update Android section of roadmap.

Change-Id: I5a0f49b17bc5866689608e73af94b31744fd3dc9

github.com/landley/toybox - 347e4f4b3d4ac83bc03a90e1362e34408997064f authored about 9 years ago
Note Debian abandoning LSB and our own decision not to worry about LSB 5.0 yet.

github.com/landley/toybox - c815d59f80ebb5cf377e7e87e44c340d9b103132 authored about 9 years ago
Fix sed bug reported by Isabella Parakiss, where sed -e "/x/c\" -e "y" added

an extra newline because the test for whether we have an existing string to
append a newline to w...

github.com/landley/toybox - 8132ad2f4ec9b463ed954a302e9e490b549b106a authored about 9 years ago
Oops, forgot to check in the header file change for ps.c.

github.com/landley/toybox - da646636382e5830650e725592d10cec587081f7 authored about 9 years ago
Promote ps to posix.

github.com/landley/toybox - 9bdd8fd4549e8392b5bec0298e9978436392e342 authored about 9 years ago
Free more stuff in debug cleanup.

Tempted to convert the struct arg_list and ptr_len stuff to arrays and
make the parsing table dr...

github.com/landley/toybox - 75df3e5631422ffc3de0d31e04aa9be343190f3e authored about 9 years ago
Implement -suUgG and -o majfl,minfl, move uid/ruid/gid/rgid into slots[31-34]

and vmlck into slot[18], pass error message to comma_args(), collate -stuUgG
callbacks into parse...

github.com/landley/toybox - 7ab0e6ed60c10e78a536357832ef3859489f5083 authored about 9 years ago
Tweak build instructions in README/code.html.

github.com/landley/toybox - 1cbc283f94aab45ca1246d248f4d323b5f455221 authored about 9 years ago
Use the /proc/self/fd/%d workaround for O_PATH not letting you read xattrs,

inspired by:
https://android-review.googlesource.com/#/c/152663/4/libc/bionic/fgetxattr.cpp

github.com/landley/toybox - 55aa28467914463e9c6869cd3c8b7264f7e6e695 authored about 9 years ago
Fix ls error message for chmod -r directories.

Also, if you mkdir "$(echo -e "one\ntwo"); chmod -r one*; ls -q one*
it honors -q.

github.com/landley/toybox - 87f6a93fc594934b21fcd0e9d42baad2abb209ae authored about 9 years ago
Install without a mode should use 0755, and check FLAG_preserve instead of

the global so "install -g 0" doesn't alias to "cp --preserve 0" and error out.
through to --prese...

github.com/landley/toybox - 10a942f7a67fe7f8dc6c17c3115449f5034fb607 authored about 9 years ago
Replace xcount_cpus() with a call to sysconf(_SC_NPROCESSORS_CONF)

github.com/landley/toybox - d4c17cdaf1f72a872dcbe12952412f02810c29b5 authored over 9 years ago
Add xcount_cpus()

github.com/landley/toybox - eb1bbc245dd6554a8fbe879a4efb903f6e7788cb authored over 9 years ago
Add comma_args() and factor out parse_o(), parse_t(), and parse_p() to use it.

Fix FLAG_w.

github.com/landley/toybox - 5535a2695642dcf54051af2b654ab37a89ece72f authored over 9 years ago
Factor out parse_o() and make -l -f and default output work on strings

rather than bitfields.

github.com/landley/toybox - 9e5dd1474d1a194af091c0576f57d95e4ad31a00 authored over 9 years ago
More ps work, and fill out remaining help text.

Fix more l/r justification, implement uname vsz vsize and stat.

github.com/landley/toybox - a58bab54f60fb8268688275395780a274bed0f36 authored over 9 years ago
Fix netstat build warnings.

Fixes two instances of "warning: use of logical '&&' with constant operand".

Change-Id: I2bb1ba...

github.com/landley/toybox - aff606920612ceedc6fa0716cdfcea0571d56987 authored over 9 years ago
More ps work: move l/r justification to widths[], add RUID/RGID, implement PGID,

plus tty detection fix from Elliott Hughes.

github.com/landley/toybox - 71d87c9ecff852dbc115135c8ad38d40169f2726 authored over 9 years ago
fix dhcpd warning

github.com/landley/toybox - c9e2a656c7305fac00a5a8c09201e1e39fea6a1b authored over 9 years ago
Auto-size df columns.

On Android, the filesystem column is pretty wide. Actually measure the widths.

github.com/landley/toybox - c10638d3b16d065c1efd97ae17c1a8bf417be706 authored over 9 years ago
Make ps.c whitespace consistent.

(Assignment has spaces around operator, comparison doesn't.)

github.com/landley/toybox - 1509170ac2c0bf408501f78fa6079a6a6514c04f authored over 9 years ago
ps: implement -t, remove leading 0 from ETIME days, implement -o GROUP,GID,PCPU

github.com/landley/toybox - bfee4b2325efd7c21c2e5ec02193ec2e97cca0ff authored over 9 years ago
Move d/h units from %d %D output to default format string.

github.com/landley/toybox - d7e85a7c37e2f7248b8b8c367254abcb6557fd6e authored over 9 years ago
More ps work, tested up through etime now.

github.com/landley/toybox - 196e8c0e34e2ccad657f331be9f07e784a041589 authored over 9 years ago
Fix ps display padding (truncation) and adjust -o pri by one.

github.com/landley/toybox - 0719c9743b761a8c348079e6d28ac839e9b82019 authored over 9 years ago
More ps work, implement -p, correct several -o fields and general alignment.

github.com/landley/toybox - 04fccba19fc8aed46d756edba43859e0b3893ff0 authored over 9 years ago
make.sh: missing cflags for config2help

config2help might require extra parameters to be passed to the compiler.
For example it might ne...

github.com/landley/toybox - 76ddf7a3c55efa456af2c488b4be4fb9997fdbd2 authored over 9 years ago
Cleanup pass on pgrep: remove flag_twiddle macros, use 0 constants,

unify some TT.signame tests checking constant value variable initialized to.

github.com/landley/toybox - 3cdde514679f3de2e0e1b882b8ece2391a50b7ce authored over 9 years ago
"stat -c %T" support (filesystem type names) based on patch from Hyejin Kim.

github.com/landley/toybox - 1ca8a440323d04164efab68ed8f507f1c6ae84d9 authored over 9 years ago
Decode netlink sockets in lsof.

Refactor the /proc/net parsing so this only adds 7 lines overall.

Also clear the DEVICE field f...

github.com/landley/toybox - 8b94351f089f8e6ef0a4a12092bfe2f04ffd960a authored over 9 years ago
New command: flock.

The brillo folks wanted this in a shell script they're porting over
(so I've only implemented th...

github.com/landley/toybox - 661540a99f2c346d7fb2a4b83db2e31a7d204490 authored over 9 years ago
Fix bug in od that screwed up position indicator on arm and mips.

github.com/landley/toybox - d2dbdcab92f4795c1a614f0c0d2c5dee9c78e21a authored over 9 years ago
Fix allnoconfig. (Exporting HOSTCC before HOSTCC?=cc caused a problem.)

github.com/landley/toybox - 1223578c94c1d409af481dd7af2fb84261c20c62 authored over 9 years ago
Export makefile variables so you can say "make CROSS_COMPILE=blah-" as well as "CROSS_COMPILE=blah- make".

github.com/landley/toybox - 5b39d5c58cc3c43580a9114355b0763c171926b6 authored over 9 years ago
Minor cleanup and add "MODALIAS" handler (suggested by Isaac Dunham).

github.com/landley/toybox - 9cc78770dc593b58e2ac0b24c42c3948c09d5eec authored over 9 years ago
Back to chipping away at ps...

github.com/landley/toybox - 73acb3a0f4ea7204f149c964adcd8938e09cb9f4 authored over 9 years ago
Add uClinux analysis to roadmap, and a few other pending changes.

github.com/landley/toybox - 469d7f11b66dfbaf7483a9a855e595d59f71fdad authored over 9 years ago