aboutsummaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2012-12-27Fix option grouping.Rob Landley
2012-12-16Extend killall with support for -v and -iElie De Brauwer
2012-12-08Adding -s (single shot) and -o (omit pids) options to pidofElie De Brauwer
2012-12-08Complicate the rm -i behavior to do what posix specifies.Rob Landley
2012-12-08Make yesno() always read from stdin and write to stderr. (If we need to find ↵Rob Landley
our tty, open /dev/tty, but existing users don't.)
2012-12-06Have dirtree_add_node() set parent so error message can provide full path.Rob Landley
2012-12-01Remove unused structure definition.Rob Landley
2012-12-01Fix ancient glibc workaround to force fstatat64Rob Landley
2012-11-23Add expand command as described in POSIX-2008.Jonathan Clairembault
Erratum: Do not handle backspace.
2012-11-26The headers of uClibc and older glibc got unhappy with O_DIRECTORY and some ↵Rob Landley
other stuff. Fix it up in portability.h.
2012-11-25Fix typo.Rob Landley
2012-11-22Remove readlink -m for being poorly defined ("readlink -m ↵Rob Landley
/dev/null/and/more" answers what question, exactly?), rewrite xabspath() to work right and not depend on realpath, fix subtle longstanding bug in llist_traverse().
2012-11-20Update readlink so -f works. Add -menq while there.Rob Landley
2012-11-19Teach option parsing about [groups] of related options.Rob Landley
2012-11-17Fix leak (call endmntent).Rob Landley
2012-11-16More touch cleanup to use generic infrastructure: use getdate() from libc, ↵Rob Landley
use flag macros, option parsing can collect argument strings in global block, use existing perror_* macros.
2012-11-16Add cut from Jason Kyungwan Han.Rob Landley
2012-11-16Add rebound support to intercept error_exit() and longjmp instead.Rob Landley
2012-11-13Reindent to two spaces per level. Remove vi: directives that haven't worked ↵Rob Landley
right in years (ubuntu broke its' vim implementation). Remove trailing spaces. Add/remove blank lines. Re-wordwrap in places. Update documentation with new coding style. The actual code should be the same afterward, this is just cosmetic refactoring.
2012-11-13Older versions of glibc predated posix-2008. They still provide most of what ↵0.4.1Rob Landley
we need, but require a boot to the headers to get them to admit it. Note that uClibc lies and claims to be glibc so we have to specifically exclude it here.
2012-11-02Use stridx.Rob Landley
2012-10-07Fix thinko in xpidfile()Rob Landley
2012-08-26Add du command.Ashwini Kumar
2012-07-30Add signal handler to clean up tempfile.Rob Landley
2012-07-23Workaround longstanding glibc/ld bug, ala ↵0.4.0Rob Landley
http://sources.redhat.com/bugzilla/show_bug.cgi?id=3400, which prevents "./toybox | wc" from producing any output when toybox was statically linked.
2012-07-21Make chmod +w respect umask, implement +s and +t, fix ls to show ↵Rob Landley
suid/sgid/stid without x bit.
2012-07-21Use "_password" instead of "_passwd" for names in lib/password.c.Rob Landley
2012-07-18Only add / in dirtree_path if it hasn't already got one, spotted by Ashwini ↵Rob Landley
Sharma.
2012-07-17Add passwd by Kyungwan Han.Rob Landley
2012-07-15Genericize llist code a bit: rename llist_free() to llist_traverse(), and no ↵Rob Landley
longer accept NULL as a synonym for free.
2012-07-15New infrastructure for od (oops).Rob Landley
2012-06-30Add NOP b (byte) suffix to atolx() since od needs it.Rob Landley
2012-06-24Unify chown and chgrp, add support for -hHLP flags.0.3.1Rob Landley
2012-06-22Minor code refactoring.Rob Landley
2012-06-16Add dirtree_parentfd()Rob Landley
2012-06-16More header fiddling: crypt.h is silly, SUSv4 requires crypt() to be ↵Rob Landley
prototyped in unistd.h. The fact glibc refuses to do so without a wacky #define is a glibc bug, treat it as such.
2012-06-09Implement DIRTREE_SYMFOLLOW and ls -cSHL.Rob Landley
2012-06-09Feeding -1 to xdup() isn't an error.Rob Landley
2012-06-03Update chmod to work with new dirtree, and fix bugs in string_to_mode().Rob Landley
2012-06-01Changed my mind about the design again, now callback is dirtree_opennode() ↵Rob Landley
and recursion choice is how caller interprets flags.
2012-06-01Factor out dirtree_comeagain() callback, setting up depth-first search with ↵Rob Landley
open filehandle in node->extra.
2012-06-01Add xrealpath() at suggestion of Ashish Briggers.Rob Landley
2012-05-27Update chgrp so -R works, tweaking DIRTREE_COMEAGAIN design along the way.Rob Landley
2012-05-20dirtree logic cleanup: switch DIRTREE_NORECURSE and DIRTREE_NOSAVE to ↵Rob Landley
DIRTREE_RECURSE and DIRTREE_SAVE.
2012-05-16First pass at a complete rewrite of string_to_mode(). (It compiled!)Rob Landley
2012-05-09Whitespace (tabs vs spaces) cleanup.Rob Landley
2012-04-22More work on ls. Now ls -lR sort of works-ish.Rob Landley
2012-04-14Rewrite dirtree so we don't need readdir, scandir, and fts.h. Rewrite ls ↵Rob Landley
(from scratch) to use new dirtree infrastructure. (This breaks everything else that currently uses dirtree.)
2012-03-20Using /dev/tty for yesno() is wrong because yes 'n' | cp -ial needs to work.Rob Landley
2012-03-19Unwind gratuitous macros.Rob Landley