OSDN Git Service

android-x86/bionic.git
9 years agoam d5fbc371: Merge "Add POSIX-2008 fmemopen, open_memstream, and open_wmemstream."
Elliott Hughes [Thu, 21 Aug 2014 03:11:32 +0000 (03:11 +0000)]
am d5fbc371: Merge "Add POSIX-2008 fmemopen, open_memstream, and open_wmemstream."

* commit 'd5fbc37119ef6cd757ceb449cb071ee03c66590e':
  Add POSIX-2008 fmemopen, open_memstream, and open_wmemstream.

9 years agoMerge "Add POSIX-2008 fmemopen, open_memstream, and open_wmemstream."
Elliott Hughes [Thu, 21 Aug 2014 02:39:34 +0000 (02:39 +0000)]
Merge "Add POSIX-2008 fmemopen, open_memstream, and open_wmemstream."

9 years agoAdd POSIX-2008 fmemopen, open_memstream, and open_wmemstream.
Elliott Hughes [Wed, 20 Aug 2014 23:10:49 +0000 (16:10 -0700)]
Add POSIX-2008 fmemopen, open_memstream, and open_wmemstream.

Bug: 17164505
Change-Id: I59e28a08ff8b6ab632230b11a5807cfd5278aeb5

9 years agoam b6ed5407: Merge "Simplify _ALIGN_TEXT."
Elliott Hughes [Wed, 20 Aug 2014 20:54:13 +0000 (20:54 +0000)]
am b6ed5407: Merge "Simplify _ALIGN_TEXT."

* commit 'b6ed54076abdd337150d7a92a661247b69d26cb4':
  Simplify _ALIGN_TEXT.

9 years agoam 7134fc30: Merge "Regenerate "services.h" from /etc/services."
Elliott Hughes [Wed, 20 Aug 2014 20:49:21 +0000 (20:49 +0000)]
am 7134fc30: Merge "Regenerate "services.h" from /etc/services."

* commit '7134fc30892bff763e7c24ac722151e0777b5409':
  Regenerate "services.h" from /etc/services.

9 years agoam 3bcd414b: Merge "Clean up some of our python scripts."
Elliott Hughes [Wed, 20 Aug 2014 20:49:21 +0000 (20:49 +0000)]
am 3bcd414b: Merge "Clean up some of our python scripts."

* commit '3bcd414b78e515482139c7dc3dad8cad3357b374':
  Clean up some of our python scripts.

9 years agoam 55244a9b: Merge "Add <stdio_ext.h> for elfutils."
Elliott Hughes [Wed, 20 Aug 2014 20:49:14 +0000 (20:49 +0000)]
am 55244a9b: Merge "Add <stdio_ext.h> for elfutils."

* commit '55244a9bdbc661212999655644c374352ae92040':
  Add <stdio_ext.h> for elfutils.

9 years agoam b61c5064: Merge "Work around atomic_load(const T*) issues."
Hans Boehm [Wed, 20 Aug 2014 20:48:45 +0000 (20:48 +0000)]
am b61c5064: Merge "Work around atomic_load(const T*) issues."

* commit 'b61c50647b85b3c33af8ca155e88ec098d9e8cb0':
  Work around atomic_load(const T*) issues.

9 years agoMerge "Simplify _ALIGN_TEXT."
Elliott Hughes [Wed, 20 Aug 2014 20:36:04 +0000 (20:36 +0000)]
Merge "Simplify _ALIGN_TEXT."

9 years agoSimplify _ALIGN_TEXT.
Elliott Hughes [Wed, 20 Aug 2014 20:11:58 +0000 (13:11 -0700)]
Simplify _ALIGN_TEXT.

Bug: 16872067
Change-Id: I2b622f252c21ce1b344c040f828ab3f4bf9b6c0a

10 years agoMerge "Work around atomic_load(const T*) issues."
Hans Boehm [Tue, 19 Aug 2014 22:34:00 +0000 (22:34 +0000)]
Merge "Work around atomic_load(const T*) issues."

10 years agoam b9d674c8: Merge "Implement the GNU basename(3) in addition to the POSIX one."
Elliott Hughes [Tue, 19 Aug 2014 22:19:07 +0000 (22:19 +0000)]
am b9d674c8: Merge "Implement the GNU basename(3) in addition to the POSIX one."

* commit 'b9d674c8ada9c1e9c22b41bc7c89e35f11f4eb1e':
  Implement the GNU basename(3) in addition to the POSIX one.

10 years agoWork around atomic_load(const T*) issues.
Hans Boehm [Tue, 19 Aug 2014 21:07:55 +0000 (14:07 -0700)]
Work around atomic_load(const T*) issues.

Bug:17067219
Change-Id: I78e753bcf03464f5f05c3f37e394f2727d282589

10 years agoam 1506fc17: Expose android_set_abort_message().
Dan Albert [Tue, 19 Aug 2014 20:29:23 +0000 (20:29 +0000)]
am 1506fc17: Expose android_set_abort_message().

* commit '1506fc178e9dcd873eaf95535ac7625ebb59388f':
  Expose android_set_abort_message().

10 years agoam c5d6df6f: Merge "Add in_port_t and move it and in_addr_t to the correct header...
Elliott Hughes [Tue, 19 Aug 2014 20:26:45 +0000 (20:26 +0000)]
am c5d6df6f: Merge "Add in_port_t and move it and in_addr_t to the correct header file."

* commit 'c5d6df6f2fe57fd5aadbd9ebb131023234c30a0c':
  Add in_port_t and move it and in_addr_t to the correct header file.

10 years agoam 6f4220c4: Merge "Move the meat of <features.h> into <sys/cdefs.h>."
Elliott Hughes [Tue, 19 Aug 2014 19:04:24 +0000 (19:04 +0000)]
am 6f4220c4: Merge "Move the meat of <features.h> into <sys/cdefs.h>."

* commit '6f4220c49e90b18a50d36e47cc9287c7593af939':
  Move the meat of <features.h> into <sys/cdefs.h>.

10 years agoExpose android_set_abort_message().
Dan Albert [Mon, 18 Aug 2014 21:37:42 +0000 (14:37 -0700)]
Expose android_set_abort_message().

Removes the leading underscores from __android_set_abort_message() and
moves its declaration into a public header file.

Bug: 17059126
Change-Id: I470c79db47ec783ea7a54b800f8b78ecbe7479ab
(cherry picked from commit ce6b1abbb1da797e716d8ec03da4e3b6304fd11d)
(cherry picked from commit 3a25ab952befbe908f6df45805683ebe3bf65863)

10 years agoam 2222eae6: Merge "Missing #include <sys/cdefs.h>."
Dan Albert [Tue, 19 Aug 2014 18:39:11 +0000 (18:39 +0000)]
am 2222eae6: Merge "Missing #include <sys/cdefs.h>."

* commit '2222eae61e723d946029899edaf7afcbaa160bb7':
  Missing #include <sys/cdefs.h>.

10 years agoam 17f83c93: Merge "Remove unused defines from <features.h>."
Elliott Hughes [Tue, 19 Aug 2014 17:50:01 +0000 (17:50 +0000)]
am 17f83c93: Merge "Remove unused defines from <features.h>."

* commit '17f83c93cbbde3e38a03182931f40b7390061a7d':
  Remove unused defines from <features.h>.

10 years agoam 934c8015: Merge "Expose android_set_abort_message()."
Dan Albert [Tue, 19 Aug 2014 17:32:53 +0000 (17:32 +0000)]
am 934c8015: Merge "Expose android_set_abort_message()."

* commit '934c8015d515f96c1f97255b48357da922cf626a':
  Expose android_set_abort_message().

10 years agoam e4fcc3ad: Merge "Fix _BSD_SOURCE/__USE_BSD."
Elliott Hughes [Tue, 19 Aug 2014 17:11:21 +0000 (17:11 +0000)]
am e4fcc3ad: Merge "Fix _BSD_SOURCE/__USE_BSD."

* commit 'e4fcc3ad2b2965858571f5fb7d485ceb7e4a8266':
  Fix _BSD_SOURCE/__USE_BSD.

10 years agoam 8a76ee82: Merge "Revert "Add support for protected local symbol lookup.""
Dmitriy Ivanov [Tue, 19 Aug 2014 17:11:21 +0000 (17:11 +0000)]
am 8a76ee82: Merge "Revert "Add support for protected local symbol lookup.""

* commit '8a76ee821e49a912d1777fbe83b1ab07c1da541a':
  Revert "Add support for protected local symbol lookup."

10 years agoMerge "Add in_port_t and move it and in_addr_t to the correct header file."
Elliott Hughes [Tue, 19 Aug 2014 20:11:53 +0000 (20:11 +0000)]
Merge "Add in_port_t and move it and in_addr_t to the correct header file."

10 years agoAdd in_port_t and move it and in_addr_t to the correct header file.
Elliott Hughes [Tue, 19 Aug 2014 19:43:50 +0000 (12:43 -0700)]
Add in_port_t and move it and in_addr_t to the correct header file.

No one's reported this, but I saw it in an Android port of fuser(1).

We still have lots of problems in our network headers because we
get most of the structs direct from the kernel, and it doesn't use
types like this (which is why we've got away without this one for
so long). One day we should probably look at cleaning that up, but
doing so can wait.

Change-Id: If15edf0cfc32716fa312d7ed97c48321b760d979

10 years agoresolved conflicts for merge of e3ad34b3 to lmp-dev-plus-aosp
Dmitriy Ivanov [Tue, 19 Aug 2014 13:28:24 +0000 (06:28 -0700)]
resolved conflicts for merge of e3ad34b3 to lmp-dev-plus-aosp

Change-Id: Ib744885890d38fa8dfbc130de8373343f49352cc

10 years agoMerge "Add <stdio_ext.h> for elfutils."
Elliott Hughes [Wed, 20 Aug 2014 17:41:08 +0000 (17:41 +0000)]
Merge "Add <stdio_ext.h> for elfutils."

9 years agoAdd <stdio_ext.h> for elfutils.
Elliott Hughes [Wed, 20 Aug 2014 00:00:33 +0000 (17:00 -0700)]
Add <stdio_ext.h> for elfutils.

Bug: 17139679
Change-Id: I1605ac382dbb6f23b2d874dbb9769f3cde4a6a99

10 years agoMerge "Implement the GNU basename(3) in addition to the POSIX one."
Elliott Hughes [Tue, 19 Aug 2014 22:04:58 +0000 (22:04 +0000)]
Merge "Implement the GNU basename(3) in addition to the POSIX one."

10 years agoImplement the GNU basename(3) in addition to the POSIX one.
Elliott Hughes [Tue, 19 Aug 2014 21:30:30 +0000 (14:30 -0700)]
Implement the GNU basename(3) in addition to the POSIX one.

Code like perf(1) needs this.

Bug: 11860789
Change-Id: I907eb448052a7b165e4012d74303330d32328cb2

10 years agoMerge "Move the meat of <features.h> into <sys/cdefs.h>."
Elliott Hughes [Tue, 19 Aug 2014 18:55:17 +0000 (18:55 +0000)]
Merge "Move the meat of <features.h> into <sys/cdefs.h>."

10 years agoMove the meat of <features.h> into <sys/cdefs.h>.
Elliott Hughes [Tue, 19 Aug 2014 18:16:41 +0000 (11:16 -0700)]
Move the meat of <features.h> into <sys/cdefs.h>.

This way it's a lot harder for us to screw up (since we should always
be including <sys/cdefs.h> anyway).

Bug: 14659579
Change-Id: I23070fff3296b0d1c683bb5e3a6e214146327d53

10 years agoMerge "Remove unused defines from <features.h>."
Elliott Hughes [Tue, 19 Aug 2014 17:39:21 +0000 (17:39 +0000)]
Merge "Remove unused defines from <features.h>."

10 years agoRemove unused defines from <features.h>.
Elliott Hughes [Tue, 19 Aug 2014 17:07:00 +0000 (10:07 -0700)]
Remove unused defines from <features.h>.

Bug: 14659579
Change-Id: I2ab02b13cafe3faad31248b843d39ab2cdbfeb91

10 years agoMerge "Fix _BSD_SOURCE/__USE_BSD."
Elliott Hughes [Tue, 19 Aug 2014 16:48:43 +0000 (16:48 +0000)]
Merge "Fix _BSD_SOURCE/__USE_BSD."

10 years agoFix _BSD_SOURCE/__USE_BSD.
Elliott Hughes [Tue, 19 Aug 2014 16:18:03 +0000 (09:18 -0700)]
Fix _BSD_SOURCE/__USE_BSD.

Bug: 14659579
Change-Id: I80ec9584f054c02d1078828f6bca759c42bc1d4c

10 years agoMerge "Revert "Add support for protected local symbol lookup.""
Dmitriy Ivanov [Tue, 19 Aug 2014 16:45:34 +0000 (16:45 +0000)]
Merge "Revert "Add support for protected local symbol lookup.""

10 years agoRevert "Add support for protected local symbol lookup."
Dmitriy Ivanov [Mon, 18 Aug 2014 22:08:51 +0000 (15:08 -0700)]
Revert "Add support for protected local symbol lookup."

This reverts commit d97e9f546ea195686a78e539315b273393609b9e.

Bug: 17107521
(cherry picked from commit 9419420919ea846bbad5510850c7aaec95021648)

Change-Id: I1a6df946ac8075699e77d68ffa6ac4a21b88e4bf

10 years agoam 0baf2ca3: Merge "Fix <features.h> (_BSD_SOURCE and _GNU_SOURCE)."
Elliott Hughes [Tue, 19 Aug 2014 00:41:14 +0000 (00:41 +0000)]
am 0baf2ca3: Merge "Fix <features.h> (_BSD_SOURCE and _GNU_SOURCE)."

* commit '0baf2ca34c7d9ec067b1f33bad69782c2dedc231':
  Fix <features.h> (_BSD_SOURCE and _GNU_SOURCE).

10 years agoam 205cc415: Merge "Improve <sys/cdefs.h>."
Elliott Hughes [Mon, 18 Aug 2014 22:28:12 +0000 (22:28 +0000)]
am 205cc415: Merge "Improve <sys/cdefs.h>."

* commit '205cc41556d44b104a21bc6839b7ea44f72df9ba':
  Improve <sys/cdefs.h>.

10 years agoResolved conflicts for merge of 6df7b609 to lmp-dev-plus-aosp.
Dan Albert [Mon, 18 Aug 2014 21:58:13 +0000 (14:58 -0700)]
Resolved conflicts for merge of 6df7b609 to lmp-dev-plus-aosp.

Change-Id: I204e5701031c9ba9cd783c0db58cd51d93a5dc61

10 years agoMerge "Improve <sys/cdefs.h>."
Elliott Hughes [Mon, 18 Aug 2014 22:11:55 +0000 (22:11 +0000)]
Merge "Improve <sys/cdefs.h>."

10 years agoImprove <sys/cdefs.h>.
Elliott Hughes [Mon, 18 Aug 2014 21:45:42 +0000 (14:45 -0700)]
Improve <sys/cdefs.h>.

Fix and use __RENAME (and lose ___RENAME --- two underscores should be
enough for anybody). This was the point of this change, because I want
to use __RENAME to support the two basename variants and the two
strerror_r variants.

Lose a bunch of macros that weren't being used.

Lose three dead files from the DNS code.

Change-Id: I3ef645c566b16a52217bc2e68c7d54b37c7c9522

10 years agoMerge "Revert "Add support for protected local symbol lookup."" into lmp-dev
Dmitriy Ivanov [Tue, 19 Aug 2014 12:14:39 +0000 (12:14 +0000)]
Merge "Revert "Add support for protected local symbol lookup."" into lmp-dev

10 years agoRevert "Add support for protected local symbol lookup."
Dmitriy Ivanov [Mon, 18 Aug 2014 22:08:51 +0000 (15:08 -0700)]
Revert "Add support for protected local symbol lookup."

This reverts commit d97e9f546ea195686a78e539315b273393609b9e.

Bug: 17107521
Change-Id: I2b81ce2b5a4a2d166133a2626e49d81b6aef3672

10 years agoam 54d24e09: Merge "Fix leak_realloc, copy entire allocation."
Christopher Ferris [Mon, 18 Aug 2014 21:05:59 +0000 (21:05 +0000)]
am 54d24e09: Merge "Fix leak_realloc, copy entire allocation."

* commit '54d24e099c24d0811ae723640d4e12e9558cab73':
  Fix leak_realloc, copy entire allocation.

10 years agoam 3c7c9a8d: (-s ours) Merge "malloc_usable_size returns the original size."
Christopher Ferris [Mon, 18 Aug 2014 21:05:59 +0000 (21:05 +0000)]
am 3c7c9a8d: (-s ours) Merge "malloc_usable_size returns the original size."

* commit '3c7c9a8d3fda1057b8a4dea85f357a044dd21563':
  malloc_usable_size returns the original size.

10 years agoHide C++ stuff in libc. Put it back in libstdc++.
Dan Albert [Fri, 15 Aug 2014 21:20:04 +0000 (14:20 -0700)]
Hide C++ stuff in libc. Put it back in libstdc++.

Bug: 17062445
Change-Id: I027b186719654c2865b08c3fa83f90fa00c1e838
(cherry picked from commit fd5ee9aebc0a43c7f36a0778c7f416b39ddb870e)

10 years agoam db2e0247: Merge "Hide C++ stuff in libc. Put it back in libstdc++."
Dan Albert [Mon, 18 Aug 2014 20:14:48 +0000 (20:14 +0000)]
am db2e0247: Merge "Hide C++ stuff in libc. Put it back in libstdc++."

* commit 'db2e0247ed67dfdf6e16eb47348db81dc8ccd04d':
  Hide C++ stuff in libc. Put it back in libstdc++.

10 years agoam 9e56ce4c: Merge "Fix leak_realloc, copy entire allocation." into lmp-dev
Christopher Ferris [Mon, 18 Aug 2014 19:33:55 +0000 (19:33 +0000)]
am 9e56ce4c: Merge "Fix leak_realloc, copy entire allocation." into lmp-dev

* commit '9e56ce4cd387cfa45de3a71dcccedd061e09d2f5':
  Fix leak_realloc, copy entire allocation.

10 years agoMerge "Regenerate "services.h" from /etc/services."
Elliott Hughes [Wed, 20 Aug 2014 19:21:54 +0000 (19:21 +0000)]
Merge "Regenerate "services.h" from /etc/services."

9 years agoRegenerate "services.h" from /etc/services.
Elliott Hughes [Wed, 20 Aug 2014 19:11:31 +0000 (12:11 -0700)]
Regenerate "services.h" from /etc/services.

Change-Id: Iec118f9a342b5c1f6ce6d48965798b12a7159ad3

10 years agoMerge "Clean up some of our python scripts."
Elliott Hughes [Wed, 20 Aug 2014 19:07:51 +0000 (19:07 +0000)]
Merge "Clean up some of our python scripts."

9 years agoClean up some of our python scripts.
Elliott Hughes [Wed, 20 Aug 2014 18:16:11 +0000 (11:16 -0700)]
Clean up some of our python scripts.

Change-Id: Ifa75345db43434298cfb6113fbe2f7a33b88c79d

10 years agoMerge "Missing #include <sys/cdefs.h>."
Dan Albert [Tue, 19 Aug 2014 18:29:31 +0000 (18:29 +0000)]
Merge "Missing #include <sys/cdefs.h>."

10 years agoMissing #include <sys/cdefs.h>.
Dan Albert [Tue, 19 Aug 2014 18:06:33 +0000 (11:06 -0700)]
Missing #include <sys/cdefs.h>.

Needed for __BEGIN_DECLS/__END_DECLS. Currently fine because it's being
included after other files that do this.

Change-Id: I1f12368fc461f6ef5ca90992cf19f317f0b5d7af

10 years agoMerge "Expose android_set_abort_message()."
Dan Albert [Tue, 19 Aug 2014 17:18:19 +0000 (17:18 +0000)]
Merge "Expose android_set_abort_message()."

10 years agoExpose android_set_abort_message().
Dan Albert [Mon, 18 Aug 2014 21:37:42 +0000 (14:37 -0700)]
Expose android_set_abort_message().

Removes the leading underscores from __android_set_abort_message() and
moves its declaration into a public header file.

Bug: 17059126
Change-Id: I470c79db47ec783ea7a54b800f8b78ecbe7479ab

10 years agoMerge "malloc_usable_size returns the original size."
Christopher Ferris [Mon, 18 Aug 2014 20:12:54 +0000 (20:12 +0000)]
Merge "malloc_usable_size returns the original size."

10 years agomalloc_usable_size returns the original size.
Christopher Ferris [Thu, 14 Aug 2014 19:48:04 +0000 (12:48 -0700)]
malloc_usable_size returns the original size.

Bug: 16874447

(cherry picked from commit 59c1ee44d0a560a754513fab12641c8a57a20d9e)

Change-Id: I70839632974367c8b9893fb1f9c5ee4364608470

10 years agoMerge "Fix leak_realloc, copy entire allocation."
Christopher Ferris [Mon, 18 Aug 2014 20:12:59 +0000 (20:12 +0000)]
Merge "Fix leak_realloc, copy entire allocation."

10 years agoFix leak_realloc, copy entire allocation.
Christopher Ferris [Sat, 16 Aug 2014 01:42:58 +0000 (18:42 -0700)]
Fix leak_realloc, copy entire allocation.

Bug: 16874447

(cherry picked from commit 5df0839cea98bd8c37d8dba5b94b98e99c681a94)

Change-Id: I9280505c0c1c3b5da24ba590448dcd6e7a230406

10 years agoMerge "Hide C++ stuff in libc. Put it back in libstdc++."
Dan Albert [Mon, 18 Aug 2014 19:56:41 +0000 (19:56 +0000)]
Merge "Hide C++ stuff in libc. Put it back in libstdc++."

10 years agoHide C++ stuff in libc. Put it back in libstdc++.
Dan Albert [Fri, 15 Aug 2014 21:20:04 +0000 (14:20 -0700)]
Hide C++ stuff in libc. Put it back in libstdc++.

Bug: 17062445
Change-Id: I027b186719654c2865b08c3fa83f90fa00c1e838

10 years agoMerge "Fix <features.h> (_BSD_SOURCE and _GNU_SOURCE)."
Elliott Hughes [Tue, 19 Aug 2014 00:27:01 +0000 (00:27 +0000)]
Merge "Fix <features.h> (_BSD_SOURCE and _GNU_SOURCE)."

10 years agoFix <features.h> (_BSD_SOURCE and _GNU_SOURCE).
Elliott Hughes [Mon, 18 Aug 2014 23:04:03 +0000 (16:04 -0700)]
Fix <features.h> (_BSD_SOURCE and _GNU_SOURCE).

<features.h> is supposed to take user-settable stuff like _GNU_SOURCE
and _BSD_SOURCE and turn them into __USE_GNU and __USE_BSD for use in
the C library headers. Instead, bionic used to unconditionally define
_BSD_SOURCE and _GNU_SOURCE, and then test _GNU_SOURCE in the header
files (which makes no sense whatsoever).

Bug: 14659579
Change-Id: Ice4cf21a364ea2e559071dc8329e995277d5b987

10 years agoMerge "Fix leak_realloc, copy entire allocation." into lmp-dev
Christopher Ferris [Mon, 18 Aug 2014 18:57:39 +0000 (18:57 +0000)]
Merge "Fix leak_realloc, copy entire allocation." into lmp-dev

10 years agoFix leak_realloc, copy entire allocation.
Christopher Ferris [Sat, 16 Aug 2014 01:42:58 +0000 (18:42 -0700)]
Fix leak_realloc, copy entire allocation.

Bug: 16874447
Change-Id: Ie54a73fd75529961195fa5173d9116d0ae897b03

10 years agoam 2b6cdb5e: Merge "Add atexit test for attributed c-tor/d-tor"
Dmitriy Ivanov [Fri, 15 Aug 2014 23:13:30 +0000 (23:13 +0000)]
am 2b6cdb5e: Merge "Add atexit test for attributed c-tor/d-tor"

* commit '2b6cdb5e459661727c99e81660c7c3df5cdbe024':
  Add atexit test for attributed c-tor/d-tor

10 years agoam d8e00769: Merge "Keep symbols for linker" into lmp-dev
Dmitriy Ivanov [Fri, 15 Aug 2014 21:42:47 +0000 (21:42 +0000)]
am d8e00769: Merge "Keep symbols for linker" into lmp-dev

* commit 'd8e007695c755bba75b7243077271b6d655d818a':
  Keep symbols for linker

10 years agoMerge "Add atexit test for attributed c-tor/d-tor"
Dmitriy Ivanov [Fri, 15 Aug 2014 22:57:37 +0000 (22:57 +0000)]
Merge "Add atexit test for attributed c-tor/d-tor"

10 years agoMerge "Keep symbols for linker" into lmp-dev
Dmitriy Ivanov [Fri, 15 Aug 2014 21:29:48 +0000 (21:29 +0000)]
Merge "Keep symbols for linker" into lmp-dev

10 years agoAdd atexit test for attributed c-tor/d-tor
Dmitriy Ivanov [Fri, 15 Aug 2014 21:22:07 +0000 (14:22 -0700)]
Add atexit test for attributed c-tor/d-tor

 1. Add test for __attribute__((constructor/destructor))
    and static constructor

 2. Compile C++ testlibs with -std=gnu++11

Change-Id: I67f9308144a0c638a51f111fcba8e1933fe0ba41

10 years agoKeep symbols for linker
Dmitriy Ivanov [Thu, 14 Aug 2014 22:46:36 +0000 (15:46 -0700)]
Keep symbols for linker

Bug: 17011146

(cherry picked from commit ad5e8b50737144833233d47fe04deb3fa0284df2)

Change-Id: Ib1d3f8d6d38af98586658e01ed1ec79d2c5b4d42

10 years agoam f0f66c02: Have stdatomic.h punt to C++ atomic when possible
Hans Boehm [Fri, 15 Aug 2014 21:16:51 +0000 (21:16 +0000)]
am f0f66c02: Have stdatomic.h punt to C++ atomic when possible

* commit 'f0f66c0264eb4b6ee56072af34c91a78a9184f23':
  Have stdatomic.h punt to C++ atomic when possible

10 years agoHave stdatomic.h punt to C++ atomic when possible
Hans Boehm [Thu, 14 Aug 2014 22:26:03 +0000 (15:26 -0700)]
Have stdatomic.h punt to C++ atomic when possible

This is an alternate, somewhat simpler, fix that makes it safe to
include both <atomic> and <stdatomic.h> from C++ code in either order.
It means that C code consistently uses one implementation of atomics
and C++ another.  We still have to make sure that those two
implementations interoperate correctly at runtime; in particular,
any flavor of atomic object needs to be represented exactly like the
underlying type, with the proper alignment constraint.

Bug:17007799
Change-Id: Iffcfc5220d8fa150f89dd083a121b24d23f268fc
(cherry picked from commit 019d3958118b7dc3ec8444ad2accca50c268b737)

10 years agoam 7d05f741: Merge "Have stdatomic.h punt to C++ atomic when possible"
Hans Boehm [Fri, 15 Aug 2014 18:27:38 +0000 (18:27 +0000)]
am 7d05f741: Merge "Have stdatomic.h punt to C++ atomic when possible"

* commit '7d05f741e7885ad42f853b5fe2b1d31cdc756b5c':
  Have stdatomic.h punt to C++ atomic when possible

10 years agoam e2050ae1: Merge "Change name of MB_CUR_MAX implementation function." into lmp-dev
Dan Albert [Fri, 15 Aug 2014 11:49:36 +0000 (11:49 +0000)]
am e2050ae1: Merge "Change name of MB_CUR_MAX implementation function." into lmp-dev

* commit 'e2050ae1aa9d7e8e6f425bbb7a3991fe612f3913':
  Change name of MB_CUR_MAX implementation function.

10 years agoam 553c0ea5: Merge "Move mtctxres.c to libc_dns.a." into lmp-dev
Dan Albert [Fri, 15 Aug 2014 11:49:36 +0000 (11:49 +0000)]
am 553c0ea5: Merge "Move mtctxres.c to libc_dns.a." into lmp-dev

* commit '553c0ea52bde59800fda2ddd380dd18d4f3ab192':
  Move mtctxres.c to libc_dns.a.

10 years agoam 0533195e: Merge "malloc_usable_size returns the original size." into lmp-dev
Christopher Ferris [Fri, 15 Aug 2014 11:36:56 +0000 (11:36 +0000)]
am 0533195e: Merge "malloc_usable_size returns the original size." into lmp-dev

* commit '0533195e16b86794f14dfb1800ca170ce2548b9f':
  malloc_usable_size returns the original size.

10 years agoMerge "Have stdatomic.h punt to C++ atomic when possible"
Hans Boehm [Fri, 15 Aug 2014 18:19:34 +0000 (18:19 +0000)]
Merge "Have stdatomic.h punt to C++ atomic when possible"

10 years agoHave stdatomic.h punt to C++ atomic when possible
Hans Boehm [Thu, 14 Aug 2014 22:26:03 +0000 (15:26 -0700)]
Have stdatomic.h punt to C++ atomic when possible

This is an alternate, somewhat simpler, fix that makes it safe to
include both <atomic> and <stdatomic.h> from C++ code in either order.
It means that C code consistently uses one implementation of atomics
and C++ another.  We still have to make sure that those two
implementations interoperate correctly at runtime; in particular,
any flavor of atomic object needs to be represented exactly like the
underlying type, with the proper alignment constraint.

Bug:17007799
Change-Id: Iffcfc5220d8fa150f89dd083a121b24d23f268fc

10 years agoam 4bea4c63: Label pages mapped by linker_allocator
Dmitriy Ivanov [Thu, 14 Aug 2014 23:34:48 +0000 (23:34 +0000)]
am 4bea4c63: Label pages mapped by linker_allocator

* commit '4bea4c631f747cc6b570ecd42c744a9b1103bf28':
  Label pages mapped by linker_allocator

10 years agoam d0cce143: Merge "Move mtctxres.c to libc_dns.a."
Dan Albert [Thu, 14 Aug 2014 23:28:19 +0000 (23:28 +0000)]
am d0cce143: Merge "Move mtctxres.c to libc_dns.a."

* commit 'd0cce1436435bfcb477f2c5a670ea6675473c2f8':
  Move mtctxres.c to libc_dns.a.

10 years agoam 8457779b: Merge "Keep symbols for linker"
Dmitriy Ivanov [Thu, 14 Aug 2014 22:55:53 +0000 (22:55 +0000)]
am 8457779b: Merge "Keep symbols for linker"

* commit '8457779b3469f5fa6b8104c2fd3869a72f1345dd':
  Keep symbols for linker

10 years agoam 0d4ccee3: Merge "Change name of MB_CUR_MAX implementation function."
Dan Albert [Thu, 14 Aug 2014 21:31:21 +0000 (21:31 +0000)]
am 0d4ccee3: Merge "Change name of MB_CUR_MAX implementation function."

* commit '0d4ccee35101c6bcd6cc28c23fe79d7b48a98dd0':
  Change name of MB_CUR_MAX implementation function.

10 years agoam 104a4729: Merge "Add more functionality to glibc symbol checker."
Dan Albert [Thu, 14 Aug 2014 21:31:20 +0000 (21:31 +0000)]
am 104a4729: Merge "Add more functionality to glibc symbol checker."

* commit '104a472958f86eafafe0c1d9e2c58ba6403f99e7':
  Add more functionality to glibc symbol checker.

10 years agoMerge "Change name of MB_CUR_MAX implementation function." into lmp-dev
Dan Albert [Fri, 15 Aug 2014 01:14:19 +0000 (01:14 +0000)]
Merge "Change name of MB_CUR_MAX implementation function." into lmp-dev

10 years agoChange name of MB_CUR_MAX implementation function.
Dan Albert [Thu, 14 Aug 2014 20:56:51 +0000 (13:56 -0700)]
Change name of MB_CUR_MAX implementation function.

Glibc calls theirs __ctype_get_mb_cur_max. Make ours match to cut down
on differences between bionic and glibc.

Bug: 11156955
Change-Id: Ib7231f01aa9676dff30aea0af25d597bfe07bc73

10 years agoMerge "Keep symbols for linker"
Dmitriy Ivanov [Thu, 14 Aug 2014 22:50:52 +0000 (22:50 +0000)]
Merge "Keep symbols for linker"

10 years agoKeep symbols for linker
Dmitriy Ivanov [Thu, 14 Aug 2014 22:46:36 +0000 (15:46 -0700)]
Keep symbols for linker

Bug: 17011146
Change-Id: I314e72a1ac9325bf5ea84d52e3d5bc51d8ea00cf

10 years agoMerge "Change name of MB_CUR_MAX implementation function."
Dan Albert [Thu, 14 Aug 2014 21:19:11 +0000 (21:19 +0000)]
Merge "Change name of MB_CUR_MAX implementation function."

10 years agoChange name of MB_CUR_MAX implementation function.
Dan Albert [Thu, 14 Aug 2014 20:56:51 +0000 (13:56 -0700)]
Change name of MB_CUR_MAX implementation function.

Glibc calls theirs __ctype_get_mb_cur_max. Make ours match to cut down
on differences between bionic and glibc.

Bug: 11156955
Change-Id: Ib7231f01aa9676dff30aea0af25d597bfe07bc73

10 years agoMerge "Add more functionality to glibc symbol checker."
Dan Albert [Thu, 14 Aug 2014 21:18:49 +0000 (21:18 +0000)]
Merge "Add more functionality to glibc symbol checker."

10 years agoAdd more functionality to glibc symbol checker.
Dan Albert [Wed, 13 Aug 2014 20:04:28 +0000 (13:04 -0700)]
Add more functionality to glibc symbol checker.

Also scan NDK's unwanted symbols list (to show the things that we're
exporting but the NDK isn't. Symbols hidden in the NDK will be marked
with a *.

Add a -u (--unwanted) flag to disable the first two printed groups
(all symbols in bionic, all symbols in glibc). This is helpful when
wanting to grep in the list of unwanted symbols.

Finally, update the list of known differences between us and glibc.

Change-Id: I6fdb4126823098430454763c391bd8cd369a75bb

10 years agoMerge "Move mtctxres.c to libc_dns.a." into lmp-dev
Dan Albert [Fri, 15 Aug 2014 01:14:13 +0000 (01:14 +0000)]
Merge "Move mtctxres.c to libc_dns.a." into lmp-dev

10 years agoMove mtctxres.c to libc_dns.a.
Dan Albert [Thu, 14 Aug 2014 22:43:25 +0000 (15:43 -0700)]
Move mtctxres.c to libc_dns.a.

Has the effect of making ___mtctxres hidden.

Bug: 11156955
Change-Id: I5aa5f49344ad5ecb33f48737430561b329bcbb0d
(cherry picked from commit 891ec7a6e46e60d7dfa1cf229e14a8e8634e272b)

10 years agoMerge "malloc_usable_size returns the original size." into lmp-dev
Christopher Ferris [Thu, 14 Aug 2014 21:43:11 +0000 (21:43 +0000)]
Merge "malloc_usable_size returns the original size." into lmp-dev

10 years agomalloc_usable_size returns the original size.
Christopher Ferris [Thu, 14 Aug 2014 19:48:04 +0000 (12:48 -0700)]
malloc_usable_size returns the original size.

Bug: 16874447
Change-Id: Ie3ce683fd1f58b837b8ea91dc798e561b8593356

10 years agoam 4f85c6ff: Merge "Add memory ordering constraint, convert to C11 atomics"
Hans Boehm [Thu, 14 Aug 2014 01:21:44 +0000 (01:21 +0000)]
am 4f85c6ff: Merge "Add memory ordering constraint, convert to C11 atomics"

* commit '4f85c6ffd31d1f8cc000ab326edd8edb7ecd55a9':
  Add memory ordering constraint, convert to C11 atomics

10 years agoLabel pages mapped by linker_allocator
Dmitriy Ivanov [Fri, 8 Aug 2014 23:57:15 +0000 (16:57 -0700)]
Label pages mapped by linker_allocator

(cherry picked from commit 51a22a12ab370933a35463f5c81223132ec64dcb)

Bug: 17013324
Change-Id: I345c9d0fecc29d3626c5be01cc3c0ed1583ac361