OSDN Git Service

android-x86/bionic.git
10 years agoMerge "Changed long double literal suffix from 'l' to 'L'."
Calin Juravle [Wed, 2 Apr 2014 10:17:10 +0000 (10:17 +0000)]
Merge "Changed long double literal suffix from 'l' to 'L'."

10 years agoMerge "Remove <machine/limits.h>."
Elliott Hughes [Wed, 2 Apr 2014 00:59:09 +0000 (00:59 +0000)]
Merge "Remove <machine/limits.h>."

10 years agoMerge "Include sys/types.h and sys/wait.h for waitpid"
Christopher Ferris [Wed, 2 Apr 2014 00:49:04 +0000 (00:49 +0000)]
Merge "Include sys/types.h and sys/wait.h for waitpid"

10 years agoInclude sys/types.h and sys/wait.h for waitpid
Brian Carlstrom [Wed, 2 Apr 2014 00:33:41 +0000 (17:33 -0700)]
Include sys/types.h and sys/wait.h for waitpid

(cherry picked from commit 8b2c6d44cac206b61dffd965863336e6f803fc66)

Change-Id: Ice1f6d956c11aaefd3d846c12121f08613a94446

10 years agoRemove <machine/limits.h>.
Elliott Hughes [Wed, 2 Apr 2014 00:16:59 +0000 (17:16 -0700)]
Remove <machine/limits.h>.

Change-Id: I7f9e9538517f726d4f08bf1f4b8d57c54d3f1676

10 years agoMerge "Remove SIZE_MAX definition in limits.h"
Elliott Hughes [Tue, 1 Apr 2014 23:52:04 +0000 (23:52 +0000)]
Merge "Remove SIZE_MAX definition in limits.h"

10 years agoMerge "Fix transient failure in select_smoke test."
Christopher Ferris [Tue, 1 Apr 2014 21:52:05 +0000 (21:52 +0000)]
Merge "Fix transient failure in select_smoke test."

10 years agoFix transient failure in select_smoke test.
Christopher Ferris [Tue, 1 Apr 2014 05:51:27 +0000 (22:51 -0700)]
Fix transient failure in select_smoke test.

Make sure there is a delay before the file descriptor is written so that
the select/pselect calls do not return immediately.

Change-Id: If9e481b0e2cfae7ef7abd9cba8fff84078e203d3

10 years agoMerge "Add Silvermont architecture cache sizes"
Elliott Hughes [Tue, 1 Apr 2014 21:40:04 +0000 (21:40 +0000)]
Merge "Add Silvermont architecture cache sizes"

10 years agoMerge "Fix debug malloc for LP64."
Elliott Hughes [Tue, 1 Apr 2014 21:00:07 +0000 (21:00 +0000)]
Merge "Fix debug malloc for LP64."

10 years agoFix debug malloc for LP64.
Elliott Hughes [Tue, 1 Apr 2014 20:48:30 +0000 (13:48 -0700)]
Fix debug malloc for LP64.

Change-Id: I5de2097b6589c0d6750b2a3bc3cbb06227de6d5f

10 years agoMerge "Add lsearch(3) for ltrace."
Elliott Hughes [Tue, 1 Apr 2014 20:25:32 +0000 (20:25 +0000)]
Merge "Add lsearch(3) for ltrace."

10 years agoAdd lsearch(3) for ltrace.
Elliott Hughes [Tue, 1 Apr 2014 19:40:00 +0000 (12:40 -0700)]
Add lsearch(3) for ltrace.

Bug: 13746936
Change-Id: I833c6ba70a1752c04dab7de389f5bebb741662b3

10 years agoMerge "Remove duplicate line in linker/Android.mk."
Elliott Hughes [Tue, 1 Apr 2014 19:22:19 +0000 (19:22 +0000)]
Merge "Remove duplicate line in linker/Android.mk."

10 years agoRemove duplicate line in linker/Android.mk.
Elliott Hughes [Tue, 1 Apr 2014 18:41:36 +0000 (11:41 -0700)]
Remove duplicate line in linker/Android.mk.

Change-Id: I7b4d5fcdfacc840bbda4ffd965e5315c4651cfe5

10 years agoChanged long double literal suffix from 'l' to 'L'.
Calin Juravle [Tue, 1 Apr 2014 15:41:12 +0000 (16:41 +0100)]
Changed long double literal suffix from 'l' to 'L'.

Change-Id: Id569f2d335b0930704d12ad7f388cb98b65f3ab7

10 years agoAdd Silvermont architecture cache sizes
Henrik Smiding [Wed, 8 Jan 2014 15:57:55 +0000 (16:57 +0100)]
Add Silvermont architecture cache sizes

Adds Silvermont specific cache sizes for bionic optimizations.

Change-Id: Ib992f530b8c485121b2874470fd6bed2212adb0f
Signed-off-by: Henrik Smiding <henrik.smiding@intel.com>
10 years agoMerge "Move accept4 tests into sys_socket_test.cpp."
Christopher Ferris [Tue, 1 Apr 2014 05:50:17 +0000 (05:50 +0000)]
Merge "Move accept4 tests into sys_socket_test.cpp."

10 years agoMove accept4 tests into sys_socket_test.cpp.
Christopher Ferris [Mon, 31 Mar 2014 20:30:22 +0000 (13:30 -0700)]
Move accept4 tests into sys_socket_test.cpp.

In addition, create basic recvmmsg, sendmmsg tests.

Change-Id: Ie9f4954446d98b5eb5e553d3c616c1ee67c3cb66

10 years agoMerge "Small accept4 fixes."
Christopher Ferris [Mon, 31 Mar 2014 19:01:23 +0000 (19:01 +0000)]
Merge "Small accept4 fixes."

10 years agoSmall accept4 fixes.
Christopher Ferris [Mon, 31 Mar 2014 18:23:39 +0000 (11:23 -0700)]
Small accept4 fixes.

Put the accept4 test in the sorted order, and put the accept4 define in
sorted order.

Also add the missing SYS_RECVMMSG and SYS_SENDMMSG defines.

Change-Id: Iba55354975e0d5027dbee53f6de752c2df719493

10 years agoRemove SIZE_MAX definition in limits.h
Russell Webb [Mon, 10 Mar 2014 23:35:28 +0000 (16:35 -0700)]
Remove SIZE_MAX definition in limits.h

the POSIX standard is that SIZE_MAX is defined
in stdint.h, not limits.h.

Change-Id: Iafd8ec71d1840541feaca4f53b2926b398293fac
Signed-off-by: Webb, Russell <russell.webb@intel.com>
Signed-off-by: Fengwei Yin <fengwei.yin@intel.com>
Reviewed-by: Ross, Andrew J <andrew.j.ross@intel.com>
Reviewed-by: Boie, Andrew P <andrew.p.boie@intel.com>
Reviewed-by: Gumbel, Matthew K <matthew.k.gumbel@intel.com>
Tested-by: Gumbel, Matthew K <matthew.k.gumbel@intel.com>
10 years agoMerge "Fix math tests."
Calin Juravle [Mon, 31 Mar 2014 10:54:14 +0000 (10:54 +0000)]
Merge "Fix math tests."

10 years agoMerge "add 32-bit bionic implementation for denver arch"
Christopher Ferris [Mon, 31 Mar 2014 03:30:12 +0000 (03:30 +0000)]
Merge "add 32-bit bionic implementation for denver arch"

10 years agoMerge "Use __unused instead of UNUSED in linker.cpp"
Christopher Ferris [Sun, 30 Mar 2014 22:24:22 +0000 (22:24 +0000)]
Merge "Use __unused instead of UNUSED in linker.cpp"

10 years agoMerge "Add lconv declaration and localeconv(3)"
Calin Juravle [Fri, 28 Mar 2014 11:18:16 +0000 (11:18 +0000)]
Merge "Add lconv declaration and localeconv(3)"

10 years agoAdd lconv declaration and localeconv(3)
Pavel Chupin [Tue, 25 Mar 2014 09:43:04 +0000 (13:43 +0400)]
Add lconv declaration and localeconv(3)

lconv is taken from ndk/sources/android/support/include/locale.h and
matches
bsd/glibc upstream.
Keep old declaration for 32-bits for compatibility.
localeconv.c and deps are taken from openbsd upstream.
Changed strtod.c accordingly.

Change-Id: I9fcc4d15f5674d192950d80edf26f36006cd31b4
Signed-off-by: Pavel Chupin <pavel.v.chupin@intel.com>
10 years agoFix math tests.
Calin Juravle [Thu, 27 Mar 2014 13:41:06 +0000 (13:41 +0000)]
Fix math tests.

Bug: 13657654
Change-Id: I39b2f13b5b3d3e6897618ac3aed49a0a08458dd0

10 years agoMerge "Add accept4 unit test to bionic."
Christopher Ferris [Thu, 27 Mar 2014 18:15:15 +0000 (18:15 +0000)]
Merge "Add accept4 unit test to bionic."

10 years agoMerge "linker: use LOCAL_MULTILIB := both style to build linker64"
Colin Cross [Thu, 27 Mar 2014 18:09:35 +0000 (18:09 +0000)]
Merge "linker: use LOCAL_MULTILIB := both style to build linker64"

10 years agoAdd accept4 unit test to bionic.
Andrei Emeltchenko [Tue, 18 Feb 2014 08:22:58 +0000 (10:22 +0200)]
Add accept4 unit test to bionic.

Change-Id: I1cce5fb8dab16f03164fdd288f35a814d7c49c6a

10 years agolinker: use LOCAL_MULTILIB := both style to build linker64
Colin Cross [Thu, 27 Mar 2014 17:45:57 +0000 (10:45 -0700)]
linker: use LOCAL_MULTILIB := both style to build linker64

Use LOCAL_MODULE_STEM_32 and LOCAL_MODULE_STEM_64 to build
linker and linker64.  Set LOCAL_MULTILIB := both for consistency
with other rules of this type, although LOCAL_MULTILIB := both is
only consumed by executable.mk which is skipped by
linker_executable.mk.  Duplicate the necessary new parts of
executable.mk.

Change-Id: I888e87cf125cfbcfdee6a55b6377d8bc5ce402ea

10 years agoMerge changes I1935a63d,I3dfd3647
Calin Juravle [Thu, 27 Mar 2014 16:53:08 +0000 (16:53 +0000)]
Merge changes I1935a63d,I3dfd3647

* changes:
  Fix and clean up strtotimeval
  Added strtotimeval tests.

10 years agoFix and clean up strtotimeval
Weichuan Yan [Wed, 26 Mar 2014 03:41:15 +0000 (03:41 +0000)]
Fix and clean up strtotimeval

- parsing of fractional part was wrong (always parsed as 0)
- return value was also wrong in the presence of fractional parts
- general style clean up

Change-Id: I1935a63db938dbed7cacb4b5646e993a52c27f1a
Signed-off-by: Weichuan Yan <wchyan@marvell.com>
10 years agoMerge "Add accept4() syscall"
Christopher Ferris [Wed, 26 Mar 2014 19:40:59 +0000 (19:40 +0000)]
Merge "Add accept4() syscall"

10 years agoAdded strtotimeval tests.
Calin Juravle [Wed, 26 Mar 2014 14:21:11 +0000 (14:21 +0000)]
Added strtotimeval tests.

Change-Id: I3dfd3647a8494490a2d549bdb915968063a7fb99

10 years agoMerge "Clean up CMSG_*HDR in <sys/socket.h>"
Calin Juravle [Wed, 26 Mar 2014 14:23:59 +0000 (14:23 +0000)]
Merge "Clean up CMSG_*HDR in <sys/socket.h>"

10 years agoAdd accept4() syscall
Andrei Emeltchenko [Wed, 26 Mar 2014 13:50:01 +0000 (15:50 +0200)]
Add accept4() syscall

Add accept4() using SYSCALLS.TXT and gensyscall

Change-Id: I6f19f29144186d15d46423e10f2cc4b4223719c6

10 years agoadd 32-bit bionic implementation for denver arch
Shu Zhang [Wed, 12 Mar 2014 03:18:41 +0000 (11:18 +0800)]
add 32-bit bionic implementation for denver arch

Add 32-bit bionic implementation for denver. Use denver version of memcpy/
memset. Use Cortex-A15 version of strlen/strcat/strcpy/strcmp.

Change-Id: I4c6b675f20cf41a29cadf70a11d1635d7df5b30a

10 years agoMerge "Keep the symbol table in the shared libc."
Christopher Ferris [Tue, 25 Mar 2014 17:46:30 +0000 (17:46 +0000)]
Merge "Keep the symbol table in the shared libc."

10 years agoClean up CMSG_*HDR in <sys/socket.h>
Calin Juravle [Wed, 19 Mar 2014 17:40:23 +0000 (17:40 +0000)]
Clean up CMSG_*HDR in <sys/socket.h>

Removed __CMSG_NXTHDR, __CMSG_FIRSTHDR and cmsg_nxthdr.

Bug: 13418328
Change-Id: I6b1ed58b41b3f37d41e070c4f222b5bfa512bc48

10 years agoUse __unused instead of UNUSED in linker.cpp
Kito Cheng [Tue, 25 Mar 2014 14:53:56 +0000 (22:53 +0800)]
Use __unused instead of UNUSED in linker.cpp

 - sys/cdefs.h already define __unused, just use it
   instead of define a local one.

Change-Id: Iacf3da9193e65e1f34b12760b28bcb64b67cb790

10 years agoKeep the symbol table in the shared libc.
Christopher Ferris [Fri, 21 Mar 2014 18:11:38 +0000 (11:11 -0700)]
Keep the symbol table in the shared libc.

In order to allow the unwinder code to have meaningful names for
libc functions, leave the symbol table. This results in the libc.so
getting to be about ~130K larger on all arm platforms and about ~70K
larger on mips/x86 platforms.

Bug: 12958251
Change-Id: I6b3a97e4824142faf5de46aeabf7c1dfb98a8cc6

10 years agoMerge "Add include of float.h for LDBL_MIN_EXP and LDBL_MANT_DIG"
Brian Carlstrom [Tue, 25 Mar 2014 00:16:30 +0000 (00:16 +0000)]
Merge "Add include of float.h for LDBL_MIN_EXP and LDBL_MANT_DIG"

10 years agoAdd include of float.h for LDBL_MIN_EXP and LDBL_MANT_DIG
Brian Carlstrom [Mon, 24 Mar 2014 23:45:18 +0000 (16:45 -0700)]
Add include of float.h for LDBL_MIN_EXP and LDBL_MANT_DIG

(cherry picked from commit 1711c6ea3a0d891da665325c75738a68bd7d501f)

Change-Id: Ia64676b2b904f042fec678003e3f2cd5bd82b510

10 years agoMerge "Fix LP64 libm for 128-bit long doubles"
Calin Juravle [Mon, 24 Mar 2014 12:13:24 +0000 (12:13 +0000)]
Merge "Fix LP64 libm for 128-bit long doubles"

10 years agoMerge "Remove ALIGNBYTES and ALIGN from <sys/param.h>"
Calin Juravle [Mon, 24 Mar 2014 12:11:30 +0000 (12:11 +0000)]
Merge "Remove ALIGNBYTES and ALIGN from <sys/param.h>"

10 years agoFix LP64 libm for 128-bit long doubles
Calin Juravle [Fri, 14 Mar 2014 17:56:46 +0000 (17:56 +0000)]
Fix LP64 libm for 128-bit long doubles

* reworked amd64/_fpmath.h and arm64/_fpmath.h to support 128-bit long
doubles.
* improved tests to cover long double cases
* made modfl an alias for LP32

Tests pass on x86, x86_64, arm, arm64 and mips.

Bug: 12921273

Change-Id: Ibe39acde57972447a8950fa45b1e702acc68ebeb

10 years agoMerge "FORTIFY_SOURCE: don't define s?printf macros if already defined"
Nick Kralevich [Sat, 22 Mar 2014 17:55:48 +0000 (17:55 +0000)]
Merge "FORTIFY_SOURCE: don't define s?printf macros if already defined"

10 years agoMerge "libc: Thread IDs missing from logcat -v thread"
Mark Salyzyn [Fri, 21 Mar 2014 20:09:32 +0000 (20:09 +0000)]
Merge "libc: Thread IDs missing from logcat -v thread"

10 years agoMerge "Fix deadlock in timer_delete."
Christopher Ferris [Fri, 21 Mar 2014 17:26:58 +0000 (17:26 +0000)]
Merge "Fix deadlock in timer_delete."

10 years agoRemove ALIGNBYTES and ALIGN from <sys/param.h>
Calin Juravle [Thu, 20 Mar 2014 15:21:32 +0000 (15:21 +0000)]
Remove ALIGNBYTES and ALIGN from <sys/param.h>

There are only three users of bionic definition of ALIGN and keeping it
in sys/param.h polutes the namespace.

I inline the definition in the the three places that's used.

Bug: 13400663
Change-Id: I565008e8426c38ffb07422f42cd8e547d53044e9

10 years agoFix deadlock in timer_delete.
Christopher Ferris [Fri, 21 Mar 2014 03:47:45 +0000 (20:47 -0700)]
Fix deadlock in timer_delete.

If the callback function for a timer did a timer_delete, the function
would never return. The problem was that the timer_delete function would try
to wait until the timer thread has finished. Waiting for yourself to finish
doesn't work very well.

Bug: 13397340
Change-Id: Ica123a5bafbc8660c8a4a909e5c2dead55ca429d

10 years agolibc: Thread IDs missing from logcat -v thread
Mark Salyzyn [Thu, 20 Mar 2014 23:07:55 +0000 (16:07 -0700)]
libc: Thread IDs missing from logcat -v thread

- stuff caller's thread id into the packet.

Bug: 13568206
Change-Id: If8b318ef75c7dcdddb05da8ac3038860f0fda5ec

10 years agoMerge "Added a test flag to bionic run-test targets."
Calin Juravle [Wed, 19 Mar 2014 18:31:25 +0000 (18:31 +0000)]
Merge "Added a test flag to bionic run-test targets."

10 years agoAdded a test flag to bionic run-test targets.
Calin Juravle [Wed, 19 Mar 2014 17:45:08 +0000 (17:45 +0000)]
Added a test flag to bionic run-test targets.

It makes it much easier to pass arguments to the tests.

Change-Id: Ia91eba4868627a3cea3f8d2c26ba01af4e860b12

10 years agoFORTIFY_SOURCE: don't define s?printf macros if already defined
Nick Kralevich [Wed, 19 Mar 2014 00:03:38 +0000 (17:03 -0700)]
FORTIFY_SOURCE: don't define s?printf macros if already defined

Clang specific: Don't #define sprintf and snprintf macros if they
are already defined.

Change-Id: I30fc507d898377e1b8a57a65a147926229e0f9e2

10 years agoMerge "Use the float/double assert macros."
Christopher Ferris [Mon, 17 Mar 2014 23:51:36 +0000 (23:51 +0000)]
Merge "Use the float/double assert macros."

10 years agoUse the float/double assert macros.
Christopher Ferris [Mon, 17 Mar 2014 23:40:26 +0000 (16:40 -0700)]
Use the float/double assert macros.

The normal ASSERT_EQ macros don't work quite right for float/double values,
and result in false failures. Use the correct macros instead.

Bug: 13511379
Change-Id: Ic2feee7f3d3569f57b6453b8fa95222846c625cd

10 years agoMerge "Update libm to the upstream head (2014.03.13)"
Calin Juravle [Fri, 14 Mar 2014 10:58:17 +0000 (10:58 +0000)]
Merge "Update libm to the upstream head (2014.03.13)"

10 years agoMerge "Clean up reentrancy cruft."
Elliott Hughes [Fri, 14 Mar 2014 04:58:19 +0000 (04:58 +0000)]
Merge "Clean up reentrancy cruft."

10 years agoClean up reentrancy cruft.
Elliott Hughes [Thu, 13 Mar 2014 23:17:43 +0000 (16:17 -0700)]
Clean up reentrancy cruft.

The DNS copy of reentrant.h was unused, so remove it.

The strtod implementation can use the upstream-netbsd reentrant.h and
get a little closer to what was then upstream. (It's since been replaced
by gdtoa, and we'll have to follow at some point, but for now this doesn't
make anything any worse.)

ANDROID_CHANGES is (now) only used in the DNS code, so push the -D
down.

The <locale.h> change prevents an LP32 hack from leaking into LP64.

Change-Id: Idf30b98a59d7ca8f7c6cd6d07020b512057911ef

10 years agoMerge "Clean up <stdio.h> macros."
Elliott Hughes [Thu, 13 Mar 2014 23:13:58 +0000 (23:13 +0000)]
Merge "Clean up <stdio.h> macros."

10 years agoClean up <stdio.h> macros.
Elliott Hughes [Thu, 13 Mar 2014 21:54:53 +0000 (14:54 -0700)]
Clean up <stdio.h> macros.

Also neuter __isthreaded.

We should come back to try to hide struct FILE's internals for LP64.

Bug: 3453512
Bug: 3453550
Change-Id: I7e115329fb4579246a72fea367b9fc8cb6055d18

10 years agoMerge "property: fix getting dirty serial value"
Elliott Hughes [Thu, 13 Mar 2014 20:16:17 +0000 (20:16 +0000)]
Merge "property: fix getting dirty serial value"

10 years agoproperty: fix getting dirty serial value
jiaguo [Thu, 13 Mar 2014 09:39:58 +0000 (17:39 +0800)]
property: fix getting dirty serial value

__system_property_serial just returned serial value without
checking if it is dirty, so check and wait until serial
value is not dirty before return

Change-Id: If485b6251b5555b004912c66c7c2cb455a7fdbdc
Signed-off-by: jiaguo <jiaguo@marvell.com>
10 years agoUpdate libm to the upstream head (2014.03.13)
Calin Juravle [Thu, 13 Mar 2014 16:20:36 +0000 (16:20 +0000)]
Update libm to the upstream head (2014.03.13)

The most relevant changes are the ones in s_erff.c which should improve
the overall speed of exececution and the maximum error in ULP.

Change-Id: I7bd867f902db418db67f02cd58578624357b1ee8

10 years agoMerge "Upgrade to current upstream scanf implementation."
Elliott Hughes [Thu, 13 Mar 2014 00:49:23 +0000 (00:49 +0000)]
Merge "Upgrade to current upstream scanf implementation."

10 years agoUpgrade to current upstream scanf implementation.
Elliott Hughes [Thu, 13 Mar 2014 00:10:41 +0000 (17:10 -0700)]
Upgrade to current upstream scanf implementation.

Also add a basic test.

Change-Id: Icc0e68a5716b9579244f6eb8bac1ab5a24eda85a

10 years agoMerge "Ensure we always have symbols for atof, strtof, strtold."
Elliott Hughes [Wed, 12 Mar 2014 23:32:37 +0000 (23:32 +0000)]
Merge "Ensure we always have symbols for atof, strtof, strtold."

10 years agoEnsure we always have symbols for atof, strtof, strtold.
Elliott Hughes [Wed, 12 Mar 2014 23:12:57 +0000 (16:12 -0700)]
Ensure we always have symbols for atof, strtof, strtold.

We'll need a better implementation of strtold for LP64, but all our
long double functions are currently broken for LP64 anyway so this
isn't a regression.

Change-Id: I2bdebac11245d31521d5fa09a16331c03dc4339c

10 years agoMerge "logd: default user space logger"
Mark Salyzyn [Wed, 12 Mar 2014 21:02:46 +0000 (21:02 +0000)]
Merge "logd: default user space logger"

10 years agoMerge "Include what you use."
Elliott Hughes [Wed, 12 Mar 2014 20:51:48 +0000 (20:51 +0000)]
Merge "Include what you use."

10 years agoInclude what you use.
Elliott Hughes [Wed, 12 Mar 2014 20:50:38 +0000 (13:50 -0700)]
Include what you use.

Don't rely on transitive includes. (Even though that works fine in AOSP.)

Change-Id: Ifc06575e4aea383cfff24d6c5c14fc0a7aabdf2b

10 years agoMerge "Use [u]int32_t instead of __[u]int32_t in sys/types.h"
Elliott Hughes [Wed, 12 Mar 2014 20:48:39 +0000 (20:48 +0000)]
Merge "Use [u]int32_t instead of __[u]int32_t in sys/types.h"

10 years agoUse [u]int32_t instead of __[u]int32_t in sys/types.h
Pavel Chupin [Wed, 12 Mar 2014 07:23:49 +0000 (11:23 +0400)]
Use [u]int32_t instead of __[u]int32_t in sys/types.h

Avoid this error in -ffreestanding mode:
sys/types.h:45:1: error: unknown type name '__uint32_t'

Change-Id: I826b36873862d1d70b47401f31f4369a77666b8e
Signed-off-by: Pavel Chupin <pavel.v.chupin@intel.com>
10 years agologd: default user space logger
Mark Salyzyn [Wed, 12 Mar 2014 16:27:53 +0000 (09:27 -0700)]
logd: default user space logger

Change-Id: Id205b01537940051c72d79def28a3c1a8b169a21

10 years agoMerge "Clean up our termios implementation."
Elliott Hughes [Wed, 12 Mar 2014 02:25:22 +0000 (02:25 +0000)]
Merge "Clean up our termios implementation."

10 years agoClean up our termios implementation.
Elliott Hughes [Tue, 11 Mar 2014 23:06:23 +0000 (16:06 -0700)]
Clean up our termios implementation.

It's safe to fix our constant definitions because we know we never
had symbols before, so can't be passing the bad old constants to the new
functions, or the correct new constants to the old inlines.

Change-Id: I858fc680df39bdd3ba471e867833bdfa71f6224e

10 years agoMerge "More stdio cleanup."
Elliott Hughes [Tue, 11 Mar 2014 22:31:00 +0000 (22:31 +0000)]
Merge "More stdio cleanup."

10 years agoMore stdio cleanup.
Elliott Hughes [Tue, 11 Mar 2014 22:05:50 +0000 (15:05 -0700)]
More stdio cleanup.

Change-Id: Idc909cd3dc7b072f1edd2ae4980932d6550e8568

10 years agoMerge "Reimplement clock(3) and switch to OpenBSD time(3)."
Elliott Hughes [Tue, 11 Mar 2014 21:36:02 +0000 (21:36 +0000)]
Merge "Reimplement clock(3) and switch to OpenBSD time(3)."

10 years agoReimplement clock(3) and switch to OpenBSD time(3).
Elliott Hughes [Tue, 11 Mar 2014 20:37:11 +0000 (13:37 -0700)]
Reimplement clock(3) and switch to OpenBSD time(3).

The new implementation is a better approximation to the processor time used
by the process because it's actually based on resource usage rather than just
elapsed wall clock time.

Change-Id: I9e13b69c1d3048cadf0eb9dec1e3ebc78225596a

10 years agoMerge "Add a basic unit test for system(3)."
Elliott Hughes [Tue, 11 Mar 2014 20:02:49 +0000 (20:02 +0000)]
Merge "Add a basic unit test for system(3)."

10 years agoAdd a basic unit test for system(3).
Elliott Hughes [Tue, 11 Mar 2014 19:54:44 +0000 (12:54 -0700)]
Add a basic unit test for system(3).

Change-Id: Ibc5ac21f3663685d89ce261b58d6ea386fc1ff88

10 years agoMerge "Add various benchmarks."
Elliott Hughes [Tue, 11 Mar 2014 19:47:38 +0000 (19:47 +0000)]
Merge "Add various benchmarks."

10 years agoAdd various benchmarks.
Elliott Hughes [Tue, 11 Mar 2014 18:19:06 +0000 (11:19 -0700)]
Add various benchmarks.

These are based on ones from system/extras/tests/bionic/.

Change-Id: I7b1ae15a2ca5d1031a6a511d97b88125c1770047

10 years agoMerge "Sysconfig fixes"
Calin Juravle [Tue, 11 Mar 2014 10:50:00 +0000 (10:50 +0000)]
Merge "Sysconfig fixes"

10 years agoMerge "Removed pthread_attr_getstackaddr/pthread_attr_setstackaddr"
Calin Juravle [Tue, 11 Mar 2014 10:49:46 +0000 (10:49 +0000)]
Merge "Removed pthread_attr_getstackaddr/pthread_attr_setstackaddr"

10 years agoSysconfig fixes
Calin Juravle [Mon, 10 Mar 2014 18:25:36 +0000 (18:25 +0000)]
Sysconfig fixes

Remove _POSIX_THREAD_ATTR_STACKADDR and _POSIX_THREAD_ATTR_STACKSIZE
since they don't exists. Return -1 for their corresponding values but
don't set errno.

Bug: 13281069
Change-Id: Ice29b4dfebe2b474212e40ee726d86782a3064b9

10 years agoRemoved pthread_attr_getstackaddr/pthread_attr_setstackaddr
Calin Juravle [Mon, 10 Mar 2014 18:10:04 +0000 (18:10 +0000)]
Removed pthread_attr_getstackaddr/pthread_attr_setstackaddr

Moved existing definitions to ndk_cruft to preserve NDK compatibility.

Bug: 13281069
Change-Id: I6f260de69afa55a6274f0d13145c19ac6517b9d5

10 years agoMerge "Add system/extras strftime and strptime tests."
Elliott Hughes [Tue, 11 Mar 2014 01:41:21 +0000 (01:41 +0000)]
Merge "Add system/extras strftime and strptime tests."

10 years agoAdd system/extras strftime and strptime tests.
Elliott Hughes [Tue, 11 Mar 2014 01:19:03 +0000 (18:19 -0700)]
Add system/extras strftime and strptime tests.

Change-Id: I889c58f6e2e27b99cf6328a8671858d2e5feaa4e

10 years agoMerge "Take ownership of various simple syscall wrappers."
Elliott Hughes [Tue, 11 Mar 2014 00:40:56 +0000 (00:40 +0000)]
Merge "Take ownership of various simple syscall wrappers."

10 years agoTake ownership of various simple syscall wrappers.
Elliott Hughes [Tue, 11 Mar 2014 00:17:01 +0000 (17:17 -0700)]
Take ownership of various simple syscall wrappers.

None of these trivial functions is something we're going to get from BSD.

Change-Id: Iee1d1281b73db67da5ec303da7a49748121464bf

10 years agoMerge "Switch to NetBSD utmp.c."
Elliott Hughes [Mon, 10 Mar 2014 23:37:27 +0000 (23:37 +0000)]
Merge "Switch to NetBSD utmp.c."

10 years agoSwitch to NetBSD utmp.c.
Elliott Hughes [Mon, 10 Mar 2014 23:32:35 +0000 (16:32 -0700)]
Switch to NetBSD utmp.c.

Change-Id: Ibe94888aa48b5b28fea97fd5719a1ed7a23ddeb3

10 years agoMerge "Switch to upstream FreeBSD ldexp.c."
Elliott Hughes [Mon, 10 Mar 2014 23:25:38 +0000 (23:25 +0000)]
Merge "Switch to upstream FreeBSD ldexp.c."

10 years agoMerge "Rename the stack protector intermediate library."
Elliott Hughes [Mon, 10 Mar 2014 23:25:04 +0000 (23:25 +0000)]
Merge "Rename the stack protector intermediate library."

10 years agoSwitch to upstream FreeBSD ldexp.c.
Elliott Hughes [Mon, 10 Mar 2014 23:23:09 +0000 (16:23 -0700)]
Switch to upstream FreeBSD ldexp.c.

(Yes, this should be in libm, but it isn't. For once, this mistake predates
bionic!)

Change-Id: I1340407acbcdc0151dee969a38ba490bdd5e6767