summaryrefslogtreecommitdiffstats
path: root/libcutils
Commit message (Collapse)AuthorAgeFilesLines
* Libcutils: Remove unused variableAndreas Gampe2014-11-241-1/+0
| | | | | | For build-system CFLAGS clean-up, remove unused variable. Change-Id: Iaf6dd7b84ee4ef4734a48b37a4d0ca8287ca5fb5
* Kill LOCAL_SOCKET_NAMESPACE.Elliott Hughes2014-11-212-4/+4
| | | | Change-Id: I18928f89f66c37be310c45ff4c05a6d47ab84f66
* Remove the error-prone TARGET_CPU_SMP from system/core.Elliott Hughes2014-11-171-10/+2
| | | | | | | | This means that code that uses libcutils no longer has to ensure that it's set ANDROID_SMP in the calling code's Android.mk for this to function correctly. Change-Id: I80c7ff170cd621106f34d6b74689d6b4f03e4eb7
* Disable the static libcutils tests.Dan Albert2014-11-141-15/+17
| | | | | | | | The static libcutils tests cannot be built when using libc++ because there are multiple symbol definition errors between libc++ and libgcc. Bug: 18389856 Change-Id: I6f41c561f97b3a37477f844e9abf6551524a0fa3
* Second attempt to "Rewrite atomic.h to use stdatomic.h."Hans Boehm2014-11-131-1/+8
| | | | | | | | | | | | This should not be committed until win_sdk and aarch64 builds are fixed in the presence of this CL. This reverts commit 2789faabfa9cdf16902a52a1de3fc4a7ae98efed. We additionally remove uniprocessor support from the earlier CL, thus avoiding a potential compiler code reordering issue. Change-Id: I7207a5ca2efa907a6f757f172d7090a62b2311fe
* Revert "Move some tests to libc++."Dan Albert2014-11-111-3/+1
| | | | | | | | The build system is still linking both libgcc and libcompiler-rt, which is causing duplicate symbol errors on some architectures. This requires a fix in the build system, so reverting for now. This reverts commit e3cccbfd4776644c7cb705d52f51ca948df34f9a.
* Move some tests to libc++.Dan Albert2014-11-111-1/+3
| | | | Bug: 15193147 Change-Id: I93244e4a5d0c751056910ec8005a92401d305716
* Remove dead code.Elliott Hughes2014-11-081-8/+0
| | | | | | __APPLE__ => HAVE_FUNOPEN. Change-Id: I191cccd9b75020ffbb3281283ce1f1b7abc15d22
* am 07f1300c: am 7979f1ce: Merge "Do not inline rarely used trace function ↵Chih-Hung Hsieh2014-10-151-0/+57
|\ | | | | | | | | | | | | bodies." * commit '07f1300c4c4f7d3c0df540bf8df3443c3f4539cd': Do not inline rarely used trace function bodies.
| * Do not inline rarely used trace function bodies.Chih-Hung Hsieh2014-10-141-0/+57
| | | | | | | | | | | | | | | | When atrace_* functions are inlined, the rarely used 1024-byte buffers are allocated on stack. BUG: 17444504 Change-Id: I773512aeb70e8b79f3803c6d59cba064d2aa65b6
* | am ad0ff1d9: am 4fceda2b: Merge "Add -no-integrated-as at local level."Chih-Hung Hsieh2014-10-061-0/+3
|\ \ | |/ | | | | | | * commit 'ad0ff1d99cd00ce53f667b27e53f44e802315a36': Add -no-integrated-as at local level.
| * Add -no-integrated-as at local level.Chih-Hung Hsieh2014-10-061-0/+3
| | | | | | | | | | | | | | Later we will enable integrated-as as default at the global level. BUG: 17820427 Change-Id: I1beed3e75d074d970fa9112ec1c0f0df3d43947a
* | am 072877af: am 41198eea: Merge "Revert "Rewrite atomic.h to use stdatomic.h.""Hans Boehm2014-10-041-8/+1
|\ \ | |/ | | | | | | * commit '072877af485d49f11e227c0d22a7bb4a341533d6': Revert "Rewrite atomic.h to use stdatomic.h."
| * Revert "Rewrite atomic.h to use stdatomic.h."Hans Boehm2014-10-041-8/+1
| | | | | | | | | | | | This reverts commit cb344d464009337c283431dec4441b70481d1a49. Change-Id: Ib17cd8d00695062177ce863cedc4ec7148012317
* | am f5204549: am 028928fe: Merge "Rewrite atomic.h to use stdatomic.h."Hans Boehm2014-10-041-1/+8
|\ \ | |/ | | | | | | * commit 'f5204549faf7310cc808bcb3676fb36268178e26': Rewrite atomic.h to use stdatomic.h.
| * Rewrite atomic.h to use stdatomic.h.Hans Boehm2014-10-011-1/+8
| | | | | | | | | | | | | | Replace atomic-inl.h with a file that just includes atomic.h. Remove platform specific implementations. Change-Id: If16d74fbe0af7836ed8c1296c17e13a2d0d20f64
* | am be0d295d: am 19d686ee: Merge "Don\'t manually link stlport."Dan Albert2014-09-261-1/+1
|\ \ | |/ | | | | | | * commit 'be0d295da912076239a1e112c4b7b94be10cf7af': Don't manually link stlport.
| * Don't manually link stlport.Dan Albert2014-09-261-1/+1
| | | | | | | | Change-Id: I60d2bc868fb9052f120103e9675046ef54f510d0
* | am 6c03b85f: am 32e2f1be: Merge "Clean up memset[16,32] routines: unify ↵Elliott Hughes2014-09-189-1275/+1209
|\ \ | |/ | | | | | | | | | | files names, remove redundant wrapper for 32-bit, remove Atom caches sizes for 64-bit, fix license." * commit '6c03b85f1dcfd0efd2ec741cbfb6c5ecc404fbd8': Clean up memset[16,32] routines: unify files names, remove redundant wrapper for 32-bit, remove Atom caches sizes for 64-bit, fix license.
| * Clean up memset[16,32] routines: unify files names, remove redundant wrapperVarvara Rainchik2014-09-179-1275/+1209
| | | | | | | | | | | | | | for 32-bit, remove Atom caches sizes for 64-bit, fix license. Change-Id: Ieda6367d7b21cf25b2beda6dd8d77cf668d3f2af Signed-off-by: Varvara Rainchik <varvara.rainchik@intel.com>
| * Use the correct debuggerd given the tid.Christopher Ferris2014-09-131-57/+119
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On 64 bit systems, calling dump_backtrace_to_file will automatically call debuggerd64. If the process to dump is actually 32 bit, this creates an unrecognizable dump backtrace. Modify the code to check the type of the process and connect to the appropriate debuggerd process. This change refactors both the tombstone and backtrace functionality to allow both to work properly on 64 bit systems when dealing with mixed processes. Bug: 17487122 (cherry picked from commit a9fa7b87f1aefd7b96f749a545d3385ad384c12b) Change-Id: I3c9e0212c8720877a6af092071a3695df2a36df8
* | am 07dda6b5: Merge "Use the correct debuggerd given the tid." into lmp-devChristopher Ferris2014-09-131-57/+119
|\ \ | | | | | | | | | | | | * commit '07dda6b57c6a476177b68ad42966f24cbbdb04c1': Use the correct debuggerd given the tid.
| * | Use the correct debuggerd given the tid.Christopher Ferris2014-09-121-57/+119
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On 64 bit systems, calling dump_backtrace_to_file will automatically call debuggerd64. If the process to dump is actually 32 bit, this creates an unrecognizable dump backtrace. Modify the code to check the type of the process and connect to the appropriate debuggerd process. This change refactors both the tombstone and backtrace functionality to allow both to work properly on 64 bit systems when dealing with mixed processes. Bug: 17487122 Change-Id: Icf123a6f4508b1aeec073663aa1a0ceae5380aa1
| * | Remove invalid 64-bit host objects.Stephen Hines2014-07-251-13/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | am 522c1d34: am e18ed89e: Merge "Remove makefile cruft."Dan Albert2014-09-121-0/+2
|\ \ \ | | |/ | |/| | | | | | | * commit '522c1d340b6c1742d3e47aad27b974e43fad4bc2': Remove makefile cruft.
| * | Remove makefile cruft.Dan Albert2014-09-121-0/+2
| | | | | | | | | | | | | | | | | | Don't manually include stlport, and don't use private bionic headers. Change-Id: I0fc4e8b34ab449e9ef07c26f71e472fca5640590
* | | am a66532e7: am 91baad56: Merge "Fix some clang compilation issues."Dan Albert2014-09-111-1/+1
|\ \ \ | |/ / | | | | | | | | | * commit 'a66532e73a9c8205002482477f1bf53366d15f38': Fix some clang compilation issues.
| * | Fix some clang compilation issues.Dan Albert2014-09-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use expected inline behavior with clang. GCC defaults to -std=gnu90, giving C89 inline semantics with GNU extensions. Clang defaults to C99. Explicitly use gnu90. Mark an unused parameter as __unused. Fix some incorrect casts. Change-Id: I05b95585d5e3688eda71769b63b6b8a9237bcaf4
* | | am 4592d73e: am a59b6ac6: Merge "Only the Mac doesn\'t have open_memstream."Elliott Hughes2014-08-211-2/+2
|\ \ \ | |/ / | | | | | | | | | * commit '4592d73e18684b8ba2addb97433eed4cf389e386': Only the Mac doesn't have open_memstream.
| * | Only the Mac doesn't have open_memstream.Elliott Hughes2014-08-201-2/+2
| | | | | | | | | | | | | | | | | | | | | We should probably move this into art, since they're the only people using it. Bug: 17164505 Change-Id: I67b8f0cbad4c6368d4424e6979d6b044dd36aa37
* | | am 3859029a: am 7fb0ee0c: Merge "Remove androidGetTid."Elliott Hughes2014-08-181-4/+0
|\ \ \ | |/ / | | | | | | | | | * commit '3859029a48aa78150fa61eb4988214f8632b33ce': Remove androidGetTid.
| * | Remove androidGetTid.Elliott Hughes2014-08-181-4/+0
| | | | | | | | | | | | | | | Bug: 17048545 Change-Id: I93cbb2d7bd18d506b5f5f7f262dd9ac0fca053b4
* | | am e07a6e63: am 6d9a5ac3: Merge "[MIPSR6] Skip pixelflinger, memset ↵Elliott Hughes2014-08-051-1/+9
|\ \ \ | |/ / | | | | | | | | | | | | | | | assembler code on mips32r6" * commit 'e07a6e6337a959c45ab71acf6ff1fad8a8ac5dfd': [MIPSR6] Skip pixelflinger, memset assembler code on mips32r6
| * | [MIPSR6] Skip pixelflinger, memset assembler code on mips32r6Duane Sand2014-07-311-1/+9
| | | | | | | | | | | | | | | | | | Temporarily use generic C-coded libpixelflinger & memset on mips32r6. Change-Id: I629b11ba955eaba323cba1df96c39f75f4d24d62
* | | am 31dc191b: am 73290cd1: Merge "Remove invalid 64-bit host objects."Stephen Hines2014-07-221-13/+0
|\ \ \ | |/ / | | / | |/ |/| * commit '31dc191b2b39d4cbd68feba29c7692c91de57a53': Remove invalid 64-bit host objects.
| * Remove invalid 64-bit host objects.Stephen Hines2014-07-221-13/+0
| | | | | | | | | | | | | | | | | | 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
* | Move sched_policy.c off bionic's PR_SET_TIMERSLACK_PID.Elliott Hughes2014-07-171-0/+3
| | | | | | | | Change-Id: I3a27803d46b5b88a10aa8043a114d780ed685e56
* | Use <sys/prctl.h> instead of <linux/prctl.h>.Elliott Hughes2014-07-111-10/+2
| | | | | | | | Change-Id: I708da00e36a9da8be9184c451453774be6b78c06
* | am f77cf6c6: am 5450a441: am 676f3755: Merge "Add ↵Christopher Ferris2014-06-245-9/+426
|\ \ | |/ | | | | | | | | | | android_memset16/android_memset32 for aarch64." * commit 'f77cf6c6986057aceece5d7e09d1c23a9efaf20c': Add android_memset16/android_memset32 for aarch64.
| * Add android_memset16/android_memset32 for aarch64.Christopher Ferris2014-06-235-9/+426
| | | | | | | | | | | | | | | | Included new unit tests for these functions. Bug: 15456369 Change-Id: I3fac02f61c62d15d54d0df51957680d7155e98ae
| * libcutils: Fix warnings in properties.c when verbose logging is enabledIgor Murashkin2014-06-202-4/+6
| | | | | | | | Change-Id: I07c5eb59b9395734ad3fc25eba753564c0f096a0
| * cutils: Add property_get_bool, _get_int32, _get_int64Igor Murashkin2014-06-203-2/+422
| | | | | | | | | | | | | | | | | | * Read out system properties with same syntax as SystemProperties.java * Also adds unit test suite to validate correctness of properties * Also fixes buffer overrun in property_get (cherry picked from commit d4507e9246e4855c5431cac5c3d1a9155caebc87) Change-Id: Ifd42911f93e17da09e6ff1298e8875e02f3b6608
* | fs_mkdirs: use O_NOFOLLOW and O_CLOEXECNick Kralevich2014-06-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | Don't follow symlinks. Suggestion from Jann Horn. Also, add O_CLOEXEC. This prevents file descriptor leakage should this code ever run in a multithreaded environment. I'm not sure if either of these changes actually address any security concerns, but it's harmless, so go ahead and add it. Bug: 15675141 Change-Id: I7ba4e9d10439b7150f59759b54e3ad8ccba411e3
* | am 46ed1c8c: am ed1a0dbd: am b44e626c: Merge "Fix windows sdk build."Dan Albert2014-06-131-1/+1
|\ \ | |/ | | | | | | * commit '46ed1c8c99fce33c78e239d4155ece84feca069d': Fix windows sdk build.
| * Fix windows sdk build.Dan Albert2014-06-131-1/+1
| | | | | | Change-Id: I53c9f43a5f9ae2f40de686316185d162d0e0503a
* | am 6dfe9495: am 9b2d964d: am 08430b1e: Merge "Use syscall(2) instead of ↵Dan Albert2014-06-131-19/+5
|\ \ | |/ | | | | | | | | | | ioprio_get/ioprio_set." * commit '6dfe949568fa9413db72cdccb26baca2c4592a2a': Use syscall(2) instead of ioprio_get/ioprio_set.
| * Use syscall(2) instead of ioprio_get/ioprio_set.Dan Albert2014-06-121-19/+5
| | | | | | | | Change-Id: Ibfd0bdd3dd0bad9804ec9fd9292f4b68a510afdb
* | am f6d8dedd: am 8af98621: am 5db5b8aa: Merge "Port libcutils memset16/32 to ↵Christopher Ferris2014-06-064-16/+994
|\ \ | |/ | | | | | | | | | | x86_64." * commit 'f6d8dedd87eb8bbccbbdeb17a6d226f089449d92': Port libcutils memset16/32 to x86_64.
| * Port libcutils memset16/32 to x86_64.Henrik Smiding2014-06-054-16/+994
| | | | | | | | | | | | | | | | Port libcutils memset16/32 assembly SSE2 optimizations to x86_64 architecture. Ensures the same performance on 64-bit arch. Change-Id: I874a71a884c0d28a152933ddff9cb886c9a6e99e Signed-off-by: Henrik Smiding <henrik.smiding@intel.com>
* | am 928821bd: am 72d77449: am 4ca26ce8: Merge "Host multilib build of both ↵Ian Rogers2014-06-051-0/+1
|\ \ | |/ | | | | | | | | | | 32-bit and 64-bit libraries." * commit '928821bd123aa38094289b9c62debb4d92b84069': Host multilib build of both 32-bit and 64-bit libraries.