Dan Albert
0c4ad535dc
am 36bacd23: Merge "Proper MB_CUR_MAX."
...
* commit '36bacd237de931c48714d1a8aa4aa9522283e407':
Proper MB_CUR_MAX.
2014-07-31 00:22:22 +00:00
Dan Albert
36bacd237d
Merge "Proper MB_CUR_MAX."
2014-07-31 00:14:55 +00:00
Dan Albert
1aec7c1a35
Proper MB_CUR_MAX.
...
Previously this was hard coded to 4. This is only the case for UTF-8
locales.
As a side effect, this properly reports C.UTF-8 as the default locale
instead of C.
Change-Id: I7c73cc8fe6ffac61d211cd5f75287e36de06f4fc
2014-07-30 17:09:46 -07:00
Christopher Ferris
592cfa90c3
am 61833de6: Fix memchr with a zero length.
...
* commit '61833de613990f2fdaf357bb3d854d72a4980890':
Fix memchr with a zero length.
2014-07-30 23:46:26 +00:00
Christopher Ferris
30ac3d58ea
am 0f7ed163: Merge "Fix memchr with a zero length."
...
* commit '0f7ed163cf6c1fe6d71a1d7e5fb6d0989213be85':
Fix memchr with a zero length.
2014-07-30 23:33:45 +00:00
Christopher Ferris
61833de613
Fix memchr with a zero length.
...
The memchr implementation for 64 bit fails if these conditions occur:
- The buffer is 32 byte aligned.
- The buffer contains the character in the first byte.
- The count sent in is zero.
The function should return NULL, but it's not.
Bug: 16676625
(cherry picked from commit e03e1eac0b7682884b6628df1305d34299680cb4)
Change-Id: Ie4cca2c445127a0936ee2b96651a8e7204fbaffd
2014-07-30 16:33:11 -07:00
Elliott Hughes
63b6416f33
am 4f76469e: Implement <sys/fsuid.h>.
...
* commit '4f76469e88e255bab1f8264e9ff8b95bff84365f':
Implement <sys/fsuid.h>.
2014-07-30 23:27:43 +00:00
Elliott Hughes
897aca77ee
am 83b9826e: Merge "Implement <sys/fsuid.h>."
...
* commit '83b9826e683db30e9b359737253b87ef8b3ba3df':
Implement <sys/fsuid.h>.
2014-07-30 23:25:22 +00:00
Elliott Hughes
4f76469e88
Implement <sys/fsuid.h>.
...
(cherry picked from commit 79310994d2b3826a10598f7e7795acb5edb42a20)
Change-Id: I47688273691e5c95e5e9302eba254ccaaaad40ca
2014-07-30 16:18:03 -07:00
Duane Sand
66fa2c87d6
am cd541952: [MIPSR6] Use C-coded string ops on mips32r6/mips64r6
...
* commit 'cd54195262ac5531fff892255849925ebbbd303e':
[MIPSR6] Use C-coded string ops on mips32r6/mips64r6
2014-07-30 22:28:55 +00:00
Elliott Hughes
abd2844578
am c7706a02: Merge "[MIPSR6] Use C-coded string ops on mips32r6/mips64r6"
...
* commit 'c7706a02ad90ab73f3a056040d2c4a3464ab1ab1':
[MIPSR6] Use C-coded string ops on mips32r6/mips64r6
2014-07-30 22:21:57 +00:00
Duane Sand
cd54195262
[MIPSR6] Use C-coded string ops on mips32r6/mips64r6
...
The existing assembler code uses deprecated lwl/lwr/swl/swr ops.
Replacing those with misalignment-forgiving lw/sw ops may
involve careful performance tuning.
(cherry picked from commit bc5a3ec6df66d2456667ddf1d6dfaf623552169d)
Change-Id: I35167da27f2d406339b7f24b4a1fb270c87bc12e
2014-07-30 15:17:12 -07:00
Elliott Hughes
84093b174e
am 11bf8a30: Only wipe TLS for user-supplied stacks.
...
* commit '11bf8a3025a7b5aee891c521255a7db1860e5b12':
Only wipe TLS for user-supplied stacks.
2014-07-30 22:06:54 +00:00
Elliott Hughes
594a527518
am 18a1bbe6: Merge "Only wipe TLS for user-supplied stacks."
...
* commit '18a1bbe6e18770694d489f2e140e779dc59fde86':
Only wipe TLS for user-supplied stacks.
2014-07-30 22:02:31 +00:00
Elliott Hughes
11bf8a3025
Only wipe TLS for user-supplied stacks.
...
Bug: 16667988
(cherry picked from commit 40a521744825b6060960c296d5fb3da4c6593d94)
Change-Id: I7550fa47b76e643323aa3e2a53529e393c829e47
2014-07-30 14:56:34 -07:00
Christopher Ferris
0f7ed163cf
Merge "Fix memchr with a zero length."
2014-07-30 20:40:05 +00:00
Christopher Ferris
e03e1eac0b
Fix memchr with a zero length.
...
The memchr implementation for 64 bit fails if these conditions occur:
- The buffer is 32 byte aligned.
- The buffer contains the character in the first byte.
- The count sent in is zero.
The function should return NULL, but it's not.
Bug: 16676625
Change-Id: Iab33cc7a8b79920350c72f054dff0e0a3cde69ce
2014-07-30 16:06:56 -07:00
Elliott Hughes
18a1bbe6e1
Merge "Only wipe TLS for user-supplied stacks."
2014-07-30 19:31:16 +00:00
Elliott Hughes
40a5217448
Only wipe TLS for user-supplied stacks.
...
Bug: 16667988
Change-Id: Id180ab2bc6713e1612386120a306db5bbf1d6046
2014-07-30 14:49:40 -07:00
Christopher Ferris
0770ed0680
am c701e5b3: Use libunwindbacktrace for debug malloc code.
...
* commit 'c701e5b3357b6484572d46f29c5d1e51063dfcbb':
Use libunwindbacktrace for debug malloc code.
2014-07-30 16:42:36 +00:00
Elliott Hughes
a99a69a640
am 1242f7eb: Remove declarations for things that don\'t exist.
...
* commit '1242f7eb67c678922b55e2077d9cf2d5cdc85b15':
Remove declarations for things that don't exist.
2014-07-30 16:41:43 +00:00
Elliott Hughes
4d17c6c39f
am f6aa1779: Merge "Revert "Added a bionic systrace class and tracing to pthread_mutex.cpp."" into lmp-dev
...
* commit 'f6aa17798c5b0015d002b982c3684595b817d2d0':
Revert "Added a bionic systrace class and tracing to pthread_mutex.cpp."
2014-07-30 16:41:43 +00:00
Dan Albert
5fce71b56e
am e872c923: Merge "en_US.UTF-8 is also supported." into lmp-dev
...
* commit 'e872c9239af180df6bf4b28a623241c6b1c7f1c3':
en_US.UTF-8 is also supported.
2014-07-30 14:15:47 +00:00
Dan Albert
d735a0723a
am 9379ce69: Merge "There is no _MIN for unsigned types." into lmp-dev
...
* commit '9379ce694d8a6bd70341eee003e23e96e21352e5':
There is no _MIN for unsigned types.
2014-07-30 14:15:46 +00:00
Dan Albert
bb0c053105
am a1a813da: Merge "Fix mbsrtowcs(3)\'s handling of len parameter." into lmp-dev
...
* commit 'a1a813da8184153606bfcf8ffcce557eda09a5ba':
Fix mbsrtowcs(3)'s handling of len parameter.
2014-07-30 14:15:46 +00:00
Dan Albert
ff20ad985e
am 8db0ce70: Merge "__libc_fatal should print a newline to stderr." into lmp-dev
...
* commit '8db0ce7050b0f6ee3874456394a1d7cb0d336c3a':
__libc_fatal should print a newline to stderr.
2014-07-30 14:15:45 +00:00
Dmitriy Ivanov
2d36173271
am 422106a2: Fix dlsym(3) to do breadth first search.
...
* commit '422106a24d620af4be58e8d92a2e9b7b6167b72d':
Fix dlsym(3) to do breadth first search.
2014-07-30 14:15:44 +00:00
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
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
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
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
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
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
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
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