aboutsummaryrefslogtreecommitdiff
path: root/lib/lib.c
AgeCommit message (Expand)Author
2016-09-05Replace loopfiles' failok with WARN_ONLY open flag.Rob Landley
2016-09-03Move genericish function to lib.Rob Landley
2016-08-13Move getusername/getgroupname to lib. (Return name or string representationRob Landley
2016-08-04Make xopen() skip stdin/stdout/stderr, add xopen_stdio() if you want stdout,Rob Landley
2016-07-26Move regexec0 into lib (regexec that takes length and matches after NUL).Rob Landley
2016-07-15Don't close stdin when loopfiles reads "-".Rob Landley
2016-07-13Bugfix: suffixless string was feeding terminating NUL to strchr() and matching.Rob Landley
2016-07-12Convert atolx() and friends to use long long internally. Update design.htmlRob Landley
2016-06-15Add readlink0() and readlinkat0() which null terminate the data.Rob Landley
2016-05-20Add bufgetgrgid()Rob Landley
2016-05-17Add bufgetpwuid. (Repeated calls to getpwuid() are really expensive.)Rob Landley
2016-04-10Didn't check in all my local basename_r->getbasename changes. (Oops.)Rob Landley
2016-04-08Redefining basename_r to mean something random seems popular (bionic and freebsdRob Landley
2016-03-29Fix exit code of things like sed -i that use tempfile_handler().Rob Landley
2016-03-13Split out _xexit() from xexit() and give sigatexit() multiple callbacks.Rob Landley
2016-03-02For years the man pages have said to #include <sys/types.h> to getRob Landley
2016-02-19Implement "insmod -".Elliott Hughes
2016-02-14Implement file(1).Elliott Hughes
2016-02-10Factor out strnstr() since posix hasn't got it, and add a config option forRob Landley
2016-01-22Factor out insanitize() from seq.c to next_printf() in lib.Rob Landley
2016-01-20First stab at making readfileat() realloc() in a loop to read long files.Rob Landley
2016-01-17Extend utf8 fontmetrics so ps can use them.Rob Landley
2016-01-16Move create_uuid() to lib and xpoll() to lib/net.c.Rob Landley
2016-01-10Fix perror_exit_raw.Elliott Hughes
2016-01-08Fix cat -.Elliott Hughes
2016-01-05Add error_msg_raw() and friends, replace error_msg("%s", s) uses, enable formatRob Landley
2015-12-29Add strafter() to lib.Rob Landley
2015-12-27Add scan_key_getsize() doing the ANSI probe, switch scan_key() to TAGGED_ARRAY,Rob Landley
2015-11-26Split do_ps() into get_ps() and show_ps() as a start on implementing --sort.Rob Landley
2015-11-02If chomp() needs to test it found \n, should also test it's at end of string.Rob Landley
2015-11-02Add ps -Z.Elliott Hughes
2015-09-29help_exit() tweak.Rob Landley
2015-09-11Replace toys.exithelp with help_exit() in lib.Rob Landley
2015-09-07Remove prompt argument from yesno(), caller can fprintf(stderr, "blah") itself.Rob Landley
2015-09-06Switch HR_SI to HR_1000, make binary the default, make HR_B only affect bytes,Rob Landley
2015-09-03Make human_readable() handle base 1024 units without floating point.Rob Landley
2015-08-08Different tools have different ideas about what human-readable outputElliott Hughes
2015-08-08First pass at proper bunzip2 command line handling.Rob Landley
2015-08-01Move strlower() from find to lib.Rob Landley
2015-07-10Add a basename_r() and use it in names_to_pid() to avoid basename() overwritingRob Landley
2015-05-08Move not-curses code into interstingtimes.cRob Landley
2015-04-30Remove redundant numlen.Rob Landley
2015-04-27Some infrastructure hexedit needs. (Poor man's curses.)Rob Landley
2015-04-19Cleanup getprop, add qstrcmp() to lib for qsort (because posix-2008 brokeRob Landley
2015-04-16terminal_size should use LINES, not ROWS.Elliott Hughes
2015-04-03Add readfileat() to libRob Landley
2015-03-23Tweak of Elliott Hughes's fix for an off by one error in human_readableRob Landley
2015-01-18Remove trailing whitespace.Rob Landley
2015-01-01strtol() doesn't return error indicator for overflow, it just sets errno. So ...Rob Landley
2014-12-22Allocate space for null terminator.Rob Landley