History log of /external/toybox/toys/posix/file.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
12f0744f340746b3a1c1accfdf993d6548f33e56 24-May-2017 Elliott Hughes <enh@google.com> Add and use xmmap.

Everyone forgets that mmap returns MAP_FAILED rather than NULL on failure.
Every use of mmap in toybox was either doing the wrong check, or no check
at all (including the two I personally added).
/external/toybox/toys/posix/file.c
6232dc68c4169332950333b259943e175ddcfaea 03-Apr-2017 Rob Landley <rob@landley.net> Trivial cleanup. (Whitespace, brackets, and remove unnecessary typecasts.)
/external/toybox/toys/posix/file.c
d1c664a31b656c1541c79044aa44467420f78f14 03-Apr-2017 Rob Landley <rob@landley.net> Add gzip support. (Doesn't show source OS and timestamp, but reporting them
isn't obviously useful.)
/external/toybox/toys/posix/file.c
af92dfdad8b8f2e8d35a1959832a3b6939261d9f 16-Feb-2017 Elliott Hughes <enh@google.com> Teach file(1) about bzip2 files.

If we can read and write bzip2 files, we should be able to identify them
too...
/external/toybox/toys/posix/file.c
fa84155632bf1c65f455b9872ee35a53cd0d2a19 29-Jan-2017 Elliott Hughes <enh@google.com> Improve file's ELF parsing.

An ELF file with no program headers is valid, and binutils leaves e_phentsize
zero in that case. Fix the corruption check to cope.

Also, since notes are in both the program and section headers (and I'm not
aware of the possibility of having no sections but still having notes ---
where would they be?), look for them in the section headers instead.

Also extend the parsing of the .android.note.ident ELF note to include the
NDK version information if present. (This won't be present for platform
binaries, but will be present for NDK-built binaries such as app libraries.)
/external/toybox/toys/posix/file.c
6783156813d6c1c8469a7535f3cb575a776ceaa6 13-Sep-2016 Elliott Hughes <enh@google.com> Add ar archive support to file.
/external/toybox/toys/posix/file.c
493dc573825a862ee533c8aaf91ab23112b591c2 13-Sep-2016 Elliott Hughes <enh@google.com> Add -h and -L to file.

On a toybox system, most of your bin directory is symbolic links.

Bug: http://b/31294746
/external/toybox/toys/posix/file.c
9f42e832a186bb3f5320581a3a713d0a8a9c8384 12-Sep-2016 Rob Landley <rob@landley.net> Izabera pointed out that "file -" was inconsistent (calling stat on "-" but
then reading from stdin if it detected a file). Fixed it so "-" always
means stdin and you have to say ./- to look at a local "-".

Did some whitespace tweaks while I was there...
/external/toybox/toys/posix/file.c
8a34cbb5666a80153ea06ba8d59f7406f311bb7a 05-Jul-2016 Elliott Hughes <enh@google.com> Don't try to guess the build id type in file(1).

They're really just arbitrary byte sequences of arbitrary length.
Sure, a 20-byte sequence is _probably_ a SHA-1, but there's no way
to know, so let's stop pretending...
/external/toybox/toys/posix/file.c
4e21ddd440f5d1381c96ae6465a12888dcb23446 04-Jul-2016 Rob Landley <rob@landley.net> Promote file.
/external/toybox/toys/posix/file.c