OSDN Git Service

android-x86/bionic.git
8 years agoMerge "Add check for pthread_self() when looking up a thread" am: b90837c3d3
Dimitry Ivanov [Fri, 5 Feb 2016 17:26:02 +0000 (17:26 +0000)]
Merge "Add check for pthread_self() when looking up a thread" am: b90837c3d3
am: 7e694a20fd

* commit '7e694a20fd4136f8aca9afa294dae663a49efacc':
  Add check for pthread_self() when looking up a thread

8 years agoMerge "Add check for pthread_self() when looking up a thread"
Dimitry Ivanov [Fri, 5 Feb 2016 04:33:48 +0000 (04:33 +0000)]
Merge "Add check for pthread_self() when looking up a thread"
am: b90837c3d3

* commit 'b90837c3d316c6ea8d6f0b0b6a3643d0d3245a0e':
  Add check for pthread_self() when looking up a thread

8 years agoMerge "Add check for pthread_self() when looking up a thread"
Dimitry Ivanov [Fri, 5 Feb 2016 04:29:54 +0000 (04:29 +0000)]
Merge "Add check for pthread_self() when looking up a thread"

8 years agoAdd check for pthread_self() when looking up a thread
Dimitry Ivanov [Fri, 5 Feb 2016 00:21:01 +0000 (16:21 -0800)]
Add check for pthread_self() when looking up a thread

Check if thread_id is in fact pthread_self before
locking on g_thread_list_lock in __pthread_internal_find.

The main reason for doing this is not performance but to allow
the linker use raise() which was not working because pthread_kill()
couldn't find pthread_self() thread because the global thread
list is initialized in libc.so and the linker's version of this
list is empty.

Bug: http://b/25867917
Change-Id: I18fe620e8cd465b30f0e1ff45fff32958f3c5c00

8 years agoMerge "Add in6addr_any and in6addr_loopback symbols." am: d2be380258
Elliott Hughes [Wed, 3 Feb 2016 23:20:30 +0000 (23:20 +0000)]
Merge "Add in6addr_any and in6addr_loopback symbols." am: d2be380258
am: 316eb69ad4

* commit '316eb69ad4c5e89c3a0f057e79d7e9342609a010':
  Add in6addr_any and in6addr_loopback symbols.

8 years agoMerge "Add in6addr_any and in6addr_loopback symbols."
Elliott Hughes [Wed, 3 Feb 2016 23:18:16 +0000 (23:18 +0000)]
Merge "Add in6addr_any and in6addr_loopback symbols."
am: d2be380258

* commit 'd2be3802582e69bfaf1a8ab02849bc44c4fa2ce6':
  Add in6addr_any and in6addr_loopback symbols.

8 years agoMerge "Add in6addr_any and in6addr_loopback symbols."
Elliott Hughes [Wed, 3 Feb 2016 23:12:10 +0000 (23:12 +0000)]
Merge "Add in6addr_any and in6addr_loopback symbols."

8 years agoAdd in6addr_any and in6addr_loopback symbols.
Elliott Hughes [Wed, 3 Feb 2016 22:13:52 +0000 (14:13 -0800)]
Add in6addr_any and in6addr_loopback symbols.

Change-Id: I3a90fa448b6bd43321672ba74b84a4e9e8a67738

8 years agoMerge "Really add adjtimex(2), and add clock_adjtime(2) too." am: 5da33dd673
Elliott Hughes [Wed, 3 Feb 2016 22:09:20 +0000 (22:09 +0000)]
Merge "Really add adjtimex(2), and add clock_adjtime(2) too." am: 5da33dd673
am: d1cfd67c6b

* commit 'd1cfd67c6b92767c959a4ed9a00126e1c7ecbc19':
  Really add adjtimex(2), and add clock_adjtime(2) too.

8 years agoMerge "Really add adjtimex(2), and add clock_adjtime(2) too."
Elliott Hughes [Wed, 3 Feb 2016 22:07:21 +0000 (22:07 +0000)]
Merge "Really add adjtimex(2), and add clock_adjtime(2) too."
am: 5da33dd673

* commit '5da33dd67350fcb7c12a57027b1af5f4e72a9c21':
  Really add adjtimex(2), and add clock_adjtime(2) too.

8 years agoMerge "linker: Change the library search order" am: c92ffa95fc
Dimitry Ivanov [Wed, 3 Feb 2016 22:04:35 +0000 (22:04 +0000)]
Merge "linker: Change the library search order" am: c92ffa95fc
am: 10e4fd56b5

* commit '10e4fd56b5e86ca1a9a6bbcb4b62f6f4592bf508':
  linker: Change the library search order

8 years agoMerge "Really add adjtimex(2), and add clock_adjtime(2) too."
Elliott Hughes [Wed, 3 Feb 2016 22:03:09 +0000 (22:03 +0000)]
Merge "Really add adjtimex(2), and add clock_adjtime(2) too."

8 years agoMerge "linker: Change the library search order"
Dimitry Ivanov [Wed, 3 Feb 2016 22:02:17 +0000 (22:02 +0000)]
Merge "linker: Change the library search order"
am: c92ffa95fc

* commit 'c92ffa95fc2f9ef4d381033d313797cffe14709e':
  linker: Change the library search order

8 years agoMerge "linker: Change the library search order"
Dimitry Ivanov [Wed, 3 Feb 2016 21:58:40 +0000 (21:58 +0000)]
Merge "linker: Change the library search order"

8 years agoReally add adjtimex(2), and add clock_adjtime(2) too.
Elliott Hughes [Wed, 3 Feb 2016 21:19:10 +0000 (13:19 -0800)]
Really add adjtimex(2), and add clock_adjtime(2) too.

Change-Id: I81fde2ec9fdf787bb19a784ad13df92d33a4f852

8 years agoMerge "Add fopen64/freopen64/tmpfile64 aliases." am: 36ff699570
Elliott Hughes [Wed, 3 Feb 2016 20:58:25 +0000 (20:58 +0000)]
Merge "Add fopen64/freopen64/tmpfile64 aliases." am: 36ff699570
am: e8e8873d9f

* commit 'e8e8873d9f1d277ede6c9156f5bd78ef9eee3f1e':
  Add fopen64/freopen64/tmpfile64 aliases.

8 years agoMerge "Add fopen64/freopen64/tmpfile64 aliases."
Elliott Hughes [Wed, 3 Feb 2016 20:56:34 +0000 (20:56 +0000)]
Merge "Add fopen64/freopen64/tmpfile64 aliases."
am: 36ff699570

* commit '36ff6995707112e66dd0dec78be7f8ee9b95d321':
  Add fopen64/freopen64/tmpfile64 aliases.

8 years agoMerge "Add fopen64/freopen64/tmpfile64 aliases."
Elliott Hughes [Wed, 3 Feb 2016 20:52:42 +0000 (20:52 +0000)]
Merge "Add fopen64/freopen64/tmpfile64 aliases."

8 years agoAdd fopen64/freopen64/tmpfile64 aliases.
Elliott Hughes [Wed, 3 Feb 2016 19:24:28 +0000 (11:24 -0800)]
Add fopen64/freopen64/tmpfile64 aliases.

Our fopen/freopen/tmpfile are already always O_LARGEFILE, but let's add
the aliases for _LARGEFILE_SOURCE compatibility.

Bug: http://b/24807045
Change-Id: I5d99b3ef3c9f27ce70f13313f6a92e96c7f21f80

8 years agoMerge "Fix ifaddrs#getifaddrs_INET flakiness." am: a279324094
Elliott Hughes [Wed, 3 Feb 2016 19:02:48 +0000 (19:02 +0000)]
Merge "Fix ifaddrs#getifaddrs_INET flakiness." am: a279324094
am: 02075d2100

* commit '02075d2100686edd059efe0ac6dc8f3eb7f439bd':
  Fix ifaddrs#getifaddrs_INET flakiness.

8 years agoMerge "Fix ifaddrs#getifaddrs_INET flakiness."
Elliott Hughes [Wed, 3 Feb 2016 19:00:11 +0000 (19:00 +0000)]
Merge "Fix ifaddrs#getifaddrs_INET flakiness."
am: a279324094

* commit 'a279324094d748b97201412b2457d2f6e26287dd':
  Fix ifaddrs#getifaddrs_INET flakiness.

8 years agoMerge "Fix ifaddrs#getifaddrs_INET flakiness."
Elliott Hughes [Wed, 3 Feb 2016 18:55:20 +0000 (18:55 +0000)]
Merge "Fix ifaddrs#getifaddrs_INET flakiness."

8 years agoMerge "Expose ftello64." am: b3cfafd2bd
Elliott Hughes [Wed, 3 Feb 2016 18:50:53 +0000 (18:50 +0000)]
Merge "Expose ftello64." am: b3cfafd2bd
am: e74d1d6507

* commit 'e74d1d6507a28c56941d95889219e1ea24b0ac5c':
  Expose ftello64.

8 years agoMerge "Expose ftello64."
Elliott Hughes [Wed, 3 Feb 2016 18:48:07 +0000 (18:48 +0000)]
Merge "Expose ftello64."
am: b3cfafd2bd

* commit 'b3cfafd2bd3aa307457fe89573d6ac232a5de1c6':
  Expose ftello64.

8 years agoMerge "Expose ftello64."
Elliott Hughes [Wed, 3 Feb 2016 18:43:17 +0000 (18:43 +0000)]
Merge "Expose ftello64."

8 years agoFix ifaddrs#getifaddrs_INET flakiness.
Elliott Hughes [Wed, 3 Feb 2016 15:42:33 +0000 (07:42 -0800)]
Fix ifaddrs#getifaddrs_INET flakiness.

The interface name wasn't being nul-terminated for the ioctl. Also clean up
the code a bit to give more useful diagnostics on failure.

Bug: http://b/26887941
Change-Id: I30c6bdc1a32733971a27ed1fb7db9d8239b6262b

8 years agoExpose ftello64.
Elliott Hughes [Wed, 3 Feb 2016 06:39:15 +0000 (22:39 -0800)]
Expose ftello64.

Also add the missing test that would have caught this.

Bug: http://b/24807045
Change-Id: I756a4d825595b52396b15898e3f717156fd1ba2f

8 years agoMerge "Fix our fortify tests for global -Werror." am: 3e75110bcb
Dan Albert [Wed, 3 Feb 2016 02:35:09 +0000 (02:35 +0000)]
Merge "Fix our fortify tests for global -Werror." am: 3e75110bcb
am: 9fbe4a0482

* commit '9fbe4a048221b7823104265ba410e130263867a9':
  Fix our fortify tests for global -Werror.

8 years agoMerge "Fix our fortify tests for global -Werror."
Dan Albert [Wed, 3 Feb 2016 02:33:15 +0000 (02:33 +0000)]
Merge "Fix our fortify tests for global -Werror."
am: 3e75110bcb

* commit '3e75110bcb1d7b941ab0633e7e5c36c604512ded':
  Fix our fortify tests for global -Werror.

8 years agoMerge "Fix our fortify tests for global -Werror."
Dan Albert [Wed, 3 Feb 2016 02:28:42 +0000 (02:28 +0000)]
Merge "Fix our fortify tests for global -Werror."

8 years agoMerge "use GNU C89 extern inline semantics for __size_mul_overflow()" am: 153e9928b8
Josh Gao [Wed, 3 Feb 2016 01:36:44 +0000 (01:36 +0000)]
Merge "use GNU C89 extern inline semantics for __size_mul_overflow()" am: 153e9928b8
am: 8e8f990fc4

* commit '8e8f990fc4fde79c2d10a5c40341d2ce90eb4e95':
  use GNU C89 extern inline semantics for __size_mul_overflow()

8 years agoMerge "use GNU C89 extern inline semantics for __size_mul_overflow()"
Josh Gao [Wed, 3 Feb 2016 01:34:34 +0000 (01:34 +0000)]
Merge "use GNU C89 extern inline semantics for __size_mul_overflow()"
am: 153e9928b8

* commit '153e9928b8bab5e11d4bf4679bf307b81a88108e':
  use GNU C89 extern inline semantics for __size_mul_overflow()

8 years agoMerge "use GNU C89 extern inline semantics for __size_mul_overflow()"
Josh Gao [Wed, 3 Feb 2016 01:28:48 +0000 (01:28 +0000)]
Merge "use GNU C89 extern inline semantics for __size_mul_overflow()"

8 years agouse GNU C89 extern inline semantics for __size_mul_overflow()
Xia Yang [Thu, 21 Jan 2016 02:34:59 +0000 (18:34 -0800)]
use GNU C89 extern inline semantics for __size_mul_overflow()

__size_mul_overflow generates warning under following compilation envrionment:

-OX -D_FORTIFY_SOURCE=2 (X=1, 2, 3)

For example:

echo '#include <stdio.h>' | \
prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androideabi-gcc \
    -I bionic/libc/arch-arm/include \
    -I bionic/libc/include \
    -I bionic/libc/kernel/uapi \
    -I bionic/libc/kernel/common \
    -I bionic/libc/kernel/uapi/asm-arm \
    -I bionic/libm/include \
    -I bionic/libm/include/arm \
    -I bionic/libc/include \
    -Werror \
    -O1 \
    -D_FORTIFY_SOURCE=2 \
    -c \
    -x c \
    -

bionic/libc/include/stdio.h:360:13: error: '__size_mul_overflow' is
static but used in inline function 'fread' which is not static [-Werror]
         if (__size_mul_overflow(size, count, &total)) {
                          ^

C99 - 6.7.4
"An inline definition of a function with external linkage shall not contain
a definition of a modifiable object with static storage duration, and shall
not contain a reference to an identifier with internal linkage."

As standard does not require compiler to determine when it is safe to
reference an internal function in an external inline function, but instead
delegalizes such reference as a whole, gcc throws a warning for such code
under C99 compilation.  Warning produced by libc header is inhereted widely
and strips the option of using -Werror to track code sanity.

Replace static inline specifier with gnu89 extern inline. Latter "is used
only for inlining. In no case is the function compiled on its own", which
is slightly different from former semantically, but should produce the same
result here.

Change-Id: I6a3374498e5499d110e54468cf9d0d67d2debbe2

8 years agoFix our fortify tests for global -Werror.
Dan Albert [Wed, 3 Feb 2016 01:13:03 +0000 (17:13 -0800)]
Fix our fortify tests for global -Werror.

If anyone has a better way of doing this it would be welcome...

Bug: http://b/26936282
Change-Id: I796896866327b4b5b5ee4ec36994fb320993f85d

8 years agoMerge "Remove the unused TrackHeader structure." am: fe60bae4b7
Christopher Ferris [Tue, 2 Feb 2016 22:15:49 +0000 (22:15 +0000)]
Merge "Remove the unused TrackHeader structure." am: fe60bae4b7
am: 15c35a02da

* commit '15c35a02daf0a1f8b2c47ac66fde0fd267c33fc1':
  Remove the unused TrackHeader structure.

8 years agoMerge "Remove the unused TrackHeader structure."
Christopher Ferris [Tue, 2 Feb 2016 22:13:46 +0000 (22:13 +0000)]
Merge "Remove the unused TrackHeader structure."
am: fe60bae4b7

* commit 'fe60bae4b71f9b4d50912f06acac601762e55b73':
  Remove the unused TrackHeader structure.

8 years agoMerge "Remove the unused TrackHeader structure."
Christopher Ferris [Tue, 2 Feb 2016 22:09:30 +0000 (22:09 +0000)]
Merge "Remove the unused TrackHeader structure."

8 years agoRemove the unused TrackHeader structure.
Christopher Ferris [Tue, 2 Feb 2016 21:09:59 +0000 (13:09 -0800)]
Remove the unused TrackHeader structure.

Change-Id: I07ae5de717e1fcfbe5dfe552a531db9f630da622

8 years agoMerge "Add better free tracking." am: 4821db1b3e
Christopher Ferris [Tue, 2 Feb 2016 20:50:02 +0000 (20:50 +0000)]
Merge "Add better free tracking." am: 4821db1b3e
am: e98d704731

* commit 'e98d704731dd685d495025ff7cfd751c6e672668':
  Add better free tracking.

8 years agoMerge "Add better free tracking."
Christopher Ferris [Tue, 2 Feb 2016 20:47:41 +0000 (20:47 +0000)]
Merge "Add better free tracking."
am: 4821db1b3e

* commit '4821db1b3ecc14828d4acf4abed26bb7d8b8cf6a':
  Add better free tracking.

8 years agoMerge "Add better free tracking."
Christopher Ferris [Tue, 2 Feb 2016 20:40:36 +0000 (20:40 +0000)]
Merge "Add better free tracking."

8 years agoMerge changes I8ca219fa,Ia92d35b1 am: 5992e5fb6d
Greg Hackmann [Tue, 2 Feb 2016 18:12:11 +0000 (18:12 +0000)]
Merge changes I8ca219fa,Ia92d35b1 am: 5992e5fb6d
am: 33c8164b63

* commit '33c8164b6321d80550b5ec7fbb5f7b49c4ddd954':
  socket.h: update AF_* constants
  Add adjtimex

8 years agoMerge changes I8ca219fa,Ia92d35b1
Greg Hackmann [Tue, 2 Feb 2016 18:09:25 +0000 (18:09 +0000)]
Merge changes I8ca219fa,Ia92d35b1
am: 5992e5fb6d

* commit '5992e5fb6da2722fb4c3850048f71ef077735381':
  socket.h: update AF_* constants
  Add adjtimex

8 years agoMerge changes I8ca219fa,Ia92d35b1
Greg Hackmann [Tue, 2 Feb 2016 18:03:35 +0000 (18:03 +0000)]
Merge changes I8ca219fa,Ia92d35b1

* changes:
  socket.h: update AF_* constants
  Add adjtimex

8 years agolinker: Change the library search order
Dimitry Ivanov [Tue, 2 Feb 2016 07:00:55 +0000 (23:00 -0800)]
linker: Change the library search order

Look into "/system/lib" before "/vendor/lib", this way
we can ensure that in case of name conflict /system libraries
take precedence.

Change-Id: Ifacdc9dc7a4e175853f499ed09782b2257f09e5a

8 years agosocket.h: update AF_* constants
Greg Hackmann [Thu, 28 Jan 2016 19:07:26 +0000 (11:07 -0800)]
socket.h: update AF_* constants

Change-Id: I8ca219fa429ca8d8f872ed1db98275cd1a06f00b
Signed-off-by: Greg Hackmann <ghackmann@google.com>
8 years agolinker: check if needed_by is nullptr
Dimitry Ivanov [Mon, 1 Feb 2016 20:32:22 +0000 (12:32 -0800)]
linker: check if needed_by is nullptr

Check if needed_by is nullptr in the grey-list warning
also print the name of the library making call to dlopen()

Bug: http://b/26749878
Change-Id: I4e16223a3e3d8d1539f855a0b3f199c5529027e0

8 years agoAdd better free tracking.
Christopher Ferris [Fri, 29 Jan 2016 02:35:05 +0000 (18:35 -0800)]
Add better free tracking.

Included in this change:

- Change the tag when a pointer is freed so it's easy to detect if
  an already freed pointer is being used.
- Move the free backtrace out of the header. This backtrace is only
  used under only some circumstances, so no need to allocate space
  in all headers for it.
- Add new option free_track_backtrace_num_frames to specify how many
  frames to record when the free occurs. This removes the dependency
  on the backtrace option to get backtraces.

Bug: 26739265
Change-Id: I76f5209507dcf46af67ada162a7cb2bf282116f2

8 years agoMerge "Tell kati about generated dependencies around crt" am: 37591462fa
Shinichiro Hamaji [Fri, 29 Jan 2016 06:45:37 +0000 (06:45 +0000)]
Merge "Tell kati about generated dependencies around crt" am: 37591462fa
am: c91cd8a47f

* commit 'c91cd8a47f14a96e37d9a5054720886bdacf0bd5':
  Tell kati about generated dependencies around crt

8 years agoMerge "Tell kati about generated dependencies around crt"
Shinichiro Hamaji [Fri, 29 Jan 2016 06:42:46 +0000 (06:42 +0000)]
Merge "Tell kati about generated dependencies around crt"
am: 37591462fa

* commit '37591462fa76791c2372d789c3532c7cd0ca7a84':
  Tell kati about generated dependencies around crt

8 years agoMerge "Tell kati about generated dependencies around crt"
Shinichiro Hamaji [Fri, 29 Jan 2016 06:37:46 +0000 (06:37 +0000)]
Merge "Tell kati about generated dependencies around crt"

8 years agoMerge "Do not allow System.load() of external libraries"
Dimitry Ivanov [Fri, 29 Jan 2016 03:16:29 +0000 (03:16 +0000)]
Merge "Do not allow System.load() of external libraries"

8 years agoMerge "Add min/max values for config values." am: 50647711eb
Christopher Ferris [Fri, 29 Jan 2016 02:37:22 +0000 (02:37 +0000)]
Merge "Add min/max values for config values." am: 50647711eb
am: bfc044628a

* commit 'bfc044628accf3af2ba696f44b2452ce5c8a17dc':
  Add min/max values for config values.

8 years agoMerge "Add min/max values for config values."
Christopher Ferris [Fri, 29 Jan 2016 02:35:26 +0000 (02:35 +0000)]
Merge "Add min/max values for config values."
am: 50647711eb

* commit '50647711ebaf2360aca05cc94a2fdf431c1a153e':
  Add min/max values for config values.

8 years agoMerge "Add min/max values for config values."
Christopher Ferris [Fri, 29 Jan 2016 02:31:07 +0000 (02:31 +0000)]
Merge "Add min/max values for config values."

8 years agoDo not allow System.load() of external libraries
Dimitry Ivanov [Fri, 29 Jan 2016 01:24:20 +0000 (17:24 -0800)]
Do not allow System.load() of external libraries

The greylisting mechanism had a bug that allowed
loading any library using absolute path from java code.

It mistakenly assumed they are needed by greylisted
system library when in fact it is dlopen() call from
libnativeloader.

This patch fixes this problem by checking that the library is in
fact dt_needed and it is not a dlopen call.

Bug: http://b/26394120
Bug: http://b/22548808
Change-Id: Ia3d4c19e77b04d09a6c3047d684d0c04bd5c785e

8 years agoAdd adjtimex
Greg Hackmann [Thu, 28 Jan 2016 01:13:51 +0000 (17:13 -0800)]
Add adjtimex

Change-Id: Ia92d35b1851e73c9f157a749dba1e98f68309a8d
Signed-off-by: Greg Hackmann <ghackmann@google.com>
8 years agoTell kati about generated dependencies around crt
Shinichiro Hamaji [Thu, 28 Jan 2016 10:39:50 +0000 (19:39 +0900)]
Tell kati about generated dependencies around crt

This was a regression since kati has been introduced. Without
this, touching libc/arch-common/bionic/__dso_handle.h doesn't
let ninja rebuild object files.

Bug: 26839129
Change-Id: Ie9ef4559c0d1ff0910a4d250ea36938b291d15db

8 years agoMerge "linker: mark library .bss pages with anon:.bss" am: 0e915b294b
Dimitry Ivanov [Thu, 28 Jan 2016 04:22:29 +0000 (04:22 +0000)]
Merge "linker: mark library .bss pages with anon:.bss" am: 0e915b294b
am: 2c1589f568

* commit '2c1589f568ae56c85a8ae4d3d92e248d659eeee4':
  linker: mark library .bss pages with anon:.bss

8 years agoMerge "linker: mark library .bss pages with anon:.bss"
Dimitry Ivanov [Thu, 28 Jan 2016 03:54:26 +0000 (03:54 +0000)]
Merge "linker: mark library .bss pages with anon:.bss"
am: 0e915b294b

* commit '0e915b294b2b1f0d20cd1b9a4e1721d59ccbfa7a':
  linker: mark library .bss pages with anon:.bss

8 years agoMerge "linker: mark library .bss pages with anon:.bss"
Dimitry Ivanov [Thu, 28 Jan 2016 03:50:24 +0000 (03:50 +0000)]
Merge "linker: mark library .bss pages with anon:.bss"

8 years agoAdd min/max values for config values.
Christopher Ferris [Thu, 28 Jan 2016 01:23:36 +0000 (17:23 -0800)]
Add min/max values for config values.

This is to only allow realistic values for some of the options.

Bug: 26739265

Change-Id: I172d5401c27e5d638d80f1c93c678c26c4dae0fc

8 years agolinker: mark library .bss pages with anon:.bss
Dimitry Ivanov [Thu, 28 Jan 2016 02:12:03 +0000 (18:12 -0800)]
linker: mark library .bss pages with anon:.bss

Bug: http://b/26778774
Change-Id: Ie2cdd841b7238de50ef389a897d79f915229616b

8 years agoMerge changes I7dc213e9,I2928d682 am: fd799baf81
Dimitry Ivanov [Wed, 27 Jan 2016 23:41:37 +0000 (23:41 +0000)]
Merge changes I7dc213e9,I2928d682 am: fd799baf81
am: c22e0ea41d

* commit 'c22e0ea41d5e70130ecc0eb52ceb64c00cb3d3c2':
  Hide '__moddi3' symbol for x86 and mips
  Hide '__isthreaded' for lp64 libc.so

8 years agoMerge changes I7dc213e9,I2928d682
Dimitry Ivanov [Wed, 27 Jan 2016 23:39:36 +0000 (23:39 +0000)]
Merge changes I7dc213e9,I2928d682
am: fd799baf81

* commit 'fd799baf81e7642f2d91968ba01c39f097c0f357':
  Hide '__moddi3' symbol for x86 and mips
  Hide '__isthreaded' for lp64 libc.so

8 years agoMerge changes I7dc213e9,I2928d682
Dimitry Ivanov [Wed, 27 Jan 2016 23:36:18 +0000 (23:36 +0000)]
Merge changes I7dc213e9,I2928d682

* changes:
  Hide '__moddi3' symbol for x86 and mips
  Hide '__isthreaded' for lp64 libc.so

8 years agoHide '__moddi3' symbol for x86 and mips
Dimitry Ivanov [Wed, 27 Jan 2016 23:12:19 +0000 (15:12 -0800)]
Hide '__moddi3' symbol for x86 and mips

Bug: http://b/26805673
Change-Id: I7dc213e9f25510a2a74a30e8c43fd7a64cb3dbdb

8 years agoHide '__isthreaded' for lp64 libc.so
Dimitry Ivanov [Wed, 27 Jan 2016 22:54:36 +0000 (14:54 -0800)]
Hide '__isthreaded' for lp64 libc.so

Bug: http://b/26805673
Change-Id: I2928d68287894be9f9ae7ed1858af512d8c80a3b

8 years agoMerge "Remove unused file." am: e4daf100b3
Christopher Ferris [Wed, 27 Jan 2016 20:31:05 +0000 (20:31 +0000)]
Merge "Remove unused file." am: e4daf100b3
am: f788d6d8c9

* commit 'f788d6d8c9f445bca3140998bd394c58b35340b7':
  Remove unused file.

8 years agoMerge "Remove unused file."
Christopher Ferris [Wed, 27 Jan 2016 20:29:18 +0000 (20:29 +0000)]
Merge "Remove unused file."
am: e4daf100b3

* commit 'e4daf100b33fb17936b4d61e0ddfe679fcd04123':
  Remove unused file.

8 years agoMerge "Remove unused file."
Christopher Ferris [Wed, 27 Jan 2016 20:25:55 +0000 (20:25 +0000)]
Merge "Remove unused file."

8 years agoRemove unused file.
Christopher Ferris [Wed, 27 Jan 2016 18:58:36 +0000 (10:58 -0800)]
Remove unused file.

This file should have been deleted with the malloc debug rewrite, but
popped back into existence due to a merge conflict.

Change-Id: I74e53daaf3febf650b20e3da5329558ac84c5bcd

8 years agoMerge "Fix a sign extension bug in stdio." am: 172420e6a2
Elliott Hughes [Wed, 27 Jan 2016 02:43:54 +0000 (02:43 +0000)]
Merge "Fix a sign extension bug in stdio." am: 172420e6a2
am: 0fb1e6bdac

* commit '0fb1e6bdac04c9cb113232ca95d57f8e96361df0':
  Fix a sign extension bug in stdio.

8 years agoMerge "Fix a sign extension bug in stdio."
Elliott Hughes [Wed, 27 Jan 2016 02:42:09 +0000 (02:42 +0000)]
Merge "Fix a sign extension bug in stdio."
am: 172420e6a2

* commit '172420e6a2c5af527984a3a3a51f60a48b06ae9a':
  Fix a sign extension bug in stdio.

8 years agoMerge "Fix a sign extension bug in stdio."
Elliott Hughes [Wed, 27 Jan 2016 02:38:46 +0000 (02:38 +0000)]
Merge "Fix a sign extension bug in stdio."

8 years agoMerge "Unify names for pages allocated for small objects" am: eecae0a359
Dimitry Ivanov [Wed, 27 Jan 2016 02:33:44 +0000 (02:33 +0000)]
Merge "Unify names for pages allocated for small objects" am: eecae0a359
am: cdf8d292f3

* commit 'cdf8d292f3cc12516f808f1a341df1a9194adcbd':
  Unify names for pages allocated for small objects

8 years agoMerge "Unify names for pages allocated for small objects"
Dimitry Ivanov [Wed, 27 Jan 2016 02:31:58 +0000 (02:31 +0000)]
Merge "Unify names for pages allocated for small objects"
am: eecae0a359

* commit 'eecae0a3598b9f9946b452107c54678da77c7226':
  Unify names for pages allocated for small objects

8 years agoMerge "Unify names for pages allocated for small objects"
Dimitry Ivanov [Wed, 27 Jan 2016 02:28:41 +0000 (02:28 +0000)]
Merge "Unify names for pages allocated for small objects"

8 years agoFix a sign extension bug in stdio.
Elliott Hughes [Wed, 27 Jan 2016 02:25:52 +0000 (18:25 -0800)]
Fix a sign extension bug in stdio.

This also lets us test the EOVERFLOW behavior, which pointed out that the
fgetpos/fsetpos return on failure has always been wrong...

Bug: http://b/24807045
Change-Id: I35273eb07c8c9155af858adb27569983397580b6

8 years agoUnify names for pages allocated for small objects
Dimitry Ivanov [Wed, 27 Jan 2016 01:53:17 +0000 (17:53 -0800)]
Unify names for pages allocated for small objects

Bug: http://b/26776399
Change-Id: Id5b6f143a526cecca56de18ddad8857dfa1dd165

8 years agoMerge "Replace snprintf() with __libc_format_buffer()" am: 194860a9e6
Tom Cherry [Wed, 27 Jan 2016 00:17:35 +0000 (00:17 +0000)]
Merge "Replace snprintf() with __libc_format_buffer()" am: 194860a9e6
am: 7a62c10096

* commit '7a62c10096735f8cd0257dc5069a7af69a7f279e':
  Replace snprintf() with __libc_format_buffer()

8 years agoMerge "Replace snprintf() with __libc_format_buffer()"
Tom Cherry [Wed, 27 Jan 2016 00:14:59 +0000 (00:14 +0000)]
Merge "Replace snprintf() with __libc_format_buffer()"
am: 194860a9e6

* commit '194860a9e638b1d093857f08b8fad37c9ec0e113':
  Replace snprintf() with __libc_format_buffer()

8 years agoMerge "Replace snprintf() with __libc_format_buffer()"
Tom Cherry [Wed, 27 Jan 2016 00:09:52 +0000 (00:09 +0000)]
Merge "Replace snprintf() with __libc_format_buffer()"

8 years agoReplace snprintf() with __libc_format_buffer()
Tom Cherry [Tue, 26 Jan 2016 23:27:07 +0000 (15:27 -0800)]
Replace snprintf() with __libc_format_buffer()

If snprintf() is called from the linker, it may erroneously return a
null string.  The libc internal __libc_format_buffer() does not have
this problem, so it is now used instead.

Bug: 26756577

Change-Id: I37a97e27f59b3c0a087f54a6603cc3aff7f07522

8 years agoMerge "Implement funopen64." am: 896224aa7f
Elliott Hughes [Tue, 26 Jan 2016 23:37:21 +0000 (23:37 +0000)]
Merge "Implement funopen64." am: 896224aa7f
am: 61af93ae54

* commit '61af93ae5471b1bf723d51b1a5ab62cc7c7376db':
  Implement funopen64.

8 years agoMerge "Implement funopen64."
Elliott Hughes [Tue, 26 Jan 2016 23:34:52 +0000 (23:34 +0000)]
Merge "Implement funopen64."
am: 896224aa7f

* commit '896224aa7f307b6c53d8c4dfa0b0e3556b3b9fda':
  Implement funopen64.

8 years agoMerge "Implement funopen64."
Elliott Hughes [Tue, 26 Jan 2016 23:26:43 +0000 (23:26 +0000)]
Merge "Implement funopen64."

8 years agoMerge "Fix lockf for LP32." am: a449fafc89
Elliott Hughes [Tue, 26 Jan 2016 23:17:30 +0000 (23:17 +0000)]
Merge "Fix lockf for LP32." am: a449fafc89
am: 44c4b858ec

* commit '44c4b858ec3892243cc085faf8a96b44bb8a5a9c':
  Fix lockf for LP32.

8 years agoMerge "Move android_ network functions to LIBC_PRIVATE" am: 3a33b52981
Dimitry Ivanov [Tue, 26 Jan 2016 23:17:25 +0000 (23:17 +0000)]
Merge "Move android_ network functions to LIBC_PRIVATE" am: 3a33b52981
am: d580a8b150

* commit 'd580a8b1505be000c748a380cae9ef4a510a3823':
  Move android_ network functions to LIBC_PRIVATE

8 years agoMerge "Fix lockf for LP32."
Elliott Hughes [Tue, 26 Jan 2016 23:13:07 +0000 (23:13 +0000)]
Merge "Fix lockf for LP32."
am: a449fafc89

* commit 'a449fafc894c47305b49087d995e821e878e59c1':
  Fix lockf for LP32.

8 years agoMerge "Move android_ network functions to LIBC_PRIVATE"
Dimitry Ivanov [Tue, 26 Jan 2016 23:13:02 +0000 (23:13 +0000)]
Merge "Move android_ network functions to LIBC_PRIVATE"
am: 3a33b52981

* commit '3a33b5298101e959c83ea60003618d3052d0adfe':
  Move android_ network functions to LIBC_PRIVATE

8 years agoMerge "Fix lockf for LP32."
Elliott Hughes [Tue, 26 Jan 2016 22:56:36 +0000 (22:56 +0000)]
Merge "Fix lockf for LP32."

8 years agoMerge "Move android_ network functions to LIBC_PRIVATE"
Dimitry Ivanov [Tue, 26 Jan 2016 22:47:56 +0000 (22:47 +0000)]
Merge "Move android_ network functions to LIBC_PRIVATE"

8 years agoImplement funopen64.
Elliott Hughes [Tue, 26 Jan 2016 22:13:04 +0000 (14:13 -0800)]
Implement funopen64.

Bug: http://b/24807045
Change-Id: I161920978161389be34b707cc6ce8e05f760d552

8 years agoMove android_ network functions to LIBC_PRIVATE
Dimitry Ivanov [Tue, 26 Jan 2016 22:07:32 +0000 (14:07 -0800)]
Move android_ network functions to LIBC_PRIVATE

Make following functions platform-private:
 android_getaddrinfofornet
 android_getaddrinfofornetcontext
 android_gethostbyaddrfornet
 android_gethostbynamefornet

Bug: http://b/26794226
Change-Id: I0855b0b82721e4d24e918508931b4d5587fcae7d

8 years agoFix lockf for LP32.
Elliott Hughes [Tue, 26 Jan 2016 22:32:55 +0000 (14:32 -0800)]
Fix lockf for LP32.

Bug: http://b/13077650
Change-Id: Ibbe2d907d23791c908475e0875a5c745ac948813

8 years agoMerge "Factor out the waiting for children in bionic tests." am: ced73ee45e
Elliott Hughes [Tue, 26 Jan 2016 21:55:42 +0000 (21:55 +0000)]
Merge "Factor out the waiting for children in bionic tests." am: ced73ee45e
am: 644f9d1ea9

* commit '644f9d1ea9af956082046393b0e5fc502d2c2dd3':
  Factor out the waiting for children in bionic tests.

8 years agoMerge "Support _FILE_OFFSET_BITS=64 for most of <stdio.h>." am: 94bb0fab93
Elliott Hughes [Tue, 26 Jan 2016 21:55:38 +0000 (21:55 +0000)]
Merge "Support _FILE_OFFSET_BITS=64 for most of <stdio.h>." am: 94bb0fab93
am: 1500a65adb

* commit '1500a65adbd7cd18c7bb6d0282947cd44dc76ef6':
  Support _FILE_OFFSET_BITS=64 for most of <stdio.h>.

8 years agoMerge "Implement POSIX lockf." am: d9bb708575
Elliott Hughes [Tue, 26 Jan 2016 21:55:33 +0000 (21:55 +0000)]
Merge "Implement POSIX lockf." am: d9bb708575
am: 7397cc04f0

* commit '7397cc04f0f2291ff893c69c9cf6debcfdb466ea':
  Implement POSIX lockf.