summaryrefslogtreecommitdiffstats
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* Remove <cutils/tztime.h>.Elliott Hughes2014-07-241-24/+0
| | | | Change-Id: I043c6686361bda9e85b82408511bf241a42b9229
* Do not typedef char16_t if it is a keyword.Hans Boehm2014-07-161-1/+4
| | | | | | | Don't define char16_t on platforms where char16_t is a keyword, as C11 and C++11 define it to be. Change-Id: I6717bc2133c1363ecd85861f3869e1eabd2ce96a
* Add comment to discourage use of cutils/atomic.h.Hans Boehm2014-07-111-2/+33
| | | | Change-Id: Ib05c745158fdf5a11fd4697c3665a6370ffc04f5
* implement LOG_EVENT_STRINGNick Kralevich2014-07-012-1/+2
| | | | | | | | Implement LOG_EVENT_STRING, so that native code can create new event log entries. This is needed to support logging SELinux denials to the event log. Change-Id: I6a269a832bc2f5e5da6c9dbd169ed2f901b49166
* Rename __unused to __UNUSED for glibc support.Ian Rogers2014-06-271-6/+6
| | | | | | | | | Glibc declares unused fields as __unused and so a #define for __unused causes issues when we built against glibc on the host. Rename __unused to __UNUSED as a workaround. This fixed checkbuild for 64-bit host builds. Bug: 13751317 Change-Id: Ic2cd52518c16661497cc819cb3fd7f1fa5c6f0fb
* Remove android_atomic_swap from mips & mips64.Elliott Hughes2014-06-232-34/+0
| | | | | | | | Looks like this got left behind in mips by mistake, and 84c3e9923108122045d689f1d2412359ad5208eb carried this over to mips64. Clean up before it wastes any more time... Change-Id: I6aeaa6e68be81f94065589337e2f7d3483e6e43c
* Merge "[MIPS64] add atomic-mips64"Elliott Hughes2014-06-232-0/+253
|\
| * [MIPS64] add atomic-mips64Duane Sand2014-06-032-0/+253
| | | | | | | | | | | | Supplied by Broadcom. Change-Id: Ica8f4f6e713623e372a68e1dc11086ceb52516da
* | cutils: Add property_get_bool, _get_int32, _get_int64Igor Murashkin2014-06-201-0/+59
| | | | | | | | | | | | | | | | | | * 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
* | log: Fix warning with __USE_MINGW_ANSI_STDIODan Willemsen2014-06-121-0/+8
| | | | | | | | | | | | | | | | | | | | I haven't seen this warning in any AOSP code, but some of our code is using this header differently than the rest of the build system, and hits this warning-turned-error: error: "__USE_MINGW_ANSI_STDIO" is not defined [-Werror=undef] Change-Id: I3c5a91f107af8bf6078e06f2ce326c5466349b79
* | Make su 04750Nick Kralevich2014-06-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | Currently, /system/xbin/su is world executable. Prior to SELinux enforcement, anyone (including third party apps) could run su. The su code itself checks to see if the calling UID is root or shell. Rather than relying on enforcement within the su binary, modify the binary so it has group=shell, and remove world-execute permission. This helps avoid some annoying SELinux denial messages as third party apps call su on userdebug/eng builds. Change-Id: I61c9231bb7e201d14ee3a5b6fe81b3fa7b12599f
* | Merge "Add new AID shared by all apps in a profile"Robin Lee2014-06-041-0/+2
|\ \
| * | Add new AID shared by all apps in a profileRobin Lee2014-04-291-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Automatically assigned as a GID to all apps running under the same Android profile. Used for exposing to or sharing files with apps running in a specific profile. Analogous to AID_SHARED_GID only the sharing is between processes with the same userId rather than with the same appId. The name to be displayed for uids/gids with this AID is 'u*_everyone'. Change-Id: I46efb749f74cb86868c5609a0ce1a6aab2f9e9c9
* | | Merge "Use format(gnu_printf, ...) for windows build with ↵Andrew Hsieh2014-06-041-0/+8
|\ \ \ | |_|/ |/| | | | | __USE_MINGW_ANSI_STDIO"
| * | Use format(gnu_printf, ...) for windows build with __USE_MINGW_ANSI_STDIOAndrew Hsieh2014-05-091-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With __USE_MINGW_ANSI_STDIO mingw compiler uses its own replacement printf*/scanf* libraries instead of Microsoft's ones which aren't always C99 compatible. Declare "archetype" of attribute format to gnu_printf because the default "printf" in mingw follows MS standard. One result is that "%z" (a gnu-extension) is accepted w/o warning by mingw compiler Change-Id: I3e92f34e2a1e8d664b4f1f55d450f7c2790671f3
* | | Merge "Updated trace.h to recognize ATRACE_TAG_BIONIC."Elliott Hughes2014-05-281-1/+2
|\ \ \
| * | | Updated trace.h to recognize ATRACE_TAG_BIONIC.Brigid Smith2014-05-271-1/+2
| | | | | | | | | | | | | | | | | | | | Bug: 15116468 Change-Id: If8d4971505ffe5cbc193c6ad71618a5adb8192b6
* | | | Merge "system/window.h: add deprecation warnings"Mark Salyzyn2014-05-281-1/+18
|\ \ \ \
| * | | | system/window.h: add deprecation warningsMark Salyzyn2014-05-231-1/+18
| | | | | | | | | | | | | | | | | | | | Change-Id: I38de3d281f28e0750b4abb86f28509f98dfc7a72
* | | | | Add UID and directory for RELRO sharing support.Torne (Richard Coles)2014-05-271-0/+3
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Define a UID to be used by the process responsible for creating shared RELRO files for the WebView native library, and create a directory owned by that UID to use to store the files. Bug: 13005501 Change-Id: I5bbb1e1035405e5534b2681f554fe16f74e3da1a
* | | | include: cleanup for -Wsystem-headerMark Salyzyn2014-05-239-21/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - warnings as errors, or errors introduced when -Wsystem-header was experimentally introduced. Change-Id: Ia8f5b3c1c1096e191741223d52526aa48c7f1cc4
* | | | Merge "Fix list_for_each_safe macro"Colin Cross2014-05-221-3/+3
|\ \ \ \
| * | | | Fix list_for_each_safe macroThierry Escande2014-05-101-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The second macro parameter is named 'next' like listnode structure 'next' field. Since the precompiler will expand all 'next' occurrences in the macro definition with what is passed by the caller, it is not possible to call this macro with something else than 'next' as second parameter. This patch replaces the 'next' parameter with 'n' allowing use of a next node not named 'next'. Change-Id: I78c859caf8193f21fe0bedaeaa8342d6e89ad14b Signed-off-by: Thierry Escande <thierry.escande@linux.intel.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
* | | | | Merge "Add list_add_head to libcutils"Colin Cross2014-05-221-0/+8
|\ \ \ \ \
| * | | | | Add list_add_head to libcutilsSamuel Ortiz2014-05-131-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds a node to the head of the linked list. Change-Id: I03fc81f348c5c4fdab8680928b6e353413e4bc3c Signed-off-by: Samuel Ortiz <sameo@linux.intel.com> Signed-off-by: Yong Yao <yong.yao@intel.com>
* | | | | | Add missing headersDan Albert2014-05-211-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These headers are needed for pid_t and free when using libc++ headers (POSIX does not require that the symbols be exposed with the previous includes). Change-Id: Ia51a4fdfdbae7377130a43c401c2d8d241671d1e
* | | | | | Move netd_client into netd.Sreeram Ramachandran2014-05-211-29/+0
| |_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | (cherry picked from commit f1b21c5c735e9150c8f29bdb52db2f3eb3ffc469) Change-Id: Ie4b6b303225c93f2448a503d6ea9cebb552cbad5
* | | | | Bound the ADB connect time with a non-blocking connectKen Lierman2014-05-191-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | After a disconnect, the initial blocking connect takes a long time to return, while subsequent calls return quicks. Switch to a non-blocking connect to make the re-connect time more consistent and faster overall. Change-Id: I21d02b22a8eb9a457c2f1fa95eb17894d5612ccd Signed-off-by: Ken Lierman <ken.lierman@windriver.com> Reviewed-by: Gumbel, Matthew K <matthew.k.gumbel@intel.com> Reviewed-by: Jovanovic, Radivoje <radivoje.jovanovic@intel.com> Reviewed-by: Boie, Andrew P <andrew.p.boie@intel.com>
* | | | | Introduce netd_client, a dynamic library that talks to netd.Sreeram Ramachandran2014-05-141-0/+29
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This library is dynamically loaded and used by bionic, to replace selected standard socket syscalls with versions that talk to netd. Implement connect() by requesting that the socket be marked with the netId of the default network and then calling through to the actual syscall. There are two escape hatches: + If the fwmark server is unavailable, it isn't an error; we proceed with the syscall. This might help at boot time (when the server isn't ready yet) and if we get rid of the fwmarkd socket entirely in future platform versions. + If the ANDROID_NO_USE_FWMARK_CLIENT environment variable is set, we don't attempt to use the fwmark server (even if it's available). This allows apps to sidestep unforseen issues in production at runtime. (cherry picked from commit 0581cb455ef924f128a5c6d46bc70868b5099eec) Change-Id: Ib6198e19dbc306521a26fcecfdf6e8424d163fc9
* | | | Fix ucontext_t forward declare for mac.Christopher Ferris2014-05-091-0/+5
| | | | | | | | | | | | | | | | Change-Id: I30470f5cc25553dee25d4858f64ec5af13aa20c9
* | | | Fix mac build.Christopher Ferris2014-05-091-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Forward declare ucontext_t so that it's not necessary for ucontext.h to be included in the global header. Change-Id: Ic13677dd572ab1acd927f0a17b284f9b417a642f
* | | | Merge "Rewrite unwind thread handling."Christopher Ferris2014-05-091-1/+2
|\ \ \ \ | |/ / / |/| | |
| * | | Rewrite unwind thread handling.Christopher Ferris2014-05-081-1/+2
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This new version doesn't require any specialized thread implementation, it uses the Current implementation to do its job. In addition, it runs much faster when multiple threads are trying to unwind at the same time since the global signal lock is held for only a small amount of time. Even running through the threads one at a time should be faster since it no longer requires two passes through the unwound stacks. The new code now allows multiple simultaneous unwinds of the same thread. Finally, add the ability to unwind from a ucontext_t passed in. This functionality doesn't work for remote unwinds yet. Change-Id: I4d181d7ca5ffd2acfd1686e668e6d21e36b425cb
* | | Remove the dead corkscrew header files too.Elliott Hughes2014-05-075-424/+0
|/ / | | | | | | Change-Id: I0dd5cf3966994db19d98f60805211ed39099465a
* | logd: 64-bit compile issueMark Salyzyn2014-05-021-0/+3
| | | | | | | | | | | | | | - ULONG_MAX is used against an uint32 - Add tv_sec_max and tv_nsec_max constants to log_time Change-Id: Ic86cd7b0680868ad0536198b71a34cb19134fc22
* | Use the si_code value bionic passes us.Elliott Hughes2014-04-251-0/+1
|/ | | | | | | | | Bionic needs to re-raise various signals, which means the si_code debuggerd sees has been clobbered. If bionic sends us the original si_code value, we can use that instead of the one we see when the ptrace the crashed process' siginfo. Change-Id: If116a6bc667d55a6fb39b74f96673292af4e4c8c
* audio: fix audio_is_bluetooth_sco_device()Eric Laurent2014-04-241-6/+10
| | | | | Bug: 14268964 Change-Id: Ia2a185c5e0939930c5114209651a1e0db6c36ef3
* Improve liblog's fatal logging.Elliott Hughes2014-04-241-3/+3
| | | | | | | This makes LOG_ALWAYS_FATAL and LOG_ALWAYS_FATAL_IF as good as regular assert(3). Change-Id: I0666684d30cae7baf23c64b33d35c1e43f81acf0
* Merge "logd: liblog: logcat: debuggerd: Add LOG_ID_CRASH"Mark Salyzyn2014-04-171-0/+1
|\
| * logd: liblog: logcat: debuggerd: Add LOG_ID_CRASHMark Salyzyn2014-04-161-0/+1
| | | | | | | | Change-Id: Iea453764a1a4fc1661f461f10c641c30150e4d20
* | logd: libsysutils: logd startup outside init environmentMark Salyzyn2014-04-171-0/+1
|/ | | | Change-Id: I3426b6c3eebdd0c8258e966dcaaaa2825d7a23d1
* Include 64bit valgrind in the android_filesystem_config.Narayan Kamath2014-04-121-0/+1
| | | | | | Required so that we set the exectuable bit correctly. Change-Id: If59bd0ff47d2b4b2b8f92a1c007b4ba414ea1876
* Merge "logd: liblog: logcat: enable prune features for user"Mark Salyzyn2014-04-091-4/+0
|\
| * logd: liblog: logcat: enable prune features for userMark Salyzyn2014-04-021-4/+0
| | | | | | | | | | | | - Enable whitelist, blacklist and logsize tuneables for user Change-Id: Id0c283844c71c5263a8cfbebf2e550f7ac415858
* | Add guards to prevent typedefs when C++11 is available.Tim Murray2014-04-071-0/+3
| | | | | | | | | | | | char32_t and char16_t are both defined in C++11. Change-Id: I44fe8f4f05f230c18a1b77fa21b6a40c8f8ecc2d
* | Create an UnwindMapLocal object.Christopher Ferris2014-04-031-1/+1
|/ | | | | | | | | | | | | The way libunwind handles local unwinds is different from remote unwinds, so create a new map object to handle the differences. Add new test to verify the map data is being generated correctly. Add new tests to check for leaks. Refactor the BACK_LOGW code into a single header file. Change-Id: I01f3cbfc4b927646174ea1b614fa25d23b9b3427
* cutils: trace 64-bit compile issuesMark Salyzyn2014-03-201-9/+10
| | | | | | | - switch format to PRId64 for int64_t - switch format to PRId32 for int32_t Change-Id: I1e66db06810000936d584ed49234550abd96cdff
* logd: liblog: logcat: Arbitrary time to tailMark Salyzyn2014-03-142-5/+31
| | | | Change-Id: I10e8d92c933e31ee11e78d2d1114261a30c4be0e
* logd: liblog: logcat: Add LogWhiteBlackListMark Salyzyn2014-03-131-2/+11
| | | | | | | | | | | | | | | - liblog android_logger_get_log_size and android_logger_get_readable_size adjusted to return long instead of int because of -G flag extending range NB: ifdef'd only for userdebug and eng builds - liblog Add android_logger_[sg]et_prune_list and android_logger_set_log_size - logcat Add -P, -p and -G flags - logd Add LogWhiteBlackList and configurable log size (cherry picked from commit 18a5432158ad43b8faefe4950b30e760200ce0b4) Change-Id: I1572338c1b34bd968ad7867857ef708156ec3b6a
* logd: liblog: logcat: Add StatisticsMark Salyzyn2014-03-131-0/+3
| | | | | | | | | | | - logd add statistical collection and formatting - liblog add android_logger_get_statistics call - logcat add -S flag - logcat add -b all (cherry picked from commit 51a29c8dc445e4fb89860561933e54a231e6ffb4) Change-Id: I521753b1969ecd4590c956aeeb1557d101059d67