aboutsummaryrefslogtreecommitdiff
path: root/lib/lib.c
AgeCommit message (Expand)Author
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
2013-10-27Refactor terminal querying.Rob Landley
2013-09-16Fix -t c0 and -J as reported by heehooman at gmail on the list.Rob Landley
2013-09-03Introduce libbuf analogous to toybuf but for use by lib/*.c. Change readfile(...Rob Landley
2013-09-03Remove itoa/utoa, let libc do this with sprintf.Rob Landley
2013-08-27Rewrite pmap to be simpler and match other implementation's output more closely.Rob Landley
2013-08-08Achille Fouilleul pointed out that fdlength wasn't returning the right length...Rob Landley
2013-07-16Split lib/xwrap.c from lib/lib.cRob Landley
2013-07-14New stuff added to lib.c needs review too, so make a lib/pending.c and move s...Rob Landley
2013-07-12add grepStrake
2013-06-16Add xexit() and make error_exit() use it.Rob Landley
2013-06-02Stat cleanup.Rob Landley
2013-06-01Enable readfile() and add peek() and poke() functions.Rob Landley
2013-05-19xioctl() error message should use hex ioctl number; that's what headers list.Rob Landley
2013-04-29Fix xabspath when last path component exists but we haven't got permissions t...Rob Landley
2013-04-22Add library function for the file permission formatting in ls and statFelix Janda
2013-04-26Add posix headers to toynet.h, move xioctl() to lib.c, introduce lib/net.c an...Rob Landley
2013-04-20More ifconfig cleanup.Rob Landley
2013-04-14Move guts of help command into show_help() in lib/help.c, with config TOYBOX_...Rob Landley
2013-01-31Fix -in behavior: descend into existing directory without prompting, show ful...Rob Landley
2013-01-17Fix xabspath() resolving symlink after .., and properly detecting failure for...Rob Landley
2013-01-02Have error_msg() and friends set TT.exitval to 1 if it's still 0, clean out o...Rob Landley
2012-12-16Extend killall with support for -v and -iElie De Brauwer
2012-12-08Adding -s (single shot) and -o (omit pids) options to pidofElie De Brauwer
2012-12-08Make yesno() always read from stdin and write to stderr. (If we need to find ...Rob Landley
2012-11-23Add expand command as described in POSIX-2008.Jonathan Clairembault
2012-11-22Remove readlink -m for being poorly defined ("readlink -m /dev/null/and/more"...Rob Landley
2012-11-20Update readlink so -f works. Add -menq while there.Rob Landley
2012-11-16Add cut from Jason Kyungwan Han.Rob Landley
2012-11-16Add rebound support to intercept error_exit() and longjmp instead.Rob Landley