| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
This reverts commit a7870d88167f619e758b5bcd15b410d16da7c16b.
|
|
|
|
|
|
|
|
| |
Breaks internal master.
This reverts commit 98ff77204cef9bb8f0f27420833233622060a09e.
Change-Id: I18dc6021cb43efff8aa88486c2d980dc2b8eedba
|
|
|
|
|
|
|
| |
Move StringPrintf and the string based file I/O from libutils to
libbase.
Change-Id: I0297a6063874b9d92100e0dd5123fddfbda932fe
|
|
|
|
|
|
|
|
|
| |
Nobody ever called acquire() so release() was always
equivalent to delete. Just use delete instead so that
people can use unique_ptr directly (or shared_ptr if
they really want refcounts).
Change-Id: I9e3ad5e0f6a4fcc4e02e5a2ff7ef9514fe234415
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The reference to NOT_USING_KLIBC appears to be the only one
in our codebase. This change also removes some cygwin specific
retry logic - all other supported platforms in this section
of the code should support mapping at an offset.
Note that i've reversed the sense of the check, we always sysconf
since that's recommended practice.
Change-Id: Ib985fb665193d7a07a282f7092cd77c0bc508a66
|
|/
|
|
|
|
|
|
|
|
| |
The actual bug is == instead of !=, but the real cause was me trying to be
too clever. This patch switches to much simpler code, and -- since the
intended use of this code is security anyway -- adds logging if anything
goes wrong.
Bug: 19361774
Change-Id: If2af07d31a5002f9010b838247b691f6b28bdfb1
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This isn't particularly useful in and of itself, but it does introduce the
first (trivial) unit test, improves the documentation (including details
about how to debug init crashes), and made me aware of how unpleasant the
existing parser is.
I also fixed a bug in passing --- unless you thought the "peboot" and "pm"
commands were features...
Bug: 19217569
Change-Id: I6ab76129a543ce3ed3dab52ef2c638009874c3de
|
|
|
|
|
|
|
| |
Only two days in, and I'm already really regretting putting this code
somewhere that builds for Mac OS and Windows...
Change-Id: I576ee4a9e647e10dc2d47c7e1e38aedee2bf404c
|
|
|
|
| |
Change-Id: I857a80b61768d4e9610bdd149eff2d9d8e48d2c0
|
|
|
|
| |
Change-Id: If333c28b8ed047346a2dd85e591c4bedbab874cc
|
|
|
|
|
|
|
| |
I knew I should have created a new library that doesn't build for the
Mac or Windows rather than adding to libutils...
Change-Id: I7c07eaa93affb7e83d4da384f03652c39065562a
|
|
|
|
|
| |
Bug: 19217569
Change-Id: I64789d3fa6777ee30a324cdf00fdc275c1230e1b
|
|
|
|
|
| |
Bug: 19083585
Change-Id: Ic09eb3dd250bc5c5b63cac7998f99f5fa007f407
|
|
|
|
| |
Change-Id: I8343b398f2ce0d743487fdd086e67763c7dd67f1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Removed LOCAL_C_INCLUDES as the external/zlib headers are no longer
referenced by anything in libutils.
Removed unused host_commonLdlibs build variable. This was referenced
by the lib64utils host target which was removed in commit 03cc1f747
Tested compiling some of the projects that make use of libcutils
using a clean out dir with the folllowing targets
aosp_arm-eng : make -j16 logd dexdump
aosp-flouder-userdebug : make -j16 keystore vold libjavacore logd
aosp-x86_64-eng : make -j16 keystore vold libjavacore logd dexdump
Change-Id: I663e52bbf28dde27866dad9429bf95ada6b594a5
|
|
|
|
| |
Change-Id: I777da5757f01d8328d5475e654d56d81dc802655
|
|
|
|
|
|
| |
For build-system CFLAGS clean-up, "remove" unused variables.
Change-Id: Ic96f066981cd96ca16af81ee3fdbc972507e8c81
|
|
|
|
| |
Change-Id: I9e25ac9d27e95b04fb8bf7a66c619af0139d8b8f
|
|
|
|
|
|
| |
Change to avoid "unused parameter" warning.
Bug: 18397020
Change-Id: I4b26de55314c78237daead8e873385b97cafe4d4
|
|
|
|
|
| |
Bug: 18397020
Change-Id: Ibc8d886d729c51932a403531888214de4e541452
|
|
|
|
|
| |
Bug: 15193147
Change-Id: I85aff3bcabb5ee3c8be9918b7bef0fd1bbfa98e3
|
|
|
|
|
|
| |
Should use memmove when you expect overlap.
Change-Id: I268a173db40a4be54232958e37aa8a03c2a885ee
|
|
|
|
|
| |
Bug: 18315579
Change-Id: I0bd5fb946b12cb90e0c9c73a478df41609b8c3e2
|
|\
| |
| |
| |
| | |
* commit '7a92d20ec845c07472eaea7cf14fd0e69df836ef':
Clean up some test makefiles.
|
| |
| |
| |
| |
| |
| |
| | |
Needed for building with libc++ as the default STL.
Bug: 15193147
Change-Id: I8b462bd288fbea7e0ab182f85ffcbf438afb6aa4
|
|\ \
| | |
| | |
| | |
| | | |
* commit '1c77bf4ce5059f3a770418cfa8afed39ee41ab24':
Fix windows specific behavior of FileMap
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The implementation of the FileMap destructor would
close the file, only on Windows, which did not match
the behavior on mac/linux.
This is because calling munmap does not close the file
descriptor. It must be closed separately, before or after
munmap.
On Windows, the file must also be closed manually,
before or after closing the mappingFile.
The change basically removes the closing file from
the windows-specific part of the destructor, to
make behavior more consistent on all platforms
where the caller to FileMap is responsible for closing
its own file (since FileMap receives an opened file).
Change-Id: I5e3cfffbb870d5f3595802ccac57dbc1dbf1ce6e
|
|\ \ \
| |/ /
| | |
| | |
| | | |
* commit '3fe9adc932948da8993d3f812bce1875efc47c0e':
Fix write past end of memory.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The computed flattened size of the blob does not match the size used by the
flatten function when the last cached entry size is not 4 byte aligned.
Bug: 17873145
Change-Id: I9f9fc102d4bde4681ae977b6de5f263aaaf56708
|
|\ \ \
| | |/
| |/|
| | |
| | | |
* commit '522c1d340b6c1742d3e47aad27b974e43fad4bc2':
Remove makefile cruft.
|
| |\ \ |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Don't manually include stlport, and don't use private bionic headers.
Change-Id: I0fc4e8b34ab449e9ef07c26f71e472fca5640590
|
|\ \ \ \
| |/ / /
| | | |
| | | |
| | | | |
* commit 'e4bf208ce8d893634a0f6f63ce34ec6498934d05':
Move libutils over to pthread_gettid_np.
|
| |/ /
| | |
| | |
| | |
| | | |
Bug: 17476168
Change-Id: I934d93a023eb00e036ed3cee8c52efaeb17b8915
|
|\ \ \
| | |/
| |/|
| | |
| | |
| | |
| | | |
thread name fails" into lmp-dev
* commit '6ba555f2ad878129cd1da9dd7b7613ab166090ab':
libutils: Don't segfault ProcessCallStack when getting thread name fails
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
There's an inherent race in trying to read out the thread name from
the system and the thread closing out on its own (and thus being removed
from procfs).
Try to handle this by formatting the thread name unconditionally with
the tid when getting the thread name fails (instead of dereferencing
NULL and crashing).
Bug: 15406837
Change-Id: Ibf2208b8ce345589e7e9c57e6a307728d1121c5d
|
| | |
| | |
| | |
| | |
| | |
| | | |
(cherry picked from commit 9516139c03e7e48b2c23a5b53dc4309989e54c6b)
Change-Id: I2883e2a13a523e6938c8a3aed93e66af948cdcd8
|
|\ \ \
| | |/
| |/|
| | |
| | | |
* commit '3859029a48aa78150fa61eb4988214f8632b33ce':
Remove androidGetTid.
|
| | |
| | |
| | |
| | |
| | | |
Bug: 17048545
Change-Id: I93cbb2d7bd18d506b5f5f7f262dd9ac0fca053b4
|
|\ \ \
| |/ /
| | |
| | |
| | |
| | |
| | | |
path"
* commit '52b59127d847bef1fd16efe2df578b3079b37918':
Exclude bionic private headers from include path
|
| | |
| | |
| | |
| | | |
Change-Id: I8b1269a739a690af91c63fa0f7f8f01d2d43bb97
|
|\ \ \
| | |/
| |/|
| | |
| | | |
* commit '4bb951a85a4888540caba4f14f18e99917d4c994':
BlobCache: fix uninitialized memory
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
When flattening the BlobCache, we insert padding for alignment. Make
sure to zero the padding bytes to have reproducible results.
Bug: 16569863
Change-Id: Id39eac5e6a1687459eb6bc2074b1339393fce711
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Bug: 16408818
These targets are no longer in use, since we have a proper way to create both
32-bit and 64-bit host libraries in a single build now.
Cherry-pick from AOSP: 03cc1f747c4e92d572a88ec3eb9fde920e871a7e
Change-Id: Icd09f795acd220de5b5e956a8d8e1b4ab4864fa9
|
|\ \ \
| | |/
| |/|
| | |
| | | |
* commit 'f2879ef61453c845e2f675011e0cbc41d1396040':
Fix Darwin build caused by -Wunused-parameter.
|
| | |
| | |
| | |
| | |
| | |
| | | |
bug 16172793
Change-Id: I1d0514c00085cb5d18ebdd064e96885d6eaa1e59
|
|\ \ \
| |/ /
| | /
| |/
|/| |
* commit '31dc191b2b39d4cbd68feba29c7692c91de57a53':
Remove invalid 64-bit host objects.
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Bug: 16408818
These targets are no longer in use, since we have a proper way to create both
32-bit and 64-bit host libraries in a single build now.
Change-Id: Icd09f795acd220de5b5e956a8d8e1b4ab4864fa9
|
|\ \
| | |
| | |
| | |
| | | |
* commit '72299bf0d240072174f847d13f1c9498b3ef9fa6':
[Bug]NE when playing mp3 with incorrect UTF16 char
|