aboutsummaryrefslogtreecommitdiff
path: root/lib/lib.c
AgeCommit message (Expand)Author
2020-01-03Add MAYFORK to "help", teach it to behave differently when called as aRob Landley
2019-11-23Fix dev_minor()/dev_major()/dev_makedev() for Mac.Elliott Hughes
2019-10-26Add ln -r and relative_path() to lib, plus test.Rob Landley
2019-10-21Remove getdirname(), it's _not_ a drop-in replacement for dirnameRob Landley
2019-10-21lib: getdirname fix seqfault on null ptrJarno Mäkipää
2019-10-19Use the MKPATH macros in the mkpathat() implementation.Rob Landley
2019-10-18Teach getdirname() to return "." as appropriate.Rob Landley
2019-10-12Sigh, second attempt at removing strlen() from strstart().Rob Landley
2019-10-09Don't strlen() potentially long target string each call to strstart().Rob Landley
2019-10-03Oops, part of the old tar support fix is in lib, check that in too.Rob Landley
2019-08-26xargs: add --max-args synonym, -o option, and fix -p.Elliott Hughes
2019-08-12sort: move off get_rawline.Elliott Hughes
2019-07-24Avoid double-close of fd in loopfiles_lines.Elliott Hughes
2019-07-12pidof: fix default behavior, add -x.Elliott Hughes
2019-07-06killall: better handling of long names.Elliott Hughes
2019-06-11Move sig_to_num and num_to_sig into portability.c.Elliott Hughes
2019-06-10Improve signal name<->number conversions.Elliott Hughes
2019-06-01Teach file to recognize xz archives and old style tarballs.Rob Landley
2019-05-25find: add -printf support.Elliott Hughes
2019-05-16Add human_readable_long() for more than 3 digits of output.Rob Landley
2019-05-12Fix readlink0() to blank string on failure.Rob Landley
2019-05-06Greatly simplify and speed up regexec0() using REG_STARTEND.Rob Landley
2019-05-04Optimize regexec0() for long lines.Rob Landley
2019-04-20New xsetenv() plumbing (repeatedly set same environment variables withoutRob Landley
2019-04-02Don't emit random -EPIPE error messages in a pipeline, just exit silently.Rob Landley
2019-03-27Change fileunderdir() to return abspath to file.Rob Landley
2019-03-10Add missing isatty(3) call.Elliott Hughes
2019-03-09Half-finished su change checked in, sorry.Rob Landley
2019-03-07Add reset_env() and make su and login use it. Do long-delayed login cleanup.Rob Landley
2019-03-04Consistently use ARRAY_LEN.Elliott Hughes
2019-02-23Bumper typo cleanup.Elliott Hughes
2019-02-13Move nanomove(), nanodiff(), union socksaddr, and xrecvwait() to lib.Rob Landley
2019-01-12sed: add -z.Elliott Hughes
2018-12-27Make poke() alignment-agnostic.Rob Landley
2018-12-14Add xrename()Rob Landley
2018-11-28macOS: replace local strnstr with strcasestr.Elliott Hughes
2018-10-10Trivial speedup to format_iso_time(), teach parsetime() leading garbage != 0.Rob Landley
2018-10-10Add xsignal_flags() and more consistently use xsignal() instead of signal().Rob Landley
2018-07-08Fix division by zero errors and double summary in ping.Rob Landley
2018-07-04Add xgetrandom() with probe for new system call (else open/read /dev/{,u}random)Rob Landley
2018-07-04diff: add timestamps to the ---/+++ lines and --color.Elliott Hughes
2018-07-02Fix bugs in yesterday's bufgetgrgid() work (reported by Elliott).Rob Landley
2018-06-30Loop retrying larger allocation sizes for bufgetpwuid/bufgetgrgid.Rob Landley
2018-06-14Change do_lines() semantics to end with a callback(0,0) to indicate EOF,Rob Landley
2018-05-03Add uuidgen.Elliott Hughes
2018-04-08Add cp --parentsRob Landley
2018-04-08Add mkpath() for common case of mkpathat(), and #define magic constants.Rob Landley
2018-04-03Factor out xtempfile()Rob Landley
2018-03-22atolx should use tolower instead of toupperMinghui Liu
2018-03-20Fix atolx not integer error when used with suffix *dMinghui Liu