aboutsummaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
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
2009-01-25Fix thinko.Rob Landley
2009-01-19Fix typo.0.0.8Rob Landley
2009-01-18Add mkswap.Rob Landley
2009-01-05Add -N, -I, -L, and -P options to cksum.Rob Landley
2009-01-03Check in crc_init needed by cksum. (Oops.)Rob Landley
2008-11-12Work around a reiserfs bug. (One line change, switch from looking at broken ↵Rob Landley
struct dirent->dt_type to looking at stat() output. The rest are unrelated variable renames.)
2008-10-23Upgrade patch to detect hunks that start after a false start.Rob Landley
Imagine a hunk that starts with a blank line, but the site to patch starts with two blank lines. Before we'd read the first blank line, think it was the start of the hunk and buffer it, read the second blank line, notice that it didn't match the second line of the hunk, and discard _both_ buffered lines of context (writing them to the output file) without checking that one of the later context lines might have been the real start of the hunk. Make it re-check the rest of the buffered context for matches each time it discards a line of buffered context.