summaryrefslogtreecommitdiffstats
path: root/libcutils
Commit message (Collapse)AuthorAgeFilesLines
...
| * | libcutils: fix rw FS remount check issueHong-Mei Li2014-06-021-1/+1
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In some condition, some of FS would set disable_roll_forward option. In this case, when we do power off or reboot, the power down progress would stuck at android_reboot for 360 sec. The reason is, remount_ro_done function check key word "rw" to determine whether all the read-write FS has been remounted as read-only FS. Unfortunately, it takes disable_roll_forward as a rw flag too by mistake, so the check would always fail, until reach 360 sec threshold. The patch would match "rw," from mount options, this can avoid the issue successfully. Change-Id: I409f9dc88c9ee5cf049615ea9dcccaf195b6bc5a Signed-off-by: Hong-Mei Li <a21834@motorola.com>
* | am f7a7e3c3: am 6dfb039b: am 4a343436: Merge "Fix win32 undefined reference ↵Elliott Hughes2014-05-202-18/+9
|\ \ | |/ | | | | | | | | | | to `_socket_network_client_timeout\'." * commit 'f7a7e3c301fdf7d98d8bcabf6fefb0fcf5bbf90d': Fix win32 undefined reference to `_socket_network_client_timeout'.
| * Fix win32 undefined reference to `_socket_network_client_timeout'.Elliott Hughes2014-05-202-18/+9
| | | | | | | | Change-Id: I063213957b8452f4690da0f64872075f7c27b4cd
* | am 87d0f45b: am 2dea56e0: am 9e0a6248: Merge "Fix Windows ↵Elliott Hughes2014-05-201-1/+8
|\ \ | |/ | | | | | | | | | | socket_network_client.c build failures." * commit '87d0f45b3c30dff02bd92f542e5e9e64816f5315': Fix Windows socket_network_client.c build failures.
| * Fix Windows socket_network_client.c build failures.Elliott Hughes2014-05-191-1/+8
| | | | | | | | Change-Id: Ie67a2305ade02e078bf0edf54104c295b091b1b7
* | am b42f1413: am 0e71e3ab: am 9cae50b3: Merge "Bound the ADB connect time ↵Elliott Hughes2014-05-201-5/+72
|\ \ | |/ | | | | | | | | | | with a non-blocking connect" * commit 'b42f141315ae0929325335645d397db04a500c88': Bound the ADB connect time with a non-blocking connect
| * Bound the ADB connect time with a non-blocking connectKen Lierman2014-05-191-5/+72
| | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | am b18da571: am 1e6cd741: am 803fb62b: Merge "Remove unused LOCAL_LDLIBS."Ying Wang2014-05-081-2/+0
|\ \ | |/ | | | | | | * commit 'b18da571f90eebedd99fe5607a6b0d7ae4e91893': Remove unused LOCAL_LDLIBS.
| * Remove unused LOCAL_LDLIBS.Ying Wang2014-05-071-2/+0
| | | | | | | | Change-Id: I42aeb7668183e7a06207ee063f6eee4d37d66c6e
* | am b389440c: am 54c90a14: am 752115dd: Merge "Add Silvermont architecture ↵Elliott Hughes2014-05-051-2/+9
|\ \ | |/ | | | | | | | | | | cache sizes" * commit 'b389440c8bdc06fc6d3fdaad6acb8f9c124e40a7': Add Silvermont architecture cache sizes
| * Merge "Add Silvermont architecture cache sizes"Elliott Hughes2014-05-051-2/+9
| |\
| | * Add Silvermont architecture cache sizesHenrik Smiding2014-04-181-2/+9
| | | | | | | | | | | | | | | | | | | | | Adds Silvermont specific cache sizes for memset16/32 SSE optimization. Change-Id: Ib5ea086d57544e74ac384ee1ef516b8511392f70 Signed-off-by: Henrik Smiding <henrik.smiding@intel.com>
* | | am 027e4e77: am 74088995: am f2c0f328: Merge "libcutils: win_sdk build issues"Mark Salyzyn2014-05-053-5/+14
|\ \ \ | |/ / | | | | | | | | | * commit '027e4e77c26652948f43ac07ca8a738c469d39f0': libcutils: win_sdk build issues
| * | libcutils: win_sdk build issuesMark Salyzyn2014-05-053-5/+14
| | | | | | | | | | | | Change-Id: Ic431166f686aebfd0ee00ad3224b95237ff7a0de
* | | am b3eefcaa: am ce98dc70: am 1e10b661: Merge "libcutils: Mac build pulls in ↵Mark Salyzyn2014-05-021-0/+2
|\ \ \ | |/ / | | | | | | | | | | | | | | | __unused from sys/cdefs.h" * commit 'b3eefcaa934986f72a3daddf6ad86e276d14d476': libcutils: Mac build pulls in __unused from sys/cdefs.h
| * | libcutils: Mac build pulls in __unused from sys/cdefs.hMark Salyzyn2014-05-021-0/+2
| | | | | | | | | Change-Id: I2da8a52e07cef0b749f7e60709536e98bd96660e
* | | am a0a461d3: am 82e1b89f: am a32e01d2: Merge "libcutils: turn on -Werror"Mark Salyzyn2014-05-0218-103/+96
|\ \ \ | |/ / | | | | | | | | | * commit 'a0a461d3b7d85484c10db64f078427a5be3da189': libcutils: turn on -Werror
| * | libcutils: turn on -WerrorMark Salyzyn2014-05-0118-103/+96
| | | | | | | | | | | | | | | | | | - Deal with some -Wunused / -Wunused-variable issues Change-Id: I28c23fb213382a392ec30935749fb359e072d664
* | | am 29941ec8: am f8db4afb: am ab3d49b0: Merge "Use the si_code value bionic ↵Elliott Hughes2014-04-261-2/+3
|\ \ \ | |/ / | | | | | | | | | | | | | | | passes us." * commit '29941ec81705bdcad2b43f0059e1288304c523e8': Use the si_code value bionic passes us.
| * | Use the si_code value bionic passes us.Elliott Hughes2014-04-251-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Fix build problems caused by commit:Ruchi Kandoi2014-04-241-1/+1
| | | | | | | | | | | | | | | | | | | | | 422852ef5c0c2b0b5e031f80f480486df3d185a0 for non-linux hosts. Change-Id: I00b9c99b9d9d072f19549b3a9970a27e75cd49b7 Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
* | | Set timer slack value according to thread foreground/background state.Ruchi Kandoi2014-04-231-0/+6
| | | | | | | | | | | | | | | Change-Id: Ia998f349129acf4602b767d1ff94839607fdbdbd Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
* | | libcutils: Fix warnings in properties.c when verbose logging is enabledIgor Murashkin2014-04-152-4/+6
| | | | | | | | | | | | Change-Id: I07c5eb59b9395734ad3fc25eba753564c0f096a0
* | | cutils: Add property_get_bool, _get_int32, _get_int64Igor Murashkin2014-04-113-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 Change-Id: Ifd42911f93e17da09e6ff1298e8875e02f3b6608
* | | am 4fe18615: am 56d57e88: am 5f130216: Merge "Handle errno properly to avoid ↵Elliott Hughes2014-04-042-13/+54
|\ \ \ | |/ / | | | | | | | | | | | | | | | corrupt str_parms" * commit '4fe186159386a75ce17ca0b7ba6ace4294187cb2': Handle errno properly to avoid corrupt str_parms
| * | Handle errno properly to avoid corrupt str_parmsJens Gulin2014-04-032-13/+54
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A normal sequence of calls is as follows: str_parms_create_str, str_parms_add_str, str_parms_destroy. In some cases the destroy caused double free. str_parms_add_str will clone the input and send it to hashmapPut for storage. If hashmapPut did not store the strings it will raise errno = ENOMEM and leave caller with ownership of the strings. In any of these cases it will be safe to destroy the str_parms. But what if it wasn't hashmapPut that said NOMEM? What if there was a stale NOMEM already before a successful hashmapPut? In that case the strings will be successfully added to the list (if new), but when str_parms_add_str sees the NOMEM it will free them anyway, leaving dangling pointers in the str_parms!! It is the responsibility of the caller to clear errno before any interesting call. This patch makes sure that str_parms_add_str reacts only on errno emmitted from hashmapPut. Change-Id: If87e4bcc482f09e1c66133d33517b152ebdac65f
* | Adding a handy predicate function (str_parms_has_key()Paul McLean2014-03-251-0/+4
|/ | | Change-Id: I1af5c260a1a820b65f0850ea9adb38b01fcb183c
* Merge "libcutils: 64-bit compile issues"Mark Salyzyn2014-03-071-9/+11
|\
| * libcutils: 64-bit compile issuesMark Salyzyn2014-03-071-9/+11
| | | | | | | | | | | | - Use inttypes.h to print uint64_t values. Change-Id: Ia10a3b67cadcce282563467a464ec07066cc2051
* | libcutils: add method to get klog levelAlex Ray2014-03-071-0/+4
|/ | | | Change-Id: I55e8311bae97703be26e57b415a8ab0a6d9b4361
* libcutils: Socket type might contain bitwise OR flagsPaul Kocialkowski2014-02-261-1/+3
| | | | | Signed-off-by: Paul Kocialkowski <contact@paulk.fr> Change-Id: Ia5c8f136793a989fc1d71c61292afe4e5cf169fa
* Merge "Remove dead code."Elliott Hughes2014-02-207-764/+0
|\
| * Remove dead code.Elliott Hughes2014-02-207-764/+0
| | | | | | | | | | | | | | We have benchmarking for memset in bionic itself, and a benchmarking framework for other native benchmarking. Change-Id: I241a288a96d3b2d37f3d51b04a519ac23f18a989
* | Enable building init with -Wall -Werror.Stephen Smalley2014-02-191-4/+10
|/ | | | | | | | Eliminates various warnings from SELinux-related code. Bug: 12587913 Change-Id: I28921f0ebd934324436609540d95ccef58552b64 Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
* libcutils: resolve warning in iosched_policy.cMark Salyzyn2014-01-271-3/+6
| | | | | | (cherry picked from commit 407038cd937391216d93f72d4d13db3803c5b452) Change-Id: I35b0d1eeba21cc1ed9645a5acfa180ed20797c56
* libcutils: bug str_parms.c:str_parms_get_float().Mark Salyzyn2014-01-271-4/+5
| | | | | | | | | | str_parms_get_float did not return the output into *val. Only output if returning with no error. Audit shows no internal users of this library function (cherry picked from commit 8e71ddeac00d0733c7fcc2965d69f07aa5c5d0a3) Change-Id: I14a3f08a098072a159dd93f85ead36b3f445816f
* libcutils: UNUSED argument warningsMark Salyzyn2014-01-273-3/+9
| | | | | | (cherry picked from commit ba02cd1e9bccee9b112ccbee06bc204381b5a215) Change-Id: Ie427d481298af8d911bb2b157ebba30954335354
* libcutils: Move list.c to inlines on list.hMark Salyzyn2014-01-272-38/+0
| | | | | | (cherry picked from commit 0ea3624b3ef2a6545df770d06338c4655386220d) Change-Id: I0572555a194d2560e74dfbf07abcec05e9a276a2
* system/core: remove $(KERNEL_HEADERS) from includesColin Cross2014-01-221-1/+1
| | | | | | | | The kernel headers are already in the include path, and manually adding them again will break on a multiarch build, where the kernel headers may be different for each arch. Change-Id: Ib13d96543f2c97b1b487a46e1748ceb2c5724169
* Init the abort_msg_address value.Christopher Ferris2014-01-101-0/+2
| | | | | | | When initiating a manual dump, the abort_msg_address parameter is random garbage. Initialize this value to 0. Change-Id: I9ba817ee6104f47cfcb2b746bfa6f02a259c86d7
* Merge commit '536dea9d61a032e64bbe584a97463c6638ead009' into HEADThe Android Open Source Project2013-11-2214-2718/+108
|\ | | | | | | Change-Id: I5c469a4b738629d99d721cad7ded02d6c35f56d5
| * am 45ddf184: am 9b8a929d: Merge "libcutils doesn\'t need to be looking at ↵Elliott Hughes2013-10-101-5/+0
| |\ | | | | | | | | | | | | | | | | | | bionic\'s privates." * commit '45ddf184960225862c6e178588034cce676683e3': libcutils doesn't need to be looking at bionic's privates.
| * \ am 5baecee3: am be18538d: Merge "Cleanup x86 flags and memset versions"Elliott Hughes2013-10-103-21/+2
| |\ \ | | | | | | | | | | | | | | | | * commit '5baecee3c6bf348b77b8785bcd8e35362a3507fb': Cleanup x86 flags and memset versions
| * \ \ am 1690a5a6: am aa62be65: Merge "Use SSE2 enhanced memset for capable x86 ↵Ying Wang2013-09-261-11/+15
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | processors" * commit '1690a5a6943d4e4b65d5e4dcd077702c2c8f40a0': Use SSE2 enhanced memset for capable x86 processors
| * \ \ \ am 0ee7d8c6: Fix Mac builds, for realz.Jeff Sharkey2013-09-202-2/+10
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | * commit '0ee7d8c68b57c02d02f707d6f71c731234d56eec': Fix Mac builds, for realz.
| | * | | | Fix Mac builds, for realz.Jeff Sharkey2013-09-202-2/+10
| | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I63e21b90e5b8a8f016dd04ceca4354793faa5e37
| * | | | | am 4481c325: Fix Mac builds.Jeff Sharkey2013-09-201-6/+2
| |\ \ \ \ \ | | |/ / / / | | | | | | | | | | | | | | | | | | * commit '4481c325b16d4a42fd0ebf4c8a2bb5bcc09daf5e': Fix Mac builds.
| | * | | | Fix Mac builds.Jeff Sharkey2013-09-201-6/+2
| | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I0eb029395a3afd2f93a7632d7d3d20d28c2ab189
| * | | | | am 44d6342c: Remove mkdir() side effect, add .nomedia, utils.Jeff Sharkey2013-09-201-0/+90
| |\ \ \ \ \ | | |/ / / / | | | | | | | | | | | | | | | | | | * commit '44d6342caa0db1f613809e9ba1ea8d9af0183b74': Remove mkdir() side effect, add .nomedia, utils.
| | * | | | Remove mkdir() side effect, add .nomedia, utils.Jeff Sharkey2013-09-201-0/+90
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before this change, FUSE lookup() would have the side effect of creating the directory on behalf of apps. This resulted in most directories being created just by Settings trying to measure disk space. Instead, we're switching to have vold do directory creation when an app doesn't have enough permissions. Create fs_mkdirs() utility to create all parent directories in a path as needed. Allow traversal (+x) into /storage directories. Fix FUSE derived permissions to be case insensitive. Mark well-known directories as .nomedia when created. Bug: 10577808, 10330221 Change-Id: I53114f2e63ffbe6de4ba6a72d94a232523231cad