summaryrefslogtreecommitdiffstats
path: root/libcutils
Commit message (Collapse)AuthorAgeFilesLines
* Fix Windows strlcpy.c build.Elliott Hughes2015-04-021-2/+1
| | | | Change-Id: I572c553227a5a2cd57ec304de7e898d7c801fe93
* Be more intention-revealing with libcutils' strlcpy.Elliott Hughes2015-04-022-20/+8
| | | | | | | Several people have been independently confused about when this gets built and why over the past couple of days. Change-Id: I2d4a02f66e24c0734327585b7d27e50a344b1e94
* Move all libcutils tests into the gtests.Elliott Hughes2015-04-025-90/+96
| | | | | | | | | | | This also fixes the bug where we were always testing against the fake strlcpy we provide for glibc/Windows rather than the Android one. This also removes some unnecessary library dependencies. This also builds all the cutils tests for the host (static and dynamic). Change-Id: Icd129d5b025c0ca801be5acf31a54ecd88608df9
* Move mips/mips64 android_memset16/android_memset32 into libcutils.Elliott Hughes2015-04-024-73/+327
| | | | Change-Id: Ia826dd872f64cc80635f50525a0c393f43ae5204
* Fix shared version of libcutils on the host to include strlcpyBrian Carlstrom2015-04-021-1/+1
| | | | Change-Id: Ic727508d9cfadea0050d1ccc491ee61aac1ef55a
* Revert "Disable the static libcutils tests."Dan Albert2015-04-011-17/+15
| | | | | | | | | | Also move them to libc++ since stlport is dead. Bug: 18389856 This reverts commit bb28776db0f5a107ef2b90ff1322f4c06b6cc7de. Change-Id: Icdf9be3bc5cc40433727ff71a121b145002dda72
* Merge "Define atrace_* functions for both target and host."Richard Uhler2015-04-013-2/+38
|\
| * Define atrace_* functions for both target and host.Richard Uhler2015-03-273-2/+38
| | | | | | | | | | | | | | This change defines atrace_* functions for the host that act as no-ops, which makes it easier to add tracing in ART. Change-Id: I89397e83986686a2b6a6f245c25017eb379081b1
* | Always unlink /dev/__kmsg__.Elliott Hughes2015-03-281-4/+1
| | | | | | | | | | | | Whether the open succeeds or fails, we should unlink. Change-Id: Ic2f1e10dc7b6d6e459c56049da00d165bd63ba8f
* | Log more timing information from init.Elliott Hughes2015-03-281-22/+21
|/ | | | | | | | | | | | | | | | | Also make important events in init's life NOTICE rather than INFO, and ensure that NOTICE events actually make it to the kernel log. Also fix the logging so that if you have a printf format string error, the compiler now catches it. Also give messages from init, ueventd, and watchdogd distinct tags. (Previously they'd all call themselves "init", and dmesg doesn't include pids, so you couldn't untangle them.) Also include the tag in SELinux messages. Bug: 19544788 Change-Id: Ica6daea065bfdb80155c52c0b06f346a7df208fe
* Merge "Add make target for shared libcutils on host."Richard Uhler2015-03-251-1/+11
|\
| * Add make target for shared libcutils on host.Richard Uhler2015-03-241-1/+11
| | | | | | | | | | | | Needed by host dex2oat. Change-Id: Ia5b53136de3d531c820f03c3f251e58418204be1
* | Fix mac sdk build.Christopher Ferris2015-03-231-0/+2
| | | | | | | | | | | | Add include files for types and functions that were not included properly. Change-Id: I4849f5bdf535c6eec9254228cf980c30d11a5a1b
* | More Mac fix.Dan Albert2015-03-231-0/+1
| | | | | | | | Change-Id: I7a1f726819c68eea1afb7e45f92954325f8933e1
* | Undo mac fix to fix windows, fix mac differently.Dan Albert2015-03-232-3/+5
| | | | | | | | Change-Id: I7d1ee439d25e17c31c0be448e67a90a0f626ff42
* | (Probably) fix the mac build.Dan Albert2015-03-231-1/+1
| | | | | | | | Change-Id: I4209f2d66d8701df2f32dcfb79abea9ea6d3dc69
* | Move gettid() into libcutils.Dan Albert2015-03-231-1/+30
|/ | | | Change-Id: Ic8a15036833e6d129b7998d954b804be391de399
* am 6864e673: Merge "More SOCK_CLOEXEC"Nick Kralevich2015-02-271-1/+1
|\ | | | | | | | | * commit '6864e6739027adf725ced33777d3e21f80a95479': More SOCK_CLOEXEC
| * More SOCK_CLOEXECNick Kralevich2015-02-261-1/+1
| | | | | | | | Change-Id: I3e18f34d08a6443aaf55d7c91c27867840ac1773
* | am f1ac6917: Merge "Remove loghack.h."Narayan Kamath2015-02-212-121/+1
|\ \ | |/ | | | | | | * commit 'f1ac6917da172dd3e6829bac41fcbf23e96da079': Remove loghack.h.
| * Remove loghack.h.Narayan Kamath2015-02-212-121/+1
| | | | | | | | | | | | | | This was supposedly used to enable logging when !HAVE_ANDROID_OS but it's only used in a file that's target specific. Change-Id: Id83f2597e48a66b4821fc3b1237e212872b909fb
* | am 623eebe6: Merge "Libcutils: Remove unused variable"Andreas Gampe2015-02-201-1/+0
|\ \ | |/ | | | | | | * commit '623eebe68f3c6c9e54cf5b186696052d2948410c': Libcutils: Remove unused variable
| * Libcutils: Remove unused variableAndreas Gampe2015-02-191-1/+0
| | | | | | | | Change-Id: I95eed017e78468c4946b2a5b62b6fe92e256673e
* | am 3bc8ae63: Merge "Use mkstemp for host ashmem."Elliott Hughes2015-02-101-43/+7
|\ \ | |/ | | | | | | * commit '3bc8ae63ce3bbcc0ab61def99a4e9b4822ba3f51': Use mkstemp for host ashmem.
| * Use mkstemp for host ashmem.Elliott Hughes2015-02-091-43/+7
| | | | | | | | | | Bug: 19310167 Change-Id: Ic4e32b3924a9aa0b0d095d445108cbcf2231cd91
* | am 55732f49: Merge "android_reboot should take a const char*."Elliott Hughes2015-02-041-1/+1
|\ \ | |/ | | | | | | * commit '55732f49287a75f9baabe9f150443aec9234c90d': android_reboot should take a const char*.
| * android_reboot should take a const char*.Elliott Hughes2015-02-031-1/+1
| | | | | | | | | | | | The kernel argument is actually a void*, but it's only read from. Change-Id: I305c50249bf12b7fbdea4721257aed52a0372f8d
* | am e862350b: Merge "Kill HAVE_PTHREADS."Yabin Cui2015-01-271-18/+16
|\ \ | |/ | | | | | | * commit 'e862350bb2eb3d3eda526da7f3b6d5c2dd40a445': Kill HAVE_PTHREADS.
| * Kill HAVE_PTHREADS.Yabin Cui2015-01-271-18/+16
| | | | | | | | | | Bug: 19083585 Change-Id: Ic09eb3dd250bc5c5b63cac7998f99f5fa007f407
* | am d426a4e7: Merge "Move 32 bit/64 bit check into debuggerd."Christopher Ferris2015-01-221-53/+5
|\ \ | |/ | | | | | | * commit 'd426a4e7b62c18124827868ddbf8987aa433451b': Move 32 bit/64 bit check into debuggerd.
| * Move 32 bit/64 bit check into debuggerd.Christopher Ferris2015-01-201-53/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On 64 bit systems, calls to dump_backtrace_to_file or dump_tombstone try and directly contact the correct debuggerd (32 bit vs 64 bit) by reading the elf information for the executable. Unfortunately, system_server makes a call to dump_backtrace_to_file and it doesn't have permissions to read the executable data, so it defaults to always contacting the 64 bit debuggerd. This CL changes the code so that all dump requests go to the 64 bit debuggerd, which reads the elf information and redirects requests for 32 bit processes to the 32 bit debuggerd. Testing: - Forced the watchdog code in system_server to dump stacks and verified that all native stacks are dumped correctly. - Verified that dumpstate and bugreport still properly dump the native processes on a 64 bit and 32 bit system. - Intentionally forced the 64 bit to 32 bit redirect to write only a byte at a time and verified there are no errors, and no dropped data. - Used debuggerd and debuggerd64 to dump 32 bit and 64 bit processes seemlessly. - Used debuggerd on a 32 bit system to dump native stacks. Bug: https://code.google.com/p/android/issues/detail?id=97024 Change-Id: Ie01945153bdc1c4ded696c7334b61d58575314d1
* | am 45c4c06f: Merge "Remove unused cruft from libcutils."Elliott Hughes2015-01-162-83/+0
|\ \ | |/ | | | | | | * commit '45c4c06ffe6f38e0f77f37f488e07f2537eddd45': Remove unused cruft from libcutils.
| * Remove unused cruft from libcutils.Elliott Hughes2015-01-152-83/+0
| | | | | | | | Change-Id: I316d39e8e0a9aa385d8e1f37678b8bf2c03441eb
* | am 9f72ef89: Merge "Extend to receive NFLOG packets."Jeff Sharkey2015-01-161-9/+17
|\ \ | |/ | | | | | | * commit '9f72ef8944a93bd333c6c7f87c7f7d79207ae663': Extend to receive NFLOG packets.
| * Merge "Extend to receive NFLOG packets."Jeff Sharkey2015-01-161-9/+17
| |\
| | * Extend to receive NFLOG packets.Jeff Sharkey2015-01-151-9/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | Packets captured and logged by the NFLOG target are unicast, so extend to catch and decode them. To avoid escaping issues, the raw contents are passed around as hex strings. Bug: 18335678 Change-Id: Ib7299500baa00080a1f000f9da843eb527363353
| * | Add timed versions of stack dumping functions.Christopher Ferris2015-01-151-3/+29
| |/ | | | | | | | | | | | | | | | | | | | | | | | | Under some unknown circumstances, debuggerd could become unresponsive. If you try and take a bugreport during this time, it will hang forever. Adding functions that have a timeout will allow dumpstate to stop if dumping is taking too long. Bug: 18766581 (cherry picked from commit 5f2ff6a9106083e2a79b8600a0bf6a5341c6ca38) Change-Id: I39e8e9c60209e3ef9efac795fedb8e1edce2bd3e
* | am 5f2ff6a9: Add timed versions of stack dumping functions.Christopher Ferris2015-01-151-3/+29
|\ \ | | | | | | | | | | | | * commit '5f2ff6a9106083e2a79b8600a0bf6a5341c6ca38': Add timed versions of stack dumping functions.
| * | Add timed versions of stack dumping functions.Christopher Ferris2015-01-141-3/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Under some unknown circumstances, debuggerd could become unresponsive. If you try and take a bugreport during this time, it will hang forever. Adding functions that have a timeout will allow dumpstate to stop if dumping is taking too long. Bug: 18766581 Change-Id: I85053b8dcfe6224e2b64b4d8f7f2ef448b3cda34
* | | am ec556521: Merge "Remove HAVE_LIBC_SYSTEM_PROPERTIES and ↵Elliott Hughes2015-01-121-184/+2
|\ \ \ | | |/ | |/| | | | | | | | | | | | | HAVE_SYSTEM_PROPERTY_SERVER." * commit 'ec556521e23f66ea52e41a7d9540b2dec31766c5': Remove HAVE_LIBC_SYSTEM_PROPERTIES and HAVE_SYSTEM_PROPERTY_SERVER.
| * | Remove HAVE_LIBC_SYSTEM_PROPERTIES and HAVE_SYSTEM_PROPERTY_SERVER.Elliott Hughes2015-01-121-184/+2
| | | | | | | | | | | | Change-Id: I3d92dbecebd2bb449a8c4332de684919a58847ad
* | | am fdb3da59: Merge "Use getmntent when accessing /proc/mounts."Yabin Cui2015-01-061-24/+9
|\ \ \ | |/ / | | | | | | | | | * commit 'fdb3da5953b70dc87a05d28c31cb0dc06b8181aa': Use getmntent when accessing /proc/mounts.
| * | Use getmntent when accessing /proc/mounts.Yabin Cui2015-01-051-24/+9
| | | | | | | | | | | | | | | Bug: 18887435 Change-Id: I6d7f95bbdb976428d4722bd640745e73c9839160
* | | am 0e74cfb6: Merge "Fix references to HAVE_PRCTL."Elliott Hughes2014-12-151-2/+2
|\ \ \ | |/ / | | | | | | | | | * commit '0e74cfb677319c0f006dcc81f74fb21956807d2a': Fix references to HAVE_PRCTL.
| * | Fix references to HAVE_PRCTL.Elliott Hughes2014-12-151-2/+2
| | | | | | | | | | | | Change-Id: I8343b398f2ce0d743487fdd086e67763c7dd67f1
* | | am fae953eb: Merge "HAVE_ANDROID_OS implies that you have <pthread.h> and ↵Elliott Hughes2014-12-151-1/+1
|\ \ \ | |/ / | | | | | | | | | | | | | | | <sched.h>." * commit 'fae953ebccfabfa500b3ebca93202063c8e3501d': HAVE_ANDROID_OS implies that you have <pthread.h> and <sched.h>.
| * | HAVE_ANDROID_OS implies that you have <pthread.h> and <sched.h>.Elliott Hughes2014-12-141-1/+1
| | | | | | | | | | | | Change-Id: Ica7940c00d1d5da9d50711fd138dd459deec9b6d
* | | am 374de72b: Merge "Libcutils: Remove unused variable"Andreas Gampe2014-11-251-1/+0
|\ \ \ | |/ / | | | | | | | | | * commit '374de72bbc218198e6a5f09ae4da853d02199b5c': Libcutils: Remove unused variable
| * | Libcutils: Remove unused variableAndreas Gampe2014-11-241-1/+0
| | | | | | | | | | | | | | | | | | For build-system CFLAGS clean-up, remove unused variable. Change-Id: Iaf6dd7b84ee4ef4734a48b37a4d0ca8287ca5fb5
* | | am eda16b98: Merge "Kill LOCAL_SOCKET_NAMESPACE."Elliott Hughes2014-11-222-4/+4
|\ \ \ | |/ / | | | | | | | | | * commit 'eda16b98dce3ef4c75b7b46c6acdab2b6970f54a': Kill LOCAL_SOCKET_NAMESPACE.