aboutsummaryrefslogtreecommitdiff
path: root/lib/lib.c
AgeCommit message (Expand)Author
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
2014-12-13Add base64.Rob Landley
2014-12-13Remove more strncpy() calls.Rob Landley
2014-10-27O_CLOEXEC was confusing the O_RDONLY test in loopfiles(), resulting in attemp...Rob Landley
2014-10-18Factor out printf-style escape parsing logic from echo.c.Rob Landley
2014-10-14Use O_CLOEXEC instead of O_RDONLY to signal loopfiles_rw() to close filehandles.Rob Landley
2014-08-15If string_to_mode() is called on a base mode with S_ISDIR() and such set, pas...Rob Landley
2014-07-21Little endian and big endian versions of peek (for host.c).Rob Landley
2014-07-19find needs "c" suffix to -size.Rob Landley
2014-06-24find_in_path() is supposed to work with a NULL path, but didn't. Fix it.Rob Landley
2014-06-09Forgot to check in strstart().Rob Landley
2014-05-21Add generic_signal() handler, which sets toys.signal and writes byte to toys....Rob Landley
2014-05-06Switch human_readable() to just outputing decimal kilo/mega/gigabytes, make d...Rob Landley