Duane Sand
a69eaec4d4
[MIPS64] Adjust kernel/tools for mips32,mips64 headers
...
Define CONFIG_32BIT as _ABIO32 rather than as 1;
it needs to be undefined for calls from mips64.
We need defined(CONFIG_32BIT) == !defined(CONFIG_64BIT),
and get that via defined(_ABIO32) == !defined(__LP64__).
Define CONFIG_CPU_LITTLE_ENDIAN to get correctly-placed
struct msqid64_ds fillers on ipc calls from mips32.
Without this, big-endian fillers were erroneously used.
This bug exists in prior mips32 Android releases.
Define __SANE_USERSPACE_TYPES__ to use int_ll64.h
rather than int_ll64.h on mips64.
This depends on external/kernel-headers patch
https://android-review.googlesource.com/#/c/98915/
http://patchwork.linux-mips.org/patch/6890/
Change-Id: If65fa80746533723cdf46eebe95733bea7ce24ba
2014-06-20 10:46:28 -07:00
Christopher Ferris
eee5f173d1
Merge "[MIPS64] Adjust kernel/tools for mips32,mips64 headers"
2014-06-20 02:09:57 +00:00
Dan Albert
8ca440089f
Use __builtin_*_chk for bcopy/bzero.
...
Replacing memmove/memset with their builtin check equivalents fixes an
implicit definition warning when only including strings.h.
Change-Id: I74f03b9506ea37f5c2f9c11498e379a70998b430
2014-06-23 08:30:40 -07:00
Elliott Hughes
fb0a3622f7
Merge "Cache getpid."
2014-06-20 00:26:25 +00:00
Elliott Hughes
7086ad6919
Cache getpid.
...
In practice, with this implementation we never need to make a system call.
We get the main thread's tid (which is the same as our pid) back from
the set_tid_address system call we have to make during initialization.
A new pthread will have the same pid as its parent, and a fork child's
main (and only) thread will have a pid equal to its tid, which we get for
free from the kernel before clone returns.
The only time we'd actually have to make a getpid system call now is if
we take a signal during fork and the signal handler calls getpid. (That,
or we call getpid in the dynamic linker while it's still dealing with its
own relocations and hasn't even set up the main thread yet.)
Bug: 15387103
Change-Id: I6d4718ed0a5c912fc75b5f738c49a023dbed5189
2014-06-20 09:06:57 -07:00
Elliott Hughes
d5706a1a84
am 87170203: am e58055f0: Merge "Expose tzname, daylight, and timezone."
...
* commit '8717020375529de8b6027b9040c34246e9a97f9d':
Expose tzname, daylight, and timezone.
2014-06-19 23:21:10 +00:00
Elliott Hughes
dc042c64d1
am 9d963b40: am d1bf3778: Merge "Build tzcode with hidden visibility."
...
* commit '9d963b406b9e2ac98a820b868c99be91a0f5842d':
Build tzcode with hidden visibility.
2014-06-19 22:34:29 +00:00
Elliott Hughes
06366724d5
Expose tzname, daylight, and timezone.
...
These were accidentally hidden.
Bug: 11156955
Change-Id: I380f00bdafa547aea13d4634f3de9ec6f0b50a6f
2014-06-19 16:08:03 -07:00
Elliott Hughes
dbb4328da3
am abd03d34: am 29e3a0e3: Merge "Fix arm64 localtime.c build."
...
* commit 'abd03d348c13b5d5301702151e0729f6a491092f':
Fix arm64 localtime.c build.
2014-06-19 21:37:43 +00:00
Elliott Hughes
15dcc6f4cb
am ef0273e1: am 477b45b8: Merge "Build tzcode with -Werror."
...
* commit 'ef0273e130e171523e256efc2f077dbccca50ad6':
Build tzcode with -Werror.
2014-06-19 21:29:14 +00:00
Elliott Hughes
d10db82619
Build tzcode with hidden visibility.
...
Bug: 11156955
Change-Id: Ib98d837b56cbbdfd01687cb3054fe3103eec0da9
2014-06-19 14:49:30 -07:00
Elliott Hughes
2cb752664b
Fix arm64 localtime.c build.
...
I'm sick of having so many different compilers.
Change-Id: I9088c38df2504e2b827d0ce5ba0fa551ae48f8f9
2014-06-19 14:19:24 -07:00
Elliott Hughes
a2e7dc7cef
am 442a0b1c: am 942fa486: Merge "Update localtime.c."
...
* commit '442a0b1ca3a4a1ae0ddc022991bc25f8df92b23f':
Update localtime.c.
2014-06-19 18:18:23 +00:00
Christopher Ferris
66802993d5
am fa817e64: am 5c864766: Merge "add 64-bit bionic implementation for denver arch"
...
* commit 'fa817e64e9a422b6c9380b81597cf8bf8d44849f':
add 64-bit bionic implementation for denver arch
2014-06-19 18:09:11 +00:00
Dan Albert
3b46eaa80c
am 6eeb6176: am 0df59bd3: Merge "Revert "Hide _tolower_tab_ and _toupper_tab_ on LP64.""
...
* commit '6eeb61767d367258bb5709265769a3a931090529':
Revert "Hide _tolower_tab_ and _toupper_tab_ on LP64."
2014-06-19 10:04:11 +00:00
Dan Albert
715242fd0f
Revert "Hide _tolower_tab_ and _toupper_tab_ on LP64."
...
This reverts commit dd4ad5c463c9bd479e8acf81227708717aafe204.
Change-Id: If3c9771825e460ce68604082f4feb0ca783e56c6
2014-06-19 03:57:05 +00:00
Christopher Ferris
15d0e2a1c1
am 79cd486d: am 0b09153c: Merge "Move common macros into bionic_macros.h."
...
* commit '79cd486d54edd1fbaf6b33872f5c35e273d3c324':
Move common macros into bionic_macros.h.
2014-06-18 23:03:26 +00:00
Dan Albert
0df59bd3a5
Merge "Revert "Hide _tolower_tab_ and _toupper_tab_ on LP64.""
2014-06-18 22:48:04 +00:00
Dan Albert
ee5b17b479
am 9fbcc435: am a5fe7b89: Merge "Hide _tolower_tab_ and _toupper_tab_ on LP64."
...
* commit '9fbcc435dc8ab7d82653230c810e3071c5b5cc06':
Hide _tolower_tab_ and _toupper_tab_ on LP64.
2014-06-18 21:40:32 +00:00
Dan Albert
65e8bca624
am 9ac80645: am 49d5399b: Merge "Hide __atexit and remove __atexit_invalid."
...
* commit '9ac80645542e03559ecee6524d87791b1b1f5fd7':
Hide __atexit and remove __atexit_invalid.
2014-06-18 21:40:29 +00:00
Dan Albert
dd4ad5c463
Hide _tolower_tab_ and _toupper_tab_ on LP64.
...
We can't hide them on LP32 because they appeared in NDK headers.
Bug: 11156955
Change-Id: I22bf5a0f4d330c04b49565bc598cd0568128d4fc
2014-06-18 13:11:07 -07:00
Dan Albert
a5fe7b8952
Merge "Hide _tolower_tab_ and _toupper_tab_ on LP64."
2014-06-18 19:25:04 +00:00
Dan Albert
1cd8f57cbc
am b29a7f1d: am ef82c28d: Merge "Hide declaration of gets(3) for C11 and later."
...
* commit 'b29a7f1d29a1183c1f1a67433f36ae09cf1eee89':
Hide declaration of gets(3) for C11 and later.
2014-06-18 01:54:57 +00:00
Dan Albert
3bb25acb46
am b86ffd8d: am 1ef3ba2b: Merge "Revert "Hide declaration of gets(3) for C11 and later.""
...
* commit 'b86ffd8d82c177b393e6ed3199ee94331776afc7':
Revert "Hide declaration of gets(3) for C11 and later."
2014-06-17 23:44:26 +00:00
Dan Albert
7cd4e72561
am 285a1c13: am 185c399c: Merge "Hide declaration of gets(3) for C11 and later."
...
* commit '285a1c13482f64813dd8f5dd54b479199c0f2569':
Hide declaration of gets(3) for C11 and later.
2014-06-17 23:34:10 +00:00
Dan Albert
9635046e53
Hide declaration of gets(3) for C11 and later.
...
gets(3) was removed from C11.
This reverts commit 1291680c2a0c23b2163198d27e00261ca206298b.
Bug: 14500800
Change-Id: I5e5146bdbb80f2be818a17f287b112bab37d1f6d
2014-06-17 17:37:06 -07:00
Elliott Hughes
8a72b6187f
am 775b2a0d: am 4ac22649: Merge "Add <linux/tty.h> to libc/include/sys/ioctl.h"
...
* commit '775b2a0d9ca8ba17f9f443b203536c9879bd519c':
Add <linux/tty.h> to libc/include/sys/ioctl.h
2014-06-17 21:58:19 +00:00
Elliott Hughes
5f564540a9
Build tzcode with -Werror.
...
Parts of this are just getting us in sync with upstream, but the
'const' stuff is our own mess. We should kill the *_tz functions
and lose this difference from upstream.
Change-Id: I17d26534ed3f54667143d78147a8c53be56d7b33
2014-06-19 13:54:10 -07:00
Elliott Hughes
942fa486f6
Merge "Update localtime.c."
2014-06-17 21:42:00 +00:00
Elliott Hughes
906eb9999b
Update localtime.c.
...
This brings us closer to upstream's ToT localtime.c; our main interest
being their alternative fix for the stack usage we addressed in commit
8a8b0c9bfcd80c67154ed2aca1e60d815c822acb.
Bug: 14468519
Change-Id: Ic28600115afda7f3158d91255edf422678bac082
2014-06-18 19:48:14 -07:00
Christopher Ferris
5c8647665c
Merge "add 64-bit bionic implementation for denver arch"
2014-06-17 21:42:00 +00:00
Christopher Ferris
0b09153c12
Merge "Move common macros into bionic_macros.h."
2014-06-17 21:42:00 +00:00
Christopher Ferris
03eebcb6e8
Move common macros into bionic_macros.h.
...
Bug: 15590152
Change-Id: I730636613ef3653f68c5ab1d43b53beaf8e0dc25
2014-06-18 14:23:46 -07:00
Dan Albert
11f715c62e
Hide __atexit and remove __atexit_invalid.
...
Bug: 11156955
Change-Id: I8c72edee8ecb92b75a282384277253bae19f7455
2014-06-18 13:19:22 -07:00
Dan Albert
1ef3ba2b4f
Merge "Revert "Hide declaration of gets(3) for C11 and later.""
2014-06-17 20:56:23 +00:00
Dan Albert
1291680c2a
Revert "Hide declaration of gets(3) for C11 and later."
...
Breaks stlport. checkbuild lied to me?
This reverts commit c0ce5908277a9bf18628946629dba4277e9a2281.
Change-Id: I72fb21aba7eaea96a7c3208236fd03411527fa5e
2014-06-17 23:28:38 +00:00
Dan Albert
c0ce590827
Hide declaration of gets(3) for C11 and later.
...
gets(3) was removed from C11.
Change-Id: I4040a8a6c6d5d2a86878e8a80ca67964fbbb82a8
2014-06-17 15:52:07 -07:00
Elliott Hughes
4ac2264944
Merge "Add <linux/tty.h> to libc/include/sys/ioctl.h"
2014-06-17 20:56:23 +00:00
Dan Albert
185c399c58
Merge "Hide declaration of gets(3) for C11 and later."
2014-06-17 20:49:57 +00:00
Christopher Ferris
49b7175138
am d61729c0: am b656410a: Merge "Use a separate config.h for config like defines."
...
* commit 'd61729c0a55ce139c57cbf526cbfd3e448e3d3f1':
Use a separate config.h for config like defines.
2014-06-17 18:35:46 +00:00
Christopher Ferris
b656410a73
Merge "Use a separate config.h for config like defines."
2014-06-17 04:51:41 +00:00
Christopher Ferris
6361964381
Use a separate config.h for config like defines.
...
This allows an easier way to share config parameters between unit tests
and the bionic code.
It also fixes a problem where the 32 bit bionic tests based on glibc, or
the cts list executable did not have the pvalloc,valloc tests.
Change-Id: Ib47942cb8a278252faa7498a6ef23e9578db544f
2014-06-16 23:35:53 -07:00
Christopher Ferris
c92354b66d
am 6589ba15: am d10d3acd: Merge "Move jemalloc due to whole_static_library bug."
...
* commit '6589ba1561fd97785a0eb5c2eb8cc7d41a5b83e1':
Move jemalloc due to whole_static_library bug.
2014-06-17 01:47:47 +00:00
Dan Albert
c82c0b7e07
Remove SHA1 from LP64 in favor of libcrypto.
...
Keep the symbols around on LP32 for binary compatibility.
Bug: 11156955
Change-Id: I379a7e0fa3092e9a70daeafcbcb2aacfc314031a
2014-06-16 16:52:27 -07:00
Dan Albert
c4978a5646
am 7a11b7a6: am a217a0cd: Merge "libc: Fix \'index\' symbol export."
...
* commit '7a11b7a674805f8373fd9f126ee46721ccab8eeb':
libc: Fix 'index' symbol export.
2014-06-16 22:13:20 +00:00
Dan Albert
f3fc2fe72c
am c732859d: am 4fb0d4fb: Merge "Revert "Revert "Remove ftime from bionic LP64"""
...
* commit 'c732859d241a182dc0a9c8b2a2bca9ec5926cd39':
Revert "Revert "Remove ftime from bionic LP64""
2014-06-16 22:13:08 +00:00
Dan Albert
15d00e2989
am f49791fd: am 9a3ad98f: Merge "Removes getdtablesize(3) from LP64."
...
* commit 'f49791fd8767a3b09fe70febc9142da45c4398f1':
Removes getdtablesize(3) from LP64.
2014-06-16 22:13:05 +00:00
Elliott Hughes
b618aa818d
am fe6e646c: Update NOTICE files.
...
* commit 'fe6e646cb79fe15d7815fdb9c92cc66be56ab1d4':
Update NOTICE files.
2014-06-16 20:05:43 +00:00
Dan Albert
ac6467587e
Revert "Revert "Remove ftime from bionic LP64""
...
This reverts commit 0921204660b9597de795065d0350a787035ad589.
Change-Id: I749af8d7d429cda9f9d09a75bd30df54e6b1dd65
2014-06-16 12:32:38 -07:00
Elliott Hughes
fe6e646cb7
Update NOTICE files.
...
Change-Id: I459caf48ba861372a4d0bc75f98a9cb4acc20fd5
2014-06-16 10:24:37 -07:00