4197 Commits

Author SHA1 Message Date
Elliott Hughes
137945c0d5 am 5f98c5a5: am df3aa079: am 55b4c8a4: Merge "Hide the __bionic_clone and __bionic_clone_entry implementation details."
* commit '5f98c5a54a63be80c59bcdf0d278c3e37cf9b325':
  Hide the __bionic_clone and __bionic_clone_entry implementation details.
2014-05-09 16:26:26 +00:00
Elliott Hughes
954cf0d4e2 Hide the __bionic_clone and __bionic_clone_entry implementation details.
clone(2) is the public symbol.

Also switch a test from __bionic_clone to clone; testing public API
means the test now works on glibc too.

Change-Id: If59def26a00c3afadb8a6cf9442094c35a59ffde
2014-05-08 19:00:23 -07:00
Elliott Hughes
b91610c95a am 8eed5d8b: am fae100f9: am a3ce6bdb: Merge "Fix LOG_ID_CRASH build failure."
* commit '8eed5d8bca6a3a2810bce17c2316ad44a3daa191':
  Fix LOG_ID_CRASH build failure.
2014-05-08 18:31:14 +00:00
Elliott Hughes
19d97abe9b am 64b53953: am 96fd4159: am 1ee18d0e: Merge "Send bionic\'s fatal logging to the crash log."
* commit '64b539533dc3a6ca21c680003d60fe1fcdd6fbdb':
  Send bionic's fatal logging to the crash log.
2014-05-08 18:31:12 +00:00
Elliott Hughes
ae0a62b014 Fix LOG_ID_CRASH build failure.
Change-Id: I66517e30c568d7f36f6bf6b1e4507ecf14f01226
2014-05-07 17:12:40 -07:00
Elliott Hughes
011101905d Send bionic's fatal logging to the crash log.
Bug: 14159417
Change-Id: I7aa986fb8e11660035221f9bb4fe0bc40ac36c58
2014-05-07 16:35:59 -07:00
Elliott Hughes
66d8ed603b am 62fcc2f6: am b40f4243: am 8ec38997: Merge "Give bionic\'s __ANDROID_API__ a more reasonable value."
* commit '62fcc2f6f012e7c66e61e564c3592f466a2be188':
  Give bionic's __ANDROID_API__ a more reasonable value.
2014-05-07 22:35:24 +00:00
Calin Juravle
9b6b11b0f9 am 71ee6889: am ed4e01f7: am e292875c: Merge "Reserve some space in sem_t for the future."
* commit '71ee6889457eb238c6a1bcbba5ecf0587f8b71c8':
  Reserve some space in sem_t for the future.
2014-05-07 22:35:22 +00:00
Calin Juravle
7fbe52b9af am 478a1b57: am c2787015: am b6c48b20: Merge "Allow for better utmp logging."
* commit '478a1b57bd44220373cedc72813ae7a9e26f328a':
  Allow for better utmp logging.
2014-05-07 22:35:21 +00:00
Calin Juravle
c5413a55e1 am 2b180ea8: am b742e82e: am fc2af0ca: Merge "Fix ino_t and suseconds_t"
* commit '2b180ea80c79db5887c03e7d6cf2b40e7036f8e0':
  Fix ino_t and suseconds_t
2014-05-07 22:35:20 +00:00
Calin Juravle
363eb3de3a am 2b4313a2: am adf5e63a: am 764a8882: Merge "Leave more space for extensions in pthread_rwlockattr_t"
* commit '2b4313a2737a9df2c0ce2e05077980ce638643c3':
  Leave more space for extensions in pthread_rwlockattr_t
2014-05-07 22:35:19 +00:00
Elliott Hughes
c47ec798bc am 5d73936f: am 1ecf7633: am 6ad9cd41: Merge "Change the interface for fatal logging."
* commit '5d73936fabd2cdcb336ec7c84d52e91a7d5e76de':
  Change the interface for fatal logging.
2014-05-07 22:35:19 +00:00
Elliott Hughes
4aa2e6a32a Give bionic's __ANDROID_API__ a more reasonable value.
This matches what frameworks/base does with Build.VERSION and means that
bionic's version number will always sort >= than any released version.
This should prevent confusion in code that builds both against bionic
and the NDK.

(Note that <sys/cdefs.h> drags this in, so it's always in the namespace.)

Bug: 14613709
Change-Id: I91fb745920e848a6b20f2f5797c0a7d6cde6c032
2014-05-07 12:57:51 -07:00
Calin Juravle
e292875cf5 Merge "Reserve some space in sem_t for the future." 2014-05-07 14:04:32 +00:00
Calin Juravle
b6c48b20e4 Merge "Allow for better utmp logging." 2014-05-07 14:04:22 +00:00
Calin Juravle
fc2af0ca47 Merge "Fix ino_t and suseconds_t" 2014-05-07 14:04:12 +00:00
Calin Juravle
764a888218 Merge "Leave more space for extensions in pthread_rwlockattr_t" 2014-05-07 14:04:01 +00:00
Elliott Hughes
c78368f04f Change the interface for fatal logging.
This more general interface lets liblog give us any fatal log message,
regardless of source. This means we can remove the special case for
LOG_ALWAYS_FATAL with a simpler scheme that automatically works for
the VM too.

Change-Id: Ia6dbf7c3dbabf223081bd5159294835d954bb067
2014-05-06 20:37:22 -07:00
Elliott Hughes
8cfe8c1d40 am c46ffbd5: am 4a7afa48: am e05df251: Merge "Fix a gethnamaddr.c warning that\'s already fixed upstream."
* commit 'c46ffbd51e48a8902db18b5f98d767766063c236':
  Fix a gethnamaddr.c warning that's already fixed upstream.
2014-05-06 20:52:55 +00:00
Elliott Hughes
e05df25145 Merge "Fix a gethnamaddr.c warning that's already fixed upstream." 2014-05-06 20:42:10 +00:00
Elliott Hughes
80a4b70efd am 33ba85cb: am 856e6a35: am 89ca3c5a: Merge "Sync with upstream OpenBSD wcsftime.c."
* commit '33ba85cbd6807bd15f7b197a0807f6a95b6e57b5':
  Sync with upstream OpenBSD wcsftime.c.
2014-05-06 20:29:36 +00:00
Elliott Hughes
3e5f0c9849 Fix a gethnamaddr.c warning that's already fixed upstream.
We're still way out of sync, but this cleans up a tiny corner.

Change-Id: I51e76601785bf351d6418841b56e08a900a84d82
2014-05-06 11:23:40 -07:00
Elliott Hughes
2716f3e805 Sync with upstream OpenBSD wcsftime.c.
They removed the code nobody wants rather than fix the ""/L"" mixup.
Even better!

Change-Id: Ib4333acf5e90d69586805a218d2894c5dffcb82f
2014-05-06 11:12:34 -07:00
Calin Juravle
6726862e9a Fix ino_t and suseconds_t
Align ino_t and suseconds_t definitions with kernel
and OpenBSD upstream.

Bug: 14583346
Bug: 12875898
Change-Id: I0d97c6b4fc85b261472575290e6f6f2df1c8a36a
2014-05-06 18:41:26 +01:00
Elliott Hughes
59effda9ca am 00708229: am 41d97fa1: am 100168ab: Merge "Fix <math.h> to quieten most of our warnings."
* commit '0070822911bc5d5a6cf6c00c57b80b15803d8fbe':
  Fix <math.h> to quieten most of our warnings.
2014-05-06 17:29:52 +00:00
Elliott Hughes
100168abff Merge "Fix <math.h> to quieten most of our warnings." 2014-05-06 17:18:16 +00:00
Calin Juravle
0686d5e26f Reserve some space in sem_t for the future.
Reserve 12 more bytes in sem_t to give room for future implementation
improvements. This gets us to a 16 bytes sem_t. Glibc uses 32 bytes (16
actual use + 16 reserved), while OpenBSD has 16 bytes (out of which 4
are for padding).

Bug: 14587103
Bug: 12875898
Change-Id: Id835cc5abf874c651e6b5ad5b8f29c9d6ab08d5a
2014-05-06 16:24:27 +01:00
Calin Juravle
7d8f303353 Allow for better utmp logging.
Increase (UT_NAMESIZE,UT_LINESIZE,UT_HOSTSIZE) to (32,32,256).

Nobody writes utmp on Android but it would be nice to be aligned
with others who use 32,32,256 (like glibc). If ever used it will produce
nicer logging. There is no consensus in BSDs for these values.

Bug: 14584341
Bug: 12875898

Change-Id: I94af10b982b8f9fcaea897c4cf968563f38403f9
2014-05-06 15:44:14 +01:00
Calin Juravle
289ce81cde am bfc812da: am c6141470: am 7b1a95bc: Merge "Add include guard to fileext.h"
* commit 'bfc812da93c785f66e9ad4486a94f6aaa3a6fa9d':
  Add include guard to fileext.h
2014-05-06 13:54:53 +00:00
Calin Juravle
7b1a95bc76 Merge "Add include guard to fileext.h" 2014-05-06 13:47:19 +00:00
Calin Juravle
7c435f2415 Leave more space for extensions in pthread_rwlockattr_t
Change pthread_rwlockattr_t from int to long. On LP64 this gives us more
room for extensibility since longs are 8 bytes. glibc also reserves 8
bytes for this.

Bug: 14582681
Bug: 12875898
Change-Id: I55d599be0fdbbf0cb55957ec0ea62ab042bdee94
2014-05-06 13:40:24 +01:00
Elliott Hughes
9a5a3e8e74 Fix <math.h> to quieten most of our warnings.
I've reported the wcsftime bug upstream, but we really just want to use -D
to ensure the buggy code isn't built. (I've also brought our strftime a bit
closer to upstream now we have the right define.)

I don't think upstream is likely to fix all their sign-compare and
uninitialized warnings, so let's just silence them.

As for libm, again upstream isn't likely to fix all their warnings, and
silencing those made the ones that were our fault stand out. I've fixed
our <math.h> to fix the warnings caused by our lack of definitions for
the non-imprecise long-double functions. I checked the C99 standard, and
all these functions are there.

Change-Id: Iee8e1182c1db375058fb2c451eceb212bab47a37
2014-05-05 21:19:47 -07:00
Elliott Hughes
4e6c71fab9 am b8d60a2a: am e71e6a2e: am 185dd72a: Merge "bionic: make epoll_event structure packed"
* commit 'b8d60a2a0c7febce87b0511c86c3fc168c8089a4':
  bionic: make epoll_event structure packed
2014-05-06 02:59:58 +00:00
Philip Hatcher
9ded07cff6 bionic: make epoll_event structure packed
Description: In the kernel the epoll_event structure is packed
in 64 bit kernel builds to allow the structure to be more easily
compatible with 32 bit user space.  As a result, when user space
is 64-bit the structure must be packed as well.

Add unit test to show the ptr alignment issue.

Change-Id: I2c4848d5e38a357219091f350f9b6e3da05090da
Signed-off-by: Philip Hatcher <philip.hatcher@intel.com>
Signed-off-by: Fengwei Yin <fengwei.yin@intel.com>
Reviewed-by: Hazarika, Prodyut <prodyut.hazarika@intel.com>
Tested-by: Hazarika, Prodyut <prodyut.hazarika@intel.com>
2014-05-05 19:48:55 -07:00
Elliott Hughes
30dc3f8313 am 1911676c: am e0cbc5da: am 4356adc3: Merge "Remove the non-standard time64 stuff for LP64."
* commit '1911676cecafeb9ae31bfb2718c7d3a351ce50b6':
  Remove the non-standard time64 stuff for LP64.
2014-05-06 02:02:44 +00:00
Elliott Hughes
52defb7c70 Remove the non-standard time64 stuff for LP64.
We need a workaround in strftime as long as we still need to support
64-bit times on LP32.

Change-Id: I8ffb616f6312d4063fb9ea3c36b52653e8f4c5f8
2014-05-05 17:14:02 -07:00
Elliott Hughes
a07758a8bf am 3356c72f: am 48931ca1: am 629d892d: Merge "Update the NOTICE files and improve the script slightly."
* commit '3356c72f273ba62128088e37214d786aa54b06cc':
  Update the NOTICE files and improve the script slightly.
2014-05-05 23:37:25 +00:00
Elliott Hughes
629d892d0b Merge "Update the NOTICE files and improve the script slightly." 2014-05-05 23:24:00 +00:00
Elliott Hughes
bfa582d032 Update the NOTICE files and improve the script slightly.
Change-Id: Ia131634cd97ca9523e1b63dce41f66247cbaa311
2014-05-05 16:23:15 -07:00
Elliott Hughes
2a0d2202ef am b303cdc2: am 9d586d85: am 6916166e: Merge "Sync with upstream OpenBSD."
* commit 'b303cdc2c18a28becb2be5b5394dc599022f7ace':
  Sync with upstream OpenBSD.
2014-05-05 22:18:03 +00:00
Elliott Hughes
7ef978f183 am c13ea3e2: am bab07de0: am ad534985: Merge "Disable %n in printf and vfwprintf."
* commit 'c13ea3e2365a4b42c10fa437c588e25a9807687e':
  Disable %n in printf and vfwprintf.
2014-05-05 21:58:52 +00:00
Elliott Hughes
e0a36f49a9 Sync with upstream OpenBSD.
These trivial differences are are only current differences from upstream
OpenBSD.

Change-Id: Iddbee2c803911915a25e1da8b246e8403fa72daf
2014-05-05 14:57:23 -07:00
Elliott Hughes
ad534985ec Merge "Disable %n in printf and vfwprintf." 2014-05-05 21:49:22 +00:00
Elliott Hughes
e2341d08fa Disable %n in printf and vfwprintf.
Bug: 14492135
Change-Id: If190bede29e5f68a65043ddbe8e878c660933d03
2014-05-05 14:43:17 -07:00
Elliott Hughes
eac1c72997 am 2357a4cc: am d2943b60: am 8ec21d9d: Merge "Switch to current upstream OpenBSD wsetup.c."
* commit '2357a4cc7451e0387c236ab19467254483250cc1':
  Switch to current upstream OpenBSD wsetup.c.
2014-05-05 21:41:39 +00:00
Elliott Hughes
8ec21d9ded Merge "Switch to current upstream OpenBSD wsetup.c." 2014-05-05 21:33:22 +00:00
Elliott Hughes
53b24382f5 Switch to current upstream OpenBSD wsetup.c.
Change-Id: I2c1123f3e1d3c4af7fd7bf354e763934a39b78c0
2014-05-05 14:31:20 -07:00
Dmitriy Ivanov
e2822af5ee am c2419e9d: am e9e4f08e: am 580b2469: Merge "Fixes for __cxa_finalize"
* commit 'c2419e9df73156f348f498514d5a423846ce1514':
  Fixes for __cxa_finalize
2014-05-05 21:15:34 +00:00
Dmitriy Ivanov
580b246917 Merge "Fixes for __cxa_finalize" 2014-05-05 21:04:33 +00:00
Dmitriy Ivanov
6b56691a67 Fixes for __cxa_finalize
* Ability to register atexit handler from atexit handler
  * Correct way to handle both forms of atexit handler

Bug: https://code.google.com/p/android/issues/detail?id=66595
Bug: 4998315
Change-Id: I39529afaef97b6e1469c21389d54c0d7d175da28
2014-05-05 11:36:57 -07:00