Dan Albert
447fe1c23b
Merge "Fix mbsrtowcs(3) src param for finished string."
2014-07-30 11:26:00 +00:00
Dan Albert
b6cc8e00cd
Fix mbsrtowcs(3) src param for finished string.
...
A mistake I made while cleaning this up the first time through.
mbstrtowcs(3) sets the src param to null if it finishes the string.
Change-Id: I6263646e25d9537043b7025fd1dd6ae195f365e2
2014-07-31 11:31:03 -07:00
Christopher Ferris
c701e5b335
Use libunwindbacktrace for debug malloc code.
...
Create a method of disabling the debug allocation code paths so that
it's possible to use the libunwindbacktrace library without any
modifications.
Use this path to create and destroy the maps for the process. It's not
stricly necessary in the init code since the symbols are not modified
until after the initialize calls.
Also, remove the debug_XXX source files that doesn't need to be in libc.so.
Fix the maps reading code since it was completely broken for 64 bit.
Bug: 16408686
(cherry picked from commit 861c0ef37bcfcae56d88572cb01c18bcfe1faded)
Change-Id: I04445f0cf9a1e85172b64d57df92eb7939ce2332
2014-07-29 19:30:09 -07:00
Christopher Ferris
880ac3255a
am 4cc7dba9: am 4ad5066e: Merge "Use libunwindbacktrace for debug malloc code."
...
* commit '4cc7dba978de80fe8dfd0424a36719e37991cfbd':
Use libunwindbacktrace for debug malloc code.
2014-07-30 02:28:03 +00:00
Christopher Ferris
4cc7dba978
am 4ad5066e: Merge "Use libunwindbacktrace for debug malloc code."
...
* commit '4ad5066e1de326e5db46df18eeade9a88bc11bec':
Use libunwindbacktrace for debug malloc code.
2014-07-30 02:23:58 +00:00
Elliott Hughes
e0414f6f04
am eb0642a2: am 17886971: Merge "Remove declarations for things that don\'t exist."
...
* commit 'eb0642a2b98d052adf10d9079e51f23b5b49a45a':
Remove declarations for things that don't exist.
2014-07-30 01:23:39 +00:00
Elliott Hughes
eb0642a2b9
am 17886971: Merge "Remove declarations for things that don\'t exist."
...
* commit '17886971ffc758270bb3da3fecec86fa5b2bb3c3':
Remove declarations for things that don't exist.
2014-07-30 01:12:55 +00:00
Elliott Hughes
1242f7eb67
Remove declarations for things that don't exist.
...
The <grp.h> ones prevent gdb from building out of the box.
(cherry picked from commit f4c1a36a4500bc7f12e3065be3da4e8669ee011d)
Change-Id: I6958f2f1731de8c03df20b383decd414b78100aa
2014-07-29 17:48:01 -07:00
Dmitriy Ivanov
c7c4c60628
am 60abfd28: am 2b591b37: Merge "Fix dlsym(3) to do breadth first search."
...
* commit '60abfd28ca734e500e4a51ee46b2fd7fa3ce7b8d':
Fix dlsym(3) to do breadth first search.
2014-07-29 22:13:07 +00:00
Dmitriy Ivanov
60abfd28ca
am 2b591b37: Merge "Fix dlsym(3) to do breadth first search."
...
* commit '2b591b37420b4186bda7fa823b9058d4b19565f6':
Fix dlsym(3) to do breadth first search.
2014-07-29 22:09:23 +00:00
Dmitriy Ivanov
422106a24d
Fix dlsym(3) to do breadth first search.
...
dlsym(3) with handle != RTLD_DEFAULT|RTLD_NEXT performs
breadth first search through the dependency tree.
Bug: 16653281
(cherry picked from commit aa0f2bdbc22d4b7aec5d3f8f5f01eaeaa13414c2)
Change-Id: I0ba8c2034ab341f8a279cdb4e2e7e47f1aef7897
2014-07-29 15:02:15 -07:00
Elliott Hughes
c7706a02ad
Merge "[MIPSR6] Use C-coded string ops on mips32r6/mips64r6"
2014-07-29 21:36:05 +00:00
Dmitriy Ivanov
2b591b3742
Merge "Fix dlsym(3) to do breadth first search."
2014-07-29 21:36:05 +00:00
Elliott Hughes
f6aa17798c
Merge "Revert "Added a bionic systrace class and tracing to pthread_mutex.cpp."" into lmp-dev
2014-07-29 21:36:00 +00:00
Elliott Hughes
26c1420fbb
Revert "Added a bionic systrace class and tracing to pthread_mutex.cpp."
...
This reverts commit a09fe118b1a5eb876ddaa2620965c4a8fb8b007c.
Change-Id: Ia2eb07b57a25dc2ac76fecc0925efb2bed998156
2014-07-29 23:52:29 +00:00
Dan Albert
e872c9239a
Merge "en_US.UTF-8 is also supported." into lmp-dev
2014-07-29 21:36:00 +00:00
Dmitriy Ivanov
aa0f2bdbc2
Fix dlsym(3) to do breadth first search.
...
dlsym(3) with handle != RTLD_DEFAULT|RTLD_NEXT performs
breadth first search through the dependency tree.
Bug: 16653281
Change-Id: I017a6975d1a62abb0218a7eb59ae4deba458e324
2014-07-29 14:35:13 -07:00
Dan Albert
7149362d33
en_US.UTF-8 is also supported.
...
Change-Id: Ic35fad3596dc5e24ee8ae35543a274a471f27bb2
(cherry picked from commit 1abb8bd21d64c2bd21258469b688483f821974d5)
2014-07-29 14:20:47 -07:00
Dan Albert
d0a80a927f
There is no _MIN for unsigned types.
...
Change-Id: I49c38e51197b750210bdbf28c9cf6db30452a206
(cherry picked from commit ee7f1b5946dffa3aa95394b8cf6f15527f1068eb)
2014-07-29 14:20:37 -07:00
Dan Albert
4e58609587
Fix mbsrtowcs(3)'s handling of len parameter.
...
The len parameter is a _maximum_ length. The previous code was treating
it as an exact length, causing the following typical call to fail:
mbsrtowcs(out, &in, sizeof(out), state); // sizeof(out) > strlen(in)
Change-Id: I48e474fd54ea5f122bc168a4d74bfe08704f28cc
(cherry picked from commit 6b55ba54eff4657cffe053b71e1c9cce2944a8a9)
2014-07-29 14:20:31 -07:00
Dan Albert
1dd1b88bde
__libc_fatal should print a newline to stderr.
...
Change-Id: I088dc880d7488a65beac8cda95f530f3db41f112
(cherry picked from commit 97e31dedf056b07bcfcd46c49b60bf0798c60843)
2014-07-29 14:20:15 -07:00
Elliott Hughes
4d72c3b2b3
am 0950f263: am 2ea0a58e: Fix linkage of grantpt(3).
...
* commit '0950f2633524dd97413b019858a0f3820307d2bb':
Fix linkage of grantpt(3).
2014-07-29 18:09:11 +00:00
Elliott Hughes
0950f26335
am 2ea0a58e: Fix linkage of grantpt(3).
...
* commit '2ea0a58e01c1ed6db1da9dd0314ee053f5a32026':
Fix linkage of grantpt(3).
2014-07-29 18:01:25 +00:00
Elliott Hughes
3b3e9d67d5
am e9c1d673: am a7dc7600: Merge "Fix linkage of grantpt(3)."
...
* commit 'e9c1d673759a45df3aff144bfb51a4ac637427ec':
Fix linkage of grantpt(3).
2014-07-29 17:56:21 +00:00
Elliott Hughes
e9c1d67375
am a7dc7600: Merge "Fix linkage of grantpt(3)."
...
* commit 'a7dc7600fe1be1f3fd61856b407bb7065307e711':
Fix linkage of grantpt(3).
2014-07-29 17:52:05 +00:00
Elliott Hughes
2ea0a58e01
Fix linkage of grantpt(3).
...
Also clean up the implementation of all the pty functions, add tests,
and fix the stub implementations of ttyname(3) and ttyname_r(3).
Bug: https://code.google.com/p/android/issues/detail?id=58888
(cherry picked from commit 4916706cfe590eb06c9b5bd4bd402ce056034d51)
Change-Id: I5cb7a1c17b156456e4c4818e65f256eb8d045424
2014-07-29 10:48:34 -07:00
Brigid Smith
e5e62aa0a5
am 674e245c: am a09fe118: Added a bionic systrace class and tracing to pthread_mutex.cpp.
...
* commit '674e245cd42a22c33fa31dd9df1777fb76c5891d':
Added a bionic systrace class and tracing to pthread_mutex.cpp.
2014-07-29 17:32:36 +00:00
Brigid Smith
674e245cd4
am a09fe118: Added a bionic systrace class and tracing to pthread_mutex.cpp.
...
* commit 'a09fe118b1a5eb876ddaa2620965c4a8fb8b007c':
Added a bionic systrace class and tracing to pthread_mutex.cpp.
2014-07-29 17:25:00 +00:00
Elliott Hughes
45e3d3e96c
am 1b369540: am 52f8271f: Merge "Added a bionic systrace class and tracing to pthread_mutex.cpp."
...
* commit '1b36954017e3f4761627cf96b42fbe33bf3c280c':
Added a bionic systrace class and tracing to pthread_mutex.cpp.
2014-07-29 16:50:19 +00:00
Elliott Hughes
1b36954017
am 52f8271f: Merge "Added a bionic systrace class and tracing to pthread_mutex.cpp."
...
* commit '52f8271fa9fd3f84849465f3c978580fbed866c1':
Added a bionic systrace class and tracing to pthread_mutex.cpp.
2014-07-29 16:47:01 +00:00
Brigid Smith
a09fe118b1
Added a bionic systrace class and tracing to pthread_mutex.cpp.
...
bionic_systrace.h contains an implementation of tracing that
can be used with systrace.py and its associated viewer. pthread_mutex
now uses this tracing to track pthread_mutex contention, which can be
enabled by using the "bionic" command line option to systrace.
Bug: 15116468
(cherry picked from commit a406ee6d5f616192e9a13afad6ac6a9969814fc1)
Change-Id: Ic98fc303689fe9384974150d0d258c50806a55e4
2014-07-29 09:41:44 -07:00
Dmitriy Ivanov
a0abc0daa7
am 46330ed4: am 24dcda0f: Merge "Fix mips/mips64 build"
...
* commit '46330ed4104a59a935d89d69bec66e1b908f1c08':
Fix mips/mips64 build
2014-07-29 14:27:16 +00:00
Dmitriy Ivanov
46330ed410
am 24dcda0f: Merge "Fix mips/mips64 build"
...
* commit '24dcda0f4febe7d257b31c68887183c81d1b8791':
Fix mips/mips64 build
2014-07-29 14:23:25 +00:00
Dmitriy Ivanov
72f8f35502
am fed22f73: am 1a5db57d: Fix mips/mips64 build
...
* commit 'fed22f73c1d83e07cf0781c23b2032131902c229':
Fix mips/mips64 build
2014-07-29 13:33:19 +00:00
Dmitriy Ivanov
fed22f73c1
am 1a5db57d: Fix mips/mips64 build
...
* commit '1a5db57d5a0f633a83f20e667a4698757a63413e':
Fix mips/mips64 build
2014-07-29 13:15:21 +00:00
Dmitriy Ivanov
1a5db57d5a
Fix mips/mips64 build
...
Add _start entry label to mips/mips64 linker begin.S
(cherry picked from commit ed485347189e3dfe04a38207c416bdd8c8fac4bc)
Change-Id: Id1b6bb3258f3bfbe3b7ec9491a977f56e44bed14
2014-07-28 22:00:01 -07:00
Dmitriy Ivanov
793ef05a52
am 4139020d: am 5febb0da: Fix \'adb shell /system/bin/linker\' crash
...
* commit '4139020da37574e0ed8ac5bb18a3ea6d58170be1':
Fix 'adb shell /system/bin/linker' crash
2014-07-29 01:02:37 +00:00
Dmitriy Ivanov
4139020da3
am 5febb0da: Fix \'adb shell /system/bin/linker\' crash
...
* commit '5febb0da6f6d7106c403e6809917d89d6ee081ad':
Fix 'adb shell /system/bin/linker' crash
2014-07-29 00:56:21 +00:00
Elliott Hughes
e56a2dbdbc
am 3164805b: am 2be1be47: Revert "Add a hack to <stdlib.h> until we can fix libvpx."
...
* commit '3164805b2e075a515d99fd7e88bfbc70e1fada4c':
Revert "Add a hack to <stdlib.h> until we can fix libvpx."
2014-07-28 23:55:02 +00:00
Dmitriy Ivanov
5febb0da6f
Fix 'adb shell /system/bin/linker' crash
...
Bug: https://code.google.com/p/android/issues/detail?id=63174
(cherry picked from commit efe13832dccf2cec2898b89ca4418a6aac29d3eb)
Change-Id: I43629e4a14870f67abc2dd5ff2e3040c47b2168d
2014-07-28 16:50:44 -07:00
Elliott Hughes
3164805b2e
am 2be1be47: Revert "Add a hack to <stdlib.h> until we can fix libvpx."
...
* commit '2be1be47aa9b63568fe6ce1e0a4029b37d90764d':
Revert "Add a hack to <stdlib.h> until we can fix libvpx."
2014-07-28 23:50:42 +00:00
Dmitriy Ivanov
f98721d5b4
am 18358f0e: am 337c0cef: Merge "Fix \'adb shell /system/bin/linker\' crash"
...
* commit '18358f0e67d56e71ef098384b45767c1f4651f6d':
Fix 'adb shell /system/bin/linker' crash
2014-07-28 23:48:51 +00:00
Dmitriy Ivanov
18358f0e67
am 337c0cef: Merge "Fix \'adb shell /system/bin/linker\' crash"
...
* commit '337c0cefdc4667143a1f4f2c30113b452c5d188f':
Fix 'adb shell /system/bin/linker' crash
2014-07-28 23:45:07 +00:00
Elliott Hughes
7c963f4840
am 63b5e167: am 78e4f8fe: syscall(3)\'s return type should be long.
...
* commit '63b5e167ad9f76b7f4917deceac840f929c72934':
syscall(3)'s return type should be long.
2014-07-28 23:36:02 +00:00
Elliott Hughes
52ed4cdfb9
am a032277b: am 8a2ecf86: Merge "syscall(3)\'s return type should be long."
...
* commit 'a032277bb40c0327ba5b6c7d7a8c1cb196acaf89':
syscall(3)'s return type should be long.
2014-07-28 23:35:17 +00:00
Elliott Hughes
63b5e167ad
am 78e4f8fe: syscall(3)\'s return type should be long.
...
* commit '78e4f8fed2c162f8ada55180e48487ef2180cf93':
syscall(3)'s return type should be long.
2014-07-28 23:21:28 +00:00
Elliott Hughes
2be1be47aa
Revert "Add a hack to <stdlib.h> until we can fix libvpx."
...
This reverts commit 3fb5097a7eec40404760c304b36c8b657b374cab.
libvpx is now fixed.
Bug: 15598056
Change-Id: Icca974e667f92206505f484bd291726eb0150f68
2014-07-28 16:16:38 -07:00
Elliott Hughes
a032277bb4
am 8a2ecf86: Merge "syscall(3)\'s return type should be long."
...
* commit '8a2ecf868feebaa39caddc6cdf9500b5385651f0':
syscall(3)'s return type should be long.
2014-07-28 22:47:57 +00:00
Christopher Ferris
4ad5066e1d
Merge "Use libunwindbacktrace for debug malloc code."
2014-07-28 22:45:44 +00:00
Christopher Ferris
861c0ef37b
Use libunwindbacktrace for debug malloc code.
...
Create a method of disabling the debug allocation code paths so that
it's possible to use the libunwindbacktrace library without any
modifications.
Use this path to create and destroy the maps for the process. It's not
stricly necessary in the init code since the symbols are not modified
until after the initialize calls.
Also, remove the debug_XXX source files that doesn't need to be in libc.so.
Fix the maps reading code since it was completely broken for 64 bit.
Bug: 16408686
Change-Id: I6b02ef6ce26fdb7a59ad1029e7cbba9accceb704
2014-07-29 18:10:00 -07:00