OSDN Git Service
Christopher Ferris [Thu, 18 Feb 2016 01:22:07 +0000 (01:22 +0000)]
Merge "Fix cfi directives in small strncmp case."
am:
e73b27a1d3
* commit '
e73b27a1d3482d41a9b3bbc2945426211218b677':
Fix cfi directives in small strncmp case.
Christopher Ferris [Thu, 18 Feb 2016 01:18:25 +0000 (01:18 +0000)]
Merge "Fix cfi directives in small strncmp case."
Christopher Ferris [Thu, 18 Feb 2016 00:34:02 +0000 (16:34 -0800)]
Fix cfi directives in small strncmp case.
Bug:
27227225
Change-Id: Id4f88fe288109a82822ad1b2291858c1c85b0ca7
Dimitry Ivanov [Wed, 17 Feb 2016 22:26:49 +0000 (22:26 +0000)]
Merge "Update a comment for init_linker_info_for_gdb"
am:
c347a10760
* commit '
c347a107602f3011b393f2b2407425b5d668e14e':
Update a comment for init_linker_info_for_gdb
Dimitry Ivanov [Wed, 17 Feb 2016 22:20:22 +0000 (22:20 +0000)]
Merge "Update a comment for init_linker_info_for_gdb"
Dimitry Ivanov [Wed, 17 Feb 2016 22:13:06 +0000 (14:13 -0800)]
Update a comment for init_linker_info_for_gdb
Change-Id: I8e2895ecfcc6f77a180c3735342afc93be5923d3
Colin Cross [Wed, 17 Feb 2016 20:48:37 +0000 (20:48 +0000)]
Merge "malloc_debug: reset TrackData mutex after fork"
am:
598cb89790
* commit '
598cb89790ba93edbb392c567ecda32b39d64ff1':
malloc_debug: reset TrackData mutex after fork
Colin Cross [Wed, 17 Feb 2016 20:38:02 +0000 (20:38 +0000)]
Merge "malloc_debug: reset TrackData mutex after fork"
Bill Yi [Wed, 17 Feb 2016 17:50:14 +0000 (09:50 -0800)]
Dimitry Ivanov [Wed, 17 Feb 2016 00:00:30 +0000 (00:00 +0000)]
Merge "Initialize linker link_map for gdb directly"
Dimitry Ivanov [Tue, 16 Feb 2016 23:51:37 +0000 (23:51 +0000)]
Merge "Revert "Revert "Split out liblinker_malloc static library"""
Dimitry Ivanov [Tue, 16 Feb 2016 18:13:42 +0000 (10:13 -0800)]
Revert "Revert "Split out liblinker_malloc static library""
This reverts commit
3bbeca7a1ae3d31cddd97fb6a0140c4cf7e39f8e.
Change-Id: I5a757fcd52a14442c2eb7ca53f7d1f1923a4efe9
Dimitry Ivanov [Tue, 16 Feb 2016 21:43:35 +0000 (13:43 -0800)]
Initialize linker link_map for gdb directly
Remove unnecessary construction of soinfo when
initializing linker link_map for gdb.
Change-Id: Idf32cee56309aa9c9cf260efbd17a9deae9a756b
Dimitry Ivanov [Tue, 16 Feb 2016 21:29:43 +0000 (21:29 +0000)]
Merge "linker: remove soinfo::entry"
Dimitry Ivanov [Tue, 16 Feb 2016 21:25:29 +0000 (13:25 -0800)]
linker: remove soinfo::entry
This field is used only once and only for main executable;
no need to carry it around in soinfo structure.
Change-Id: I7f80c64e0939e28966b6fed858891f9ce2a9e26b
Dimitry Ivanov [Mon, 15 Feb 2016 19:21:29 +0000 (19:21 +0000)]
Merge "Revert "Split out liblinker_malloc static library""
Dimitry Ivanov [Mon, 15 Feb 2016 19:19:35 +0000 (19:19 +0000)]
Revert "Split out liblinker_malloc static library"
This reverts commit
a80564318a87c1efe76224b8591c707c54d51d2d.
Change-Id: I63f16739a38f40ad930692176a4297ad1ce89570
Christopher Ferris [Sat, 13 Feb 2016 17:46:28 +0000 (17:46 +0000)]
Merge "Add a memcpy(a, a, n) test."
Christopher Ferris [Sat, 13 Feb 2016 01:24:27 +0000 (17:24 -0800)]
Add a memcpy(a, a, n) test.
clang depends on memcpy where src and dst are the same to actually
work. Even though this is, technically, undefined behavior,
clang is not going to change. Add a test to verify this assumption
holds true for android devices.
Change-Id: Ib575af3c14e705bb62c18fad7d57e1cc0d242899
Christopher Ferris [Sat, 13 Feb 2016 01:37:06 +0000 (01:37 +0000)]
Merge "Fix the default alignment of the allocations."
Christopher Ferris [Thu, 11 Feb 2016 23:51:31 +0000 (15:51 -0800)]
Fix the default alignment of the allocations.
In order to enforce this constraint:
The pointer returned if the allocation succeeds shall be suitably
aligned so that it may be assigned to a pointer to any type of object
and then used to access such an object in the space allocated.
Force all allocations on 32 bit systems to have 8 byte alignment,
and all allocations on 64 bit systems to have 16 byte alignment.
Add a test to verify that the allocator returns the correct alignments.
Bug:
26739265
Change-Id: I9af53279617408676b94e4ec6481b3ed7ffafc6a
Elliott Hughes [Sat, 13 Feb 2016 00:59:42 +0000 (00:59 +0000)]
Merge "Fix regerror(..., nullptr, 0)."
Colin Cross [Mon, 8 Feb 2016 06:51:15 +0000 (22:51 -0800)]
malloc_debug: reset TrackData mutex after fork
Add a pthread_atfork handler to malloc_debug to lock the TrackData mutex
during fork and reset it in the child. Ensures that the TrackData is
consistent when forking from a multi-threaded process, and that the
mutex is in a defined state in the child.
Change-Id: I0dfed30045a28551217ceac227d33b2e18894932
Elliott Hughes [Sat, 13 Feb 2016 00:00:53 +0000 (16:00 -0800)]
Fix regerror(..., nullptr, 0).
Found by passing a bad regular expression to the Google benchmark
code (https://github.com/google/benchmark).
Change-Id: I475db71c25706bbf02091b754acabe8254062f3a
Dimitry Ivanov [Thu, 11 Feb 2016 23:29:06 +0000 (23:29 +0000)]
Merge "Split out liblinker_malloc static library"
Dimitry Ivanov [Thu, 11 Feb 2016 21:48:49 +0000 (13:48 -0800)]
Split out liblinker_malloc static library
Bug: http://b/
14998480
Bug: http://b/
25716705
Change-Id: I8c7ba3971d1b17dbfc1a2ab5553aa04fe5da6677
Elliott Hughes [Thu, 11 Feb 2016 17:53:04 +0000 (17:53 +0000)]
Merge "Add tests for zero-sized allocations."
Elliott Hughes [Thu, 11 Feb 2016 04:43:22 +0000 (20:43 -0800)]
Add tests for zero-sized allocations.
POSIX lets us return null and set errno, but that would be annoying and
surprising.
Bug: http://b/
27101951
Change-Id: I320a8a14884abb806a8d30e3e6cf1ede28b49335
Elliott Hughes [Wed, 10 Feb 2016 15:48:52 +0000 (15:48 +0000)]
Merge "Set x86 TLS limit to 0xfffff, not PAGE_SIZE."
Elliott Hughes [Wed, 10 Feb 2016 06:44:16 +0000 (22:44 -0800)]
Set x86 TLS limit to 0xfffff, not PAGE_SIZE.
Not least because we set limit_in_pages to 1. PAGE_SIZE pages was never
anyone's intention.
Change-Id: Ide867f44a2fb20d4d5d0cd67ced468e8665a0193
Chih-hung Hsieh [Tue, 9 Feb 2016 01:27:01 +0000 (01:27 +0000)]
Merge "Enable clang for x86_64 after fp128 fix in clang-
2577113."
Chih-Hung Hsieh [Tue, 9 Feb 2016 01:07:33 +0000 (17:07 -0800)]
Enable clang for x86_64 after fp128 fix in clang-
2577113.
Upstream LLVM fix was included in prebuilt clang-
2577113.
BUG:
21899249
Change-Id: Ief3f3e28650c0bbf8749a5e5d26f45c39e15ed62
Elliott Hughes [Tue, 9 Feb 2016 01:03:01 +0000 (01:03 +0000)]
Merge "Update NOTICE files."
Elliott Hughes [Tue, 9 Feb 2016 01:00:12 +0000 (17:00 -0800)]
Update NOTICE files.
Change-Id: I6c4628534c5842c9835ead1bfff6582c5dce38e3
Elliott Hughes [Sun, 7 Feb 2016 05:35:34 +0000 (05:35 +0000)]
Merge "Add a test for a possible overflow in *printf."
Mike Frysinger [Sat, 6 Feb 2016 19:29:29 +0000 (19:29 +0000)]
Merge "define pw_gecos to pw_passwd for LP32 systems"
Mike Frysinger [Wed, 3 Feb 2016 19:40:37 +0000 (14:40 -0500)]
define pw_gecos to pw_passwd for LP32 systems
Since we set both fields to NULL all the time, we can alias the two
fields together on LP32 to provide build-time compatibility.
BUG=
24918750
TEST=python now builds for Brillo boards
Change-Id: I3394aea80c9a5288669389f71d0e4132f2157e3c
Elliott Hughes [Sat, 6 Feb 2016 05:57:37 +0000 (21:57 -0800)]
Add a test for a possible overflow in *printf.
It turns out we don't have any bugs here, but glibc does. Found while
chasing down a toybox failure I saw on the host, but we may as well
add the test in case we ever screw up here in future.
Change-Id: Ib8dd227ed3b742dc4dab8c09dc08e6ea9a35c807
Christopher Ferris [Sat, 6 Feb 2016 05:24:53 +0000 (05:24 +0000)]
Merge "Updated to v4.4.1 kernel headers."
Dan Willemsen [Sat, 6 Feb 2016 00:43:13 +0000 (00:43 +0000)]
Merge "Update Android.bp"
Christopher Ferris [Thu, 4 Feb 2016 21:16:38 +0000 (13:16 -0800)]
Updated to v4.4.1 kernel headers.
Small modifications needed to allow compilation with the new headers:
- Manually modify bionic/libc/kernel/uapi/asm-mips/asm/siginfo.h to
remove the uapi from the include.
- PR_XXX defines are now available for mips, so remove the definition
from linker_mips.cpp.
Bug:
23789423
Change-Id: I6dc8a03b012426d3a937db15cb24d3a50fab5a8c
Elliott Hughes [Fri, 5 Feb 2016 20:48:01 +0000 (20:48 +0000)]
Merge "Add a test for snprintf on a PTHREAD_STACK_MIN-sized stack."
Elliott Hughes [Fri, 5 Feb 2016 19:18:41 +0000 (11:18 -0800)]
Add a test for snprintf on a PTHREAD_STACK_MIN-sized stack.
This is a common thing for people to want to do, snprintf requires
a lot of stack for itself, and PTHREAD_STACK_MIN should be usable
for realistic code.
Change-Id: Ib09cfb4e0beec1c69ee0944c3ea4c5d03a94c491
Dimitry Ivanov [Fri, 5 Feb 2016 04:29:54 +0000 (04:29 +0000)]
Merge "Add check for pthread_self() when looking up a thread"
Dimitry Ivanov [Fri, 5 Feb 2016 00:21:01 +0000 (16:21 -0800)]
Add check for pthread_self() when looking up a thread
Check if thread_id is in fact pthread_self before
locking on g_thread_list_lock in __pthread_internal_find.
The main reason for doing this is not performance but to allow
the linker use raise() which was not working because pthread_kill()
couldn't find pthread_self() thread because the global thread
list is initialized in libc.so and the linker's version of this
list is empty.
Bug: http://b/
25867917
Change-Id: I18fe620e8cd465b30f0e1ff45fff32958f3c5c00
Dan Willemsen [Thu, 4 Feb 2016 05:48:08 +0000 (21:48 -0800)]
Update Android.bp
Also reorders some arch-specific sources to match the order in the
Android.mk system.
Change-Id: Ibde46a7cef9840b759be796ce9ac6618d3b06532
Elliott Hughes [Wed, 3 Feb 2016 23:12:10 +0000 (23:12 +0000)]
Merge "Add in6addr_any and in6addr_loopback symbols."
Elliott Hughes [Wed, 3 Feb 2016 22:13:52 +0000 (14:13 -0800)]
Add in6addr_any and in6addr_loopback symbols.
Change-Id: I3a90fa448b6bd43321672ba74b84a4e9e8a67738
Elliott Hughes [Wed, 3 Feb 2016 22:03:09 +0000 (22:03 +0000)]
Merge "Really add adjtimex(2), and add clock_adjtime(2) too."
Dimitry Ivanov [Wed, 3 Feb 2016 21:58:40 +0000 (21:58 +0000)]
Merge "linker: Change the library search order"
Elliott Hughes [Wed, 3 Feb 2016 21:19:10 +0000 (13:19 -0800)]
Really add adjtimex(2), and add clock_adjtime(2) too.
Change-Id: I81fde2ec9fdf787bb19a784ad13df92d33a4f852
Elliott Hughes [Wed, 3 Feb 2016 20:52:42 +0000 (20:52 +0000)]
Merge "Add fopen64/freopen64/tmpfile64 aliases."
Elliott Hughes [Wed, 3 Feb 2016 19:24:28 +0000 (11:24 -0800)]
Add fopen64/freopen64/tmpfile64 aliases.
Our fopen/freopen/tmpfile are already always O_LARGEFILE, but let's add
the aliases for _LARGEFILE_SOURCE compatibility.
Bug: http://b/
24807045
Change-Id: I5d99b3ef3c9f27ce70f13313f6a92e96c7f21f80
Elliott Hughes [Wed, 3 Feb 2016 18:55:20 +0000 (18:55 +0000)]
Merge "Fix ifaddrs#getifaddrs_INET flakiness."
Elliott Hughes [Wed, 3 Feb 2016 18:43:17 +0000 (18:43 +0000)]
Merge "Expose ftello64."
Elliott Hughes [Wed, 3 Feb 2016 15:42:33 +0000 (07:42 -0800)]
Fix ifaddrs#getifaddrs_INET flakiness.
The interface name wasn't being nul-terminated for the ioctl. Also clean up
the code a bit to give more useful diagnostics on failure.
Bug: http://b/
26887941
Change-Id: I30c6bdc1a32733971a27ed1fb7db9d8239b6262b
Elliott Hughes [Wed, 3 Feb 2016 06:39:15 +0000 (22:39 -0800)]
Expose ftello64.
Also add the missing test that would have caught this.
Bug: http://b/
24807045
Change-Id: I756a4d825595b52396b15898e3f717156fd1ba2f
Dan Albert [Wed, 3 Feb 2016 02:28:42 +0000 (02:28 +0000)]
Merge "Fix our fortify tests for global -Werror."
Josh Gao [Wed, 3 Feb 2016 01:28:48 +0000 (01:28 +0000)]
Merge "use GNU C89 extern inline semantics for __size_mul_overflow()"
Xia Yang [Thu, 21 Jan 2016 02:34:59 +0000 (18:34 -0800)]
use GNU C89 extern inline semantics for __size_mul_overflow()
__size_mul_overflow generates warning under following compilation envrionment:
-OX -D_FORTIFY_SOURCE=2 (X=1, 2, 3)
For example:
echo '#include <stdio.h>' | \
prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androideabi-gcc \
-I bionic/libc/arch-arm/include \
-I bionic/libc/include \
-I bionic/libc/kernel/uapi \
-I bionic/libc/kernel/common \
-I bionic/libc/kernel/uapi/asm-arm \
-I bionic/libm/include \
-I bionic/libm/include/arm \
-I bionic/libc/include \
-Werror \
-O1 \
-D_FORTIFY_SOURCE=2 \
-c \
-x c \
-
bionic/libc/include/stdio.h:360:13: error: '__size_mul_overflow' is
static but used in inline function 'fread' which is not static [-Werror]
if (__size_mul_overflow(size, count, &total)) {
^
C99 - 6.7.4
"An inline definition of a function with external linkage shall not contain
a definition of a modifiable object with static storage duration, and shall
not contain a reference to an identifier with internal linkage."
As standard does not require compiler to determine when it is safe to
reference an internal function in an external inline function, but instead
delegalizes such reference as a whole, gcc throws a warning for such code
under C99 compilation. Warning produced by libc header is inhereted widely
and strips the option of using -Werror to track code sanity.
Replace static inline specifier with gnu89 extern inline. Latter "is used
only for inlining. In no case is the function compiled on its own", which
is slightly different from former semantically, but should produce the same
result here.
Change-Id: I6a3374498e5499d110e54468cf9d0d67d2debbe2
Dan Albert [Wed, 3 Feb 2016 01:13:03 +0000 (17:13 -0800)]
Fix our fortify tests for global -Werror.
If anyone has a better way of doing this it would be welcome...
Bug: http://b/
26936282
Change-Id: I796896866327b4b5b5ee4ec36994fb320993f85d
Christopher Ferris [Tue, 2 Feb 2016 22:09:30 +0000 (22:09 +0000)]
Merge "Remove the unused TrackHeader structure."
Christopher Ferris [Tue, 2 Feb 2016 21:09:59 +0000 (13:09 -0800)]
Remove the unused TrackHeader structure.
Change-Id: I07ae5de717e1fcfbe5dfe552a531db9f630da622
Christopher Ferris [Tue, 2 Feb 2016 20:40:36 +0000 (20:40 +0000)]
Merge "Add better free tracking."
Greg Hackmann [Tue, 2 Feb 2016 18:03:35 +0000 (18:03 +0000)]
Merge changes I8ca219fa,Ia92d35b1
* changes:
socket.h: update AF_* constants
Add adjtimex
Dimitry Ivanov [Tue, 2 Feb 2016 07:00:55 +0000 (23:00 -0800)]
linker: Change the library search order
Look into "/system/lib" before "/vendor/lib", this way
we can ensure that in case of name conflict /system libraries
take precedence.
Change-Id: Ifacdc9dc7a4e175853f499ed09782b2257f09e5a
Greg Hackmann [Thu, 28 Jan 2016 19:07:26 +0000 (11:07 -0800)]
socket.h: update AF_* constants
Change-Id: I8ca219fa429ca8d8f872ed1db98275cd1a06f00b
Signed-off-by: Greg Hackmann <ghackmann@google.com>
Christopher Ferris [Fri, 29 Jan 2016 02:35:05 +0000 (18:35 -0800)]
Add better free tracking.
Included in this change:
- Change the tag when a pointer is freed so it's easy to detect if
an already freed pointer is being used.
- Move the free backtrace out of the header. This backtrace is only
used under only some circumstances, so no need to allocate space
in all headers for it.
- Add new option free_track_backtrace_num_frames to specify how many
frames to record when the free occurs. This removes the dependency
on the backtrace option to get backtraces.
Bug:
26739265
Change-Id: I76f5209507dcf46af67ada162a7cb2bf282116f2
Shinichiro Hamaji [Fri, 29 Jan 2016 06:37:46 +0000 (06:37 +0000)]
Merge "Tell kati about generated dependencies around crt"
Christopher Ferris [Fri, 29 Jan 2016 02:31:07 +0000 (02:31 +0000)]
Merge "Add min/max values for config values."
Greg Hackmann [Thu, 28 Jan 2016 01:13:51 +0000 (17:13 -0800)]
Add adjtimex
Change-Id: Ia92d35b1851e73c9f157a749dba1e98f68309a8d
Signed-off-by: Greg Hackmann <ghackmann@google.com>
Shinichiro Hamaji [Thu, 28 Jan 2016 10:39:50 +0000 (19:39 +0900)]
Tell kati about generated dependencies around crt
This was a regression since kati has been introduced. Without
this, touching libc/arch-common/bionic/__dso_handle.h doesn't
let ninja rebuild object files.
Bug:
26839129
Change-Id: Ie9ef4559c0d1ff0910a4d250ea36938b291d15db
Dimitry Ivanov [Thu, 28 Jan 2016 03:50:24 +0000 (03:50 +0000)]
Merge "linker: mark library .bss pages with anon:.bss"
Christopher Ferris [Thu, 28 Jan 2016 01:23:36 +0000 (17:23 -0800)]
Add min/max values for config values.
This is to only allow realistic values for some of the options.
Bug:
26739265
Change-Id: I172d5401c27e5d638d80f1c93c678c26c4dae0fc
Dimitry Ivanov [Thu, 28 Jan 2016 02:12:03 +0000 (18:12 -0800)]
linker: mark library .bss pages with anon:.bss
Bug: http://b/
26778774
Change-Id: Ie2cdd841b7238de50ef389a897d79f915229616b
Dimitry Ivanov [Wed, 27 Jan 2016 23:36:18 +0000 (23:36 +0000)]
Merge changes I7dc213e9,I2928d682
* changes:
Hide '__moddi3' symbol for x86 and mips
Hide '__isthreaded' for lp64 libc.so
Dimitry Ivanov [Wed, 27 Jan 2016 23:12:19 +0000 (15:12 -0800)]
Hide '__moddi3' symbol for x86 and mips
Bug: http://b/
26805673
Change-Id: I7dc213e9f25510a2a74a30e8c43fd7a64cb3dbdb
Dimitry Ivanov [Wed, 27 Jan 2016 22:54:36 +0000 (14:54 -0800)]
Hide '__isthreaded' for lp64 libc.so
Bug: http://b/
26805673
Change-Id: I2928d68287894be9f9ae7ed1858af512d8c80a3b
Christopher Ferris [Wed, 27 Jan 2016 20:25:55 +0000 (20:25 +0000)]
Merge "Remove unused file."
Christopher Ferris [Wed, 27 Jan 2016 18:58:36 +0000 (10:58 -0800)]
Remove unused file.
This file should have been deleted with the malloc debug rewrite, but
popped back into existence due to a merge conflict.
Change-Id: I74e53daaf3febf650b20e3da5329558ac84c5bcd
Elliott Hughes [Wed, 27 Jan 2016 02:38:46 +0000 (02:38 +0000)]
Merge "Fix a sign extension bug in stdio."
Dimitry Ivanov [Wed, 27 Jan 2016 02:28:41 +0000 (02:28 +0000)]
Merge "Unify names for pages allocated for small objects"
Elliott Hughes [Wed, 27 Jan 2016 02:25:52 +0000 (18:25 -0800)]
Fix a sign extension bug in stdio.
This also lets us test the EOVERFLOW behavior, which pointed out that the
fgetpos/fsetpos return on failure has always been wrong...
Bug: http://b/
24807045
Change-Id: I35273eb07c8c9155af858adb27569983397580b6
Dimitry Ivanov [Wed, 27 Jan 2016 01:53:17 +0000 (17:53 -0800)]
Unify names for pages allocated for small objects
Bug: http://b/
26776399
Change-Id: Id5b6f143a526cecca56de18ddad8857dfa1dd165
Tom Cherry [Wed, 27 Jan 2016 00:09:52 +0000 (00:09 +0000)]
Merge "Replace snprintf() with __libc_format_buffer()"
Tom Cherry [Tue, 26 Jan 2016 23:27:07 +0000 (15:27 -0800)]
Replace snprintf() with __libc_format_buffer()
If snprintf() is called from the linker, it may erroneously return a
null string. The libc internal __libc_format_buffer() does not have
this problem, so it is now used instead.
Bug:
26756577
Change-Id: I37a97e27f59b3c0a087f54a6603cc3aff7f07522
Elliott Hughes [Tue, 26 Jan 2016 23:26:43 +0000 (23:26 +0000)]
Merge "Implement funopen64."
Elliott Hughes [Tue, 26 Jan 2016 22:56:36 +0000 (22:56 +0000)]
Merge "Fix lockf for LP32."
Dimitry Ivanov [Tue, 26 Jan 2016 22:47:56 +0000 (22:47 +0000)]
Merge "Move android_ network functions to LIBC_PRIVATE"
Elliott Hughes [Tue, 26 Jan 2016 22:13:04 +0000 (14:13 -0800)]
Implement funopen64.
Bug: http://b/
24807045
Change-Id: I161920978161389be34b707cc6ce8e05f760d552
Dimitry Ivanov [Tue, 26 Jan 2016 22:07:32 +0000 (14:07 -0800)]
Move android_ network functions to LIBC_PRIVATE
Make following functions platform-private:
android_getaddrinfofornet
android_getaddrinfofornetcontext
android_gethostbyaddrfornet
android_gethostbynamefornet
Bug: http://b/
26794226
Change-Id: I0855b0b82721e4d24e918508931b4d5587fcae7d
Elliott Hughes [Tue, 26 Jan 2016 22:32:55 +0000 (14:32 -0800)]
Fix lockf for LP32.
Bug: http://b/
13077650
Change-Id: Ibbe2d907d23791c908475e0875a5c745ac948813
Elliott Hughes [Tue, 26 Jan 2016 21:32:13 +0000 (21:32 +0000)]
Merge "Factor out the waiting for children in bionic tests."
Elliott Hughes [Tue, 26 Jan 2016 21:04:57 +0000 (13:04 -0800)]
Factor out the waiting for children in bionic tests.
Change-Id: I4a1e51b6920b33dc892d447f5bd6d10f1cb2704a
Elliott Hughes [Tue, 26 Jan 2016 20:51:59 +0000 (20:51 +0000)]
Merge "Support _FILE_OFFSET_BITS=64 for most of <stdio.h>."
Elliott Hughes [Tue, 26 Jan 2016 20:45:32 +0000 (20:45 +0000)]
Merge "Implement POSIX lockf."
Elliott Hughes [Tue, 26 Jan 2016 02:06:24 +0000 (18:06 -0800)]
Implement POSIX lockf.
This has been requested a few times over the years. This is basically
a very late rebase of https://android-review.googlesource.com/45470
which was abandoned years ago. One addition is that this version has
_FILE_OFFSET_BITS=64 support.
POSIX puts this in <unistd.h>. glibc also has it in <fcntl.h>.
Bug: http://b/
13077650
Change-Id: I5862b1dc326e326c01ad92438ecc1578d19ba739
Elliott Hughes [Mon, 25 Jan 2016 23:50:59 +0000 (15:50 -0800)]
Support _FILE_OFFSET_BITS=64 for most of <stdio.h>.
This doesn't address funopen, but does add fgetpos/fsetpos/fseeko/ftello.
Bug: http://b/
24807045
Change-Id: Ibff6f00df5fb699c8e8f13b91a75caf024540b73
Yabin Cui [Tue, 26 Jan 2016 02:20:24 +0000 (02:20 +0000)]
Merge "Revert "Revert "Make sem_wait able to return errno EINTR for sdk > 23."""
Yabin Cui [Tue, 26 Jan 2016 01:38:44 +0000 (17:38 -0800)]
Revert "Revert "Make sem_wait able to return errno EINTR for sdk > 23.""
This reverts commit
6d5108520225fd2c4b10ca63565545ec120aab4a.
And add missing bionic_sdk_version.h.
Change-Id: I24cc738b1fd1d26234c52afbc787f5b3c4a9c9cb