History log of /external/toybox/lib/lib.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
ea9dd8ab7f5fd8ead278ed8d4fa2d96c4e4a67b9 04-Feb-2017 Rob Landley <rob@landley.net> Posix says stdio.h should define 'stdout' as a macro, and bionic turns it into
an array index, which doesn't work as a local variable name. So rename it.
/external/toybox/lib/lib.h
938901d7e2738be29b83331fb60a670afc20c602 04-Feb-2017 Rob Landley <rob@landley.net> Switch oneit to use xopen_stdio() for -c (oops) and switch XVFORK() to use
__attribute__((returns_twice)) instead of noinline.

Yes LLVM supports it: https://llvm.org/bugs/show_bug.cgi?id=6287
/external/toybox/lib/lib.h
a1a559e25a19726b3a62267feb5e89bad2fcd01e 04-Jan-2017 Rob Landley <rob@landley.net> Some lib fixes: mark xvfork() noinline, make xsendfile() return bytes copied,
make xsocket()'s returned fd CLOEXEC.
/external/toybox/lib/lib.h
a975952d885c47aeca013e76194142a47e96d49a 09-Dec-2016 Rob Landley <rob@landley.net> Add DIRTREE_PROC to skip non-numeric entries and make ps/top etc use it.
/external/toybox/lib/lib.h
382057f588fbf2c2f7950b85dd317721b8d04c07 21-Nov-2016 Rob Landley <rob@landley.net> Have dirtree_notdotdot() pass through !node->parent so . and .. on the command
line aren't filtered out. Audited all the callers and removed redundant
calls, adjusted call sequence, etc. (And let rm _not_ do this, because posix.)
/external/toybox/lib/lib.h
4e867b8a352744eb10aa7032936c96b762f4c144 11-Oct-2016 Rob Landley <rob@landley.net> Make netcat work with nommu and factor out poll() loop into net/net.c.
/external/toybox/lib/lib.h
eed9ed41aa73023af8f79cd5353b96b80585490f 05-Sep-2016 Rob Landley <rob@landley.net> Replace loopfiles' failok with WARN_ONLY open flag.
/external/toybox/lib/lib.h
7f7907f53ecaeabb00929feb0ede85a456683ddc 05-Sep-2016 Rob Landley <rob@landley.net> Export notstdio() wrapper.
/external/toybox/lib/lib.h
299d43879d70de33f84eafab78fcd78d7befd827 05-Sep-2016 Rob Landley <rob@landley.net> Add openro() and WARN_ONLY flag so xopen() and friends can warn without exiting.
/external/toybox/lib/lib.h
7528a9628443b2d8e57b7bece698a5a6a0a3fe18 03-Sep-2016 Rob Landley <rob@landley.net> Move genericish function to lib.
/external/toybox/lib/lib.h
3d64b0cc95c5957e53474c3e50f143c61a057104 19-Aug-2016 Rob Landley <rob@landley.net> Change xgetpwnamid/xgetgrnamid to xgetuid/xgetgid returning the id number
instead of a struct. This means it can return "12345" even if that user/group
doesn't exist in /etc/passwd and similar.

All the users were immediately dereferencing it to get pw_uid or gr_gid
anyway, so just return it directly and adjust the users. This fixes
things like "chown 12345:23456 filename".
/external/toybox/lib/lib.h
bc1ccaccb5b7ec71775a5eb7e529bb93811956ce 13-Aug-2016 Rob Landley <rob@landley.net> Move getusername/getgroupname to lib. (Return name or string representation
of number, but never NULL. Both returned in static buffer good through
next call.)
/external/toybox/lib/lib.h
027a73a903af306449710ce12bc09e0e3550c6c9 04-Aug-2016 Rob Landley <rob@landley.net> Make xopen() skip stdin/stdout/stderr, add xopen_stdio() if you want stdout,
add xopenro() that takes one argument and understands "-" means stdin,
and switch over lots of users.
/external/toybox/lib/lib.h
f20b10ee7b0568ff800588579c7f74ca74f0c23f 26-Jul-2016 Rob Landley <rob@landley.net> Move regexec0 into lib (regexec that takes length and matches after NUL).
/external/toybox/lib/lib.h
30454a4ca132ea76851f799546f67f98b074f650 12-Jul-2016 Rob Landley <rob@landley.net> Convert atolx() and friends to use long long internally. Update design.html
to use this (and tail) as examples of simplicity of implementation winning
and losing.
/external/toybox/lib/lib.h
d5088a059649daf34e729995bb3daa3eb64fa432 08-Jul-2016 Elliott Hughes <enh@google.com> dd improvements.

Support hex (requested by users).

Support status=noxfer and status=none (requested by users).

Fix status output.

Clarify large numbers in --help output.

Use O_TRUNC rather than ftruncate unless we're also seeking.

New tests.

Also partial cleanup (reuse of existing code, removal of non-GLOBALS globals,
and merge dd_main and do_dd).
/external/toybox/lib/lib.h
57dafe3915339090c6233cc82025adf116ddf667 19-Jun-2016 Rob Landley <rob@landley.net> Last commit depends on new lib code I forgot to check in. (Oops.)
/external/toybox/lib/lib.h
46409d50e5632b28b88cfa4991fffef9adaa490d 15-Jun-2016 Rob Landley <rob@landley.net> Add readlink0() and readlinkat0() which null terminate the data.
/external/toybox/lib/lib.h
b602f1c1513328fe91f70233c78d11d9e638982d 20-May-2016 Rob Landley <rob@landley.net> Add bufgetgrgid()
/external/toybox/lib/lib.h
6d50d4cbbf6ff34ed68dba61d30c434b57b23332 17-May-2016 Rob Landley <rob@landley.net> Add bufgetpwuid. (Repeated calls to getpwuid() are really expensive.)
/external/toybox/lib/lib.h
bb77dde5ddfba8fe0c819b18b547c2d710956502 22-Apr-2016 Rob Landley <rob@landley.net> Have dirtree_recurse() take the new dirfd as an argument.
/external/toybox/lib/lib.h
1c028ca33dc059a9d8f18daafcd77b5950268f41 09-Apr-2016 Rob Landley <rob@landley.net> Redefining basename_r to mean something random seems popular (bionic and freebsd
both did it) so use getbasename instead.
/external/toybox/lib/lib.h
9fcaca8434ece1afcc9982c18a86cf12ac9af508 26-Mar-2016 Elliott Hughes <enh@google.com> Fix build when wchar_t is unsigned.

external/toybox/lib/linestack.c:84:5: error: conflicting types for 'crunch_str'
int crunch_str(char **str, int width, FILE *out, char *escmore,
^
external/toybox/lib/lib.h:228:5: note: previous declaration is here
int crunch_str(char **str, int width, FILE *out, char *escmore,
^

I'm not sure whether the interface was intended to be wchar_t or int, but
switching to int is the smaller change...
/external/toybox/lib/lib.h
2b999e614c48f084f6a14d589d434904aec6d491 15-Mar-2016 Rob Landley <rob@landley.net> Add ls -b and make ls -q work with utf8.
/external/toybox/lib/lib.h
eb24df9749994d175a2de3b7fc0535abe46a7576 14-Mar-2016 Rob Landley <rob@landley.net> Split out _xexit() from xexit() and give sigatexit() multiple callbacks.
/external/toybox/lib/lib.h
8d95074b7d034188af8542aaea0306d3670d71be 07-Mar-2016 Rob Landley <rob@landley.net> Cleanup pass on the dirtree infrastructure, in preparation for making rm -r
handle infinite depth. Fix docs, tweak dirtree_handle_callback() semantics,
remove dirtree_start() and don't export dirtree_handle_callback(), instead
offer dirtree_flagread(). (dirtree_read() is a wrapper around dirtree_flagread
passing 0 for flags.)
/external/toybox/lib/lib.h
7ca5dc4232b9ac5ee5cd25c8b5b33a58904cd251 02-Mar-2016 Rob Landley <rob@landley.net> For years the man pages have said to #include <sys/types.h> to get
major/minor/makedev, but glibc has vowed to break existing programs
(https://sourceware.org/ml/libc-alpha/2015-11/msg00253.html)
and replace it with _another_ non-standard header (not in posix or lsb),
so let's just add functions to lib/ that do the transform ourselves.
/external/toybox/lib/lib.h
f435f0412aa4ca631aa178d10ed33008e34f37cb 11-Feb-2016 Rob Landley <rob@landley.net> Factor out strnstr() since posix hasn't got it, and add a config option for
the deeply sad passwd heuristics that don't even check numbers and punctuation.
/external/toybox/lib/lib.h
a7a869c2d5f9398a6348dbeacbfec115a5b7d34e 10-Feb-2016 Rob Landley <rob@landley.net> Fix xpipe. (thinko.)
/external/toybox/lib/lib.h
85f54d8e836ac80264111df7d87db6c15eaca558 08-Feb-2016 Rob Landley <rob@landley.net> Add xpipe() to lib.
/external/toybox/lib/lib.h
8f7137e4e4850e17eea8c045865885bb1bc2f3bc 28-Jan-2016 Rob Landley <rob@landley.net> Bugfix I forgot to checkin, plus a wrapper function.
/external/toybox/lib/lib.h
cf0f037ac861a3f4fd877e79f3e53877a446f722 23-Jan-2016 Rob Landley <rob@landley.net> Factor out insanitize() from seq.c to next_printf() in lib.
/external/toybox/lib/lib.h
ba86864699997b0da780e15fd6be33c8a556e927 18-Jan-2016 Rob Landley <rob@landley.net> Extend utf8 fontmetrics so ps can use them.

Also, I forgot to check in uuid_show() last time.
/external/toybox/lib/lib.h
544c1ec1614cd9a8dcedac3478701e4b97b0f8a0 17-Jan-2016 Rob Landley <rob@landley.net> Update draw_str() and friends to do standard escaping for ^X <AB> U+ABCD.
/external/toybox/lib/lib.h
5493916370c74944cc796cc91d058fb4ccabe140 16-Jan-2016 Rob Landley <rob@landley.net> Move create_uuid() to lib and xpoll() to lib/net.c.
/external/toybox/lib/lib.h
1b983744cde6819fe1d810e98cfac52585ceacaf 10-Jan-2016 Rob Landley <rob@landley.net> Make cursor left/right change sort type in iotop.
/external/toybox/lib/lib.h
efb309d4cdb2f4c3926b0550d9dc1661c1e4a091 07-Jan-2016 Rob Landley <rob@landley.net> Make scan_key() specify timeout in miliseconds, split out terminal_probesize(),
add function key definitions and shift/ctrl/alt cursor keys.
/external/toybox/lib/lib.h
d3a435e53c94ec25b4ae5fa2614f49ef8884e08a 06-Jan-2016 Rob Landley <rob@landley.net> Add error_msg_raw() and friends, replace error_msg("%s", s) uses, enable format
checking, and fix up format checking complaints.

Added out(type, value) function to stat to avoid a zillion printf typecasts.
/external/toybox/lib/lib.h
4d3ad67ab37a25d0edfccdc34d29ec550e0802b6 29-Dec-2015 Rob Landley <rob@landley.net> Add strafter() to lib.
/external/toybox/lib/lib.h
4b4ab6a50998219cd94139c5669ef9a624c8f58f 27-Dec-2015 Rob Landley <rob@landley.net> Add scan_key_getsize() doing the ANSI probe, switch scan_key() to TAGGED_ARRAY,
and add test_scankey.
/external/toybox/lib/lib.h
6769f8eb580aa2ecac4009fcde4a113e0476de74 24-Dec-2015 Rob Landley <rob@landley.net> Move get_line() header to pending.h because posix has FILE * versions.
/external/toybox/lib/lib.h
e32e802240c5b3803b9769948dc7a18b3fc1630c 24-Dec-2015 Rob Landley <rob@landley.net> Factor out draw_str() and friends.
/external/toybox/lib/lib.h
d336af4180542c9d526dece02d1a27232ef1ca6a 07-Dec-2015 Rob Landley <rob@landley.net> Rename dirtree->data to dirfd, and don't store symlink length in it.
/external/toybox/lib/lib.h
12a487b61f809aa4794578e14efe32d717f22bdb 27-Nov-2015 Rob Landley <rob@landley.net> Split do_ps() into get_ps() and show_ps() as a start on implementing --sort.

Change readfileat() to pass back length of read.
/external/toybox/lib/lib.h
2f69ee2f0f25c6fc1dbc440c14c52aeaaf35b6a8 08-Nov-2015 Rob Landley <rob@landley.net> NOEXIT(thingy()) wrapper to turn xwrap() functions into warning versions.

Also WOULD_EXIT(x, thingy()) to set a variable to 1 or 0 showing whether or
not thingy() tried to exit. I'd love to be able to do "x = NOEXIT(thingy());"
but haven't figured out a syntax to make that work yet...
/external/toybox/lib/lib.h
11d6079ed3cb067dc66a795a1c7565c13afd5a00 31-Oct-2015 Elliott Hughes <enh@google.com> Add ps -Z.

As with ls, it doesn't seem like -Z should be guarded behind LSM
availability. On a non-SELinux system, the label is always "unconfined".
/external/toybox/lib/lib.h
da646636382e5830650e725592d10cec587081f7 29-Oct-2015 Rob Landley <rob@landley.net> Oops, forgot to check in the header file change for ps.c.
/external/toybox/lib/lib.h
d4c17cdaf1f72a872dcbe12952412f02810c29b5 27-Oct-2015 Rob Landley <rob@landley.net> Replace xcount_cpus() with a call to sysconf(_SC_NPROCESSORS_CONF)
/external/toybox/lib/lib.h
eb1bbc245dd6554a8fbe879a4efb903f6e7788cb 25-Oct-2015 Rob Landley <rob@landley.net> Add xcount_cpus()
/external/toybox/lib/lib.h
7d6af77804adc069a83e8566250f868a6cb9786e 29-Sep-2015 Rob Landley <rob@landley.net> Make defconfig build for nommu.

Adds XVFORK() macro, teaches xpopen_both() to call /proc/self/exe with NULL
argv (and converts cpio -p to use that), adds TOYBOX_FORK guards to some
unconverted commands.
/external/toybox/lib/lib.h
3b51a07e478d64a84e40b3a7c026b2f8566b194b 27-Sep-2015 Rob Landley <rob@landley.net> Another chunk of nommu support, replacing toys.recursion with toys.stacktop.
/external/toybox/lib/lib.h
847bcb63b541e4fbbfa3dccfe3022745cbe9a06a 24-Sep-2015 Rob Landley <rob@landley.net> Add xvfork() as a static inline and use it from various places.

Note: vfork(), like fork(), can return -1 if too many processes, and
we should notice and fail loudly.
/external/toybox/lib/lib.h
e5354ca12a232b3f97726214254a868771cb70d1 11-Sep-2015 Rob Landley <rob@landley.net> Replace toys.exithelp with help_exit() in lib.
/external/toybox/lib/lib.h
960100aa9cb588a73125d43ec0b0a7152a95b43f 07-Sep-2015 Rob Landley <rob@landley.net> Switch HR_SI to HR_1000, make binary the default, make HR_B only affect bytes,
and update the tests.
/external/toybox/lib/lib.h
d06ea3708d12e3e87fa26441715ac47f6dc63032 04-Sep-2015 Rob Landley <rob@landley.net> Make human_readable() handle base 1024 units without floating point.

Rounds correctly via brute force, displayed digits are decimal even when
working with powers of 2, shows at most 3 significant (decimal) digits.
(So no "1023M" nonsense, that's 1.0G.)
/external/toybox/lib/lib.h
0fb465194789965b6fb2efd31995a2441144d650 09-Aug-2015 Elliott Hughes <enh@google.com> Different tools have different ideas about what human-readable output
looks like. dd uses "7 MB" where du uses "7M", for example. this patch
adds flags, similar to the BSD humanize_number. most callers will pass 0.
/external/toybox/lib/lib.h
35dafc7b17ce23da62dcce2195bed9b370680e65 06-Aug-2015 Rob Landley <rob@landley.net> Tweak xconnect: socket can be a string (ala "ftp") from /etc/services.

Still need a rethink on how to handle socket/bind/connect sequence.
/external/toybox/lib/lib.h
ea75e752f930df7b740a773294b997f46927c716 03-Aug-2015 Rob Landley <rob@landley.net> Factor out xconnect(), plus some other small cleanups to telnet.c.
/external/toybox/lib/lib.h
7cc95a79a7a4ed8fb8fb3c5e1946a59c93ff335e 01-Aug-2015 Rob Landley <rob@landley.net> Move strlower() from find to lib.
/external/toybox/lib/lib.h
6292beb86fa9a3999f0f0b76185e0a893af85cd0 10-Jul-2015 Rob Landley <rob@landley.net> Add a basename_r() and use it in names_to_pid() to avoid basename() overwriting
itself on some inputs. (Which makes killall really impolite. Bug report
from Nicholas Noury via Elliott Hughes.)
/external/toybox/lib/lib.h
b20c80b603c1795c473b3957fd2538485ec4eb90 26-Jun-2015 Rob Landley <rob@landley.net> Factor out more not-curses infrastructure into lib.
/external/toybox/lib/lib.h
5b2644cafc8a619b617ba0fbb5473667dbd634ba 14-May-2015 Rob Landley <rob@landley.net> Promote reset (actually write a new one using the simple man 4 console_codes
terminal reset escape sequence) and add gettty() function to lib so terminal
gets reset even when we redirect stdout/stderr. (This is apparently the
expected behavior.)
/external/toybox/lib/lib.h
aab9164df395a4b0878b0ad930a5ec8a806a58e9 10-May-2015 Rob Landley <rob@landley.net> Add DIRTREE_SHUTUP to disable dirtree warnings if file vanishes out from
under traversal. Pass through full flag set in dirtree_add_node(), add
dirtree_start() wrapper to provide symlink-only behavior (avoiding a lot
of DIRTREE_SYMFOLLOW*!!(logic) repeated in callers).
/external/toybox/lib/lib.h
72cd2e07f1cea190925021472465325e72589f47 09-May-2015 Rob Landley <rob@landley.net> Move not-curses code into interstingtimes.c
/external/toybox/lib/lib.h
cb7ed52786ffab798455c88fbd73bc32276bcfed 30-Apr-2015 Rob Landley <rob@landley.net> And remove the header part too.
/external/toybox/lib/lib.h
2fd8624cc612e946f593b2c9e9031c46f862562e 27-Apr-2015 Rob Landley <rob@landley.net> Some infrastructure hexedit needs. (Poor man's curses.)
/external/toybox/lib/lib.h
5b493dc48db03c7e27c8ce002fe216bcd778fe92 20-Apr-2015 Rob Landley <rob@landley.net> Cleanup getprop, add qstrcmp() to lib for qsort (because posix-2008 broke
alphasort), add compile-time probe for config symbol TOYBOX_ON_ANDROID.
/external/toybox/lib/lib.h
e10483fdc9ef8b69b2a420e8d991b865e05b85b9 03-Apr-2015 Rob Landley <rob@landley.net> Add readfileat() to lib
/external/toybox/lib/lib.h
b8140d18800e7094cdacb0a61526f46181dc132d 12-Mar-2015 Rob Landley <rob@landley.net> Factor out xgetgrnamid() and xgetpwnamid() into xwrap.c.
/external/toybox/lib/lib.h
e6abb61e057d55a08c263a48648aaf7b776dfcee 09-Mar-2015 Rob Landley <rob@landley.net> Upgrade oneit with -r (restart), -3 (send exiting PID values to child), and signal handling.
/external/toybox/lib/lib.h
1be99e695059ba7dbe44765f4b477f7e173e98d1 01-Mar-2015 Elliott Hughes <enh@google.com> let the compiler check format strings

i'll be AFK for a week, so here's the patch i've been using this
evening to find other format string mistakes. BSD uses __printflike
and takes two arguments instead of hard-coding (1,2), but i figured
that as long as you don't need the generality you'd prefer not to have
it. and it's easy enough to retrofit if we ever do have a formatting
function that takes other arguments.
/external/toybox/lib/lib.h
c277f347bba2417106b32212d9d40aceb4a88fb5 09-Feb-2015 Rob Landley <rob@landley.net> Cleanup/refactoring pass on hwclock.

Inline open_wall_clock_rtc() into rtc_open(), factor out xtzset(),
inline set_sysclock_from_hwclock(), set_hwclock_from_sysclock(),
and set_sysclock_timezone().

/etc/adjtime is short enough we don't need to bother with a break.

The final "else" case in main() should always trigger because >0 in optstr
says "at most zero arguments", so the || at the end is always true, so
take the test off.
/external/toybox/lib/lib.h
fb4ae952a6d75ae74a84fc2599f58c3c5398af8b 07-Feb-2015 Rob Landley <rob@landley.net> Remove xexec_optargs().
/external/toybox/lib/lib.h
86c747a4493b2b1aabab9b20d1c4566fddeeb2ca 01-Jan-2015 Rob Landley <rob@landley.net> strtol() doesn't return error indicator for overflow, it just sets errno. So add estrtol() (which clears errno first), and xstrtol() (which error_exit()s on overflow).
/external/toybox/lib/lib.h
5bec5ba825d07b7be73ff16b3d9c649248690783 13-Dec-2014 Rob Landley <rob@landley.net> Forgot to check in a header file for base64.
/external/toybox/lib/lib.h
50fc9ed007b084883fb09c64866c45c571e70a99 05-Dec-2014 Rob Landley <rob@landley.net> Work with buildroot's extensively patched uClibc, and for nommu support move xfork() to portability.h and #ifdef based on __uClinux__ (which seems to be the nommu compiler define).
/external/toybox/lib/lib.h
2fb85a3588bf2271e0506c5ab3bcb6a84bf77255 05-Dec-2014 Rob Landley <rob@landley.net> Implement xstrncat() and fix xstrndup().
/external/toybox/lib/lib.h
5fcc71581abdf8839d10786d7ac437cc5b0bf4c5 19-Oct-2014 Rob Landley <rob@landley.net> Factor out printf-style escape parsing logic from echo.c.
/external/toybox/lib/lib.h
360d57f843f5435a75270e54583430dcb8f62546 14-Sep-2014 Rob Landley <rob@landley.net> Split xpopen() into xpopen_both(), xpopen(), and xrun() depending on whether we want to redirect both, one, or neither of stdin/stdout.
/external/toybox/lib/lib.h
e996bddf88a946a8ac8338c02e14add57e3d588c 25-Aug-2014 Rob Landley <rob@landley.net> Work in progress snapshot of mount, with fallout to umount. (Not done yet.)
/external/toybox/lib/lib.h
60c35c486a2ea1c6ea8920c599abf992b27542c5 03-Aug-2014 Rob Landley <rob@landley.net> Implement exec -user, -group, and -newer. Enable find in defconfig.
/external/toybox/lib/lib.h
bd0ad99d2e39c0eaf86ef8a92cceafd79989f470 03-Aug-2014 Rob Landley <rob@landley.net> Yank xrealpath prototype since the function's gone.
/external/toybox/lib/lib.h
fec3fd1f8ac1db9ed87b79bd3eb5e38aa835e881 26-Jul-2014 Rob Landley <rob@landley.net> Move DIRTREE_COMEAGAIN second callback up to when the filehandle is still open, and add dir->again variable to distinguish second call instead of checking for -1 filehandle.
/external/toybox/lib/lib.h
546b293cb9369c9c421981c71577af29d83b925a 22-Jul-2014 Rob Landley <rob@landley.net> Little endian and big endian versions of peek (for host.c).
/external/toybox/lib/lib.h
6d15f0d33fbc422689f92fbbf4dc65d3ab1fb970 26-Jun-2014 Rob Landley <rob@landley.net> Cleanup pass on mkpasswd.c
/external/toybox/lib/lib.h
8115fc121c0ee0b11ba2752438ff500cce48e347 09-Jun-2014 Rob Landley <rob@landley.net> Forgot to check in strstart().
/external/toybox/lib/lib.h
44e68a1bec9b342c01e2f4e6ccf9f1e7a3ee8081 03-Jun-2014 Rob Landley <rob@landley.net> mount: start on option parsing, implement loopback and bind mount autodetection.
/external/toybox/lib/lib.h
d8872c43b48eae5501998a4e5a84337017d8fbe6 31-May-2014 Rob Landley <rob@landley.net> Introduce xfork() and make commands use it, and make some WEXITSTATUS() use WIFEXITED() and WTERMSIG()+127.
/external/toybox/lib/lib.h
dc640259adff6007d195fd4cc78dcf9829e5e6ee 29-May-2014 Rob Landley <rob@landley.net> Switch mtab_list to doubly linked so we can traverse in either order. Convert umount and df. Add dlist_terminate() to break lists for traversal in either direction.
/external/toybox/lib/lib.h
55e9f35223e40f455b80671f25b412072d9af678 27-May-2014 Rob Landley <rob@landley.net> Add mount options to data getmountlist collects.
/external/toybox/lib/lib.h
1bc522424f6bb21842366ccd11953136436b684b 21-May-2014 Rob Landley <rob@landley.net> Add generic_signal() handler, which sets toys.signal and writes byte to toys.signalfd if set.
/external/toybox/lib/lib.h
e604d5344466df8584c48c8492397fcffa63a671 21-May-2014 Rob Landley <rob@landley.net> Add free functions for predefined llist types.
/external/toybox/lib/lib.h
48c172ba589cfd848624b51f6f748b56bc217775 06-May-2014 Rob Landley <rob@landley.net> Switch human_readable() to just outputing decimal kilo/mega/gigabytes, make du use it, move it from lib/pending.c to lib.c.
/external/toybox/lib/lib.h
5b405827a2fa4c928c488f3e7b0197dfec60dcc2 30-Mar-2014 Rob Landley <rob@landley.net> Group headers by standard (POSIX or LSB) or function (internationalization, networking). Move headers standards ignore (but which have been there >15 years) to lib/portability.h. Fold xregcomp into lib since it's posix.
/external/toybox/lib/lib.h
ca1b60e3bdb19eca981e5ccf4e07100aafddb007 12-Mar-2014 Rob Landley <rob@landley.net> Move mkpathat to lib, remove redundant function used by patch.
/external/toybox/lib/lib.h
b6c8a8609fbfcbaf054e254f74974394c8932712 07-Feb-2014 Rob Landley <rob@landley.net> Move bunzip2 logic from lib into bzcat.
/external/toybox/lib/lib.h
59d85e2bb065a3bdc27868acb7a65f89d872c7fa 16-Jan-2014 Rob Landley <rob@landley.net> Rename xmsprintf() to just xmprintf().

Partly because there's no supplied target string ala sprintf, and partly
because I can never remember what order the m and s go in.
/external/toybox/lib/lib.h
dc3731783ead154d5a0d8d318566468474b43013 28-Dec-2013 Rob Landley <rob@landley.net> Pass through all the readfile() arguments from xreadfile().
/external/toybox/lib/lib.h
afba5b8efdf1bac2c02ca787840a2be053c800f7 23-Dec-2013 Rob Landley <rob@landley.net> Fix some issues raised (albeit indirectly) by Isaac Dunham.

POLL_IN defined as a constant by some libc.
Factor out login.c's change_identity() to xwrap.c as xsetuser().
Replace xsetuid() with xsetuser()
Put a space between argument globals and non-argument globals.
TT starts zeroed, don't need to re-zero entries in it.
STDIN_FILENO has been 0 since 1969, even DOS copied that. Just say 0.
Added an xchroot() using xchdir() to lib/xwrap.c.
Remove endgrent() call until somebody can explain why it was there.
/external/toybox/lib/lib.h
db1009dc5c7606e5abf01d41f82ca18001dc1f52 19-Dec-2013 Rob Landley <rob@landley.net> Move names_to_pid from pending to lib.
/external/toybox/lib/lib.h
b5e74165d1462d69deaecbf14305dbf2eee746d5 29-Nov-2013 Rob Landley <rob@landley.net> Oops, cleaned up ifconfig uses atolx_range() instead of get_int_list(). Check that in.
/external/toybox/lib/lib.h
5ec4ab3113dcc813b6040d7ded38e297df99dc0e 29-Nov-2013 Rob Landley <rob@landley.net> Add xgetpwnam() to lib/xwrap.c.
/external/toybox/lib/lib.h
9e44a5841f0ab9bc03cefb5631c80f3e4e5a60fe 29-Nov-2013 Rob Landley <rob@landley.net> Move xgetpwuid() and xgetgrgid() into xwrap.c
/external/toybox/lib/lib.h
34b91a97ee6124765c0ee3a01771833ee6f8989a 11-Nov-2013 Rob Landley <rob@landley.net> Break out lib/pending.h from lib/lib.h.
/external/toybox/lib/lib.h
10bdaa42275810fa2828a7e6235a219779e1d85b 07-Nov-2013 Rob Landley <rob@landley.net> Tweak terminal_size to never set either to 0, and return true/false whether it could determine at least one coordinate.

(If you set $COLUMNS but not $ROWS, we assume you're happy with the 80x25 default for the other.)
/external/toybox/lib/lib.h
d0f7935f637df5d4794aa782def96cc3db8779ed 17-Oct-2013 Rob Landley <rob@landley.net> Prep work for useradd by Ashwini Sharma.
/external/toybox/lib/lib.h
cd0b70e739055e5e8a5d9d6f823bdd3fa97ee509 11-Sep-2013 Rob Landley <rob@landley.net> Ah, that's why commit 1057 was skipped last pull: it was unfinished. Oops. (Fix it.)
/external/toybox/lib/lib.h
5f57bccc41c8893914121b00e16a96dd16282486 09-Sep-2013 Rob Landley <rob@landley.net> Redo tail closer to the original design. Add more tests for large data sets. (Still no -f support yet.)
/external/toybox/lib/lib.h
12c8814cc534f40ca74441f99313f7a71a88cb72 06-Sep-2013 Rob Landley <rob@landley.net> Ashwini Sharma submitted route.c, adding it to pending.
/external/toybox/lib/lib.h
8fdcfdb4479dff7a993a25a63253f0e749fd99fe 04-Sep-2013 Rob Landley <rob@landley.net> Introduce libbuf analogous to toybuf but for use by lib/*.c. Change readfile() semantics to be able to read into an existing buffer, or malloc its own if that's NULL.
/external/toybox/lib/lib.h
f538f420deffc242742ce2d0661a39fa9a3b5399 03-Sep-2013 Rob Landley <rob@landley.net> Remove itoa/utoa, let libc do this with sprintf.
/external/toybox/lib/lib.h
42adb7a56ba7b251ebc0a2d7aced81d3be5342a3 31-Aug-2013 Rob Landley <rob@landley.net> Allow getmountlist to read fstab too.
/external/toybox/lib/lib.h
dccfb2a9c156d03b6399120ae3dd4b23ff00b43f 26-Aug-2013 Felix Janda <felix.janda at posteo.de> syslogd: cleanup

- fix bugs introduced in the cleanups
- inline addrfds() and open_unix_socks() and simplify them
- use xpidfile()
- remove isNetwork from struct logfile
- invert the meaning of facility and level in struct logfile so
that they are automatically correctly initialized
- fix memory leak regarding the filenames of logfiles
- TT.sd was unused
/external/toybox/lib/lib.h
100fb2399417316fb6d5818fbc4e3a843d189bf3 18-Aug-2013 Rob Landley <rob@landley.net> Remove files du no longer needs.
/external/toybox/lib/lib.h
e49fe14705f78ba5a865ca4efd6ee53c78eeb253 10-Aug-2013 Felix Janda <felix.janda@posteo.de> Add daemonize function to lib for klogd and syslogd
/external/toybox/lib/lib.h
1aa75118c46c8fbe0eeead18974d25e5f13274d5 07-Aug-2013 Rob Landley <rob@landley.net> Forgot to check in xfdopen(). My bad.

Failure of fdopen() is most likely failure of malloc() for the FILE structure.
/external/toybox/lib/lib.h
72756670274dac9562b869761c50c59ed57b7295 18-Jul-2013 Rob Landley <rob@landley.net> Add timeout, factoring out common code from sleep.
/external/toybox/lib/lib.h
d390493d76c4cda76c1c6d21897b0f246857e588 16-Jul-2013 Rob Landley <rob@landley.net> Split lib/xwrap.c from lib/lib.c
/external/toybox/lib/lib.h
e999ca008416e3d41c1079bcb4d151b43c95dc3a 13-Jul-2013 Strake <devnull@localhost> add grep
/external/toybox/lib/lib.h
558303076c494519a2d4a1212f0a60e011662f42 17-Jun-2013 Rob Landley <rob@landley.net> Add xexit() and make error_exit() use it.
/external/toybox/lib/lib.h
5a26a86cec424d728d43523988ca70aa56ee76c9 02-Jun-2013 Rob Landley <rob@landley.net> Stat cleanup.

lib: rename format_mode() to mode_to_string() (echoing string_to_mode), make it
take a normal char * argument.

stat: collapse big switch/case statements that only have one line each
into if/else staircase (much fewer lines of code). Remove return type
(other stat implementations print ? for unknown escapes, so do that here).
Inline do_stat() and do_statfs(). Set default string in normal local
variable "format". Remove unnecessary struct d. Restructure stat logic to
"if (flagf && !statfs()) else if (!flagf && !stat()) else perror_msg();"
Teach %N to add -> symlink. Judicious use of putchar() instead of xputc to
let FILE * do its job collating output.
/external/toybox/lib/lib.h
085f23692575e93142df2347cfe76dd173f23e16 02-Jun-2013 Rob Landley <rob@landley.net> Add peek/poke to header file.
/external/toybox/lib/lib.h
078d31cb5e33b244fdcdc4285090877a084cd31a 11-May-2013 Rob Landley <rob@landley.net> Convert getmountlist() to xgetmountlist().
/external/toybox/lib/lib.h
5a221e6b84e9eab02e24ca541530e28eb7cfddac 22-Apr-2013 Felix Janda <felix.janda@posteo.de> Add library function for the file permission formatting in ls and stat
/external/toybox/lib/lib.h
f01534401412812bc1d904812dfb4b0a31ee8fff 26-Apr-2013 Rob Landley <rob@landley.net> Add posix headers to toynet.h, move xioctl() to lib.c, introduce lib/net.c and move xsocket() to it.
/external/toybox/lib/lib.h
be93c91c8cbaaa8e2fa2980a48d0c56a605b1aa9 21-Apr-2013 Rob Landley <rob@landley.net> More ifconfig cleanup.
/external/toybox/lib/lib.h
36ffc5aa3e6bfcab5d628208f4f1508f9b1c2620 15-Apr-2013 Rob Landley <rob@landley.net> Move guts of help command into show_help() in lib/help.c, with config TOYBOX_HELP controlling infrastructure.
/external/toybox/lib/lib.h
e5f3a0b8bad332d46fa963759a9f946e9913cc17 17-Mar-2013 Rob Landley <rob@landley.net> Remove unused min/max macros.
/external/toybox/lib/lib.h
090c5c607ec682e5cfc03bbc745cd1ed28d5d6ce 31-Dec-2012 Rob Landley <rob@landley.net> Make dirtree_handle_callback() start with dirtree_ like the rest of the dirtree functions.
/external/toybox/lib/lib.h
ca4035bdacfd83f815323c9c597f2683fc4aa218 16-Dec-2012 Elie De Brauwer <eliedebrauwer@gmail.com> Extend killall with support for -v and -i
/external/toybox/lib/lib.h
7c6209d6c336df74984e62aa88679c06641ae309 08-Dec-2012 Elie De Brauwer <eliedebrauwer@gmail.com> Adding -s (single shot) and -o (omit pids) options to pidof
/external/toybox/lib/lib.h
3162c27324bb6a26cfb9e47b266d2a3ee451f47b 06-Dec-2012 Rob Landley <rob@landley.net> Have dirtree_add_node() set parent so error message can provide full path.
/external/toybox/lib/lib.h
4ddc73b07f321ffd70604b9cede1a03b97ae4bd6 02-Dec-2012 Rob Landley <rob@landley.net> Remove unused structure definition.
/external/toybox/lib/lib.h
939fa7408fa68af8568fd07de64a1606af0a0c06 23-Nov-2012 Jonathan Clairembault <jonathan@clairembault.fr> Add expand command as described in POSIX-2008.
Erratum: Do not handle backspace.
/external/toybox/lib/lib.h
fe91e68e8d1e6a2974b57a9855032ad94d137e8e 23-Nov-2012 Rob Landley <rob@landley.net> Remove readlink -m for being poorly defined ("readlink -m /dev/null/and/more" answers what question, exactly?), rewrite xabspath() to work right and not depend on realpath, fix subtle longstanding bug in llist_traverse().
/external/toybox/lib/lib.h
bd2e2279d2b8f491ff9a56f6bd9000b0215778f8 20-Nov-2012 Rob Landley <rob@landley.net> Update readlink so -f works. Add -menq while there.
/external/toybox/lib/lib.h
734b530f3797d6d11dc3ab996a889482cc88a8ab 16-Nov-2012 Rob Landley <rob@landley.net> Add cut from Jason Kyungwan Han.
/external/toybox/lib/lib.h
7aa651a6a4496d848f86de9b1e6b3a003256a01f 14-Nov-2012 Rob Landley <rob@landley.net> Reindent to two spaces per level. Remove vi: directives that haven't worked right in years (ubuntu broke its' vim implementation). Remove trailing spaces. Add/remove blank lines. Re-wordwrap in places. Update documentation with new coding style.

The actual code should be the same afterward, this is just cosmetic refactoring.
/external/toybox/lib/lib.h
1a0eedf795546171a7e84b47f0f02c7d286d2ec4 27-Aug-2012 Ashwini Kumar <ak.ashwini@gmail.com> Add du command.
/external/toybox/lib/lib.h
c52db60645103cbbf21eeab033f40a0659cd9193 30-Jul-2012 Rob Landley <rob@landley.net> Add signal handler to clean up tempfile.
/external/toybox/lib/lib.h
6ba38c2c79c12c5f2227ee4a87c9875fae407332 22-Jul-2012 Rob Landley <rob@landley.net> Use "_password" instead of "_passwd" for names in lib/password.c.
/external/toybox/lib/lib.h
2c917f5acc008e73b367ecf82402b5eac08db10c 17-Jul-2012 Rob Landley <rob@landley.net> Add passwd by Kyungwan Han.
/external/toybox/lib/lib.h
9e2b6db36ab6486172fccd0e1786532826d58c53 16-Jul-2012 Rob Landley <rob@landley.net> Genericize llist code a bit: rename llist_free() to llist_traverse(), and no longer accept NULL as a synonym for free.
/external/toybox/lib/lib.h
2037b8396427ab82edd1912357e9177a2800b01a 15-Jul-2012 Rob Landley <rob@landley.net> New infrastructure for od (oops).
/external/toybox/lib/lib.h
78aaef2a7ac9e852258e385ff3923353d78b8781 25-Jun-2012 Rob Landley <rob@landley.net> Unify chown and chgrp, add support for -hHLP flags.
/external/toybox/lib/lib.h
6ec2178fafa44b2e9d710218db1e9827c1c81857 16-Jun-2012 Rob Landley <rob@landley.net> Add dirtree_parentfd()
/external/toybox/lib/lib.h
4af1e1d784fa757e1d50b3fa42bd27f0a9b7782c 10-Jun-2012 Rob Landley <rob@landley.net> Implement DIRTREE_SYMFOLLOW and ls -cSHL.
/external/toybox/lib/lib.h
67a069d62c11abc3ed709a1fd3c39a1aa43570e3 03-Jun-2012 Rob Landley <rob@landley.net> Update chmod to work with new dirtree, and fix bugs in string_to_mode().
/external/toybox/lib/lib.h
38d3cfb8a38c32111e4bc713396f78ddbb0e5f50 02-Jun-2012 Rob Landley <rob@landley.net> Changed my mind about the design again, now callback is dirtree_opennode() and recursion choice is how caller interprets flags.
/external/toybox/lib/lib.h
4fa1b32871f661a7e11898b274ec162d52c23ee9 02-Jun-2012 Rob Landley <rob@landley.net> Factor out dirtree_comeagain() callback, setting up depth-first search with open filehandle in node->extra.
/external/toybox/lib/lib.h
eec463764dbc2e83325695583a1b73bebc492a9e 01-Jun-2012 Rob Landley <rob@landley.net> Add xrealpath() at suggestion of Ashish Briggers.
/external/toybox/lib/lib.h
8c4ae8a78eae279db5d5be25f7b4618427844a92 20-May-2012 Rob Landley <rob@landley.net> dirtree logic cleanup: switch DIRTREE_NORECURSE and DIRTREE_NOSAVE to DIRTREE_RECURSE and DIRTREE_SAVE.
/external/toybox/lib/lib.h
eb7ea22c7505f10928e104a9df39edc70a8f7036 15-Apr-2012 Rob Landley <rob@landley.net> Rewrite dirtree so we don't need readdir, scandir, and fts.h. Rewrite ls (from scratch) to use new dirtree infrastructure. (This breaks everything else that currently uses dirtree.)
/external/toybox/lib/lib.h
05744b3176828c25f6e2cc2d663615252b4cd02f 20-Mar-2012 Daniel Walter <d.walter@0x90.at> Add string to mode_t parser

added new function string_to_mode(char *m_string, mode_t base) which
parses a given string and converts it to a mode_t.
If either + or - are part of m_string the permissions are either
added or removed from base.

Currently support for permision copy is missing (e.g. g=u),
but all other flags should work.

Format for m_string: either symbolic modes or octal representation.

symbolic modes:
[auog][[+-=][rwxst]*]

examples:
string_to_mode("u=rwx,g=rw,o=r", 0);
string_to_mode("a-x", 0777);
string_to_mode("0744", 0);
/external/toybox/lib/lib.h
2c48247a01a19c709f693d649d8158bccb5fbf70 12-Mar-2012 Rob Landley <rob@landley.net> Redo tail to use optargs and optionally support lseek. Add support to optargs and llist.c, plus add a test suite entry. Still no -f support though.
/external/toybox/lib/lib.h
f793d5347f08bdb742e8ad8a2cc5a7d30e6bd623 28-Feb-2012 Rob Landley <rob@landley.net> Upgrade yesno() and make cp -i use it.
/external/toybox/lib/lib.h
2dd50adc460e63c57eddb696f908dd6b1abfd723 26-Feb-2012 Rob Landley <rob@landley.net> Factor out common code between killall/kill and move it to lib/lib.c, plus cleanups on kill.c.
/external/toybox/lib/lib.h
ebcf0be0bedc534f3c034e0f37fe8b85b49af596 19-Feb-2012 Rob Landley <rob@landley.net> And again, I forgot to check in a file. Oops.
/external/toybox/lib/lib.h
ff9ee8fc15e1a41bffe06bfcee30368e7c117601 18-Feb-2012 Rob Landley <rob@landley.net> Add killall by Andreas Heck, and factor out common pid code to lib.h.
/external/toybox/lib/lib.h
26e7b5ece4b8b0440048759bc49f3b357a4c4c45 02-Feb-2012 Rob Landley <rob@landley.net> Quick and dirty terminal_size() and yesno() functions, both of which need to be improved.
/external/toybox/lib/lib.h
f01503d18a35c71706edf8b1801af55cfcb19733 02-Feb-2012 Rob Landley <rob@landley.net> Commit 415 needs the other two files. (Oops.)
/external/toybox/lib/lib.h
ad63f4bfd38c3728268983f15345010248614b01 12-Dec-2011 Rob Landley <rob@landley.net> Forgot to check in loopfiles_rw changes needed by truncate.
/external/toybox/lib/lib.h
e0377fb294821a68112d4da09f836ac42e3d5956 05-Jan-2010 Rob Landley <rob@landley.net> Add TOYBOX_SUID.
/external/toybox/lib/lib.h
1e01cd1f48bff3fdd12f45bf1c3adfab821ee287 05-Jan-2010 Rob Landley <rob@landley.net> Correct return types of xstrdup() and xstrndup()
/external/toybox/lib/lib.h
52476716ad2bff9805e5749bf2c2a1f9d3512ec9 18-Jan-2009 Rob Landley <rob@landley.net> Add mkswap.
/external/toybox/lib/lib.h
b15b8fa99ae53396145ea540106b74d37797f774 05-Jan-2009 Rob Landley <rob@landley.net> Add -N, -I, -L, and -P options to cksum.
/external/toybox/lib/lib.h
7e849c5b99e539f5af5262d8ade6b9791463c796 04-Jan-2009 Rob Landley <rob@landley.net> Check in crc_init needed by cksum. (Oops.)
/external/toybox/lib/lib.h
bdf037ff5e1b933d624ac74c62c5c1eb14464737 23-Oct-2008 Rob Landley <rob@landley.net> Upgrade patch to detect hunks that start after a false start.

Imagine a hunk that starts with a blank line, but the site to patch starts
with two blank lines. Before we'd read the first blank line, think it was the
start of the hunk and buffer it, read the second blank line, notice that it
didn't match the second line of the hunk, and discard _both_ buffered lines of
context (writing them to the output file) without checking that one of the
later context lines might have been the real start of the hunk.

Make it re-check the rest of the buffered context for matches each time it
discards a line of buffered context.
/external/toybox/lib/lib.h
e824ed1b5a1d7a6c839348cf4636ceb9972e7a11 18-Jul-2008 Rob Landley <rob@landley.net> Tweak from Roberto Foglietta.
/external/toybox/lib/lib.h
2bfaaf25614985ada5490d08e005b36f948d8186 04-Jul-2008 Rob Landley <rob@landley.net> Add "tee" command.
/external/toybox/lib/lib.h
988abb33a5c9d8023a8e1bd5535a75a16e5d9e46 12-May-2008 Rob Landley <rob@landley.net> Update mdev to work around the newest sysfs api breakage in the 2.6.25 kernel.
(Yeah, I know sysfs hasn't actually got an API, but I like to pretend...)
/external/toybox/lib/lib.h
3fc4e0fd7b4f286fa176b779b2cec243d61ade50 13-Apr-2008 Rob Landley <rob@landley.net> Teach get_rawline() to continue until a configurable char, and xstrndup()
shouldn't die when it's told to chop out a subsection of a string.
/external/toybox/lib/lib.h
7f184faac064c66ba28dd44c0df94e34f60db8b0 21-Feb-2008 Rob Landley <rob@landley.net> Make cp pass most of its test suite. Still need to add symlink support.
/external/toybox/lib/lib.h
6e6871c3b253d26ab31e328dd5f9b6996b75688c 20-Feb-2008 Rob Landley <rob@landley.net> Add first pass at cp, totally untested, unlikely to work yet. :)
/external/toybox/lib/lib.h
6ef04efa853b80c76ead2d252b3f4771f4c25d5d 21-Jan-2008 Rob Landley <rob@landley.net> Move dlist_add() to lib/llist.c
/external/toybox/lib/lib.h
354834114662d369ce96cac5e787623df1cc68f8 28-Dec-2007 Rob Landley <rob@landley.net> Make patch's file add actually work, including directory creating and
understanding zero-context hunks.
/external/toybox/lib/lib.h
e745d8e00eac61c91a540cd75d277cfc41606ce1 20-Dec-2007 Rob Landley <rob@landley.net> Upgrade patch to understand creating and deleting files.
/external/toybox/lib/lib.h
42ecbab08101d713f9bcd8a107b60338bebb7299 18-Dec-2007 Rob Landley <rob@landley.net> Patch command.
/external/toybox/lib/lib.h
bc07865a504c291b9c88e41b3481ee6b44334b4d 16-Dec-2007 Rob Landley <rob@landley.net> Start of "patch" support. Writes to stdout at the moment.
/external/toybox/lib/lib.h
7634b55f27ad483ec634ba9defac93872e3a329f 30-Nov-2007 Rob Landley <rob@landley.net> Add loopfiles() function, make catv use it.
/external/toybox/lib/lib.h
e15850ae972957d097eeadfd5721e3ac8f10fd4e 19-Nov-2007 Rob Landley <rob@landley.net> Replace strlcpy() with xstrcpy(), which exits if the string won't fit.
/external/toybox/lib/lib.h
efa93b987a355385d0b1a1ac4e3a0e25db63b494 16-Nov-2007 Rob Landley <rob@landley.net> Add noreturn mark to [p]error_exit(), suggested by Charlie Shepherd.
/external/toybox/lib/lib.h
d06c58df5c723594c4f214dd5d1842a178d2a5e1 11-Oct-2007 Rob Landley <rob@landley.net> Promote help to global config option, teach error_exit() to output usage message when called
from get_optflags().
/external/toybox/lib/lib.h
103b7e031c4de0f9753e02d2217aa81819242278 04-Oct-2007 Rob Landley <rob@landley.net> Break out dirtree.c and let it call a function instead of returning the data.
/external/toybox/lib/lib.h
9303e2fc38944c235c84483f6301cf4d09901b8f 15-Aug-2007 Rob Landley <rob@landley.net> More klibc fixes from Maximilian Attems, strlcpy() this time.
/external/toybox/lib/lib.h
5084feadff6503852bf11019baa3e943bbcd4305 18-Jun-2007 Rob Landley <rob@landley.net> Add xputs() to detect EOF on writes.
/external/toybox/lib/lib.h
18d43ffd39dffec81f8ece68447692d6e2e4672a 07-Jun-2007 Rob Landley <rob@landley.net> Work around uClibc weirdness.
/external/toybox/lib/lib.h
0c93f6c7ab7aab56b39793a2317a9bff16b8ae04 30-Apr-2007 Rob Landley <rob@landley.net> Add readlink, xreadlink(), and change xrealloc() to not fight the stupid
compiler so much.
/external/toybox/lib/lib.h
f5757161aff8caeec8e70b9709ccdce96e41dd14 17-Feb-2007 Rob Landley <rob@landley.net> Add atolx() which understands extensions for kilobytes and megabytes and such.
/external/toybox/lib/lib.h
720fc26d33352407715cb286a4edc23d15906d5f 05-Feb-2007 Rob Landley <rob@landley.net> Add parent pointer to dirtree, more work on mke2fs (populate dirtree, count
index blocks).
/external/toybox/lib/lib.h
d25f7e440998dfaa5619634d5a0ff90ab480b085 03-Feb-2007 Rob Landley <rob@landley.net> Add xstat(), read_dirtree(), and read_dirtree_node().
/external/toybox/lib/lib.h
e2580dbebbd43f668913b3d2ae6c0636161636ed 23-Jan-2007 Rob Landley <rob@landley.net> More random progress on mke2fs. Nothing to see yet.
/external/toybox/lib/lib.h
24d1d45ee901e74b3388e7053543eb16aea09ada 21-Jan-2007 Rob Landley <rob@landley.net> Add "echo". Has -n and -e (but not \0123 yet).
/external/toybox/lib/lib.h
6000f13e8ac8c17c1f01fcafc8066bb7b419f224 19-Jan-2007 Rob Landley <rob@landley.net> In bunzip replace setjmp/longjmp handling with error_exit(), replace string
based handling of a 6-byte header with with two 24-bit integer reads. Use
xmalloc() and xzalloc().
/external/toybox/lib/lib.h
901637760b4206e968e73dd5ff7430c107c27b57 19-Jan-2007 Rob Landley <rob@landley.net> Add fdprintf(). Remove reread() and rewrite() which handle -EINTR, which
shouldn't be a problem if we register signal handlers with sigaction(SA_RESTART)
Straighten out count and len (I generally consistently use "count" for the
current progress and "len" for the total, but this time I got them backwards
for some reason and don't want to confuse myself in future.)
/external/toybox/lib/lib.h
055cfcbe5b0534c700b30216f54336b7581f7be4 15-Jan-2007 Rob Landley <rob@landley.net> Add start of mke2fs/gene2fs, and some other stuff I've been working on.
/external/toybox/lib/lib.h
3388f4c4de628702ba77e2fec941c809877ad576 08-Jan-2007 Rob Landley <rob@landley.net> xread() and xwrite() should take void *, not char *.
/external/toybox/lib/lib.h
d3e9d64b17517dcbe0af8b055c1d282e63ba6534 08-Jan-2007 Rob Landley <rob@landley.net> Add xaccess()
/external/toybox/lib/lib.h
f3e452a35ab5fd1808be7a50652b54dc3222ba6e 08-Jan-2007 Rob Landley <rob@landley.net> Add rewrite(), writeall(),and xwrite() to match the read versions.
/external/toybox/lib/lib.h
1322beb384ea43a15c17f8229e7db070949dd331 08-Jan-2007 Rob Landley <rob@landley.net> xopen() wants 2 arguments unless you're creating a file, in which case you
need 3. Doing varargs for this doesn't really appeal to me (bugs in waiting)
so I made an xcreate() that takes 3 args, and had xopen() call it with 0 for
the third argument. That way, if we feed O_CREAT to xopen() the permission
000 result should be easy to spot.
/external/toybox/lib/lib.h
1521a9e9691bf7d6f16bf3b11b5b8fc9079166fb 25-Nov-2006 Rob Landley <rob@landley.net> Add cat -v.
/external/toybox/lib/lib.h
8324b89598b2aee0957a0378f0f63ff5755498be 19-Nov-2006 Rob Landley <rob@landley.net> New option parsing infrastructure (doesn't use getopt). Hook it up to
existing applets. Still a bit buggy, but bits of it work.
/external/toybox/lib/lib.h
0a04b3ef850cd3d6f06b3c8d0036993adc9ba7b2 03-Nov-2006 Rob Landley <rob@landley.net> Implement which. Add hello world to menuconfig. Wrap the various applet main
functions in main.c with USE() macros so --gc-sections can strip them.
/external/toybox/lib/lib.h
fa98d0193aaacbc900fd77507e2490b00fe72ee9 02-Nov-2006 Rob Landley <rob@landley.net> Add xabspath(), is_file_type(), which_in_path(), and find_in_path().
/external/toybox/lib/lib.h
64b2e23ff1f2c2b8eacf6da5ac9a58054c8245cf 30-Oct-2006 landley <landley@driftwood> Add reread(), readall(), and xread() on the bus ride in to work...
/external/toybox/lib/lib.h
09ea7ac1a269db3c9a3b76840b37a7cb1eccbc24 30-Oct-2006 landley <landley@driftwood> Implement df. Add -Wall to build and fix up warnings. Add copyright notices.
Add error_msg() and itoa() to library. Remove argc from globals (since argv is
null terminated), add optflags to globals.
/external/toybox/lib/lib.h
00f87f150c3c9769e09e688bb9779947d64eb9d3 26-Oct-2006 landley <landley@driftwood> Add xmsprintf(), xgetcwd(), xgetcwd(), find_in_path().
/external/toybox/lib/lib.h
cd9dfc3b7b73715840b63180e2e4bfdb6e7ca9a4 19-Oct-2006 landley <landley@driftwood> Next drop of toysh, plus more infratructure.
/external/toybox/lib/lib.h
4f344e356d2c36c4b1df46917eaef25f82ca79a9 05-Oct-2006 landley <landley@driftwood> Infrastructure, first drop of toy shell, and a bit of work on df.
/external/toybox/lib/lib.h