Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/landley/toybox

toybox
https://github.com/landley/toybox

Probe available libraries to link --as-needed, avoiding "unknown libarary" errors.

fb98c1ead35233e13c5cc9d76b790a601ba6cd1d authored over 12 years ago by Rob Landley <[email protected]>
dirtree logic cleanup: switch DIRTREE_NORECURSE and DIRTREE_NOSAVE to DIRTREE_RECURSE and DIRTREE_SAVE.

8c4ae8a78eae279db5d5be25f7b4618427844a92 authored over 12 years ago by Rob Landley <[email protected]>
Silence pointless warnings.

bdcb80e9d316863a77ff922e18d32e9024c77c82 authored over 12 years ago by Rob Landley <[email protected]>
First pass at a complete rewrite of string_to_mode(). (It compiled!)

b6f601e5e6935bed3b15ff8680303ddb7a76fb4f authored over 12 years ago by Rob Landley <[email protected]>
Remove strndupa() gnu-ism at Georgi's suggestion, and adjust mdev to compile with new dirtree. (No idea if it works, this command was never finished and needs a lot more work.)

39f4e7dda7ad2271d282d035ff444c57f14bff53 authored over 12 years ago by Rob Landley <[email protected]>
Whitespace (tabs vs spaces) cleanup.

4d0f02f30b8ecf207cfb812af83f6ab4e26f5497 authored over 12 years ago by Rob Landley <[email protected]>
Addition of mktemp

d6f7e788ac34c05f7be31a8eb751b7595d48ec0a authored over 12 years ago by Elie De Brauwer <[email protected]>
Georgi pointed out that some overly-pedantic C libraries require you to include both "string.h" and "strings.h". (Most don't.)

e3b171e6df244be8f7d5163ec5818406cce513f0 authored over 12 years ago by Rob Landley <[email protected]>
Simplify/unify listfiles recursion: populate directory node (and detect top of tree) at start of function rather than end (and redundantly in main). Move title printing down next to total printing.

f3b4a916525c6658e71def23ee37532b0313b663 authored over 12 years ago by Rob Landley <[email protected]>
Make -d work in ls.

7792f8f65310f5eecac79df8ce0a0cb5e0d83ea8 authored over 12 years ago by Rob Landley <[email protected]>
Adding initial version of login.c

0b11a16626867a362ed9aff3950650af94d1cfa7 authored over 12 years ago by Elie De Brauwer <[email protected]>
Require -R to recurse, but descend into directories listed on command line.

5c4ac67899a4c75cfda7137436b6ce1885b36077 authored over 12 years ago by Rob Landley <[email protected]>
More work on ls. Now ls -lR sort of works-ish.

9b3af46b888a57c2183545455e2de1cb457d9f2a authored over 12 years ago by Rob Landley <[email protected]>
Refactor uniq.c a bit.

e692fc11a2c8bb8d10001aa80441baf94bd85f98 authored over 12 years ago by Rob Landley <[email protected]>
Teach make.sh to create flag macros, but with the wrong names. Dunno how to make a translation macro or #ifdef guard to get the names right so they actually be _used_ yet...

1bcdf538bead59ef4d0d6c9a47b7bc5153a21667 authored over 12 years ago by Rob Landley <[email protected]>
Rewrite dirtree so we don't need readdir, scandir, and fts.h. Rewrite ls (from scratch) to use new dirtree infrastructure. (This breaks everything else that currently uses dirtree.)

eb7ea22c7505f10928e104a9df39edc70a8f7036 authored over 12 years ago by Rob Landley <[email protected]>
Comment and whitespace changes.

43e9d331c8055dff7e243bd19d2d06df826d6f38 authored over 12 years ago by Rob Landley <[email protected]>
Use FLAG_ macros for echo optflags.

ea5c68a5b09e1b3c58f1a874acf52848834d8014 authored over 12 years ago by Rob Landley <[email protected]>
Match uint64_t with PRIu64 to avoid warnings on 64 bit builds.

2a9dde00db289995b0dec48928c5e1656f7b9323 authored over 12 years ago by Rob Landley <[email protected]>
Adding logname

842d3d17c507823e83e4b6aaa99e889b74528ed2 authored over 12 years ago by Elie De Brauwer <[email protected]>
toybuf usage enhancement, tabs to spaces, teminal height refresh

f69042e932fa4ca924101a1a73d7f805a9379e8f authored over 12 years ago by Elie De Brauwer <[email protected]>
Adding vmstat

0392c177d0f21a8916e4a6835454411d15fe5a9c authored almost 13 years ago by Elie De Brauwer <[email protected]>
Replace ?: gcc extension with standard code

49861be1f28e95add07069ea54defa5dd77e742d authored almost 13 years ago by Kevin Chase <[email protected]>
Adding mountpoint

8ad2a7d440d6ace7dc0b0deac1f2b4c8e5cc3a97 authored almost 13 years ago by Elie De Brauwer <[email protected]>
Implement comm.

24e0c514dbb598e7d9dac2f35ddcb90a2d8419d2 authored almost 13 years ago by Ilya Kuzmich <[email protected]>
The -s flag includes staying quiet about missing files.

848a033b817a39b6b88ca323fce1d180bd4d9803 authored almost 13 years ago by Rob Landley <[email protected]>
Test the right variable in NULL guard, and add NOP "s" suffix.

66b0f99d0c0b1d9ad9dcee265081f884b3d949ce authored almost 13 years ago by Rob Landley <[email protected]>
Using /dev/tty for yesno() is wrong because yes 'n' | cp -ial needs to work.

f78c63a7035ceabb0dcb907cb5764b18da495f82 authored almost 13 years ago by Rob Landley <[email protected]>
Unwind gratuitous macros.

cf6bcb27fb3dc6d196adce31d774229ea5d56dec authored almost 13 years ago by Rob Landley <[email protected]>
Have probe for unshare test for actual unshare() function in libc.

f9fdd3c2ffe6cb4e1450cfcedad66a1e69f90bb6 authored almost 13 years ago by Rob Landley <[email protected]>
Add string to mode_t parser

added new function string_to_mode(char *m_string, mode_t base) which
parses a given string and c...

05744b3176828c25f6e2cc2d663615252b4cd02f authored almost 13 years ago by Daniel Walter <[email protected]>
Remove "feature test macros", replace non-portable fdprintf() with standard fprintf().

ee00a7f4587c1b75dedb71b5aa3d12608fb7b54c authored almost 13 years ago by Rob Landley <[email protected]>
Implement Apple and Android versions of getline(), getdelim(), and clearenv().

522d90613ae7dc728a98d3ce3b939b4ad9b30f25 authored almost 13 years ago by Georgi Chorbadzhiyski <[email protected]>
The linux header doesn't prototype unshare, and the glibc header introduced a regression in recent versions inexplicably crediting a linux feature to the FSF, so add the prototype ourselves.

c4849f7e354d3c685c44ac2b2a7110238b17122b authored almost 13 years ago by Rob Landley <[email protected]>
Simplify nanosleep call.

bc329417f840d8073d4e5af7e2c8b23bb32e149c authored almost 13 years ago by Rob Landley <[email protected]>
Implement uniq.

16a29268033609664500b3333537cd62fcff50fb authored almost 13 years ago by Georgi Chorbadzhiyski <[email protected]>
Default new ch* commands to n until enough is implemented not to break aboriginal build.

b9bfb8731cb3bed41e55db8d70ffa045a25f63ae authored almost 13 years ago by Rob Landley <[email protected]>
New toys - chmod, chown, and chgrp.

410aeba45c96000f4b2990634c6eb0bcb2b2d159 authored almost 13 years ago by Georgi Chorbadzhiyski <[email protected]>
Extensive semi-gratuitous refactoring: factor out common code, handle euid!=uid and egid!=gid cases. (Note: test suite requires root access, possibly container support.)

7fa9a05de2b79efe5e9c10986cbf1cb8f3abc068 authored almost 13 years ago by Rob Landley <[email protected]>
Tighten up the code a bit, and use actual process group id instead of what /etc/passwd says.

cc0d4ab069d79510c387ffa53ca351a0acb4b61b authored almost 13 years ago by Rob Landley <[email protected]>
Yet another header for technical susv4 compliance.

6da3be91efef92ebe27c06222212f99f28814ca5 authored almost 13 years ago by Rob Landley <[email protected]>
Redo tail to use optargs and optionally support lseek. Add support to optargs and llist.c, plus add a test suite entry. Still no -f support though.

2c48247a01a19c709f693d649d8158bccb5fbf70 authored almost 13 years ago by Rob Landley <[email protected]>
Fix nanosleep() usage.

9f4c1fd2de1b525b7638a79a8294f8d5b865bcc5 authored almost 13 years ago by Georgi Chorbadzhiyski <[email protected]>
Replace deprecated libc function with its totally renamed equivalent.

28427d2fff6074f8be173b6dbb76cf05a41e0e3e authored almost 13 years ago by Rob Landley <[email protected]>
Work around glibc regression by including Linux header directly.

35cb740415073fc64d17a22f93955ddc436c72ae authored almost 13 years ago by Rob Landley <[email protected]>
Add lib/portability.h description with explanation of SWAP() macros.

137bf3449a7bd235ecdce3c9c2fb4f03b84d2d83 authored almost 13 years ago by Rob Landley <[email protected]>
More stabs at getting #includes right, and moving off of deprecated functions.

b7529b608ea3e56784c7682b382f285008a2fc90 authored almost 13 years ago by Rob Landley <[email protected]>
Fix mkdir -p to accept paths that already exist, and detect path ending in a file.

13cacbd09de09e38e4d1227f7122fda8f1d6fc63 authored almost 13 years ago by Rob Landley <[email protected]>
Consolidate headers.

f05f660d9c4f18aa4702d723ed7b35f7053ce08c authored almost 13 years ago by Rob Landley <[email protected]>
Silence a couple pointless warnings.

b7a4862fbf0df632837a53e230f4aa9cceb5f578 authored almost 13 years ago by Rob Landley <[email protected]>
Cleanups: use perror_msg() and make mode a global.

e430db2894bedba6e06693c93ddab4ae28bd7ca3 authored almost 13 years ago by Rob Landley <[email protected]>
Add mkfifo.

f656fc975856e929b63de3998e0b158bd8c7c38d authored almost 13 years ago by Georgi Chorbadzhiyski <[email protected]>
Web page updates.

ed6ed62f7db42ee72532fbc848b2d505e81bef39 authored almost 13 years ago by Rob Landley <[email protected]>
Comment and whitespace tweaks.

9317c06e2d2081feb37ab36e626707f3a1205576 authored almost 13 years ago by Rob Landley <[email protected]>
mkdir cleanups: Let umask do its thing at the syscall level, have mode be a global to prepare for -m, use do_blah name loopfiles() usually calls, one less redundant mkdir() call, go ahead and modify writeable args instead of strdup(), return before restoring / so error message is better, use perror_msg().

688c74534227e3241a83e41b1f14a3f6b700f475 authored almost 13 years ago by Rob Landley <[email protected]>
Add mkdir.

057aa04da8b39a72e38eedddb9ed27e61b25ed68 authored almost 13 years ago by Georgi Chorbadzhiyski <[email protected]>
Fix xargs -0 option.

4250d52c84c8055525b14ce3687bffc52d6300ad authored almost 13 years ago by Rob Landley <[email protected]>
whoami: fix toy description, no code changes

e2aa5cb7a63fffeb8170d084f9c220427ed5ff4b authored almost 13 years ago by Pere Orga <[email protected]>
Add clear.

4bb140e1cc68575db7c4b4b5ce339650a56c72d0 authored almost 13 years ago by Rob Landley <[email protected]>
Add tac. (Shell wrapper is smaller, but all-in-one static binary is compelling use case.)

a30a84a9052c81b6cf843c979c826274cc284004 authored almost 13 years ago by Rob Landley <[email protected]>
Minor optimization.

fd374f9a958609fdb5efbeb801afea84a6adc97e authored almost 13 years ago by Rob Landley <[email protected]>
Add whoami.

0d20c93b888ec75974c26bf4de6a05d62606a5fa authored almost 13 years ago by Georgi Chorbadzhiyski <[email protected]>
Fix build on slackware-current.

2c27fcfa8d1509567d39851dad8f847c70bcdfb7 authored almost 13 years ago by Georgi Chorbadzhiyski <[email protected]>
Add longopt, refactor so only one instance of each loop, requre = as part of match, update exit code.

405e73ce65cf048c49c6e57a62f60c3f9c83faf8 authored almost 13 years ago by Rob Landley <[email protected]>
Implement printenv command.

2790105914ea20aaa26d71899be1f12422270349 authored almost 13 years ago by Georgi Chorbadzhiyski <[email protected]>
Make floating point support depend on TOYBOX_FLOAT, make 0.1m work.

2b7b1ad04bbbbadd61067f46c6f24264a318d666 authored almost 13 years ago by Rob Landley <[email protected]>
Add fraction and extension support to sleep.

f1e82dfa2131c4c8b8bfc83209c9f1d26cc7f35c authored almost 13 years ago by Georgi Chorbadzhiyski <[email protected]>
Add -A to ls

e8a9df4efb147437fe03e9267b72246a5009d342 authored almost 13 years ago by Andre Renaud <[email protected]>
Added tag 0.2.1 for changeset 9bcc288a1c54

84b226df2709887171d8889e961016e6d9bf13e6 authored almost 13 years ago by Rob Landley <[email protected]>
Fix from Georgi Chorbadzhiyski to make cross compiling more robust.

344c267e9fe5c6a39efdbf0305bd873d5bef65f3 authored almost 13 years ago by Rob Landley <[email protected]>
This uses floating point.

ad065e2d1b96dd2f387296086ef808cd28bf3a47 authored almost 13 years ago by Rob Landley <[email protected]>
Add copyright notice, fluff out help text, use xexec().

52265e9d360caa10d61ab9689424dc19225a04fd authored almost 13 years ago by Rob Landley <[email protected]>
Only show one normal difference (sans -l) and EOF message should go to stdout, not stderr.

03a8f7430ebe694602646873371fdf067b735eb9 authored almost 13 years ago by Rob Landley <[email protected]>
Cleanup pass, and support unrecognized slash chars ala "echo -e \p".

7339560d3f8581e988cfb7095918bf47b6e8f067 authored almost 13 years ago by Rob Landley <[email protected]>
Add -n, which kernel build needs.

829503ea7f76c0ab52ba7c683f93878f56cab6a1 authored almost 13 years ago by Rob Landley <[email protected]>
Now that generated/Config.probed is its own file, add it to build dependencies.

f2e61cb1bb9bc02362833e4b6126ef3436236c9a authored almost 13 years ago by Rob Landley <[email protected]>
Make documentation even fluffier.

e7c9a6da6cdacd51c1806c436fcedc323e6d68e7 authored almost 13 years ago by Rob Landley <[email protected]>
Add "-" type to optargs and teach tail.c to use it. Tighten up help text, use xzalloc() and xputc() as appropriate.

b73d8e3c2d3b606295453940e602d173924cd380 authored almost 13 years ago by Rob Landley <[email protected]>
Upgrade yesno() and make cp -i use it.

f793d5347f08bdb742e8ad8a2cc5a7d30e6bd623 authored almost 13 years ago by Rob Landley <[email protected]>
The aboriginal linux build needs ls -ditc and probably some more unimplemented options yet...

b0dcd667f185e01589af38958116768ffd561de8 authored almost 13 years ago by Rob Landley <[email protected]>
Web page tweaks. Remove background image (makes it hard ot read for some people), and use local roadmap instead of third party wiki.

bbe500e531e7f3ff29265564d012754f11847679 authored almost 13 years ago by Rob Landley <[email protected]>
Teach patch -p that consecutive /// counts as one path component.

d73c956d902fcef15ba5f8cda9becd431f042a07 authored almost 13 years ago by Rob Landley <[email protected]>
Teach lib/args.c that " " this option must take a _separate_ argument, so "kill -stop" and "kill -s top" aren't the same thing. Make kill.c use it, and remove leftover debug printfs.

b081ce98999111aa5518388ed7eb8e5ceb5629f9 authored almost 13 years ago by Rob Landley <[email protected]>
Factor out common code between killall/kill and move it to lib/lib.c, plus cleanups on kill.c.

2dd50adc460e63c57eddb696f908dd6b1abfd723 authored almost 13 years ago by Rob Landley <[email protected]>
Implemented -i for cp

bef57ed266cfad82114b5bb16052571035e9fff1 authored almost 13 years ago by Bryce Fricke <devnull@localhost>
Don't mix the the probed symbols with the command symbols.

1b7ad01f5e5ead83fbc06ff20248b085a15dc279 authored almost 13 years ago by Rob Landley <[email protected]>
Bugfix: use the right USE symbol.

2f53279a8d96265f029da2062d7d754808211deb authored almost 13 years ago by Rob Landley <[email protected]>
Add tail.

Disabled by default because the -f option is not implemented.

50591238eb4e70bf2bca59f536fd4f2253cb57f9 authored almost 13 years ago by Timothy Elliott <[email protected]>
update id to be SUS compliant

* add -n and -G flag
* allow a username to be given as argument
* display complete list of gr...

8206db524ca681a973d30eda2098cb943ba2f056 authored almost 13 years ago by Daniel Walter <[email protected]>
Replace GPL python debug script with BSD shell script.

7a4551ff5eec761ec303b21c9a35a37f51377a2f authored almost 13 years ago by Rob Landley <[email protected]>
Add in the -n support, and the 64-bit defines. Force ls to act as ls -1 if used in a pipe.

94d673dfa95e13c46814338024eb554ca40eb336 authored almost 13 years ago by Andre Renaud <[email protected]>
Add new kill toy. Used to send signals to a process or a process group.

eb7204b52ded2b2e8fc10b6af4ae9deb77cd550d authored almost 13 years ago by Daniel Walter <[email protected]>
Tighten up the source code in largely cosmetic ways.

f1e2e1cd4a5293d164b79bddb8a582214f7b0acf authored almost 13 years ago by Rob Landley <[email protected]>
Minor cleanups: lsmod should USE_LSMOD() instead of USE_FREE(), use consistent tab/space idents, and doesn't need a break after a function that exits.

5a7c16cef9dd7e351d89be06a770efc7a4c5347a authored almost 13 years ago by Rob Landley <[email protected]>
Set HOSTCC only if it isn't already set as an environment variable.

fcf188ffdba160303c1e8e59819239d3bf9f31ad authored almost 13 years ago by Rob Landley <[email protected]>
Minor tweaks.

4c9ac8ee7d85b630618ed0b7b87084d9d014ec00 authored almost 13 years ago by Rob Landley <[email protected]>
Nathan McSween convinced me compilers that inline memset() can optimize the bzero case pretty well.

2b54b1ab1a796ef89426f021319c11ff22710947 authored almost 13 years ago by Rob Landley <[email protected]>
Cleanups to killall.

4696bfc4057e87ea8a66bd64aafb9ca14a64290e authored almost 13 years ago by Rob Landley <[email protected]>
And again, I forgot to check in a file. Oops.

ebcf0be0bedc534f3c034e0f37fe8b85b49af596 authored almost 13 years ago by Rob Landley <[email protected]>
Cleanups to pidof (including some global infrastructure shared with killall).

f42e11b6712f7bd17d1ee2e548f54a2f6d9aed46 authored almost 13 years ago by Rob Landley <[email protected]>