aboutsummaryrefslogtreecommitdiff
path: root/lib/lib.c
AgeCommit message (Expand)Author
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
2014-05-02In function readfile(), the buffer buf is free'd when readall() fails. This ...Ashwini Sharma
2014-03-24Fix mkdir -p with absolute paths.Rob Landley
2014-03-11Move mkpathat to lib, remove redundant function used by patch.Rob Landley
2014-03-11Add "volatile" annotation to peek/poke to stop potential optimizer overreach.Rob Landley
2014-02-28Fix another bug reported by Ashwini Sharma.Rob Landley
2014-02-16Various cleanups found by Tom Sparrow's static analysis.Rob Landley
2013-12-19Move names_to_pid from pending to lib.Rob Landley
2013-12-08Doing math on void pointers isn't portable, reported by Nathan McSween.Rob Landley
2013-11-28Oops, cleaned up ifconfig uses atolx_range() instead of get_int_list(). Check...Rob Landley
2013-11-07Tweak terminal_size to never set either to 0, and return true/false whether i...Rob Landley