summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Expand)AuthorFilesLines
2014-07-26Default xcreate/xopen to O_CLOEXEC. (Pass O_CLOEXEC in the flags to switch it...Rob Landley2-2/+2
2014-07-21Improve gid/uid error messages.Rob Landley1-2/+4
2014-07-21Little endian and big endian versions of peek (for host.c).Rob Landley2-15/+27
2014-07-21Fix memory leak in error path.Rob Landley1-1/+3
2014-07-20Add utf8 support to ls -C.Rob Landley1-0/+5
2014-07-19find needs "c" suffix to -size.Rob Landley1-3/+3
2014-07-17Use libc daemon() instead of pending daemonize.Rob Landley2-25/+0
2014-06-28Cleanup read_password(), factor out set_terminal(), fix salt bug (des wants t...Rob Landley1-36/+58
2014-06-25Cleanup pass on mkpasswd.cRob Landley3-39/+41
2014-06-24find_in_path() is supposed to work with a NULL path, but didn't. Fix it.Rob Landley1-2/+5
2014-06-09Forgot to check in strstart().Rob Landley2-0/+11
2014-06-03mount: start on option parsing, implement loopback and bind mount autodetection.Rob Landley2-0/+63
2014-05-31Introduce xfork() and make commands use it, and make some WEXITSTATUS() use W...Rob Landley2-0/+10
2014-05-29Switch mtab_list to doubly linked so we can traverse in either order. Convert...Rob Landley3-10/+28
2014-05-27Add mount options to data getmountlist collects.Rob Landley2-7/+8
2014-05-26Isaac Dunham suggested xprintf() should call fflush() instead of ferror(), an...Rob Landley1-4/+5
2014-05-24patch from ashwini sharma: treat 0 length read at the start of password read ...Rob Landley1-1/+1
2014-05-21Add generic_signal() handler, which sets toys.signal and writes byte to toys....Rob Landley2-0/+13
2014-05-21Add free functions for predefined llist types.Rob Landley2-2/+22
2014-05-06Switch human_readable() to just outputing decimal kilo/mega/gigabytes, make d...Rob Landley4-17/+24
2014-05-06Use compiler built-in macros to determine if argument parsing can use double ...Rob Landley2-9/+10
2014-05-02In function readfile(), the buffer buf is free'd when readall() fails. This ...Ashwini Sharma1-3/+5
2014-04-15Probes for O_NOFOLLOW that compile and run something aren't compatible with c...Rob Landley1-2/+5
2014-03-29Group headers by standard (POSIX or LSB) or function (internationalization, n...Rob Landley6-29/+21
2014-03-24Fix mkdir -p with absolute paths.Rob Landley1-6/+3
2014-03-11Move mkpathat to lib, remove redundant function used by patch.Rob Landley3-29/+50
2014-03-11Add "volatile" annotation to peek/poke to stop potential optimizer overreach.Rob Landley1-8/+8
2014-02-28Fix another bug reported by Ashwini Sharma.Rob Landley1-1/+1
2014-02-16Various cleanups found by Tom Sparrow's static analysis.Rob Landley1-1/+1
2014-02-07Move bunzip2 logic from lib into bzcat.Rob Landley2-629/+0
2014-01-28Two changes to shut up GCC:Isaac Dunham1-1/+1
2014-01-16Rename xmsprintf() to just xmprintf().Rob Landley3-4/+4
2013-12-27Pass through all the readfile() arguments from xreadfile().Rob Landley2-4/+4
2013-12-23Attached is an implementation for groupdel.Ashwini Sharma1-3/+6
2013-12-23Fix some issues raised (albeit indirectly) by Isaac Dunham.Rob Landley2-9/+17
2013-12-19Only define MNT_DETACH for old glibc, portability.h included _before_ sys/mou...Rob Landley1-4/+4
2013-12-19Regression test against Ancient Build Environment (Ubuntu 8.04), fixup bit-rot.Rob Landley1-1/+6
2013-12-19Move names_to_pid from pending to lib.Rob Landley4-30/+26
2013-12-08Doing math on void pointers isn't portable, reported by Nathan McSween.Rob Landley1-1/+1
2013-11-28Oops, cleaned up ifconfig uses atolx_range() instead of get_int_list(). Check...Rob Landley4-24/+11
2013-11-28Add xgetpwnam() to lib/xwrap.c.Rob Landley2-2/+10
2013-11-28Move xgetpwuid() and xgetgrgid() into xwrap.cRob Landley2-0/+16
2013-11-10du from Ashwini Sharma.Rob Landley2-0/+17
2013-11-10Break out lib/pending.h from lib/lib.h.Rob Landley2-29/+33
2013-11-07Tweak terminal_size to never set either to 0, and return true/false whether i...Rob Landley2-7/+11
2013-11-03Fix off by one, pointed out by Ashwini Sharma.Rob Landley1-2/+2
2013-11-02Give xstrncpy() a more informative error message.Rob Landley1-1/+1
2013-11-02Merge toynet.h into toys.h: musl supports it and micromanaging uClibc config ...Rob Landley1-1/+0
2013-10-27Refactor terminal querying.Rob Landley1-16/+15
2013-10-16Minor lib/password.c cleanup, described on the list. (Inline two functions.)Rob Landley1-38/+27