Nick Kralevich
4d587f2f9a
libutils: Enable LOCAL_SANITIZE := integer
...
Call abort() on undefined or sketchy integer behavior.
Protects against integer overflow attacks.
Change-Id: I475e5e9fb04160dd2d201e926ab2b897539f8bb6
2015-08-24 10:51:38 -07:00
Evgenii Stepanov
6aaf740834
Add a space before :=.
...
Change-Id: Ib1d94648cdc163675ac7b6acf86408d5be6b5ad2
2015-06-12 14:18:33 -07:00
Dan Albert
c007bc3856
Revert "Revert "Create libbase.""
...
This reverts commit a7870d8816
.
2015-03-16 10:08:46 -07:00
Nicolas Geoffray
a7870d8816
Revert "Create libbase."
...
Breaks internal master.
This reverts commit 98ff77204c
.
Change-Id: I18dc6021cb43efff8aa88486c2d980dc2b8eedba
2015-03-16 11:07:29 +00:00
Dan Albert
98ff77204c
Create libbase.
...
Move StringPrintf and the string based file I/O from libutils to
libbase.
Change-Id: I0297a6063874b9d92100e0dd5123fddfbda932fe
2015-03-14 16:36:18 -07:00
Elliott Hughes
6b3be2902d
Add Google-style StringPrintf.
...
Change-Id: If333c28b8ed047346a2dd85e591c4bedbab874cc
2015-02-03 15:21:07 -08:00
Elliott Hughes
dec12b2b71
Add Google-style ReadFileToString and WriteStringToFile.
...
Bug: 19217569
Change-Id: I64789d3fa6777ee30a324cdf00fdc275c1230e1b
2015-02-03 12:18:11 -08:00
Trevor Drake
dabdbf9a6e
Clean up libutils Android.mk
...
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
2014-12-06 09:27:19 +00:00
Dan Albert
890442a02d
Move libutils to libc++.
...
Bug: 15193147
Change-Id: I85aff3bcabb5ee3c8be9918b7bef0fd1bbfa98e3
2014-11-15 16:32:26 -08:00
Elliott Hughes
8ac097a036
am e4bf208c: am 082a52b5: Merge "Move libutils over to pthread_gettid_np."
...
* commit 'e4bf208ce8d893634a0f6f63ce34ec6498934d05':
Move libutils over to pthread_gettid_np.
2014-09-12 20:08:48 +00:00
Elliott Hughes
7bf5f209ce
Move libutils over to pthread_gettid_np.
...
Bug: 17476168
Change-Id: I934d93a023eb00e036ed3cee8c52efaeb17b8915
2014-09-12 10:19:08 -07:00
Dmitriy Ivanov
614b923241
am 52b59127: am e7ec28bb: Merge "Exclude bionic private headers from include path"
...
* commit '52b59127d847bef1fd16efe2df578b3079b37918':
Exclude bionic private headers from include path
2014-07-31 17:44:36 +00:00
Dmitriy Ivanov
9516139c03
Exclude bionic private headers from include path
...
Change-Id: I8b1269a739a690af91c63fa0f7f8f01d2d43bb97
2014-07-31 10:21:00 -07:00
Tim Murray
f505dae2d5
am f2879ef6: am 6698ebf9: Merge "Fix Darwin build caused by -Wunused-parameter."
...
* commit 'f2879ef61453c845e2f675011e0cbc41d1396040':
Fix Darwin build caused by -Wunused-parameter.
2014-07-25 02:24:28 +00:00
Tim Murray
b37009fa77
Fix Darwin build caused by -Wunused-parameter.
...
bug 16172793
Change-Id: I1d0514c00085cb5d18ebdd064e96885d6eaa1e59
2014-07-24 17:22:09 -07:00
Stephen Hines
da6d2cb925
am 31dc191b: am 73290cd1: Merge "Remove invalid 64-bit host objects."
...
* commit '31dc191b2b39d4cbd68feba29c7692c91de57a53':
Remove invalid 64-bit host objects.
2014-07-22 20:53:45 +00:00
Stephen Hines
03cc1f747c
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
2014-07-22 13:36:16 -07:00
Ian Rogers
1165cf4f44
am 928821bd: am 72d77449: am 4ca26ce8: Merge "Host multilib build of both 32-bit and 64-bit libraries."
...
* commit '928821bd123aa38094289b9c62debb4d92b84069':
Host multilib build of both 32-bit and 64-bit libraries.
2014-06-05 23:00:09 +00:00
Ian Rogers
59ec765382
Host multilib build of both 32-bit and 64-bit libraries.
...
Change-Id: I54f91f385b109fc664a1a1f9320affb2a846fef1
2014-06-05 15:26:22 -07:00
Mark Salyzyn
c9573e147e
am b2a9129e: am bf0ed824: am 60ca7a22: Merge "libutils: turn on -Werror"
...
* commit 'b2a9129e8f0666884dee660515c51d4dd5c17c7a':
libutils: turn on -Werror
2014-06-04 18:29:49 +00:00
Mark Salyzyn
5bed803664
libutils: turn on -Werror
...
- Deal with some -Wunused issues
- Override PRI macros (windows)
- Revert use of PRI macros on off64_t (linux)
- Deal with a gnu++11 complaince issue
Change-Id: Ie66751293bd84477a5a6dfd8a57e700a16e36964
2014-06-02 15:57:50 -07:00
Dan Albert
70b53c4057
am 4b126c46: am e8f90ca6: am 570cd46d: Merge "Revert "Move libutils to libc++""
...
* commit '4b126c4604965ea029d9c741d074ad7f820b5269':
Revert "Move libutils to libc++"
2014-05-30 20:24:07 +00:00
Dan Albert
7bc49a16e8
Revert "Move libutils to libc++"
...
Causes issues in the unbundled branches.
This reverts commit dc133729b0
.
Change-Id: I9185ce9ea9e0ea631f0bfe016edf38c6830b288a
2014-05-30 19:40:58 +00:00
Dan Albert
6f8030c565
am 58f4a09b: am 36f536fc: am 9f69e028: Merge "Move libutils to libc++"
...
* commit '58f4a09bb4375c2f7b85ec14449a0588e85e126a':
Move libutils to libc++
2014-05-30 19:01:45 +00:00
Dan Albert
dc133729b0
Move libutils to libc++
...
Bug: 15193147
Change-Id: Ib4b1835e77279db905e098abc7c9bf8d27d66b57
2014-05-29 10:19:39 -07:00
Ying Wang
da6a0aa0df
am b18da571: am 1e6cd741: am 803fb62b: Merge "Remove unused LOCAL_LDLIBS."
...
* commit 'b18da571f90eebedd99fe5607a6b0d7ae4e91893':
Remove unused LOCAL_LDLIBS.
2014-05-08 18:23:57 +00:00
Ying Wang
9f437d7181
Remove unused LOCAL_LDLIBS.
...
Change-Id: I42aeb7668183e7a06207ee063f6eee4d37d66c6e
2014-05-07 15:36:05 -07:00
Jesse Hall
29cc9ce49a
Add NativeHandle, a refcounted C++ wrapper around a native_handle_t*
...
Change-Id: I232dfa2ad2e4a463a39e2e901e4097dffe278cc3
2014-03-05 16:12:41 -08:00
Christopher Ferris
038ac694b3
Move CallStack to libbacktrace.
...
Fix a small bug in the Printer for strings that didn't properly
prepend the prefix.
(cherry picked from commit 9b0e074c6d
)
Change-Id: I78bfa3f76864c34f33fb439bf20dfc85616f1077
2014-01-09 15:09:13 -08:00
Christopher Ferris
9b0e074c6d
Move CallStack to libbacktrace.
...
Fix a small bug in the Printer for strings that didn't properly
prepend the prefix.
Change-Id: I33c63841ef6e07728ab3195886539d82b38ee19a
2013-11-06 12:37:14 -08:00
Igor Murashkin
ec79ef2e7b
utils: Add ProcessCallStack to collect stack traces for all threads in a process
...
- Also add a Printer class (print lines to logcat, fd, or strings)
Bug: 11324229
Change-Id: I78435ed49aa196a0efb45bf9b2d58b62c41737d3
2013-10-25 19:24:56 -07:00
Alex Ray
d98e07fdf9
move libs/utils to libutils
...
Change-Id: I6cf4268599460791414882f91eeb88a992fbd29d
2013-08-02 14:40:08 -07:00