aboutsummaryrefslogtreecommitdiff
path: root/lib/lib.c
AgeCommit message (Collapse)Author
2007-12-09Changeset 186 assumed that toys.exitval defaults to 0. Actually change theRob Landley
default and have [p]error_exit() always return nonzero anyway.
2007-11-29Add sha1sum. (No -c mode yet.) Slight tweaks to loopfiles() too.Rob Landley
2007-11-29Add loopfiles() function, make catv use it.Rob Landley
2007-11-19Replace strlcpy() with xstrcpy(), which exits if the string won't fit.Rob Landley
2007-11-15Remove trailing whitespace (thanks to Charlie Shepherd), and a couple commentRob Landley
tweaks.
2007-11-15Change strlcpy not to use strncpy. (Adds 24 bytes, but doesn't memset theRob Landley
unused portion of the buffer to 0, which can touch and allocate physical pages for a large virtual mapping.)
2007-11-04Fix from Charlie Shepherd: at end of string, don't match the null terminatorRob Landley
as a yottabyte suffix. Also, the shift increment needs to be a long constant on 64-bit platforms for the top three suffixes to mean anything.
2007-11-04xcreate(): perror already prints error name and newline, remove redundancy.Rob Landley
2007-10-11Promote help to global config option, teach error_exit() to output usage ↵Rob Landley
message when called from get_optflags().
2007-10-04Break out dirtree.c and let it call a function instead of returning the data.Rob Landley
2007-08-15More klibc fixes from Maximilian Attems, strlcpy() this time.Rob Landley
2007-06-18Add xputs() to detect EOF on writes.Rob Landley
2007-06-15Vladimir Oleynik pointed out that va_start() twice in the same functionRob Landley
isn't portable (with ppc 4xx as an example of a platform it doesn't work on). This is why va_copy exists.
2007-06-07Work around uClibc weirdness.Rob Landley
2007-04-29Add readlink, xreadlink(), and change xrealloc() to not fight the stupidRob Landley
compiler so much.
2007-02-16Add atolx() which understands extensions for kilobytes and megabytes and such.Rob Landley
2007-02-04Add parent pointer to dirtree, more work on mke2fs (populate dirtree, countRob Landley
index blocks).
2007-02-04Rename functions.c to lib.c. (Easier name to remember.)Rob Landley