History log of /external/toybox/lib/lib.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
72cd2e07f1cea190925021472465325e72589f47 09-May-2015 Rob Landley <rob@landley.net> Move not-curses code into interstingtimes.c
/external/toybox/lib/lib.c
9c3d1657f1a3561910ceb87c1ea21d349fbfaaed 30-Apr-2015 Rob Landley <rob@landley.net> Remove redundant numlen.
/external/toybox/lib/lib.c
2fd8624cc612e946f593b2c9e9031c46f862562e 27-Apr-2015 Rob Landley <rob@landley.net> Some infrastructure hexedit needs. (Poor man's curses.)
/external/toybox/lib/lib.c
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.c
17499c3731273d2cffdd96d011cf8ed6aca103da 17-Apr-2015 Elliott Hughes <enh@google.com> terminal_size should use LINES, not ROWS.

The shell's pseudo-variable is called LINES. This is true of at least
bash and mksh.
/external/toybox/lib/lib.c
e10483fdc9ef8b69b2a420e8d991b865e05b85b9 03-Apr-2015 Rob Landley <rob@landley.net> Add readfileat() to lib
/external/toybox/lib/lib.c
4b77d5419a0f2f4f8fdb9ad39dceddf75305b2a1 23-Mar-2015 Rob Landley <rob@landley.net> Tweak of Elliott Hughes's fix for an off by one error in human_readable
(137 returned "137 KB".)
/external/toybox/lib/lib.c
2c1cf4a02783e2a570ddf7b7ea968c7bed781f91 18-Jan-2015 Rob Landley <rob@landley.net> Remove trailing whitespace.
/external/toybox/lib/lib.c
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.c
9b5000c920f2ba44dea1ef45f3a23191d46489b8 23-Dec-2014 Rob Landley <rob@landley.net> Allocate space for null terminator.
/external/toybox/lib/lib.c
0517eb7d604da454213e42d55f477401dc7f7ebf 13-Dec-2014 Rob Landley <rob@landley.net> Add base64.

The tizen guys wanted this. Yeah, I know there's base64 code in
uuencode/uudecode, but that this has -i, input lines aren't of fixed length,
encode/decode are in same file, there's no prefix/suffix code, it always
writes to stdout... Eliminating the code duplication wouldn't be worth
the if/else I'd have to add, so I just did a new one.

Factored out the base64 table init into lib.c though: that was worth sharing.
/external/toybox/lib/lib.c
87fbe12dbba8278d58d6581626e4cf4224dbca8d 13-Dec-2014 Rob Landley <rob@landley.net> Remove more strncpy() calls.

The semantics of strncat() and strncpy() are non-obvious, so let's not use 'em.
Both zero all their remaining buffer space, and with strncat() the size is
the space left at the _end_ of the string (not the size of the buffer) so
it's way too easy to stomp memory you don't own. As long as we have to measure
stuff ourselves to get it right, just use memcpy().
/external/toybox/lib/lib.c
45b3882a1187f0e957efbc4fc5d797ba9603f545 28-Oct-2014 Rob Landley <rob@landley.net> O_CLOEXEC was confusing the O_RDONLY test in loopfiles(), resulting in attempts to read from stdout instead of stdin for "-" or no arguments.
/external/toybox/lib/lib.c
5fcc71581abdf8839d10786d7ac437cc5b0bf4c5 19-Oct-2014 Rob Landley <rob@landley.net> Factor out printf-style escape parsing logic from echo.c.
/external/toybox/lib/lib.c
784eb9c2d2cbd8ec49ff40dbaba17f4407f3b85a 14-Oct-2014 Rob Landley <rob@landley.net> Use O_CLOEXEC instead of O_RDONLY to signal loopfiles_rw() to close filehandles.
/external/toybox/lib/lib.c
3b5b19e7bf4598536bc7ef501598c0f6e28e4e5a 15-Aug-2014 Rob Landley <rob@landley.net> If string_to_mode() is called on a base mode with S_ISDIR() and such set, pass those extra bits through.
/external/toybox/lib/lib.c
546b293cb9369c9c421981c71577af29d83b925a 22-Jul-2014 Rob Landley <rob@landley.net> Little endian and big endian versions of peek (for host.c).
/external/toybox/lib/lib.c
87c06e15329a0ef39385408a2e41be82e56a5418 20-Jul-2014 Rob Landley <rob@landley.net> find needs "c" suffix to -size.
/external/toybox/lib/lib.c
0aad9e4395c3077ed82c58981e9495586d6c8a01 24-Jun-2014 Rob Landley <rob@landley.net> find_in_path() is supposed to work with a NULL path, but didn't. Fix it.
/external/toybox/lib/lib.c
8115fc121c0ee0b11ba2752438ff500cce48e347 09-Jun-2014 Rob Landley <rob@landley.net> Forgot to check in strstart().
/external/toybox/lib/lib.c
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.c
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.c
26b21882bfd8a3712614e94dde41a5194dda7aee 02-May-2014 Ashwini Sharma <ak.ashwini1981@gmail.com> In function readfile(), the buffer buf is free'd when readall() fails. This free can cause a crash, if the buffer passed by user of function is not malloc'ed one.

names_to_pid() is one usecase example here.
/external/toybox/lib/lib.c
02f5a30ec0acf6c42441e5b06fb3ab41f629952a 24-Mar-2014 Rob Landley <rob@landley.net> Fix mkdir -p with absolute paths.

Stripping leading / is not the right thing to do there.
Broken when the code moved to lib and was genericized for use elsewhere.
/external/toybox/lib/lib.c
ca1b60e3bdb19eca981e5ccf4e07100aafddb007 12-Mar-2014 Rob Landley <rob@landley.net> Move mkpathat to lib, remove redundant function used by patch.
/external/toybox/lib/lib.c
a8b88fe47237028fb5314c4c572a738b967b10b7 12-Mar-2014 Rob Landley <rob@landley.net> Add "volatile" annotation to peek/poke to stop potential optimizer overreach.
/external/toybox/lib/lib.c
4dd800cb577c45b601fdf2bdaf1b471ea938f20b 01-Mar-2014 Rob Landley <rob@landley.net> Fix another bug reported by Ashwini Sharma.
/external/toybox/lib/lib.c
1fb3ae7075ab9d198b757f7da5cc9c748abc3574 16-Feb-2014 Rob Landley <rob@landley.net> Various cleanups found by Tom Sparrow's static analysis.
/external/toybox/lib/lib.c
db1009dc5c7606e5abf01d41f82ca18001dc1f52 19-Dec-2013 Rob Landley <rob@landley.net> Move names_to_pid from pending to lib.
/external/toybox/lib/lib.c
dbbd3d6e485d6a063dcd2f163313b52ce95b42f5 08-Dec-2013 Rob Landley <rob@landley.net> Doing math on void pointers isn't portable, reported by Nathan McSween.
/external/toybox/lib/lib.c
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.c
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.c
c9cc530371a981eef37fab4be6d6669e27b7fa0d 27-Oct-2013 Rob Landley <rob@landley.net> Refactor terminal querying.
/external/toybox/lib/lib.c
bc382bed736d161b32e22a615489c226173ca030 17-Sep-2013 Rob Landley <rob@landley.net> Fix -t c0 and -J as reported by heehooman at gmail on the list.

Also fix up help text, and hook up -c.
/external/toybox/lib/lib.c
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.c
f538f420deffc242742ce2d0661a39fa9a3b5399 03-Sep-2013 Rob Landley <rob@landley.net> Remove itoa/utoa, let libc do this with sprintf.
/external/toybox/lib/lib.c
455865a837f2a6c44f91e5a5a2cd40c3a64d4b68 28-Aug-2013 Rob Landley <rob@landley.net> Rewrite pmap to be simpler and match other implementation's output more closely.
/external/toybox/lib/lib.c
035f27ae4df2b973b8974730bb1b23a25f6160e8 08-Aug-2013 Rob Landley <rob@landley.net> Achille Fouilleul pointed out that fdlength wasn't returning the right length in the binary search case.

(This code was originally written for mke2fs, and applies to block devices. The regular file case should just return the length from stat. The ioctl is left commented out in case I want to add back code to check the size of CDROMs without spinning them up again; not sure the sector size is always right these days.)
/external/toybox/lib/lib.c
d390493d76c4cda76c1c6d21897b0f246857e588 16-Jul-2013 Rob Landley <rob@landley.net> Split lib/xwrap.c from lib/lib.c
/external/toybox/lib/lib.c
87aef2480ed3c6ca587815ea36e7dd380301c97c 15-Jul-2013 Rob Landley <rob@landley.net> New stuff added to lib.c needs review too, so make a lib/pending.c and move several functions to it.
/external/toybox/lib/lib.c
e999ca008416e3d41c1079bcb4d151b43c95dc3a 13-Jul-2013 Strake <devnull@localhost> add grep
/external/toybox/lib/lib.c
558303076c494519a2d4a1212f0a60e011662f42 17-Jun-2013 Rob Landley <rob@landley.net> Add xexit() and make error_exit() use it.
/external/toybox/lib/lib.c
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.c
6b28341dfc933ccd631a4d1e0b5d055c39e96e8d 02-Jun-2013 Rob Landley <rob@landley.net> Enable readfile() and add peek() and poke() functions.
/external/toybox/lib/lib.c
6a921ee56e2f989f6cadb0d9a4bc1855b9e4addf 19-May-2013 Rob Landley <rob@landley.net> xioctl() error message should use hex ioctl number; that's what headers list.
/external/toybox/lib/lib.c
acede57b4fd2d9d7f5cb576bdf12cf8586cef44a 29-Apr-2013 Rob Landley <rob@landley.net> Fix xabspath when last path component exists but we haven't got permissions to open it (ala readlink -f /dev/sda as a normal user). Spotted by Ashwini Sharma.
/external/toybox/lib/lib.c
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.c
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.c
be93c91c8cbaaa8e2fa2980a48d0c56a605b1aa9 21-Apr-2013 Rob Landley <rob@landley.net> More ifconfig cleanup.
/external/toybox/lib/lib.c
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.c
22791083dab2de2b22154dd4e0e593ff6c48e08b 31-Jan-2013 Rob Landley <rob@landley.net> Fix -in behavior: descend into existing directory without prompting, show full path in error messages, actually overwrite when answering yes to -i.
/external/toybox/lib/lib.c
7c0e2803d2bff7022637fb418de571b470dee2f6 18-Jan-2013 Rob Landley <rob@landley.net> Fix xabspath() resolving symlink after .., and properly detecting failure for last entry after nondir.
/external/toybox/lib/lib.c
662a267c9b52f256b027d0f176a846b1d973ab99 02-Jan-2013 Rob Landley <rob@landley.net> Have error_msg() and friends set TT.exitval to 1 if it's still 0, clean out other places that were setting it that no longer need to.
/external/toybox/lib/lib.c
ca4035bdacfd83f815323c9c597f2683fc4aa218 16-Dec-2012 Elie De Brauwer <eliedebrauwer@gmail.com> Extend killall with support for -v and -i
/external/toybox/lib/lib.c
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.c
db8eb323b3b8ded0eb75c0872563784ae4356e99 08-Dec-2012 Rob Landley <rob@landley.net> Make yesno() always read from stdin and write to stderr. (If we need to find our tty, open /dev/tty, but existing users don't.)
/external/toybox/lib/lib.c
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.c
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.c
bd2e2279d2b8f491ff9a56f6bd9000b0215778f8 20-Nov-2012 Rob Landley <rob@landley.net> Update readlink so -f works. Add -menq while there.
/external/toybox/lib/lib.c
734b530f3797d6d11dc3ab996a889482cc88a8ab 16-Nov-2012 Rob Landley <rob@landley.net> Add cut from Jason Kyungwan Han.
/external/toybox/lib/lib.c
caf39c26827f355c4e107f55c5c51f67c484bfd7 16-Nov-2012 Rob Landley <rob@landley.net> Add rebound support to intercept error_exit() and longjmp instead.
/external/toybox/lib/lib.c
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.c
b77293f660128aa39cf476d03f3f0e4770c355ad 08-Oct-2012 Rob Landley <rob@landley.net> Fix thinko in xpidfile()
/external/toybox/lib/lib.c
1a0eedf795546171a7e84b47f0f02c7d286d2ec4 27-Aug-2012 Ashwini Kumar <ak.ashwini@gmail.com> Add du command.
/external/toybox/lib/lib.c
c52db60645103cbbf21eeab033f40a0659cd9193 30-Jul-2012 Rob Landley <rob@landley.net> Add signal handler to clean up tempfile.
/external/toybox/lib/lib.c
07d79af7182c130858a84274718f9d0c84d15109 24-Jul-2012 Rob Landley <rob@landley.net> Workaround longstanding glibc/ld bug, ala http://sources.redhat.com/bugzilla/show_bug.cgi?id=3400, which prevents "./toybox | wc" from producing any output when toybox was statically linked.
/external/toybox/lib/lib.c
31f49e7968db5d0d569513992baa6d25dde8aa58 22-Jul-2012 Rob Landley <rob@landley.net> Make chmod +w respect umask, implement +s and +t, fix ls to show suid/sgid/stid without x bit.
/external/toybox/lib/lib.c
2037b8396427ab82edd1912357e9177a2800b01a 15-Jul-2012 Rob Landley <rob@landley.net> New infrastructure for od (oops).
/external/toybox/lib/lib.c
b8ef889cbfaeb69957ea76564543da38dfd65c47 30-Jun-2012 Rob Landley <rob@landley.net> Add NOP b (byte) suffix to atolx() since od needs it.
/external/toybox/lib/lib.c
285019a129c0dd8f5f9f0f4a6ecda74da961a449 23-Jun-2012 Rob Landley <rob@landley.net> Minor code refactoring.
/external/toybox/lib/lib.c
98356226c81109227faa89b721674e5fabf04b42 10-Jun-2012 Rob Landley <rob@landley.net> Feeding -1 to xdup() isn't an error.
/external/toybox/lib/lib.c
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.c
eec463764dbc2e83325695583a1b73bebc492a9e 01-Jun-2012 Rob Landley <rob@landley.net> Add xrealpath() at suggestion of Ashish Briggers.
/external/toybox/lib/lib.c
b6f601e5e6935bed3b15ff8680303ddb7a76fb4f 17-May-2012 Rob Landley <rob@landley.net> First pass at a complete rewrite of string_to_mode(). (It compiled!)
/external/toybox/lib/lib.c
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.c
f78c63a7035ceabb0dcb907cb5764b18da495f82 20-Mar-2012 Rob Landley <rob@landley.net> Using /dev/tty for yesno() is wrong because yes 'n' | cp -ial needs to work.
/external/toybox/lib/lib.c
cf6bcb27fb3dc6d196adce31d774229ea5d56dec 20-Mar-2012 Rob Landley <rob@landley.net> Unwind gratuitous macros.
/external/toybox/lib/lib.c
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.c
ee00a7f4587c1b75dedb71b5aa3d12608fb7b54c 20-Mar-2012 Rob Landley <rob@landley.net> Remove "feature test macros", replace non-portable fdprintf() with standard fprintf().
/external/toybox/lib/lib.c
b7529b608ea3e56784c7682b382f285008a2fc90 09-Mar-2012 Rob Landley <rob@landley.net> More stabs at getting #includes right, and moving off of deprecated functions.
/external/toybox/lib/lib.c
f793d5347f08bdb742e8ad8a2cc5a7d30e6bd623 28-Feb-2012 Rob Landley <rob@landley.net> Upgrade yesno() and make cp -i use it.
/external/toybox/lib/lib.c
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.c
2b54b1ab1a796ef89426f021319c11ff22710947 19-Feb-2012 Rob Landley <rob@landley.net> Nathan McSween convinced me compilers that inline memset() can optimize the bzero case pretty well.
/external/toybox/lib/lib.c
f42e11b6712f7bd17d1ee2e548f54a2f6d9aed46 19-Feb-2012 Rob Landley <rob@landley.net> Cleanups to pidof (including some global infrastructure shared with killall).
/external/toybox/lib/lib.c
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.c
5e6dca62869816709f4f6a16d9c191a9e93522a4 09-Feb-2012 Rob Landley <rob@landley.net> Make atolx() error_exit() if fed a string that doesn't convert entirely into an integer.
/external/toybox/lib/lib.c
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.c
f265d04ab8214f4789a7ff971acba3d97b84a0e0 28-Dec-2011 Rob Landley <rob@landley.net> Bugfix (spotted by Nathan McSween): xread can't detect <0 if the return type is stored in an unsigned variable.
/external/toybox/lib/lib.c
ad63f4bfd38c3728268983f15345010248614b01 12-Dec-2011 Rob Landley <rob@landley.net> Forgot to check in loopfiles_rw changes needed by truncate.
/external/toybox/lib/lib.c
8d43d913f977e7dd4d6a2a9177a4f303bf60c1c5 14-Nov-2011 Rob Landley <rob@landley.net> xreadall() returns void... how does that even compile?
/external/toybox/lib/lib.c
e0377fb294821a68112d4da09f836ac42e3d5956 05-Jan-2010 Rob Landley <rob@landley.net> Add TOYBOX_SUID.
/external/toybox/lib/lib.c
1e01cd1f48bff3fdd12f45bf1c3adfab821ee287 05-Jan-2010 Rob Landley <rob@landley.net> Correct return types of xstrdup() and xstrndup()
/external/toybox/lib/lib.c
d6b2613a6ea39d97599b714eb6722745c71ab957 17-Apr-2009 Rob Landley <rob@landley.net> Fix bug spotted by Jean-Christphe Dubois: reserve space for null terminator.
/external/toybox/lib/lib.c
ddae5e91f6dc0f5bfb4fdf6d5b5bbd8df25d97f0 25-Jan-2009 Rob Landley <rob@landley.net> Fix thinko.
/external/toybox/lib/lib.c
52476716ad2bff9805e5749bf2c2a1f9d3512ec9 18-Jan-2009 Rob Landley <rob@landley.net> Add mkswap.
/external/toybox/lib/lib.c
b15b8fa99ae53396145ea540106b74d37797f774 05-Jan-2009 Rob Landley <rob@landley.net> Add -N, -I, -L, and -P options to cksum.
/external/toybox/lib/lib.c
7e849c5b99e539f5af5262d8ade6b9791463c796 04-Jan-2009 Rob Landley <rob@landley.net> Check in crc_init needed by cksum. (Oops.)
/external/toybox/lib/lib.c
e824ed1b5a1d7a6c839348cf4636ceb9972e7a11 18-Jul-2008 Rob Landley <rob@landley.net> Tweak from Roberto Foglietta.
/external/toybox/lib/lib.c
f15387d8d3a383cd83f4bae8eb4c7dc6a15210d5 18-Jul-2008 Rob Landley <rob@landley.net> Roberto Foglietta pointed out that readall() needs fdlength() to restore
the original position before exiting.
/external/toybox/lib/lib.c
15b231591d3e95d502b2cee1d7d6192177230c15 18-Jul-2008 Rob Landley <rob@landley.net> Bug spotted by Roberto Foglietta: at EOF readall() should return count, not len.
/external/toybox/lib/lib.c
2bfaaf25614985ada5490d08e005b36f948d8186 04-Jul-2008 Rob Landley <rob@landley.net> Add "tee" command.
/external/toybox/lib/lib.c
59f490cb4e18960e7ddd003f9a66005eccc5ebd7 18-May-2008 Rob Landley <rob@landley.net> Fix which (the meaning of -a was reversed, and it was finding the _last_ hit).
/external/toybox/lib/lib.c
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.c
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.c
f641854ce4126cbe8f344e106dd9c2356c392b31 27-Jan-2008 Rob Landley <rob@landley.net> Add spaces after some commas (from Charlie Shepherd).
/external/toybox/lib/lib.c
94dd3e721e41a26e9762479fcdb53b0e6a8ebd2b 25-Jan-2008 Charlie Shepherd <masterdriverz@gentoo.org> Remove extra newlines on error_paths
/external/toybox/lib/lib.c
54524c91ebfd032a20b38fdbfc32af1bfa98c06f 25-Jan-2008 Charlie Shepherd <masterdriverz@gentoo.org> Fix filename in header
/external/toybox/lib/lib.c
12138e498721892320e703702dcd3a4b191fb7fc 27-Jan-2008 Rob Landley <rob@landley.net> Teach perror_exit() to take a NULL argument when we just want "command: error".
/external/toybox/lib/lib.c
55928b1e0a08d84a5cbc50020f0a8c1024f5b6ce 20-Jan-2008 Rob Landley <rob@landley.net> Move NEWTOY() list from end of toylist.h to generated/newtoys.h.
/external/toybox/lib/lib.c
3632d5d8fe05d14da983e37c7cd34db0769e6238 01-Jan-2008 Rob Landley <rob@landley.net> Fix loopfiles to not call function() on file not found.
/external/toybox/lib/lib.c
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.c
e745d8e00eac61c91a540cd75d277cfc41606ce1 20-Dec-2007 Rob Landley <rob@landley.net> Upgrade patch to understand creating and deleting files.
/external/toybox/lib/lib.c
42ecbab08101d713f9bcd8a107b60338bebb7299 18-Dec-2007 Rob Landley <rob@landley.net> Patch command.
/external/toybox/lib/lib.c
bc07865a504c291b9c88e41b3481ee6b44334b4d 16-Dec-2007 Rob Landley <rob@landley.net> Start of "patch" support. Writes to stdout at the moment.
/external/toybox/lib/lib.c
aaffc07346c5e95f5c2db2ba6b2bde9898ea4498 09-Dec-2007 Rob Landley <rob@landley.net> Changeset 186 assumed that toys.exitval defaults to 0. Actually change the
default and have [p]error_exit() always return nonzero anyway.
/external/toybox/lib/lib.c
ce6750ac69a7a80a18db7f0d7a217cbf37c7a04c 30-Nov-2007 Rob Landley <rob@landley.net> Add sha1sum. (No -c mode yet.) Slight tweaks to loopfiles() too.
/external/toybox/lib/lib.c
7634b55f27ad483ec634ba9defac93872e3a329f 30-Nov-2007 Rob Landley <rob@landley.net> Add loopfiles() function, make catv use it.
/external/toybox/lib/lib.c
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.c
2c226859cfc911c4a1eea009897050a16714aeec 16-Nov-2007 Rob Landley <rob@landley.net> Remove trailing whitespace (thanks to Charlie Shepherd), and a couple comment
tweaks.
/external/toybox/lib/lib.c
59f757e4d7162ce24b4630c38460c33196a0bfc5 15-Nov-2007 Rob Landley <rob@landley.net> Change strlcpy not to use strncpy. (Adds 24 bytes, but doesn't memset the
unused portion of the buffer to 0, which can touch and allocate physical
pages for a large virtual mapping.)
/external/toybox/lib/lib.c
6a6dee3132db0d62a827ddf02d88c899f7c15c31 04-Nov-2007 Rob Landley <rob@landley.net> Fix from Charlie Shepherd: at end of string, don't match the null terminator
as a yottabyte suffix. Also, the shift increment needs to be a long constant
on 64-bit platforms for the top three suffixes to mean anything.
/external/toybox/lib/lib.c
961e17193887734ec977e93618bba0f045951d43 04-Nov-2007 Rob Landley <rob@landley.net> xcreate(): perror already prints error name and newline, remove redundancy.
/external/toybox/lib/lib.c
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.c
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.c
9303e2fc38944c235c84483f6301cf4d09901b8f 15-Aug-2007 Rob Landley <rob@landley.net> More klibc fixes from Maximilian Attems, strlcpy() this time.
/external/toybox/lib/lib.c
5084feadff6503852bf11019baa3e943bbcd4305 18-Jun-2007 Rob Landley <rob@landley.net> Add xputs() to detect EOF on writes.
/external/toybox/lib/lib.c
0d8dfb2b905c374a65c2ca245bf588444aec5fff 15-Jun-2007 Rob Landley <rob@landley.net> Vladimir Oleynik pointed out that va_start() twice in the same function
isn't portable (with ppc 4xx as an example of a platform it doesn't work
on). This is why va_copy exists.
/external/toybox/lib/lib.c
18d43ffd39dffec81f8ece68447692d6e2e4672a 07-Jun-2007 Rob Landley <rob@landley.net> Work around uClibc weirdness.
/external/toybox/lib/lib.c
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.c
f5757161aff8caeec8e70b9709ccdce96e41dd14 17-Feb-2007 Rob Landley <rob@landley.net> Add atolx() which understands extensions for kilobytes and megabytes and such.
/external/toybox/lib/lib.c
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.c
97c63ecb359138a04073e043b85bf928a14d7e8a 05-Feb-2007 Rob Landley <rob@landley.net> Rename functions.c to lib.c. (Easier name to remember.)
/external/toybox/lib/lib.c