Elliott Hughes
bab1044d27
am 14545d4c
: Merge "Move several FreeBSD functions to OpenBSD."
...
* commit '14545d4ce3dd446f20a14dcff37d60ff8d756f7a':
Move several FreeBSD functions to OpenBSD.
2015-09-15 15:19:20 +00:00
Elliott Hughes
8abd365509
am 364dbb3c
: am 44c8ac8b
: Merge "Sync with upstream NetBSD lib/libc/regex."
...
* commit '364dbb3cf493b00e48d8f29e4a845e78f8139f4f':
Sync with upstream NetBSD lib/libc/regex.
2015-09-15 15:18:56 +00:00
Elliott Hughes
14545d4ce3
Merge "Move several FreeBSD functions to OpenBSD."
2015-09-15 15:13:35 +00:00
Elliott Hughes
364dbb3cf4
am 44c8ac8b
: Merge "Sync with upstream NetBSD lib/libc/regex."
...
* commit '44c8ac8bd7747d907720c63538625a4b95245234':
Sync with upstream NetBSD lib/libc/regex.
2015-09-15 15:12:36 +00:00
Elliott Hughes
44c8ac8bd7
Merge "Sync with upstream NetBSD lib/libc/regex."
2015-09-15 15:05:21 +00:00
Elliott Hughes
26a8322972
Move several FreeBSD functions to OpenBSD.
...
There's no difference between the two BSDs for these functions, so let's go
with the majority.
Change-Id: Ic296f23153a48bed5ad152f5b31989c4e00e60bd
2015-09-14 19:01:58 -07:00
Elliott Hughes
71927a8237
Sync with upstream NetBSD lib/libc/regex.
...
Bug: http://b/22850181
Change-Id: I11a51a2031e68a953ccd5691da98c699c7d01904
2015-09-14 18:45:52 -07:00
Daniel Micay
5ca66528c5
make mmap fail on requests larger than PTRDIFF_MAX
...
Allocations larger than PTRDIFF_MAX can be successfully created on
32-bit with a 3:1 split, or in 32-bit processes running on 64-bit.
Allowing these allocations to succeed is dangerous, as it introduces
overflows for `end - start` and isn't compatible with APIs (mis)using
ssize_t to report either the size or an error. POSIX is guilty of this,
as are many other Android APIs. LLVM even considers the `ptr + size`
case to be undefined, as all pointer arithmetic compiles down to signed
operations and overflow is treated as undefined for standard C pointer
arithmetic (GNU C `void *` arithmetic works differently).
This also prevents dlmalloc from allocating > PTRDIFF_MAX as it doesn't
merge mappings like jemalloc. A similar check will need to be added in
jemalloc's code path for huge allocations.
The musl libc implementation also performs this sanity check.
Change-Id: I5f849543f94a39719f5d27b00cef3079bb5933e9
2015-09-12 01:52:12 -04:00
Dan Albert
a4b45b70f5
am a1a46a8e
: am cd0ed2f1
: Merge "CMSG_DATA should return an unsigned char*."
...
* commit 'a1a46a8e946d1fd1c50f44e7e23f462e179ddbb1':
CMSG_DATA should return an unsigned char*.
2015-09-11 23:04:58 +00:00
Dan Albert
a1a46a8e94
am cd0ed2f1
: Merge "CMSG_DATA should return an unsigned char*."
...
* commit 'cd0ed2f174d9015da5ae7206bc4c5190cd0bb51e':
CMSG_DATA should return an unsigned char*.
2015-09-11 22:14:07 +00:00
Dan Albert
cd0ed2f174
Merge "CMSG_DATA should return an unsigned char*."
2015-09-11 17:39:12 +00:00
Dan Albert
268af26359
CMSG_DATA should return an unsigned char*.
...
http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_socket.h.html
> CMSG_DATA(cmsg)
> If the argument is a pointer to a cmsghdr structure, this macro
> shall return an unsigned character pointer to the data array
> associated with the cmsghdr structure.
Change-Id: I3f89ba19cbca4e6727abc65a2bbcd59267892ba8
2015-09-11 09:47:27 -07:00
Dan Albert
b3c3fb5b59
am 32ec7498
: am 1c7b84ca
: Merge changes Ia1777fd4,I3998d88b
...
* commit '32ec74987344cedb5596e6da1891a9d54962f149':
Unify unistd.h.
Use attribute availability.
2015-09-08 20:38:46 +00:00
Dan Albert
32ec749873
am 1c7b84ca
: Merge changes Ia1777fd4,I3998d88b
...
* commit '1c7b84ca0095e0dc4da8434e9e0c59cd2326f763':
Unify unistd.h.
Use attribute availability.
2015-09-08 20:32:37 +00:00
Dan Albert
1c7b84ca00
Merge changes Ia1777fd4,I3998d88b
...
* changes:
Unify unistd.h.
Use attribute availability.
2015-09-08 20:24:39 +00:00
Dan Albert
af4713e6a5
Unify unistd.h.
...
Make unistd.h usable from all platform versions.
Also name all function parameters for Android Studio.
Bug: http://b/21952040
Change-Id: Ia1777fd4a6d4e37f25cc402c28fb78c003e481e3
2015-09-04 13:02:09 -07:00
Dan Albert
a6435a186d
Use attribute availability.
...
Bug: http://b/21952040
Change-Id: I3998d88bc6076d60ae5cf7efd112817f80f17971
2015-09-04 13:02:03 -07:00
Elliott Hughes
a775a41130
am edc73f62
: am ba9c1705
: Merge "linker: don\'t pass dlextinfo to dependent loads"
...
* commit 'edc73f6286bcd1f7d0278d25d4484bf23a0e53b2':
linker: don't pass dlextinfo to dependent loads
2015-09-04 18:21:34 +00:00
Elliott Hughes
edc73f6286
am ba9c1705
: Merge "linker: don\'t pass dlextinfo to dependent loads"
...
* commit 'ba9c17053456aed4452a349cf45c5960d9231f25':
linker: don't pass dlextinfo to dependent loads
2015-09-04 18:12:33 +00:00
Elliott Hughes
ba9c170534
Merge "linker: don't pass dlextinfo to dependent loads"
2015-09-04 18:02:18 +00:00
Christopher Ferris
23ff8fc4ee
am 2fe50aa3
: am cb0d96e6
: Merge "Only close stdin/stdout/stderr for debug malloc."
...
* commit '2fe50aa3806f2c367dddfc5ddedd1c636223b823':
Only close stdin/stdout/stderr for debug malloc.
2015-09-04 01:31:18 +00:00
Christopher Ferris
2fe50aa380
am cb0d96e6
: Merge "Only close stdin/stdout/stderr for debug malloc."
...
* commit 'cb0d96e6a218cc37eb0ab764740a8bf1ea385511':
Only close stdin/stdout/stderr for debug malloc.
2015-09-04 01:17:48 +00:00
Christopher Ferris
cb0d96e6a2
Merge "Only close stdin/stdout/stderr for debug malloc."
2015-09-04 01:09:11 +00:00
Christopher Ferris
efc134dba3
Only close stdin/stdout/stderr for debug malloc.
...
The debug malloc code unconditionally closes stdin/stdout/stderr,
which means that other atexit functions cannot use them. Only
close these if there is a debug malloc final function to call.
This doesn't appear to be a problem on most normal applications or the
atexit_exit bionic unit test would be failing. However, if you
enable stat dumping in jemalloc, nothing prints. Most likely trying
to add an atexit function from within libc is causing that atexit
to run after the debug malloc atexit function.
Change-Id: I963720d4ccaaa511e44af07a7461f17eb3f84e8e
2015-09-03 17:45:33 -07:00
Christopher Ferris
407dea47bd
am 7bb544cc
: am b423ffa6
: Merge "Update to v3.18.21 kernel headers."
...
* commit '7bb544cc7c3d70af5f06dd5cf8b33e841b816ded':
Update to v3.18.21 kernel headers.
2015-09-03 18:14:10 +00:00
Christopher Ferris
7bb544cc7c
am b423ffa6
: Merge "Update to v3.18.21 kernel headers."
...
* commit 'b423ffa6c27ade8485f1f061fd3775553e9bb457':
Update to v3.18.21 kernel headers.
2015-09-03 18:00:09 +00:00
Christopher Ferris
b423ffa6c2
Merge "Update to v3.18.21 kernel headers."
2015-09-03 17:52:47 +00:00
Christopher Ferris
915bf813ad
Update to v3.18.21 kernel headers.
...
Change-Id: I4ade68d62981c7f6f361750cc811e8d84be9d5b9
2015-09-02 17:23:31 -07:00
Dmitriy Ivanov
edfc9f63a2
linker: don't pass dlextinfo to dependent loads
...
Don't pass the parent load's dlextinfo to dependent loads, since this
causes the linker to try to load the dependencies using the same
addresses/relro/fds/etc as the main library, which is never going to
work. This was how it worked before ae69a95
which broke this.
Bug: http://b/23742664
Bug: http://b/20948231
Bug: http://b/20841817
Change-Id: I340ebae1127666d5c6c6f9c6521b89fb93f15bdd
2015-09-02 16:32:02 -07:00
Elliott Hughes
eb457e212e
am 67c6da80
: am cc251966
: Merge "Rename debug_stacktrace to debug_backtrace."
...
* commit '67c6da80bb3b6b4febc783db04ce19cdeb187092':
Rename debug_stacktrace to debug_backtrace.
2015-09-02 04:00:02 +00:00
Elliott Hughes
67c6da80bb
am cc251966
: Merge "Rename debug_stacktrace to debug_backtrace."
...
* commit 'cc25196662cab824117e7cb79e435bd3aaf37dcc':
Rename debug_stacktrace to debug_backtrace.
2015-09-02 03:52:24 +00:00
Elliott Hughes
cc25196662
Merge "Rename debug_stacktrace to debug_backtrace."
2015-09-02 03:44:31 +00:00
Yabin Cui
80dbedc95a
am d3c7f67a
: am 32c85daa
: Merge "build bionic gtest runner on mac."
...
* commit 'd3c7f67aed0b5ac0bd7fd03c6925cbaf6b1305ba':
build bionic gtest runner on mac.
2015-09-01 23:29:21 +00:00
Yabin Cui
d3c7f67aed
am 32c85daa
: Merge "build bionic gtest runner on mac."
...
* commit '32c85daa1570e589ce953c42b40fb34cf2b5e989':
build bionic gtest runner on mac.
2015-09-01 23:08:34 +00:00
Elliott Hughes
32bf43f44a
Rename debug_stacktrace to debug_backtrace.
...
All the functions say "backtrace", so it's weird that the filename
says "stacktrace".
Change-Id: I1c88a56c1f9adb1bae4615edc8af3e73db270a8c
2015-09-01 16:01:50 -07:00
Yabin Cui
32c85daa15
Merge "build bionic gtest runner on mac."
2015-09-01 22:58:23 +00:00
Yabin Cui
767fb1c5c6
build bionic gtest runner on mac.
...
Change-Id: I39a7e94b6662256646dfaeb8f9ecd5c03cd5fbc6
2015-09-01 15:40:38 -07:00
Elliott Hughes
695d4c62fd
am c121e179
: am a992004c
: Merge "Regenerate NOTICE files."
...
* commit 'c121e179a2897e3e21d8455420dbd62822b32e53':
Regenerate NOTICE files.
2015-08-29 04:14:22 +00:00
Elliott Hughes
c121e179a2
am a992004c
: Merge "Regenerate NOTICE files."
...
* commit 'a992004c9edf4db0c11aae8610cce6ebf13d53b4':
Regenerate NOTICE files.
2015-08-29 04:07:20 +00:00
Elliott Hughes
0cc8e665fd
am 74c5bba5
: am cb58f528
: Merge "Sync with upstream FreeBSD libm."
...
* commit '74c5bba5404f2c286eae3a492898656e80097b11':
Sync with upstream FreeBSD libm.
2015-08-29 04:02:34 +00:00
Elliott Hughes
a992004c9e
Merge "Regenerate NOTICE files."
2015-08-29 04:00:21 +00:00
Elliott Hughes
74c5bba540
am cb58f528
: Merge "Sync with upstream FreeBSD libm."
...
* commit 'cb58f528bfc19bbc32d8a8b9d7e954f61d622c52':
Sync with upstream FreeBSD libm.
2015-08-29 03:55:19 +00:00
Elliott Hughes
cb58f528bf
Merge "Sync with upstream FreeBSD libm."
2015-08-29 03:46:21 +00:00
Elliott Hughes
44ead71726
Regenerate NOTICE files.
...
Change-Id: Ia5c340220bb75e4e3166cc483ea77d19cfb08a71
2015-08-28 20:23:52 -07:00
Elliott Hughes
8cff2f95d8
Sync with upstream FreeBSD libm.
...
Change-Id: I97e9b23903f1d993d84825806065e85626007d31
2015-08-28 20:21:43 -07:00
Elliott Hughes
0f0c7197b5
am b57e9efd
: am c2e634dd
: Merge "Fix regoff_t for LP32 and _FILE_OFFSET_BITS=64."
...
* commit 'b57e9efd40d5765f9ff62f2aa3b6b2ca8523b024':
Fix regoff_t for LP32 and _FILE_OFFSET_BITS=64.
2015-08-27 23:32:58 +00:00
Elliott Hughes
b57e9efd40
am c2e634dd
: Merge "Fix regoff_t for LP32 and _FILE_OFFSET_BITS=64."
...
* commit 'c2e634dd303a44b11e30ab31e39ffc4eae5467f8':
Fix regoff_t for LP32 and _FILE_OFFSET_BITS=64.
2015-08-27 23:24:33 +00:00
Elliott Hughes
c2e634dd30
Merge "Fix regoff_t for LP32 and _FILE_OFFSET_BITS=64."
2015-08-27 23:17:43 +00:00
Dan Albert
5e98eaee2d
am a71f81a0
: am 46c7bc83
: Merge "Don\'t re-export libunwind_llvm."
...
* commit 'a71f81a08b6a94ef79c96b62733bb97de5350d79':
Don't re-export libunwind_llvm.
2015-08-27 22:37:01 +00:00
Dan Albert
a71f81a08b
am 46c7bc83
: Merge "Don\'t re-export libunwind_llvm."
...
* commit '46c7bc83ab0324983312f16bd40cc1cdfe11cce6':
Don't re-export libunwind_llvm.
2015-08-27 22:27:38 +00:00