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
0070822911
am 41d97fa1
: am 100168ab
: Merge "Fix <math.h> to quieten most of our warnings."
...
* commit '41d97fa15a99f38fb8126006e83243d6e868bd8a':
Fix <math.h> to quieten most of our warnings.
2014-05-06 17:25:40 +00:00
Elliott Hughes
41d97fa15a
am 100168ab
: Merge "Fix <math.h> to quieten most of our warnings."
...
* commit '100168abff75f41c0179a77777f0aef622f7ed9f':
Fix <math.h> to quieten most of our warnings.
2014-05-06 17:22:09 +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
bfc812da93
am c6141470
: am 7b1a95bc
: Merge "Add include guard to fileext.h"
...
* commit 'c614147042fa352919c891b08389cbf4512c674f':
Add include guard to fileext.h
2014-05-06 13:51:48 +00:00
Calin Juravle
c614147042
am 7b1a95bc
: Merge "Add include guard to fileext.h"
...
* commit '7b1a95bc761c584d2654f6dc355830ff2e405655':
Add include guard to fileext.h
2014-05-06 13:49:38 +00:00
Calin Juravle
7b1a95bc76
Merge "Add include guard to fileext.h"
2014-05-06 13:47:19 +00:00
The Android Automerger
195651978d
merge in master-release history after reset to 8f901feeae
2014-05-06 05:49:18 -07: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
Torne (Richard Coles)
2605261691
Test that relro sharing actually saves memory.
...
Spawn 20 child processes, have them all load the library, and compare
the total PSS used in the case where we use dlopen() and the case where
we use android_dlopen_ext() with relro sharing. We assume we will save
at least 10% of the memory; in practise this example saves 40% or more
so this should be a reasonable threshold.
Bug: 14299541
Change-Id: Idccf6b8b0eb137abae2200f1ce68fb76b3cbdd75
2014-05-06 11:38:53 +01:00
Torne (Richard Coles)
8f901feeae
am e0a8474a
: am b9b75697
: am 9b5ee4aa
: Merge "Handle empty relro segment or incorrectly sized file."
...
* commit 'e0a8474adf94d8b2ae53bd7b96c259d860616958':
Handle empty relro segment or incorrectly sized file.
2014-05-06 10:25:45 +00:00
Torne (Richard Coles)
e0a8474adf
am b9b75697
: am 9b5ee4aa
: Merge "Handle empty relro segment or incorrectly sized file."
...
* commit 'b9b75697fa6c58a85f48d7f31113814385a709bd':
Handle empty relro segment or incorrectly sized file.
2014-05-06 10:22:39 +00:00
Torne (Richard Coles)
b9b75697fa
am 9b5ee4aa
: Merge "Handle empty relro segment or incorrectly sized file."
...
* commit '9b5ee4aa85cf55467eb9a749b6602f6f2ba1cfc6':
Handle empty relro segment or incorrectly sized file.
2014-05-06 10:18:34 +00:00
Torne (Richard Coles)
9b5ee4aa85
Merge "Handle empty relro segment or incorrectly sized file."
2014-05-06 10:16:18 +00: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
Elliott Hughes
b8d60a2a0c
am e71e6a2e
: am 185dd72a
: Merge "bionic: make epoll_event structure packed"
...
* commit 'e71e6a2e6042ea118d64c8b763dd9236f2a3320b':
bionic: make epoll_event structure packed
2014-05-06 02:57:23 +00:00
Elliott Hughes
e71e6a2e60
am 185dd72a
: Merge "bionic: make epoll_event structure packed"
...
* commit '185dd72a2c487502717903065e46d14039f17826':
bionic: make epoll_event structure packed
2014-05-06 02:54:13 +00:00
Elliott Hughes
185dd72a2c
Merge "bionic: make epoll_event structure packed"
2014-05-06 02:50:39 +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
1911676cec
am e0cbc5da
: am 4356adc3
: Merge "Remove the non-standard time64 stuff for LP64."
...
* commit 'e0cbc5da31a0ebad76a6ca0968e26c200c70b502':
Remove the non-standard time64 stuff for LP64.
2014-05-06 01:59:16 +00:00
Elliott Hughes
e0cbc5da31
am 4356adc3
: Merge "Remove the non-standard time64 stuff for LP64."
...
* commit '4356adc3f46707b2664576857d7f4d8d6b0a81e2':
Remove the non-standard time64 stuff for LP64.
2014-05-06 01:56:43 +00:00
Elliott Hughes
4356adc3f4
Merge "Remove the non-standard time64 stuff for LP64."
2014-05-06 01:53:53 +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
3356c72f27
am 48931ca1
: am 629d892d
: Merge "Update the NOTICE files and improve the script slightly."
...
* commit '48931ca1b027f428a8e7ca5e3e6a33a52ff8e197':
Update the NOTICE files and improve the script slightly.
2014-05-05 23:30:47 +00:00
Elliott Hughes
48931ca1b0
am 629d892d
: Merge "Update the NOTICE files and improve the script slightly."
...
* commit '629d892d0b5ec061b5260453d72fa54ab3d7ce37':
Update the NOTICE files and improve the script slightly.
2014-05-05 23:27:30 +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
b303cdc2c1
am 9d586d85
: am 6916166e
: Merge "Sync with upstream OpenBSD."
...
* commit '9d586d85e5c45a38b8c0530570a6938ee1128bf0':
Sync with upstream OpenBSD.
2014-05-05 22:15:25 +00:00
Elliott Hughes
9d586d85e5
am 6916166e
: Merge "Sync with upstream OpenBSD."
...
* commit '6916166e108a0988dc6282bfae71f2746165fb47':
Sync with upstream OpenBSD.
2014-05-05 22:13:36 +00:00
Elliott Hughes
6916166e10
Merge "Sync with upstream OpenBSD."
2014-05-05 22:10:48 +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
c13ea3e236
am bab07de0
: am ad534985
: Merge "Disable %n in printf and vfwprintf."
...
* commit 'bab07de0bc43a284647465dc167bcf5b63891eb6':
Disable %n in printf and vfwprintf.
2014-05-05 21:55:46 +00:00
Elliott Hughes
bab07de0bc
am ad534985
: Merge "Disable %n in printf and vfwprintf."
...
* commit 'ad534985ec3e01d37d46c50caa562f6482f48347':
Disable %n in printf and vfwprintf.
2014-05-05 21:51:55 +00: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
2357a4cc74
am d2943b60
: am 8ec21d9d
: Merge "Switch to current upstream OpenBSD wsetup.c."
...
* commit 'd2943b60e2c56530cd602eb5f3cfa8fb76501ecd':
Switch to current upstream OpenBSD wsetup.c.
2014-05-05 21:39:41 +00:00
Elliott Hughes
d2943b60e2
am 8ec21d9d
: Merge "Switch to current upstream OpenBSD wsetup.c."
...
* commit '8ec21d9ded4c05744b3f9388bf824a508d7c95c2':
Switch to current upstream OpenBSD wsetup.c.
2014-05-05 21:36:59 +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