aboutsummaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
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
2012-03-19Add string to mode_t parserDaniel Walter
added new function string_to_mode(char *m_string, mode_t base) which parses a given string and converts it to a mode_t. If either + or - are part of m_string the permissions are either added or removed from base. Currently support for permision copy is missing (e.g. g=u), but all other flags should work. Format for m_string: either symbolic modes or octal representation. symbolic modes: [auog][[+-=][rwxst]*] examples: string_to_mode("u=rwx,g=rw,o=r", 0); string_to_mode("a-x", 0777); string_to_mode("0744", 0);
2012-03-19Remove "feature test macros", replace non-portable fdprintf() with standard ↵Rob Landley
fprintf().
2012-03-16Implement Apple and Android versions of getline(), getdelim(), and clearenv().Georgi Chorbadzhiyski
2012-03-12Redo tail to use optargs and optionally support lseek. Add support to ↵Rob Landley
optargs and llist.c, plus add a test suite entry. Still no -f support though.
2012-03-08More stabs at getting #includes right, and moving off of deprecated functions.Rob Landley
2012-03-07Consolidate headers.Rob Landley
2012-02-28Add "-" type to optargs and teach tail.c to use it. Tighten up help text, ↵Rob Landley
use xzalloc() and xputc() as appropriate.
2012-02-27Upgrade yesno() and make cp -i use it.Rob Landley
2012-02-26Teach lib/args.c that " " this option must take a _separate_ argument, so ↵Rob Landley
"kill -stop" and "kill -s top" aren't the same thing. Make kill.c use it, and remove leftover debug printfs.
2012-02-26Factor out common code between killall/kill and move it to lib/lib.c, plus ↵Rob Landley
cleanups on kill.c.
2012-02-18Nathan McSween convinced me compilers that inline memset() can optimize the ↵Rob Landley
bzero case pretty well.
2012-02-18And again, I forgot to check in a file. Oops.Rob Landley
2012-02-18Cleanups to pidof (including some global infrastructure shared with killall).Rob Landley
2012-02-18Add killall by Andreas Heck, and factor out common pid code to lib.h.Rob Landley
2012-02-09Make atolx() error_exit() if fed a string that doesn't convert entirely into ↵Rob Landley
an integer.
2012-02-08Use stpcpy() (posix 2008) for slight code shrink.Rob Landley
2012-02-03Removing unecessary allocation.Luis Felipe Strano Moraes
2012-02-02Quick and dirty terminal_size() and yesno() functions, both of which need to ↵Rob Landley
be improved.
2012-02-02Commit 415 needs the other two files. (Oops.)Rob Landley
2012-01-29Add <>= to lib/args.c, with documentation.Rob Landley
2011-12-28Bugfix (spotted by Nathan McSween): xread can't detect <0 if the return type ↵Rob Landley
is stored in an unsigned variable.
2011-12-12Forgot to check in loopfiles_rw changes needed by truncate.Rob Landley
2011-11-30Split out parse_optflaglist(), and move local variables to optflagstate.Rob Landley
2011-11-28Fix "tar cvjfC file dir", make @ not eat an argument, add debug check for ↵Rob Landley
(as yet) unsupported multi-function option (ala "x*@").
2011-11-13xreadall() returns void... how does that even compile?Rob Landley
2010-01-06Shut up even MORE gcc/glibc spurious warnings.Rob Landley
2010-01-05Add TOYBOX_SUID.Rob Landley
2010-01-05Correct return types of xstrdup() and xstrndup()Rob Landley
2010-01-05Typo fix in comment.Rob Landley
2009-04-16Fix bug spotted by Jean-Christphe Dubois: reserve space for null terminator.Rob Landley