Commit graph

7633 commits

Author SHA1 Message Date
Elliott Hughes
1b2b8362c9 Merge \"Don\'t declare SYS_* constants for unavailable __NR_* constants.\"
am: 20de9ef5bd

Change-Id: Ib9e6ef7fc06df0ac42414870061da287a9692d09
2016-07-18 20:48:52 +00:00
Elliott Hughes
d2f725eaed Don't declare SYS_* constants for unavailable __NR_* constants.
Bug: https://code.google.com/p/android/issues/detail?id=215853
Change-Id: Iaaa3ce888deb8d032208bf636b7badaed6a72d30
2016-07-18 12:48:39 -07:00
Dan Albert
548d8e0374 Merge \"Put the legacy stdio fds back for pre-M.\"
am: 098d8ef5b2

Change-Id: I32565181dcfc9caab8212baa1c3f7a03f490ce0d
2016-07-15 21:48:30 +00:00
Dan Albert
32d7ca35ec Merge \"Add an alias for _CTYPE_N.\"
am: 730fa648c2

Change-Id: I84e7abe390146bfb2deb0987ccd997fd11c7d6aa
2016-07-15 21:02:25 +00:00
Dan Albert
32c79c279d Put the legacy stdio fds back for pre-M.
Change-Id: I2e397b04cba2969b9f9a3767b9b2fd12a289fcd2
2016-07-15 12:54:14 -07:00
Dan Albert
77bd6073fb Add an alias for _CTYPE_N.
gnustl is using this. It would be easy to change gnustl to *not* use
it for Android, but we've had this in released NDKs for years now so
we probably need this anyway.

Change-Id: I398a550664bf4ccbd9ea54f53c65428293a599a4
2016-07-15 12:54:05 -07:00
Yabin Cui
cd165f63c2 Merge \"Force pthread_cond_timedwait_relative_np using CLOCK_MONOTONIC.\"
am: a24a2476d0

Change-Id: I5d1ebca87932f915fc33dd44d3b383e83b940d90
2016-07-15 01:39:12 +00:00
Yabin Cui
a24a2476d0 Merge "Force pthread_cond_timedwait_relative_np using CLOCK_MONOTONIC." 2016-07-15 01:29:28 +00:00
Colin Cross
f45e58585c Merge \"Convert malloc_debug from Android.mk to Android.bp\"
am: 0393437b53

Change-Id: Iea3dbd038677e42075c6be87fceeb32e442ae152
2016-07-14 19:47:18 +00:00
Colin Cross
0393437b53 Merge "Convert malloc_debug from Android.mk to Android.bp" 2016-07-14 19:43:29 +00:00
Elliott Hughes
7513194e8a Merge \"Support 32-bit ARM vdso.\"
am: 85f900d589

Change-Id: I20c259c574b519e10efc054b7f2ae13ec9f7b451
2016-07-14 17:32:57 +00:00
Colin Cross
baa4899d38 Convert malloc_debug from Android.mk to Android.bp
Change-Id: I60ad376d222a92a29263c2804dcd1bd0d3c383d0
2016-07-14 09:07:56 -07:00
Yabin Cui
fe4a4d8f67 Force pthread_cond_timedwait_relative_np using CLOCK_MONOTONIC.
Previous patch changed pthread_cond_timedwait_relative_np to use
CLOCK_REALTIME, which causes app compatibility problem. So change
it back to CLOCK_MONOTONIC.

Bug: 30106240
Change-Id: I8e04058e92ede098f4f9f8d133f094001921441e
2016-07-13 16:08:48 -07:00
Elliott Hughes
4ce902c30e Support 32-bit ARM vdso.
Linux 4.1 added this.

Bug: http://b/19198045
Change-Id: I28be802ff403a61dd6733a001411b3ff05fef5a5
2016-07-12 13:55:51 -07:00
Colin Cross
769f3a9153 Merge \"Rename Android.soong.mk to Android.mk\"
am: 7fd1e75e24

Change-Id: I6ee75b0f4f53667eb820542529febcbe1751a494
2016-07-12 16:20:25 +00:00
Colin Cross
7f0e89fadd Rename Android.soong.mk to Android.mk
Soong is always on now, so we don't have to distinguish between
makefiles that should be ignored because Soong is handling them with an
Android.bp file, and makefiles that are still needed with Soong.  All
obsolete Android.mk files have been removed, rename all Android.soong.mk
files to Android.mk.

Change-Id: Ic0494e1800dec13a9f5714559cffe3a5ebe49418
2016-07-11 16:54:20 -07:00
Christopher Ferris
ec9c1d3f00 Merge \"Update the kernel header documentation.\"
am: 4580ea4f16

Change-Id: I69c3d6edb6107183da96f4bf5b36d15cc50dc525
2016-07-08 22:36:56 +00:00
Christopher Ferris
2974eeca4c Update the kernel header documentation.
Change the references to using the android kernel source, to use
the linux stable source code repository.

Change-Id: Ibc6c90fc67c80bef235459bb3af31656f4d403ac
2016-07-08 15:29:51 -07:00
Christopher Ferris
1d9f403ec4 Merge \"Add the record alloc option.\"
am: 779aa5ac33

Change-Id: Icdda3305fef2804b92692b31459fcfde2c83de1c
2016-07-08 22:05:00 +00:00
Christopher Ferris
7bd01783a8 Add the record alloc option.
This option adds the ability to record all of the allocation requests
and dump them to a file when a signal is sent to the process.

Included in this change, redo the option processing to add a new
string option.

Bug: 27747898

Change-Id: Ida043362e38b5eb1d459c99db9c2581015dab366
2016-07-08 14:05:17 -07:00
Neil Fuller
f1f8486776 Merge \"Update timezone data to 2016f\"
am: a0e205e3b4

Change-Id: I6f76a9c1183b601810debfba7fddeb30e543c006
2016-07-07 15:13:12 +00:00
Neil Fuller
516f09c963 Update timezone data to 2016f
The 2016f release of the tz code and data is available. It reflects the
following changes, which were either circulated on the tz mailing list
or are relatively minor technical or administrative changes:

   Changes affecting future time stamps

     The Egyptian government changed its mind on short notice, and
     Africa/Cairo will not introduce DST starting 2016-07-07 after all.
     (Thanks to Mina Samuel.)

     Asia/Novosibirsk switches from +06 to +07 on 2016-07-24 at 02:00.
     (Thanks to Stepan Golosunov.)

   Changes to past and future time stamps

     Asia/Novokuznetsk and Asia/Novosibirsk now use numeric time zone
     abbreviations instead of invented ones.

   Changes affecting past time stamps

     Europe/Minsk's 1992-03-29 spring-forward transition was at 02:00
not 00:00.
     (Thanks to Stepan Golosunov.)

Note: Paul Eggert changed the key used to sign the tzdata bundle and
the new public key cannot be found. The changes to the data since
2016e have been verified visually.

Change-Id: I11b49d9916e67313978fd893acf091e9f99f6d33
Test: Ran CTS/android.core.tests.libcore.package.harmony_java_util
Test: Ran CTS/android.core.tests.libcore.package.harmony_java_text
Test: Ran CTS/android.core.tests.libcore.package.libcore
Bug: 29991153
2016-07-06 18:41:23 +01:00
Elliott Hughes
9d63da82fb Merge \"x86-64\'s va_list is not a pointer type.\"
am: 204c4d1b80

Change-Id: I40675ac38f8442bb4ee66c048752919f7beb099e
2016-06-30 20:53:18 +00:00
Pirama Arumuga Nainar
a227bf399d Merge \"Revert \"Skip Clang\'s integrated-as for hand-coded assembly\"\"
am: 1fec29e77b

Change-Id: I0e3caf46128a44f8cfdd167547817e2d8efe3b5c
2016-06-30 20:49:36 +00:00
Elliott Hughes
53420fb21e x86-64's va_list is not a pointer type.
Change-Id: I680feeb641d5411ac481daaae6fa1580e74c5563
2016-06-30 13:47:16 -07:00
Treehugger Robot
1fec29e77b Merge "Revert "Skip Clang's integrated-as for hand-coded assembly"" 2016-06-30 20:33:42 +00:00
Josh Gao
b6453c52ac Only initialize the global stack protector once.
Before, dynamic executables would initialize the global stack protector
twice, once for the linker, and once for the executable. This worked
because the result was the same for both initializations, because it
used getauxval(AT_RANDOM), which won't be the case once arc4random gets
used for it.

Bug: http://b/29622562
Change-Id: I7718b1ba8ee8fac7127ab2360cb1088e510fef5c
Test: ran the stack protector tests on angler (32/64bit, static/dynamic)
2016-06-30 12:58:32 -07:00
Josh Gao
1089afb744 Make getpid work before TLS has been initialized.
Bug: http://b/29622562
Change-Id: I648adc35c04604a7e8bc649c425f07a723e96d3a
Test: code dependent on this change no longer crashes
2016-06-30 12:58:32 -07:00
Elliott Hughes
6c6a696332 Merge \"Apparently mips and x86\'s va_list is a pointer type.\"
am: 60be638ae6

Change-Id: I72cf962f53e703b2b52529f43cc2cf8b1ad106f3
2016-06-30 19:55:44 +00:00
Elliott Hughes
8ed118db61 Apparently mips and x86's va_list is a pointer type.
And clang won't let you have a function declaration where some arguments
have nullability specifiers and others don't.

Change-Id: I450b0221a3f7f068d5fe971dfbc0ba91d25710e8
2016-06-30 12:46:21 -07:00
Elliott Hughes
f4d5d9e9c7 Merge \"Remove __nonnull (in favor of _Nonnull).\"
am: 3b4e11faa8

Change-Id: I5b844da400d21cc64730065f2f9a2111a89ea560
2016-06-30 18:18:38 +00:00
Elliott Hughes
9eb3ae122f Remove __nonnull (in favor of _Nonnull).
It's a dangerous pain in the ass, and we're only using it in one place, and
that's a mistake too.

Change-Id: Ida1d1286aaa1343bdee95fa092fcb45ff3258f77
2016-06-30 10:37:03 -07:00
Pirama Arumuga Nainar
b2f5a58866 Revert "Skip Clang's integrated-as for hand-coded assembly"
This reverts commit 8d414dd2b1.

Reverting this since https://android-review.googlesource.com/#/c/244800/ adds -fno-integrated-as globally.

Change-Id: I29f53a385c16f44ead5dc744b0f2dd18a4af1731
2016-06-30 00:16:54 +00:00
Josh Gao
d7fc79ad53 Merge changes I98c9329f,I40936f7b,I09d20ff1
am: 1159c196db

Change-Id: Id118e7961eaeb3fa3f7c40abcbf158e45bee32f6
2016-06-29 21:56:02 +00:00
Treehugger Robot
1159c196db Merge changes I98c9329f,I40936f7b,I09d20ff1
* changes:
  Defer registration of the arc4random fork-detect handler.
  Make getpid work before the main thread is initialized.
  Take the arc4random lock before forking.
2016-06-29 21:45:35 +00:00
Josh Gao
c80ffece02 Defer registration of the arc4random fork-detect handler.
Previously, arc4random would register a fork-detecting pthread_atfork
handler to not have to call getpid() after a fork. pthread_atfork uses
pthread_mutex_lock, which requires the current thread to be initialized,
preventing the use of arc4random for initializing the global stack guard,
which needs to happen before the main thread has been initialized.

Extract the arc4random fork-detection flag and use the existing
arc4random fork handler to set it.

Bug: http://b/29622562
Change-Id: I98c9329fa0e489c3f78cad52747eaaf2f5226b80
2016-06-28 15:52:59 -07:00
Josh Gao
3e45901439 Make getpid work before the main thread is initialized.
Bug: http://b/29622562
Test: code dependent on this change no longer crashes
Change-Id: I40936f7b35d9e58182aeb2e34e52f54088700825
2016-06-28 15:52:59 -07:00
Josh Gao
250667aaf6 Take the arc4random lock before forking.
Bug: http://b/24675038
Test: stepped through a fork call in gdb
Change-Id: I09d20ff1d103d0c005f2a0cdd9b0a8710ab2392c
2016-06-28 15:52:59 -07:00
Pirama Arumuga Nainar
476b301eb1 Merge \"Skip Clang\'s integrated-as for hand-coded assembly\"
am: 9158386758

Change-Id: Iccc7a425b1b68903db309efb8385e19ee8edeb4f
2016-06-27 22:48:43 +00:00
Treehugger Robot
9158386758 Merge "Skip Clang's integrated-as for hand-coded assembly" 2016-06-27 22:39:49 +00:00
Pirama Arumuga Nainar
8d414dd2b1 Skip Clang's integrated-as for hand-coded assembly
Bug: http://b/28149048
Bug: http://b/29771478

Clang recently switched to using integrated assembler for Mips.
However, it fails to compile some of the hand-coded assembly files in
bionic.  Disable integrated-as for the time being.

Change-Id: I2eed4391f6827224da74383387bdd9105de5a857
2016-06-27 15:09:05 -07:00
Neil Fuller
365dbece7f Merge \"Update timezone data to 2016e\"
am: bb400855c3

Change-Id: Ideb25d2e0d74e9e73d38ecaa5300e82b85a01972
2016-06-24 09:42:08 +00:00
Neil Fuller
325b14a76e Update timezone data to 2016e
Changes affecting future time stamps

    Africa/Cairo observes DST in 2016 from July 7 to the end of October.
    Guess October 27 and 24:00 transitions. (Thanks to Steffen Thorsen.)
    For future years, guess April's last Thursday to October's last
    Thursday except for Ramadan.

  Changes affecting past time stamps

    Locations while uninhabited now use '-00', not 'zzz', as a
    placeholder time zone abbreviation.  This is inspired by Internet
    RFC 3339 and is more consistent with numeric time zone
    abbreviations already used elsewhere.  The change affects several
    arctic and antarctic locations, e.g., America/Cambridge_Bay before
    1920 and Antarctica/Troll before 2005.

    Asia/Baku's 1992-09-27 transition from +04 (DST) to +04 (non-DST) was
    at 03:00, not 23:00 the previous day.  (Thanks to Michael Deckers.)

Bug: 29354265
Test: Ran CTS/android.core.tests.libcore.package.harmony_java_util
Test: Ran CTS/android.core.tests.libcore.package.harmony_java_text
Test: Ran CTS/android.core.tests.libcore.package.libcore
(cherry picked from commit 1b0ee2041c)

Change-Id: I00b892b160769faae6fc8e0df2a58211a43bc1a0
2016-06-23 16:47:20 +01:00
Elliott Hughes
68ea651461 Merge \\"Don\\'t expose all BSD extensions.\\" am: 112be469bb
am: 8d9b692c4f

Change-Id: If6eedc1078aa2f760147a48382d22ad01feaa80b
2016-06-14 00:15:36 +00:00
Elliott Hughes
9c8d711aa5 Don't expose all BSD extensions.
Just expose the ones that bionic historically leaked.

Also, many of the M_* constants in <math.h> are actually POSIX.

Change-Id: I6275df84c5866b872b71f1c8ed14e2aada12b793
2016-06-13 14:14:43 -07:00
Josh Gao
b1b036f845 Merge \\"Update symbol versions.\\" am: c713adeca1
am: acd0d2f612

Change-Id: I671c3eb7aab7494ae67bb82ef49d15c61e0916b8
2016-06-13 08:07:51 +00:00
Josh Gao
95fa26e590 Update symbol versions.
Bug: http://b/28178111
Change-Id: I8e9fb919d96693dd320962775e991caf5aeb0107
2016-06-10 17:50:14 -07:00
Elliott Hughes
548453f52e Merge \\"Rationalize visibility.\\" am: 2ed5852759
am: a82358224f

Change-Id: I5154c5fe8e7d5745dd4bfe07a217f47ae8e4a7c4
2016-06-10 20:50:51 +00:00
Treehugger Robot
2ed5852759 Merge "Rationalize visibility." 2016-06-10 20:41:16 +00:00
Elliott Hughes
0766784b71 Merge \\"Remove obsolete GCC workaround.\\" am: 5e02bde75d
am: 9050d35b5b

Change-Id: I9bd8134531594aebeb5a704398ae3b1ec30939c7
2016-06-10 20:40:59 +00:00
Elliott Hughes
213584bb9d Remove obsolete GCC workaround.
bionic is no longer built with GCC.

Change-Id: If01c53d8f6ec7e801bfcdc61775cc24356eb8434
2016-06-10 12:49:04 -07:00
Christopher Ferris
ddb6314c7d Merge \\"Fix the SIZE_T_MAX SSIZE_MAX defines.\\" am: 93bae32c27
am: ed392f649f

Change-Id: I09d699b124a6372928434b048224ebf1dfe4db38
2016-06-10 00:50:26 +00:00
Elliott Hughes
3ba55f8022 Rationalize visibility.
If it's C or POSIX, it's in. If it's BSD or GNU, it's guarded by __USE_BSD
or __USE_GNU.

Bug: https://code.google.com/p/android/issues/detail?id=194631
Change-Id: Ife51a21c2b37b060db56780d29c929805b199cb6
2016-06-09 17:40:19 -07:00
Treehugger Robot
93bae32c27 Merge "Fix the SIZE_T_MAX SSIZE_MAX defines." 2016-06-10 00:35:38 +00:00
Christopher Ferris
47fcffff60 Fix the SIZE_T_MAX SSIZE_MAX defines.
This should not affect the underlying values, just the types used
by the defines.

This fixes any warnings where code does something like:

  printf("%zx", SIZE_T_MAX);

Change-Id: I4beb6d382f30261e4fe133a88fb503984911326d
2016-06-09 16:35:37 -07:00
Elliott Hughes
bc3a6a9573 Merge \\"Add ctermid.\\" am: f3c39b26b5
am: 8d4f7acfe9

Change-Id: I13abb53b3e759f69721ecc6b33cffdb61011e597
2016-06-09 23:31:47 +00:00
Elliott Hughes
20788aec00 Add ctermid.
Change-Id: I7c7c815c2725df222932db923632c8b6419741ab
2016-06-09 15:16:32 -07:00
Elliott Hughes
a5e7a624b6 Merge \\"Add futimes, futimesat, and lutimes.\\" am: 70d99a1053
am: fe25bf8fe5

Change-Id: I5f1e4ddcc7e9448629f520e69e5957ce3551be13
2016-06-09 17:50:23 +00:00
Elliott Hughes
449eff02d2 Add futimes, futimesat, and lutimes.
Spotted these while cleaning up <sys/cdefs.h> --- if we remove __USE_XOPEN2K8,
libchrome decides you "must" have futimes. Adding the missing functions (all
just alternative interfaces to utimensat(2) system call) lets us clean up
without breaking anything.

Change-Id: If44fab08ee3de0e31066d650d128a3c96323529b
2016-06-08 19:51:20 -07:00
Elliott Hughes
ab75e6b380 Merge \\"Move /vendor/bin down with /vendor/xbin.\\" am: cf4c3649ad
am: 98c495ed6a

Change-Id: Ia17103fde70d455b048b1f4e3be43a08f8480eaf
2016-06-08 19:58:59 +00:00
Elliott Hughes
900bd02b65 Merge \\"More C compatibility.\\" am: 34985b60c1
am: be5dbd8bb8

Change-Id: If07051357cf971774145180bf5a187b610d423d7
2016-06-08 19:56:28 +00:00
Elliott Hughes
cf4c3649ad Merge "Move /vendor/bin down with /vendor/xbin." 2016-06-08 19:53:21 +00:00
Elliott Hughes
409e48add1 More C compatibility.
Add C11 static_assert to <assert.h>. Remove uses of __dead while we're there:
__noreturn already does the same thing on those functions.

Fix <uchar.h> so it works from C.

<stdalign.h> and <stdnoreturn.h> are provided by clang, so there's nothing
for us to do.

Bug: http://b/29178582
Change-Id: Iebc46223868729a26d1a61eb125b76cbcb83a22d
2016-06-08 10:52:15 -07:00
Elliott Hughes
8cabd86c43 Move /vendor/bin down with /vendor/xbin.
The intention is that /vendor/*bin _extends_ rather than overrides.

Change-Id: Iad7db78f653345d79aa6f87abe0a3c2a797f71a3
2016-06-08 10:17:26 -07:00
Erik Kline
2d1209dfa1 Merge \\"Add /vendor/xbin to root\\'s path.\\" am: 74669e99ce
am: a258d220b1

Change-Id: If00b5c21d8a68fa89d0e707ac60434a7054a6fa2
2016-06-08 01:24:58 +00:00
Treehugger Robot
74669e99ce Merge "Add /vendor/xbin to root's path." 2016-06-08 01:06:49 +00:00
Elliott Hughes
f17dd0c005 Merge "Preliminary cleanup of <sys/cdefs.h>." am: 30ad0dd6ad
am: 2278f77e18

* commit '2278f77e185c15f703c5513ae9ce6962d487f693':
  Preliminary cleanup of <sys/cdefs.h>.

Change-Id: I52dacdc75b3b172c83a3c9897bbc3af0fb9a2298
2016-06-07 20:27:35 +00:00
Elliott Hughes
f4840507b5 Preliminary cleanup of <sys/cdefs.h>.
We don't support anything other than Clang and GCC, and we don't support
GCC earlier than 4.9.

Move the various synonyms for __attribute__(__whatever__) together.

Fix a __STDC__VERSION__ (for __STDC_VERSION__) typo.

Drop support for BSD _ANSI_SOURCE and _C99_SOURCE; there's enough confusing
nonsense here already, and plenty of other ways to ask for obsolete standards.

There are plenty more problems here -- what I really want to do is rationalize
our treatment of __STDC_VERSION__ -- but let's get some of this easy stuff
out of the way first.

Bug: https://code.google.com/p/android/issues/detail?id=194631
Change-Id: I7526b9770fdc01f8a4667781b65e2fb08287b20b
2016-06-06 17:35:53 -07:00
Elliott Hughes
240e8f82c1 Merge "Just use libstdc++ for the cxa stuff inside bionic." am: 901cc14822
am: c1a361a313

* commit 'c1a361a31350777bce06c0f409c74aaf237748fe':
  Just use libstdc++ for the cxa stuff inside bionic.

Change-Id: Id5ab9ada875ed995a4616bc8b5f580017c1bd18a
2016-06-06 18:18:08 +00:00
Treehugger Robot
901cc14822 Merge "Just use libstdc++ for the cxa stuff inside bionic." 2016-06-06 18:04:54 +00:00
Josh Gao
285f38d474 Merge changes I32e726c7,I1dc9a708,I09cc335b,Ifb8a66ab,I0e2c25bc, ... am: c5799dd13c
am: 56a81c096d

* commit '56a81c096d85dd4245ebe4be13764cb825ee7cf4':
  versioner: whitelist atexit, turn on symbol checking by default.
  versioner: add missing test.
  versioner: fix false positive with functions only available as inlines.
  versioner: improve error output slightly.
  versioner: merge stdout and stderr in the test runner.
  versioner: clean up tests, test runner.
  versioner: ignore functions that are __INTRODUCED_IN_FUTURE.
  versioner: autodetect paths when no specified.
  versioner: improve usage messages.
  Remove __cachectl.

Change-Id: Iab0de231472e06fe5146618c3c6b5be3dc9c203b
2016-06-04 06:15:57 +00:00
Josh Gao
99a84c8316 Remove __cachectl.
bionic doesn't have an implementation for this function, but neither
does the kernel. cachectl has existed in the kernel as a stub that
returns ENOSYS for over a decade.

Bug: http://b/28178111
Change-Id: Id35f85fd143c5ea0d45d04b1021893cf5c0c749d
2016-06-03 15:01:18 -07:00
Josh Gao
c7336988bd Merge "Fix __errordecl on clang." am: f21ca653b7
am: 8e8f0f26a3

* commit '8e8f0f26a3aec7e8ae7f33a4d97c56328e150703':
  Fix __errordecl on clang.

Change-Id: Icafdc7481f871843f74c66d2271472ca7cb1548b
2016-06-03 19:41:53 +00:00
Treehugger Robot
f21ca653b7 Merge "Fix __errordecl on clang." 2016-06-03 19:29:12 +00:00
Dimitry Ivanov
5e4e7ee984 Merge "Remove __brk" am: c42811e5bc
am: f9d8052575

* commit 'f9d805257557e99e9d3ae84711d260f27f072637':
  Remove __brk

Change-Id: I21909d8b89920e9f239fe7c2c8def5863d05ed30
2016-06-03 18:49:36 +00:00
Josh Gao
8ba4424a41 Fix __errordecl on clang.
__attribute__((__error__)) doesn't exist on clang.

Bug: http://b/28381737
Change-Id: I75f39308ecfd60164811958fa40c9b96c92fd329
2016-06-03 10:36:37 -07:00
Dimitry Ivanov
71e783d8a4 Remove __brk
The symbol is unused and deprecated

Bug: http://b/29005114
Change-Id: I5e99c8b029514e8b2405a1eec23ac8941374a8a4
2016-06-03 08:33:51 -07:00
Josh Gao
28caa24974 Merge changes I1bb1925a,Icd638673 am: d23c37bc3f
am: 170e117af1

* commit '170e117af18b5d435adb41bf2ed26193c085e165':
  versioner: introduce.
  Update header versions for NDK platform fixes.

Change-Id: I4829805923c0580f2e8df7fcc3d0f4d21fdcc974
2016-06-02 21:51:27 +00:00
Treehugger Robot
d23c37bc3f Merge changes I1bb1925a,Icd638673
* changes:
  versioner: introduce.
  Update header versions for NDK platform fixes.
2016-06-02 21:29:48 +00:00
Josh Gao
46b44160e9 Update header versions for NDK platform fixes.
Bug: http://b/28178111
Change-Id: Icd638673b409aa43a91490f77c6b4d79c9ea20d9
2016-06-02 13:40:35 -07:00
Colin Cross
72fbf31302 Merge "Remove deprecated Android.mk files" am: 8428fb03c8
am: 5ec9e21cf3

* commit '5ec9e21cf38f657a6c39139a3153a634328cb816':
  Remove deprecated Android.mk files

Change-Id: I91715713f78f4e75f5c80133dd0e6ee1b555e7e2
2016-06-02 16:40:19 +00:00
Colin Cross
8428fb03c8 Merge "Remove deprecated Android.mk files" 2016-06-02 16:31:40 +00:00
Josh Gao
fc9f5dae25 Merge "Remove declaration for __brk." am: e20730ca0b
am: 73d521e9db

* commit '73d521e9dbd06b556dc965c3a3416250253e4518':
  Remove declaration for __brk.

Change-Id: I17152efdb7eeba281d818b135005c79ae6d7fc15
2016-06-02 02:35:00 +00:00
Treehugger Robot
e20730ca0b Merge "Remove declaration for __brk." 2016-06-02 02:25:59 +00:00
Josh Gao
6e9c1f61d8 Remove declaration for __brk.
Bug: http://b/28178111
Change-Id: I972789cd5da552000c32fd107b9df98330323d89
2016-06-01 18:21:06 -07:00
Erik Kline
9a29c3f241 Add /vendor/xbin to root's path.
Bug: 28850734
Change-Id: Ibfc5ae019bec2efe6d188bacdd7fb009178fc837
2016-05-30 12:06:11 +09:00
Elliott Hughes
816fab9538 Just use libstdc++ for the cxa stuff inside bionic.
We have an explicit link map now, so we don't need a separate copy of libstdc++
that's built with -fvisibility=hidden.

Bug: http://b/29009180
Change-Id: I2d794d62f52621e6ad258ca6d455f9bd3830d829
2016-05-27 17:57:46 -07:00
Elliott Hughes
db1a6549ce Merge "Remove libstdc++ include files." am: 676f6e3c7f
am: c94f3dff48

* commit 'c94f3dff4815b0d3d60d89699ade186a0bc80608':
  Remove libstdc++ include files.

Change-Id: Iccf3dfa77c4374c6c0bd7db76b1876cc56582b27
2016-05-27 23:50:37 +00:00
Treehugger Robot
676f6e3c7f Merge "Remove libstdc++ include files." 2016-05-27 23:36:18 +00:00
Elliott Hughes
f44b232d85 Remove libstdc++ include files.
We still need <new> for bionic, and to build libstdc++.

Change-Id: Ic7b26340576a5355007a06db9c1bec395be49ae1
2016-05-27 15:49:31 -07:00
Elliott Hughes
22ca405487 Merge "Improve diagnostics from the assembler __strcpy_chk routines." am: 2f82dc50ed
am: 1c1b6cea82

* commit '1c1b6cea82b9fe8aa1b1c4bcde7d0cbb7cd5a01f':
  Improve diagnostics from the assembler __strcpy_chk routines.

Change-Id: I02056119cadfa76722da81851e832288b93c7508
2016-05-27 15:33:09 +00:00
Colin Cross
7510c33b61 Remove deprecated Android.mk files
These directories all have Android.bp files that are always used now,
delete the Android.mk files.

Change-Id: Ib0ba2d28bff88483b505426ba61606da314e03ab
2016-05-26 16:41:57 -07:00
Elliott Hughes
bdd8f896dd Improve diagnostics from the assembler __strcpy_chk routines.
Change-Id: Ib95b598f7f8338cc1a618c00232a4259dc4a6319
2016-05-26 16:38:34 -07:00
Elliott Hughes
199802d3e1 Merge "Improve diagnostics from the assembler __strcat_chk routines." am: a3c2df9378
am: 7f1ded75e8

* commit '7f1ded75e8d8e5aaf5265682d1111006e9d7b01b':
  Improve diagnostics from the assembler __strcat_chk routines.

Change-Id: Idb85a39d0ef19347393697f88cfb4ca67affe611
2016-05-26 23:12:09 +00:00
Treehugger Robot
a3c2df9378 Merge "Improve diagnostics from the assembler __strcat_chk routines." 2016-05-26 23:01:25 +00:00
Elliott Hughes
c75da09f4f Improve diagnostics from the assembler __strcat_chk routines.
Change-Id: I44cbe5389c66de6618e581a6e302eea22c39d6fb
2016-05-26 14:55:00 -07:00
Josh Gao
7c70661cb7 Merge "Don\'t use __u64/__u32 in <sys/user.h>." am: 8c2467ae07
am: 65d3e95e2c

* commit '65d3e95e2ca436a0d4bc9f215ae337c2baecb4c0':
  Don't use __u64/__u32 in <sys/user.h>.

Change-Id: I4b40ebf20cbc30f43cd71aad57c81eed19a1779f
2016-05-26 00:36:12 +00:00
Treehugger Robot
8c2467ae07 Merge "Don't use __u64/__u32 in <sys/user.h>." 2016-05-26 00:19:14 +00:00
Josh Gao
bb129214ad Don't use __u64/__u32 in <sys/user.h>.
The typedefs for __u64 and __u32 aren't in scope in this file, so
switch fields declared with these to use the matching underlying type.

Bug: http://b/28178111
Change-Id: Id4eec1f7dc81d77e78043227c15e621debe3a48a
2016-05-25 15:25:13 -07:00
Christopher Ferris
cb37ba83cd Merge "Update documentation for malloc debug." am: e85de5b103
am: 774da1b430

* commit '774da1b43006f8fb14a4ebf4d80c3fec88914586':
  Update documentation for malloc debug.

Change-Id: Ia5521c6fa9b705346f8eb8d372c4cca168353206
2016-05-25 20:57:52 +00:00
Christopher Ferris
eab4803290 Update documentation for malloc debug.
Add a new document that describes the previous version of malloc debug.

Add a small update to the current documentation to indicate it only
applies to N and later.

Change-Id: Ief74c253ba79018777aa688bde7f5b35319fa4d4
2016-05-25 13:34:54 -07:00
Elliott Hughes
92af86f6f6 Merge "Make all rt_sigtimedwait signatures match." am: c7e0ae064d
am: 38ba0203dd

* commit '38ba0203dd3b9067095de43192cdac5a8477dc2f':
  Make all rt_sigtimedwait signatures match.

Change-Id: Ic2be93191e911612ae57516995fcbbb91408206d
2016-05-23 19:31:12 +00:00
Elliott Hughes
8963dd337e Make all rt_sigtimedwait signatures match.
There's no change to the generated stubs, because the script only cares
that this is a pointer type, not what it's a pointer to.

Change-Id: I766720965f0f3d201fc90677a076b26870485377
2016-05-23 11:20:19 -07:00
Christopher Ferris
4cf494e3f2 Merge "Updated to v4.4.11 kernel headers." am: 51ee871e19
am: b1081bdaaa

* commit 'b1081bdaaa56e71b2ffd757dccda38b7327c1a98':
  Updated to v4.4.11 kernel headers.

Change-Id: I26b58f6b0b15ecb646d07bdb89c6746fc76b2773
2016-05-20 01:39:43 +00:00
Christopher Ferris
82ef6a19cb Updated to v4.4.11 kernel headers.
Change-Id: I6b55a921670d32d7bfff3c304d8001058409d3f7
2016-05-19 17:03:14 -07:00
Colin Cross
c4a82b43ed Merge "Force clang for bionic" am: 7d99bd38e4
am: 3eed7d1c8f

* commit '3eed7d1c8f7383b9cbe331ee4d9d24785a618bd4':
  Force clang for bionic

Change-Id: Ic4ba74a03a5c78670fbcec46e8b1b1d39f7d3659
2016-05-18 22:09:41 +00:00
Colin Cross
5a22d3e13d Force clang for bionic
Bionic will only compile with clang, and Android.mk files force clang,
turn it on in Android.bp.

Change-Id: I9db06298adfeab4eeef031d88aa310776cad3af0
2016-05-18 14:06:22 -07:00
Elliott Hughes
f81e0979b0 Merge "Regenerate NOTICE files." am: 5df5884743
am: 4923294fc2

* commit '4923294fc267fb11849cf093089688565d8348c0':
  Regenerate NOTICE files.

Change-Id: Ibe15057d2a512ef1dabe448e8ab9fadabbe5063e
2016-05-17 03:18:11 +00:00
Elliott Hughes
28f899605b Merge "Stop including <machine/cpu-features.h>." am: ecffdeb0e2
am: b749fcbbb1

* commit 'b749fcbbb16e36fc87a3132e2975d3d8353af64d':
  Stop including <machine/cpu-features.h>.

Change-Id: I2a172badcffe9a4c156d574dea84d8ffc8203c98
2016-05-17 03:13:11 +00:00
Elliott Hughes
5df5884743 Merge "Regenerate NOTICE files." 2016-05-17 03:10:29 +00:00
Elliott Hughes
ecffdeb0e2 Merge "Stop including <machine/cpu-features.h>." 2016-05-17 03:06:48 +00:00
Elliott Hughes
382bd666e2 Stop including <machine/cpu-features.h>.
We're not looking at __ARM_ARCH__, because we don't support ARMv6.

Bug: http://b/18556103
Change-Id: I91fe096af697dc842a57e97515312e3530743678
2016-05-16 17:52:40 -07:00
Colin Cross
aea5ce13d7 Merge "Use Android.soong.mk to handle mixed Android.mk and Android.bp dirs" am: 79d0281456
am: f8e8b02145

* commit 'f8e8b02145766e61aa6528162cf68ea436d5c2e7':
  Use Android.soong.mk to handle mixed Android.mk and Android.bp dirs

Change-Id: I1bc00f9b3ed50ae660e2143bc94bbfd7881f7074
2016-05-17 00:49:57 +00:00
Elliott Hughes
882b8afedc Regenerate NOTICE files.
Also clean up some near-miss copyright headers in libm, and remove
some cruft in <grp.h>/<pwd.h> that the script can't automatically
ignore since we stripped all the tabs in those files.

Change-Id: I10796c54dda1ceba87822ae0de26b5d71b54972b
2016-05-16 17:46:00 -07:00
Colin Cross
79d0281456 Merge "Use Android.soong.mk to handle mixed Android.mk and Android.bp dirs" 2016-05-17 00:42:17 +00:00
Colin Cross
acf2c26bf6 Use Android.soong.mk to handle mixed Android.mk and Android.bp dirs
When building with soong Android.mk files are ignored in directories
that have Android.bp files.  Only parts of bionic have been converted to
Android.bp files, including some directories that have subdirectories
with Android.mk files.

Add Android.soong.mk files to include subdirectories to any directory
that has an Android.bp file but also has subdirectories with only
Android.mk files.

Change-Id: Ibd3c27d51c44f7a4b42dad0bc747e357b4ae34ca
2016-05-16 16:55:08 -07:00
Elliott Hughes
1a45fd0315 Merge "Fix <resolv.h> and <netinet/tcp.h> so dnscap builds." am: cb8ef17b07
am: 74a4bfb38c

* commit '74a4bfb38c94fed77ecdfa0e42a6bd9f75d1feb7':
  Fix <resolv.h> and <netinet/tcp.h> so dnscap builds.

Change-Id: Idc4481e0c5a86df8e843dda0854bedd2fe4f93c6
2016-05-16 22:11:38 +00:00
Elliott Hughes
cb8ef17b07 Merge "Fix <resolv.h> and <netinet/tcp.h> so dnscap builds." 2016-05-16 21:59:50 +00:00
Elliott Hughes
00bf97308c Merge "We have the _r ether_ntoa/ether_aton functions too." am: 20fc6ecf90
am: abaf7f0bb7

* commit 'abaf7f0bb7fabddbb86dbc21960f20e232e4f18f':
  We have the _r ether_ntoa/ether_aton functions too.

Change-Id: Iae7a307b3014fbc21a8942e220ead62728e31d46
2016-05-16 21:25:08 +00:00
Elliott Hughes
f021061a23 Fix <resolv.h> and <netinet/tcp.h> so dnscap builds.
Some guy on the internet complained that dnscap doesn't build out of the box.
Now it does.

Bug: http://b/27839637
Change-Id: I8c4f22d3c3f8885a6fe06029d89ef68a15931027
2016-05-16 14:03:43 -07:00
Elliott Hughes
c6190a9839 We have the _r ether_ntoa/ether_aton functions too.
We've also had them since H, not L.

Change-Id: Iee7633ea97a0ee9a00bf7b62ead315acf02a3c8e
2016-05-16 13:24:31 -07:00
Elliott Hughes
bf95aaf65a Merge "Fix our *ether* headers mess." am: e79b630daa
am: 4d9f4086bd

* commit '4d9f4086bdb9f216e3d1093ac7fd6dcdbbd76a65':
  Fix our *ether* headers mess.

Change-Id: I706905b70d3fa5db77f32c13a25848615002af53
2016-05-16 20:07:52 +00:00
Elliott Hughes
f6324d540a Fix our *ether* headers mess.
Move everything to where it should be.

Along the way, we lose <net/ethertypes.h>. glibc only has a handful of these
types, and they're all in <net/ethernet.h>, not <net/ethertypes.h>. I've taken
the liberty of not including the AppleTalk ones, since it is 2016.

Also, <net/if_ether.h> should be <netinet/if_ether.h> (though with different
contents).

Bug: http://b/28519060
Change-Id: Ia41c3fc136fd3e6b008c8d08018e0629134ea6fc
2016-05-13 11:00:22 -07:00
Dan Willemsen
644e6a5eb7 Merge "Update Android.bp to match Android.mk" am: 56469e8de2
am: d39c529186

* commit 'd39c5291861916e348ef0be26a549b849d283d89':
  Update Android.bp to match Android.mk

Change-Id: I004591ffca57b7510a7a9d56631e49788dec8cf5
2016-05-12 22:24:29 +00:00
Dan Willemsen
0c6570817f Update Android.bp to match Android.mk
* Remove --exclude-libs ldflags (e29e99c51)
* Mips strlen check was inverted
* ARM specific libc changes only apply to the shared library
* Reorder libjemalloc and malloc_common to match Make's ordering (for
  better binary diffing)

Change-Id: Ib41bd47565b1e8fadd285daa7b337cff1edd0808
2016-05-12 13:34:35 -07:00
Pierre Imai
fb3363f678 Merge "Always update search domain paths." am: 6db7e5a10d
am: f0d6097189

* commit 'f0d60971897f1cf7d79c59285de1c2a67092f96c':
  Always update search domain paths.

Change-Id: I63b0b458c220e42e036a387f44858b76541a2c63
2016-05-12 03:01:01 +00:00
Pierre Imai
6db7e5a10d Merge "Always update search domain paths." 2016-05-12 02:51:23 +00:00
Elliott Hughes
2638d1b774 Merge "Remove <net/if_types.h>." am: b277bb755a
am: a3c6190bad

* commit 'a3c6190bad3583be5e1cfc3c174227f872cc7c62':
  Remove <net/if_types.h>.

Change-Id: I783e76a0103c19e838e42a5786f2aa46642131da
2016-05-12 02:36:45 +00:00
Elliott Hughes
bab9d7954a Remove <net/if_types.h>.
Bug: http://b/28519060
Change-Id: I7481df528b281344879b4aac32551d8c40824195
2016-05-11 15:00:19 -07:00
Elliott Hughes
6d3daa7242 Merge "Remove various bits of header cruft." am: d0b173316a
am: cff5daca20

* commit 'cff5daca202bd1e350692bc10f6c32ade06f9787':
  Remove various bits of header cruft.

Change-Id: I8e6dc1763ceb330dd95c3ee5d2dee676db4bb41d
2016-05-11 21:56:53 +00:00
Dimitry Ivanov
e2663ee164 Merge "Remove linker-namespace functions from the header" am: 35c115c196
am: d118a32058

* commit 'd118a320584d14063d29aa96dc31d190d0dd61c6':
  Remove linker-namespace functions from the header

Change-Id: I69ee16509ed01da55c145534869b4f8392cc91c6
2016-05-11 21:28:06 +00:00
Elliott Hughes
d0b173316a Merge "Remove various bits of header cruft." 2016-05-11 21:25:01 +00:00
Dimitry Ivanov
35c115c196 Merge "Remove linker-namespace functions from the header" 2016-05-11 21:14:41 +00:00
Pierre Imai
06e2202a4c Always update search domain paths.
_resolv_set_nameservers_for_net() so far did not update the search
paths, unless the servers changed as well.

BUG: 28437641
Change-Id: Id31f2d97c173e00357fb2ba95908afb4572c0fc1
2016-05-11 11:06:55 +09:00
Elliott Hughes
12f35419ce Remove various bits of header cruft.
Mostly BSD _KERNEL stuff.

Change-Id: Ic0a6914437d0c831a83588a435079d0c719fcbdf
2016-05-10 17:32:48 -07:00
Elliott Hughes
5da438bc3b Merge "Remove declaration of pthread_cond_timedwait_relative_np." am: 366164da10
am: a7e53c57e6

* commit 'a7e53c57e62cf8ef557ccf2172539e5830831be0':
  Remove declaration of pthread_cond_timedwait_relative_np.

Change-Id: I27ade05e72541dd20ad328a0ab5525294601d193
2016-05-10 20:05:18 +00:00
Dimitry Ivanov
41fd29532b Remove linker-namespace functions from the header
They are intended for platform use only and we shouldn't have them
in the public header file.

Bug: http://b/28174921
Change-Id: Ib9b3d0fa9442cfa2e784a693ad567d1444d774e5
2016-05-09 18:15:41 -07:00
Elliott Hughes
f5fd82eb26 Merge "Remove pthread_mutex_lock_timeout_np from <pthread.h>." am: d2f3ce9c89
am: 209b22ae69

* commit '209b22ae691390fefb269b0458accd1d6322a448':
  Remove pthread_mutex_lock_timeout_np from <pthread.h>.

Change-Id: I8d95b44a0ec3a23481aca3c3d81ab6feec43042d
2016-05-09 20:37:54 +00:00
Elliott Hughes
3efddd4b9e Merge "Generalize the clone function slightly." am: 0155995e8d
am: 6c8de255ec

* commit '6c8de255ec0db2005d4d55ef4c8d307ceedb5fa1':
  Generalize the clone function slightly.

Change-Id: I643485333465b6731e045f8824a1de0052721b12
2016-05-09 20:37:53 +00:00
Elliott Hughes
e2f25831eb Remove declaration of pthread_cond_timedwait_relative_np.
It's been deprecated long enough, and nothing left in the tree (except
code that isn't even built) is still using it.

Bug: http://b/27918161
Change-Id: Ibf824c1063d49484037de5c03b98bec5bdd4dcf6
2016-05-09 13:29:26 -07:00
Elliott Hughes
d2f3ce9c89 Merge "Remove pthread_mutex_lock_timeout_np from <pthread.h>." 2016-05-09 20:15:50 +00:00
Elliott Hughes
0155995e8d Merge "Generalize the clone function slightly." 2016-05-09 20:14:50 +00:00
Elliott Hughes
3164ab733c Remove pthread_mutex_lock_timeout_np from <pthread.h>.
It's been deprecated long enough, and nothing left in the tree (except
code that isn't even built) is still using it.

Bug: http://b/27918161
Change-Id: I1786f5e2528a23c17b3f7298f4ba5fc7761a26c5
2016-05-06 17:46:48 -07:00
Elliott Hughes
138480339e Merge "End all lists in check-symbols-glibc.py with a ,." am: 1a26db8448
am: eb8d8241a0

* commit 'eb8d8241a02b9b613dba2d13323ed3f53d199fe3':
  End all lists in check-symbols-glibc.py with a ,.

Change-Id: I403e1956201a426c9b2b23d92f2143b746657d50
2016-05-06 23:53:06 +00:00
Elliott Hughes
e104a2edf3 Generalize the clone function slightly.
* Allow clone where both the child function and stack are null. It's
obviously wrong to ask to call a function without a stack, but it's not
necessarily wrong to supply no stack if you're also not supplying a
function.

* Reimplement fork in terms of the clone function, rather than using the
clone system call directly.

This is intended as a step towards enabling use of pid namespaces.

Change-Id: I03c89bd1dc540d8b4ed1c8fdf6644290744b9e91
2016-05-06 16:37:00 -07:00
Elliott Hughes
026295c35d Merge "Remove a duplicate declaration, improve check-symbols-glibc.py." am: 5ac45a2add
am: 58df16b0b4

* commit '58df16b0b42ec00b5cda08a9d6863a2e7e5971d6':
  Remove a duplicate declaration, improve check-symbols-glibc.py.

Change-Id: I12c8e036c8900c861a1c48e6fd6734f670653369
2016-05-06 22:57:32 +00:00
Elliott Hughes
2adde7bef5 End all lists in check-symbols-glibc.py with a ,.
Change-Id: I85f591c51e32fa001e611a035e2e51305c837d22
2016-05-06 15:44:26 -07:00
Treehugger Robot
5ac45a2add Merge "Remove a duplicate declaration, improve check-symbols-glibc.py." 2016-05-06 22:42:11 +00:00
Dan Albert
482e042200 Merge "Remove --exclude-libs ldflags." am: 96029e30ce
am: 4bdac0d684

* commit '4bdac0d68418ad995fa869fd36e38e18281af2f5':
  Remove --exclude-libs ldflags.

Change-Id: I8ee199154ac8e2f3ee1d028fc6ccea106b65f956
2016-05-06 21:58:15 +00:00
Elliott Hughes
21788265da Remove a duplicate declaration, improve check-symbols-glibc.py.
Change-Id: I97a98dfc8acaa93172386b4475487a05a35a9337
2016-05-06 14:43:50 -07:00
Dan Albert
e29e99c514 Remove --exclude-libs ldflags.
This is now done by default in the build system.

The comments say don't do this, but we have linker scripts that
protect the few symbols we have to actually keep now.

Bug: http://b/24166967
Change-Id: Iff1beeb0f54f80b23fb1561f37a39f208e0bf676
2016-05-06 13:18:59 -07:00
Dan Albert
3d4973f96d Merge "Use clang\'s nullability instead of nonnull." am: 98ac6f415f
am: 34c417f2a5

* commit '34c417f2a5abb53486a54b6b6ab800c0621f9cd7':
  Use clang's nullability instead of nonnull.

Change-Id: Ibed696d2f74ecb0c7bd36ca8c22ba792e50090a8
2016-05-06 02:44:10 +00:00
Treehugger Robot
98ac6f415f Merge "Use clang's nullability instead of nonnull." 2016-05-06 02:27:18 +00:00
Dan Albert
baa2a973bd Use clang's nullability instead of nonnull.
http://clang.llvm.org/docs/AttributeReference.html#nonnull

_Nonnull is similar to the nonnull attribute in that it will instruct
compilers to warn the user if it can prove that a null argument is
being passed. Unlike the nonnull attribute, this annotation indicated
that a value *should not* be null, not that it *cannot* be null, or
even that the behavior is undefined. The important distinction is that
the optimizer will perform surprising optimizations like the
following:

    void foo(void*) __attribute__(nonnull, 1);

    int bar(int* p) {
      foo(p);

      // The following null check will be elided because nonnull
      // attribute means that, since we call foo with p, p can be
      // assumed to not be null. Thus this will crash if we are called
      // with a null pointer.
      if (src != NULL) {
        return *p;
      }
      return 0;
    }

    int main() {
      return bar(NULL);
    }

Note that by doing this we are no longer attaching any sort of
attribute for GCC (GCC doesn't support attaching nonnull directly to a
parameter, only to the function and naming the arguments
positionally). This means we won't be getting a warning for this case
from GCC any more. People that listen to warnings tend to use clang
anyway, and we're quickly moving toward that as the default, so this
seems to be an acceptable tradeoff.

Change-Id: Ie05fe7cec2f19a082c1defb303f82bcf9241b88d
2016-05-05 17:11:54 -07:00
Elliott Hughes
33063dbfbb Merge "Remove <sys/atomics.h>." am: 5e2342f970
am: bcb41f4b03

* commit 'bcb41f4b03b94000bbd26f2f4e1489d8727d0739':
  Remove <sys/atomics.h>.

Change-Id: I78b1b4eb4078c9c8e65901bd91122fd671f3bc95
2016-05-06 00:08:15 +00:00
Elliott Hughes
5e2342f970 Merge "Remove <sys/atomics.h>." 2016-05-05 23:55:04 +00:00
Chih-hung Hsieh
ab9dac6fb6 Merge "Fix google-explicit-constructor warnings." am: 9f0aab88a8
am: 00975937b4

* commit '00975937b48b7ef3d50aac14afa72d41ee925904':
  Fix google-explicit-constructor warnings.

Change-Id: I7987cd4126e397cf1f4610f20b7bd62439d92aa7
2016-05-04 00:53:48 +00:00
Chih-hung Hsieh
9f0aab88a8 Merge "Fix google-explicit-constructor warnings." 2016-05-04 00:37:58 +00:00
Colin Cross
49490bfec3 Merge "Update strip property format" am: 0f93237db7
am: eac1faede3

* commit 'eac1faede3fd3f50d9bceed6806b95795d841327':
  Update strip property format

Change-Id: Iecfc273ae057c3d941db26ab2b2062c05dda4055
2016-05-03 21:34:32 +00:00
Colin Cross
0f93237db7 Merge "Update strip property format" 2016-05-03 21:20:43 +00:00
Christopher Ferris
45c126b68d Merge "Update documentation to work with gitiles." am: 2ab69ccf10
am: 9fa7b87802

* commit '9fa7b87802360d419486c592389b147add2e91f6':
  Update documentation to work with gitiles.

Change-Id: I3027dff2d336d8d9afe2ae5452af62323df7b951
2016-05-03 19:57:44 +00:00
Christopher Ferris
2ab69ccf10 Merge "Update documentation to work with gitiles." 2016-05-03 19:47:47 +00:00
Chih-Hung Hsieh
62e3a078aa Fix google-explicit-constructor warnings.
Bug: 28341362
Change-Id: I84effbdfa1b9b39328a909b7f70fe17e7ee316c8
2016-05-03 12:08:05 -07:00
Elliott Hughes
54e38cbdb3 Merge "Move <machine/endian.h> somewhere more private." am: 9ee905f12f
am: 19da0526bc

* commit '19da0526bca0f441da6085eae2cc10efa52c6775':
  Move <machine/endian.h> somewhere more private.

Change-Id: Ia9e2d579798f645e7da19558deb1d56ded7968f9
2016-05-03 01:04:39 +00:00
Elliott Hughes
9ee905f12f Merge "Move <machine/endian.h> somewhere more private." 2016-05-03 00:45:38 +00:00
Colin Cross
2ffa600c9a Merge "Update Android.bp to match Android.mk" am: 45d3cf9f0f
am: 24c1e2df1c

* commit '24c1e2df1ce40583561946ebdb7552e88451bc12':
  Update Android.bp to match Android.mk

Change-Id: Ie50fd99a246e583869433866ff112fc1ffb64cea
2016-05-02 23:34:51 +00:00
Treehugger Robot
45d3cf9f0f Merge "Update Android.bp to match Android.mk" 2016-05-02 23:19:20 +00:00
Elliott Hughes
ed507636c0 Remove <sys/atomics.h>.
It's no longer used in the platform (including vendor code), and everyone
should be using <stdatomic.h> anyway.

Change-Id: Ic1ad743625ffb15b4837ff6ccb91dcd840d19ec2
2016-05-02 16:04:57 -07:00
Elliott Hughes
2e1177fcdc Merge "Move glibc-syscalls.h into bits/." am: 3338ee5257
am: 4ce2c90739

* commit '4ce2c9073974b7837b9e97f9f55c555f21204ccf':
  Move glibc-syscalls.h into bits/.

Change-Id: If515c3f4b7fa8791a84e534bb626d3690d12e10a
2016-05-02 23:04:43 +00:00
Elliott Hughes
3d125175d7 Move <machine/endian.h> somewhere more private.
Bug: http://b/28519060
Change-Id: I1c7811f95f46c65d4152bcf509b6e048c45bc28b
2016-05-02 15:44:56 -07:00
Elliott Hughes
3338ee5257 Merge "Move glibc-syscalls.h into bits/." 2016-05-02 22:41:34 +00:00
Elliott Hughes
680e7fd49f Merge "Remove <sys/utime.h>." am: 3fb1b37bba
am: d616ea2081

* commit 'd616ea2081097b6c5a10dbb1e0d27c0a593c2361':
  Remove <sys/utime.h>.

Change-Id: I4030dc76eaf83a690a3f81f17a37e8d7c42f22f1
2016-05-02 21:52:38 +00:00
Elliott Hughes
cd8266a4bd Merge "Move the IEEE fp header out of the public headers." am: d3b4166b5b
am: 4146ea5a68

* commit '4146ea5a685bfef5b4c799c16241085d583e3c51':
  Move the IEEE fp header out of the public headers.

Change-Id: I64b594d96c8b25610ba15ffdc31e05eeecfbdce4
2016-05-02 21:41:35 +00:00
Elliott Hughes
3fb1b37bba Merge "Remove <sys/utime.h>." 2016-05-02 21:35:14 +00:00
Elliott Hughes
d3eed62477 Merge "Move nsswitch.h into libc/dns/include." am: eb9b0a1819
am: 95915bdab9

* commit '95915bdab9dd3f43ebd4db7f33a3de214e348afe':
  Move nsswitch.h into libc/dns/include.

Change-Id: I047b4b4e5a0c8edf5b4f79f12d1656c503c4c3f5
2016-05-02 21:31:03 +00:00
Elliott Hughes
c6355f7f4c Merge "Remove <net/if_ieee1394.h>." am: af5afdba34
am: acb5ffc6b3

* commit 'acb5ffc6b37415efd582db61df6d94d813eb13c8':
  Remove <net/if_ieee1394.h>.

Change-Id: I6a742a40004f77c4ed3df6c8f4210fd403ad0cde
2016-05-02 21:31:01 +00:00
Elliott Hughes
83bdc795d0 Merge "Remove <sys/ioctl_compat.h>." am: 5ab6f6c3bd
am: ca9953a31a

* commit 'ca9953a31a889e19ee88eddf994dd361ee4af3e4':
  Remove <sys/ioctl_compat.h>.

Change-Id: I061d26e0a6d188b8a289b9369a1547efec0546dd
2016-05-02 21:31:00 +00:00
Elliott Hughes
d3b4166b5b Merge "Move the IEEE fp header out of the public headers." 2016-05-02 21:22:32 +00:00
Elliott Hughes
eb9b0a1819 Merge "Move nsswitch.h into libc/dns/include." 2016-05-02 21:11:30 +00:00
Elliott Hughes
af5afdba34 Merge "Remove <net/if_ieee1394.h>." 2016-05-02 21:11:10 +00:00
Elliott Hughes
5ab6f6c3bd Merge "Remove <sys/ioctl_compat.h>." 2016-05-02 21:07:13 +00:00
Elliott Hughes
fd75024866 Merge "Remove unused <sys/socketcalls.h> header." am: d3f51a482f
am: f016491373

* commit 'f016491373b5ece75377fb20227d8824f9c757c4':
  Remove unused <sys/socketcalls.h> header.

Change-Id: Ie2b5979fc142e7feb9b574e9813994f1a34908fd
2016-05-02 20:19:35 +00:00
Elliott Hughes
e10ff49ec3 Remove <sys/utime.h>.
As far as I can tell, this is a Windows-ism.

Bug: http://b/28519060
Change-Id: I28ca39ba799aaae81695eff3ce57eacb326e941c
2016-05-02 13:13:49 -07:00
Elliott Hughes
d3f51a482f Merge "Remove unused <sys/socketcalls.h> header." 2016-05-02 20:03:53 +00:00
Elliott Hughes
64959d2b7f Remove <sys/ioctl_compat.h>.
This is all legacy BSD stuff (legacy even on BSD!) that's meaningless on Linux.

Bug: http://b/28519060
Change-Id: I92d317ede844ebd50b48368021fa2ad036e2b0c1
2016-05-02 12:53:00 -07:00
Elliott Hughes
8aabbd7f63 Move glibc-syscalls.h into bits/.
Bug: http://b/28519060
Change-Id: I0de1ba16b16eb7b780de89954d3fa45cca2f5295
2016-05-02 12:47:58 -07:00
Elliott Hughes
b0da5760dc Move the IEEE fp header out of the public headers.
Bug: http://b/28519060
Change-Id: I9f1a1a9ac1f22462bf86991b57c51824cb42eefd
2016-05-02 12:44:41 -07:00
Elliott Hughes
82140bed6a Remove <net/if_ieee1394.h>.
It's 2016.

Bug: http://b/28519060
Change-Id: Idbb2c40f37e57a87933b8b13b20e15035105e918
2016-05-02 12:35:26 -07:00
Elliott Hughes
42d752754e Move nsswitch.h into libc/dns/include.
Not a public header file except in NetBSD, where it came from. Even
OpenBSD doesn't have it.

Bug: http://b/28519060
Change-Id: Id5feec4a4e8010a9f4433e73b1bfa6f935d884b9
2016-05-02 12:24:58 -07:00
Josh Gao
e96d0485af Merge changes I25dca710,I85fdf927,I667fe53e,I46bf95ac am: 583a4f8d35
am: 0910c25811

* commit '0910c258110cdb36ab4dfb67f7c0c6f248100fb6':
  Remove nonexported _ns_flagdata from public header.
  Add platform specific version tags.
  Add __INTRODUCED_IN_FUTURE for unreleased APIs.
  Add versioning information to symbols.

Change-Id: Ia45ce4f55f24985ff6c1cc17d7ade2004611fa21
2016-05-02 18:53:31 +00:00
Josh Gao
583a4f8d35 Merge changes I25dca710,I85fdf927,I667fe53e,I46bf95ac
* changes:
  Remove nonexported _ns_flagdata from public header.
  Add platform specific version tags.
  Add __INTRODUCED_IN_FUTURE for unreleased APIs.
  Add versioning information to symbols.
2016-05-02 18:33:04 +00:00
Elliott Hughes
6bad319c5f Remove unused <sys/socketcalls.h> header.
These constants come from <linux/net.h> on Linux.

Change-Id: I546fadac2478771c2455298d776dbc4a20c73b17
2016-05-02 08:09:37 -07:00
Elliott Hughes
d8892af6dd Merge "Fix various empty .h files in bionic." am: ec4671928c
am: ae76af4962

* commit 'ae76af4962750936c5c9b4c65933299145fd2ca1':
  Fix various empty .h files in bionic.

Change-Id: I3d7996f593daf7248b8ab96a5d11e37de8da3fe1
2016-05-02 14:55:44 +00:00
Elliott Hughes
ec4671928c Merge "Fix various empty .h files in bionic." 2016-05-02 14:43:01 +00:00
Lorenzo Colitti
4cb072d686 Merge "Record the resolution start time on errors." am: edfc5d7b74
am: 1ea26abae5

* commit '1ea26abae5f72e9509de42061419b6956f79b6b5':
  Record the resolution start time on errors.

Change-Id: I13868536d139255210a2e9bb58b7288391e9b5ea
2016-05-02 11:42:08 +00:00
Lorenzo Colitti
edfc5d7b74 Merge "Record the resolution start time on errors." 2016-05-02 11:28:42 +00:00
Pierre Imai
8b8611a0e6 Record the resolution start time on errors.
Also only record samples on the first try for a server.

BUG: 25731675

Change-Id: I10a68813c6636874e63aca1db661e63e1af72a2d
2016-05-02 17:39:19 +09:00
Elliott Hughes
6b3bec031f Fix various empty .h files in bionic.
Bug: http://b/28432688
Change-Id: I339f5221b9e66ce5983eb3685b9405e8d6f58808
2016-04-29 22:30:19 -07:00
Josh Gao
a18f854409 Merge changes I0aa46d9d,I6431111b am: ee6fb66dc1
am: f8b63759dd

* commit 'f8b63759dd035e4e235830b996d2cc028869e802':
  Add __INTRODUCED_IN_{32,64}.
  Add __INTRODUCED_IN hack to complex test.

Change-Id: I22ed91a7b06063632a4219f1d96eff8a08a44ce2
2016-04-30 00:55:59 +00:00
Josh Gao
b089e468bd Remove nonexported _ns_flagdata from public header.
Bug: http://b/28178111
Change-Id: I25dca710964099c4e07bf694635db75a72b38508
2016-04-29 16:39:50 -07:00
Josh Gao
5a3d5cac64 Add __INTRODUCED_IN_{32,64}.
Some symbols appeared at different times between 32 and 64 bit. Add a
macro to represent this.

Bug: http://b/28178111
Change-Id: I0aa46d9da3c7301b60df0416bce252f0f37b7b36
2016-04-29 16:39:50 -07:00
Josh Gao
d51bc71294 Add platform specific version tags.
Some functions were added at different times on different platforms.
This should hopefully get most of them.

Bug: http://b/28178111
Change-Id: I85fdf92779a2f3277e9b537c6bfc7216790c607a
2016-04-29 16:39:50 -07:00
Josh Gao
34c599a8b0 Add __INTRODUCED_IN_FUTURE for unreleased APIs.
Future API levels aren't known (e.g. 25 could be a maintenance release
of N that doesn't contain any bionic updates), so use a placeholder
macro that we can find and replace with the actual API level before each
release.

Bug: http://b/28178111
Change-Id: I667fe53ea1ac49b64135170fc30d5dbe9df94e29
2016-04-29 16:39:50 -07:00
Josh Gao
14adff1cfa Add versioning information to symbols.
Bug: http://b/28178111
Change-Id: I46bf95accd819f4521afb1173d8badcc5e9df31c
2016-04-29 16:39:50 -07:00
Elliott Hughes
e3b535e9a7 Merge "Remove __UNAVAILABLE." am: e23df93915
am: 5a9efce22d

* commit '5a9efce22dacab89453be3722e73d9781ca2b40d':
  Remove __UNAVAILABLE.

Change-Id: Id018e29a6e24a9b11b67465569df126f234374ff
2016-04-29 22:20:05 +00:00
Colin Cross
37f3632806 Update strip property format
Change-Id: Ic95655d25753b2c0f056a5660d42f582f90abe74
2016-04-29 14:06:14 -07:00
Colin Cross
ee84786bfc Update Android.bp to match Android.mk
Change-Id: I6b71d8ee91c550e2d37c88ce2ca088964639d433
2016-04-29 14:06:14 -07:00
Elliott Hughes
302be31045 Merge "Fix <wctype.h>." am: 146cbacea0
am: 005276fd95

* commit '005276fd959dfd79102c06fc901e7035342facf2':
  Fix <wctype.h>.

Change-Id: I0bc876c8f914a48c62493a8595e8e1433846902e
2016-04-29 18:20:29 +00:00
Elliott Hughes
7e94d292b0 Remove __UNAVAILABLE.
We fixed the things we needed this for, and should never reintroduce a
similar mistake in future.

Change-Id: I74b447bcf22ea533f3c79db48b66a3c217d76c2f
2016-04-29 11:07:55 -07:00
Elliott Hughes
146cbacea0 Merge "Fix <wctype.h>." 2016-04-29 18:05:28 +00:00
Elliott Hughes
124f8a64db Merge "Remove declaration of pthread_cond_timeout_np." am: adc8d34137
am: 45588044be

* commit '45588044be26939024317f164ff53098ff2bd553':
  Remove declaration of pthread_cond_timeout_np.

Change-Id: I6377985e80f6a36e0c2b94fd2275b5a8ce33c794
2016-04-29 15:22:21 +00:00
Elliott Hughes
adc8d34137 Merge "Remove declaration of pthread_cond_timeout_np." 2016-04-29 15:11:59 +00:00
Neil Fuller
216c3007ed Merge "Update timezone data to 2016d" 2016-04-29 09:17:52 +00:00
Neil Fuller
418bdafb82 Merge "Update timezone data to 2016c" 2016-04-29 09:17:23 +00:00
Neil Fuller
f1b38527ea Merge "Update timezone data to 2016b" 2016-04-29 09:16:43 +00:00
Elliott Hughes
01ebfc388b Merge "Implement mblen(3)." am: bd8773d19d
am: aa92cc613e

* commit 'aa92cc613e51ca64cf09d3d43497a6ad46ff77c0':
  Implement mblen(3).

Change-Id: I8f9e2bcc091c70ec90859a86f042f279315713d5
2016-04-29 03:11:19 +00:00
Elliott Hughes
7ba106c784 Fix <wctype.h>.
* Fix the return type of towlower_l/towupper_l.
* Implement wctrans/wctrans_l/towctrans/towctrans_l.
* Move declarations that POSIX says are available from both <wchar.h> and
  <wctype.h> to <bits/wctype.h> and include from both POSIX headers.
* Write the missing tests.

Change-Id: I3221da5f3d7e8a2fb0a7619dc724de45f7b55398
2016-04-28 18:22:06 -07:00
Treehugger Robot
bd8773d19d Merge "Implement mblen(3)." 2016-04-29 00:43:26 +00:00
Elliott Hughes
6f6f9058fa Implement mblen(3).
Change-Id: I65948ea5b9ecd63f966ba767ad6db4a2effc4700
2016-04-28 16:41:29 -07:00
Dimitry Ivanov
629a0f2053 Merge "Remove -fvisibility=hidden from dns code" am: 1519a90834
am: b962d6ec47

* commit 'b962d6ec47e4b48f37ce86d7e664bd1d3d8ac9e5':
  Remove -fvisibility=hidden from dns code

Change-Id: Ifc27ab8610791d356095ddd10f75026ce4fee7c8
2016-04-28 20:02:28 +00:00
Treehugger Robot
1519a90834 Merge "Remove -fvisibility=hidden from dns code" 2016-04-28 19:50:48 +00:00
Dimitry Ivanov
e5ed43beff Remove -fvisibility=hidden from dns code
We no longer need it because version script controls
list of symbols we export.

This also fixes mips/mips64 builds.

Bug: http://b/24767418
Change-Id: I61c504665fc0349275384596d375155991743e05
2016-04-28 11:38:33 -07:00
Treehugger Robot
fb6322df12 Merge "[mips64] Call __memset_chk_fail correctly for mips64." am: 488f5fc
am: 9adbc73

* commit '9adbc733b066b67c33425e5fadb4cc8ce25802e3':
  [mips64] Call __memset_chk_fail correctly for mips64.

Change-Id: I5075f78e9a83e7f5e09ff31801c2f228b8e1abd7
2016-04-28 17:43:39 +00:00
Elliott Hughes
3615a52126 Remove declaration of pthread_cond_timeout_np.
Bug: http://b/27918161
Change-Id: I61b5710dc394c155bdb4577a750b96195033251e
2016-04-28 10:07:21 -07:00
Predrag Blagojevic
b640e031a8 [mips64] Call __memset_chk_fail correctly for mips64.
This change resolves Fortify1_{gcc|clang}_DeathTest.* test failures.

Change-Id: Ia936c159323bdf8e9577160ee92b99e66e6793ea
2016-04-28 17:13:07 +02:00
Treehugger Robot
a4eda947b5 Merge "Add unwind information for r7 in arm syscalls." am: 671e6b2
am: ca1c140

* commit 'ca1c1403ac39f75decf88cde6835a4df439688b0':
  Add unwind information for r7 in arm syscalls.

Change-Id: I3b2a55a1aaf1714a8fc7bf53686725a49ba7f483
2016-04-28 04:45:06 +00:00
Christopher Ferris
f5a9123d9f Add unwind information for r7 in arm syscalls.
It turns out that clang can emit code where the sp is saved in the r7
register on arm. Unfortunately, a lot of our syscalls overwrite that
value while the syscall is executing, so unwinding through that syscall
fails.

Update the syscall generation code to add unwinding information for
these uses.

Bug: 28411713
(cherry picked from commit 6e45d37dec)

Change-Id: Ib775effc44c4113735fe9032b0602b9d63e3e390
2016-04-27 20:34:47 -07:00
Christopher Ferris
8895e3d429 Merge "Add unwind information for r7 in arm syscalls." into nyc-dev
am: 75c7830

* commit '75c7830e2273942621a9ae590125732fbee28603':
  Add unwind information for r7 in arm syscalls.

Change-Id: Iafb23b860baf8c0632cc93989f6ddff3ade41c68
2016-04-28 03:03:27 +00:00
TreeHugger Robot
75c7830e22 Merge "Add unwind information for r7 in arm syscalls." into nyc-dev 2016-04-28 02:56:31 +00:00
Treehugger Robot
b21e471eaa Merge "Make malloc debug symbols platform-private" am: b3c1ff6
am: 513f4d1

* commit '513f4d108a98692be0285688fd04323da9b85ed6':
  Make malloc debug symbols platform-private

Change-Id: Iceecae3a0e18e123f8e1cc3e523e24ee8dd5141c
2016-04-28 02:22:12 +00:00
Treehugger Robot
b3c1ff69d2 Merge "Make malloc debug symbols platform-private" 2016-04-28 02:15:05 +00:00
Josh Gao
3a3fdc640a Merge changes from topic \'bionic_unavailable\' am: 0640b91
am: 4a3962a

* commit '4a3962add737b9da577d5e7898799c5468eeb820':
  Tag unavailable functions with macro.
  Delete declarations which don't exist.

Change-Id: I74312c5c7733d4f2ed566a53a10f3a3ae6790dda
2016-04-28 01:55:55 +00:00
Josh Gao
0640b911f3 Merge changes from topic 'bionic_unavailable'
* changes:
  Tag unavailable functions with macro.
  Delete declarations which don't exist.
2016-04-28 01:46:36 +00:00
Christopher Ferris
6e45d37dec Add unwind information for r7 in arm syscalls.
It turns out that clang can emit code where the sp is saved in the r7
register on arm. Unfortunately, a lot of our syscalls overwrite that
value while the syscall is executing, so unwinding through that syscall
fails.

Update the syscall generation code to add unwinding information for
these uses.

Bug: 28411713
Change-Id: Id51a5d43c058631bb50834527f93fa299bbcf759
2016-04-27 18:31:02 -07:00
Stephen Hines
581daf45fd Merge "Enable clang builds of mips/mips64 in bionic again." am: 234ea78
am: 263c444

* commit '263c44436e922bd0dec9a0756dccdb23ad3b79b7':
  Enable clang builds of mips/mips64 in bionic again.

Change-Id: I5763272ca9a2ca1c0d387448ef7e241a37137fc7
2016-04-28 01:21:09 +00:00
Dimitry Ivanov
54548d8cf9 Make malloc debug symbols platform-private
Bug: http://b/28432442
Change-Id: I96b9cb8b57726b4e8d53069e72666cf107cdeba2
2016-04-27 18:16:16 -07:00
Josh Gao
29226f39ae Tag unavailable functions with macro.
Add an __UNAVAILABLE macro, and use it for several functions which lack
implementations, but need to have visible declarations to be reexported
in the C++ standard library.

Bug: http://b/28178111
Change-Id: Ia4ae0207bbfcb7baa61821f0ef946257b019c0db
2016-04-27 16:50:54 -07:00
Josh Gao
c194fd30c6 Delete declarations which don't exist.
Bug: http://b/28178111
Change-Id: I72d5d015d7927a8df24b3973bf8a052053a067fb
2016-04-27 16:50:54 -07:00
Stephen Hines
b5f58793cf Enable clang builds of mips/mips64 in bionic again.
Bug: http://b/25291096

The latest clang-2812033 prebuilts have all the necessary cherry-picks
to fix the mips booting issues from the past.

Change-Id: Ib3b364daaa50ef55401e016b92419b64f02f03dc
2016-04-26 21:42:02 -07:00
Pierre Imai
041c9e6d54 Merge "Fix DNS search path info." am: e1be20f
am: 7337d79

* commit '7337d79dce4e604b07f2880188133ca235b19a39':
  Fix DNS search path info.

Change-Id: Ib13ab1a1edc8c6e554874683ccda7f7b9ee846b4
2016-04-27 04:41:58 +00:00
Pierre Imai
75746069ea DO NOT MERGE Fix DNS search path info.
Fix the resolver information returned by
android_net_res_stats_get_info_for_net,
erroneously included MAXDNSRCH empty results if no search path was set.

BUG: 25731675
Change-Id: I97ef5d2d47dc62ca403a3323c7f14902e47b29b6
(cherry picked from commit 1b069a990a)
2016-04-27 13:41:42 +09:00
Pierre Imai
e1be20f648 Merge "Fix DNS search path info." 2016-04-27 04:29:24 +00:00
Pierre Imai
1b069a990a Fix DNS search path info.
Fix the resolver information returned by
android_net_res_stats_get_info_for_net,
erroneously included MAXDNSRCH empty results if no search path was set.

BUG: 25731675
Change-Id: I97ef5d2d47dc62ca403a3323c7f14902e47b29b6
2016-04-27 12:24:32 +09:00
Christopher Ferris
c7bfe2ee56 Update documentation to work with gitiles.
Remove the <pre> and <i> and <b> and use the native markdown versions
of these.

Bug: 27902359
Change-Id: Id20190d10114610d126a20b14b392ca467638f96
2016-04-26 16:43:28 -07:00
Josh Gao
a704580d77 Merge "Make <sys/user.h> compile on AArch64." am: 92b23a0
am: a3b109a

* commit 'a3b109af5d2f7c49fade20ca635b701bae85e02a':
  Make <sys/user.h> compile on AArch64.

Change-Id: Ibb53b2851cb990a4797b440be9354abb71e57c43
2016-04-26 23:22:10 +00:00
Josh Gao
d8ca92cbff Make <sys/user.h> compile on AArch64.
Previously, AArch64 used uint64_t without including <stdint.h>.

Bug: http://b/28178111
Change-Id: I8a497765d835f32b456f7eb925a6760e523163c4
2016-04-25 18:45:39 -07:00
Treehugger Robot
17f926f209 Merge "bionic: Implement getpwent and getgrent" am: 23e29e3
am: 71ad15f

* commit '71ad15f1fba11650425b9df2cff1c3fc3689ddb7':
  bionic: Implement getpwent and getgrent

Change-Id: I312373e299aa5d45b4019aec0258bb26deeab022
2016-04-22 19:59:30 +00:00
Mark Salyzyn
722ab05b25 bionic: Implement getpwent and getgrent
Not efficient to iterate through given the large number of Android
ids (AID). Compile warning will result if you use these functions,
telling you as much. Not for general consumption, however for
example, some filesystem tests would like to see these to perform
all corners.

About 1/4 second for getpwent, and 1/8 second for getgrent to iterate
through all reserved Android aids.

Bug: 27999086
Change-Id: I7784273b7875c38e4954ae21d314f35e4bf8c2fc
2016-04-22 10:44:19 -07:00
Neil Fuller
481325673a Update timezone data to 2016d
am: f3158b94ab

* commit 'f3158b94ab102b0f1066990683f08d283417cbba':
  Update timezone data to 2016d

Change-Id: Iea25bd95a8762444b5981c3f015d613375a4ab81
2016-04-22 13:11:36 +00:00
Neil Fuller
60200a7411 Update timezone data to 2016d
Changes affecting future time stamps

    America/Caracas switches from -0430 to -04 on 2016-05-01 at 02:30.
    (Thanks to Alexander Krivenyshev for the heads-up.)

    Asia/Magadan switches from +10 to +11 on 2016-04-24 at 02:00.
    (Thanks to Alexander Krivenyshev and Matt Johnson.)

    New zone Asia/Tomsk, split off from Asia/Novosibirsk. It covers
    Tomsk Oblast, Russia, which switches from +06 to +07 on 2016-05-29
    at 02:00.  (Thanks to Stepan Golosunov.)

  Changes affecting past time stamps

    New zone Europe/Kirov, split off from Europe/Volgograd.  It covers
    Kirov Oblast, Russia, which switched from +04/+05 to +03/+04 on
    1989-03-26 at 02:00, roughly a year after Europe/Volgograd made
    the same change.  (Thanks to Stepan Golosunov.)

    Russia and nearby locations had daylight-saving transitions on
    1992-03-29 at 02:00 and 1992-09-27 at 03:00, instead of on
    1992-03-28 at 23:00 and 1992-09-26 at 23:00.  (Thanks to Stepan
    Golosunov.)

    Many corrections to historical time in Kazakhstan from 1991
    through 2005.  (Thanks to Stepan Golosunov.)  Replace Kazakhstan's
    invented time zone abbreviations with numeric abbreviations.

Bug: 28240832
(cherry picked from commit f3158b94ab)

Change-Id: If3b7189b4c60d8dfd0859b6e009461324a6a5bb2
2016-04-22 13:59:45 +01:00