Commit Graph

7813 Commits

Author SHA1 Message Date
Andrei Emeltchenko
2f3ba8844a Add accept4 unit test to bionic.
Change-Id: I1cce5fb8dab16f03164fdd288f35a814d7c49c6a
2014-03-27 11:08:49 -07:00
Colin Cross
406a75d371 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
2014-03-27 10:45:57 -07:00
Calin Juravle
4f6cd7cf9b am 113f7750: am 206fe5fd: Merge changes I1935a63d,I3dfd3647
* commit '113f77506b2382eeb2d99c74f84579c59832fbbb':
  Fix and clean up strtotimeval
  Added strtotimeval tests.
2014-03-27 17:06:14 +00:00
Calin Juravle
113f77506b am 206fe5fd: Merge changes I1935a63d,I3dfd3647
* commit '206fe5fd160504489234d222d824870837e82b59':
  Fix and clean up strtotimeval
  Added strtotimeval tests.
2014-03-27 16:59:18 +00:00
Calin Juravle
206fe5fd16 Merge changes I1935a63d,I3dfd3647
* changes:
  Fix and clean up strtotimeval
  Added strtotimeval tests.
2014-03-27 16:53:08 +00:00
Weichuan Yan
f1d7536dcf 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>
2014-03-27 14:57:36 +00:00
Christopher Ferris
474663a398 am 7b6440d1: am bc475bc8: Merge "Add accept4() syscall"
* commit '7b6440d1547d9845ba5572179cd9c32b088b1985':
  Add accept4() syscall
2014-03-26 19:59:57 +00:00
Christopher Ferris
7b6440d154 am bc475bc8: Merge "Add accept4() syscall"
* commit 'bc475bc8d1d202baa48f6c9829fe1cced9122332':
  Add accept4() syscall
2014-03-26 19:53:07 +00:00
Christopher Ferris
bc475bc8d1 Merge "Add accept4() syscall" 2014-03-26 19:40:59 +00:00
Calin Juravle
4bfaf462f0 Added strtotimeval tests.
Change-Id: I3dfd3647a8494490a2d549bdb915968063a7fb99
2014-03-26 17:57:48 +00:00
Calin Juravle
d91b4a0ffc am cba91b3d: am ecbf00bd: Merge "Clean up CMSG_*HDR in <sys/socket.h>"
* commit 'cba91b3dbd2de2299979c0015896fb6942162bd7':
  Clean up CMSG_*HDR in <sys/socket.h>
2014-03-26 16:36:26 +00:00
Calin Juravle
cba91b3dbd am ecbf00bd: Merge "Clean up CMSG_*HDR in <sys/socket.h>"
* commit 'ecbf00bda2fcee65e4e6385772022529ffeeed91':
  Clean up CMSG_*HDR in <sys/socket.h>
2014-03-26 14:51:16 +00:00
Calin Juravle
ecbf00bda2 Merge "Clean up CMSG_*HDR in <sys/socket.h>" 2014-03-26 14:24:01 +00:00
Andrei Emeltchenko
8f2a30a92a Add accept4() syscall
Add accept4() using SYSCALLS.TXT and gensyscall

Change-Id: I6f19f29144186d15d46423e10f2cc4b4223719c6
2014-03-26 15:50:01 +02:00
Shu Zhang
5b5d6e7045 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
2014-03-26 13:57:01 +08:00
Christopher Ferris
0f01bb2e68 am b47790fb: am c8fc4ddc: Merge "Keep the symbol table in the shared libc."
* commit 'b47790fb5620b4a856bba6e2cb1b76989d96956d':
  Keep the symbol table in the shared libc.
2014-03-25 21:22:58 +00:00
Christopher Ferris
b47790fb56 am c8fc4ddc: Merge "Keep the symbol table in the shared libc."
* commit 'c8fc4ddc183060aa979185d5a6845f26beb1a733':
  Keep the symbol table in the shared libc.
2014-03-25 19:09:32 +00:00
Christopher Ferris
c8fc4ddc18 Merge "Keep the symbol table in the shared libc." 2014-03-25 17:46:30 +00:00
Calin Juravle
f1de90b3a2 Clean up CMSG_*HDR in <sys/socket.h>
Removed __CMSG_NXTHDR, __CMSG_FIRSTHDR and cmsg_nxthdr.

Bug: 13418328
Change-Id: I6b1ed58b41b3f37d41e070c4f222b5bfa512bc48
2014-03-25 17:07:37 +00:00
Kito Cheng
812fd4263a 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
2014-03-25 22:54:19 +08:00
Christopher Ferris
0ae6445e9a 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
2014-03-24 17:56:13 -07:00
Brian Carlstrom
f2da14ccc7 am 3f078dc9: am f71c0e75: Merge "Add include of float.h for LDBL_MIN_EXP and LDBL_MANT_DIG"
* commit '3f078dc9f7ecc7fcc2265198a7744754c78047f1':
  Add include of float.h for LDBL_MIN_EXP and LDBL_MANT_DIG
2014-03-25 00:36:02 +00:00
Brian Carlstrom
3f078dc9f7 am f71c0e75: Merge "Add include of float.h for LDBL_MIN_EXP and LDBL_MANT_DIG"
* commit 'f71c0e75e0d041c80e4dc6900e2c2283e5d55ce2':
  Add include of float.h for LDBL_MIN_EXP and LDBL_MANT_DIG
2014-03-25 00:26:01 +00:00
Brian Carlstrom
f71c0e75e0 Merge "Add include of float.h for LDBL_MIN_EXP and LDBL_MANT_DIG" 2014-03-25 00:16:30 +00:00
Brian Carlstrom
133bd09334 Add include of float.h for LDBL_MIN_EXP and LDBL_MANT_DIG
(cherry picked from commit 1711c6ea3a0d891da665325c75738a68bd7d501f)

Change-Id: Ia64676b2b904f042fec678003e3f2cd5bd82b510
2014-03-24 16:53:22 -07:00
Calin Juravle
afc3a59e6c am 20f78d7e: am 989a80b7: Merge "Fix LP64 libm for 128-bit long doubles"
* commit '20f78d7eecb921fe9862039fe43c02747e4f253f':
  Fix LP64 libm for 128-bit long doubles
2014-03-24 21:25:35 +00:00
Calin Juravle
ade0564616 am 02a17877: am 9e8a8dc1: Merge "Remove ALIGNBYTES and ALIGN from <sys/param.h>"
* commit '02a178773806e118e60a422f82b8a2607bd54e86':
  Remove ALIGNBYTES and ALIGN from <sys/param.h>
2014-03-24 21:25:34 +00:00
Nick Kralevich
91ef8d53ec am aefe43b1: am 95c1abec: Merge "FORTIFY_SOURCE: don\'t define s?printf macros if already defined"
* commit 'aefe43b1824907b93c6280ce27cb2c105c564477':
  FORTIFY_SOURCE: don't define s?printf macros if already defined
2014-03-24 21:25:17 +00:00
Chad Brubaker
efe4461364 am b9e1688c: am 1d3d0360: am 081db840: Allow overlap in resolv uid => DNS iface mapping
* commit 'b9e1688cd9f8727bbe0dacafd194c7a571bedb14':
  Allow overlap in resolv uid => DNS iface mapping
2014-03-24 19:35:17 +00:00
Mark Salyzyn
248f1027e0 am 5b3c6fde: am cce6c380: Merge "libc: Thread IDs missing from logcat -v thread"
* commit '5b3c6fde09f2665f788f2586c3cdbab28b98b229':
  libc: Thread IDs missing from logcat -v thread
2014-03-24 18:44:03 +00:00
Christopher Ferris
7eec583445 am e1b25377: am 998d7b03: Merge "Fix deadlock in timer_delete."
* commit 'e1b25377387376932688bb436393764469af1cf3':
  Fix deadlock in timer_delete.
2014-03-24 17:27:10 +00:00
Calin Juravle
20f78d7eec am 989a80b7: Merge "Fix LP64 libm for 128-bit long doubles"
* commit '989a80b75014eff71600a6a4e1445e710c2f94b4':
  Fix LP64 libm for 128-bit long doubles
2014-03-24 12:33:51 +00:00
Calin Juravle
02a1787738 am 9e8a8dc1: Merge "Remove ALIGNBYTES and ALIGN from <sys/param.h>"
* commit '9e8a8dc18cb3162858feef2d4baaf3fa357aa3d2':
  Remove ALIGNBYTES and ALIGN from <sys/param.h>
2014-03-24 12:33:50 +00:00
Calin Juravle
989a80b750 Merge "Fix LP64 libm for 128-bit long doubles" 2014-03-24 12:13:24 +00:00
Calin Juravle
9e8a8dc18c Merge "Remove ALIGNBYTES and ALIGN from <sys/param.h>" 2014-03-24 12:11:30 +00:00
Calin Juravle
4d77c1151c 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
2014-03-24 11:48:42 +00:00
Nick Kralevich
aefe43b182 am 95c1abec: Merge "FORTIFY_SOURCE: don\'t define s?printf macros if already defined"
* commit '95c1abecc02b2a2f40b507e669b5bc17d4412bf9':
  FORTIFY_SOURCE: don't define s?printf macros if already defined
2014-03-22 18:06:03 +00:00
Nick Kralevich
95c1abecc0 Merge "FORTIFY_SOURCE: don't define s?printf macros if already defined" 2014-03-22 17:55:49 +00:00
Chad Brubaker
b9e1688cd9 am 1d3d0360: am 081db840: Allow overlap in resolv uid => DNS iface mapping
* commit '1d3d0360eee442c7c73006e2069acdc051575edb':
  Allow overlap in resolv uid => DNS iface mapping
2014-03-21 21:09:37 +00:00
Chad Brubaker
1d3d0360ee am 081db840: Allow overlap in resolv uid => DNS iface mapping
* commit '081db840befec895fb86e709ae95832ade2d065c':
  Allow overlap in resolv uid => DNS iface mapping
2014-03-21 21:02:40 +00:00
Mark Salyzyn
5b3c6fde09 am cce6c380: Merge "libc: Thread IDs missing from logcat -v thread"
* commit 'cce6c380d7c9574f823f5e038c28c793fdb55c58':
  libc: Thread IDs missing from logcat -v thread
2014-03-21 20:16:57 +00:00
Mark Salyzyn
cce6c380d7 Merge "libc: Thread IDs missing from logcat -v thread" 2014-03-21 20:09:32 +00:00
Christopher Ferris
e1b2537738 am 998d7b03: Merge "Fix deadlock in timer_delete."
* commit '998d7b030763e8da6ff04020eedab552857587d2':
  Fix deadlock in timer_delete.
2014-03-21 17:39:10 +00:00
Christopher Ferris
998d7b0307 Merge "Fix deadlock in timer_delete." 2014-03-21 17:26:58 +00:00
Calin Juravle
c20de90287 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
2014-03-21 09:59:34 +00:00
Christopher Ferris
753ad778bc 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
2014-03-20 20:47:45 -07:00
Mark Salyzyn
8664be583a libc: Thread IDs missing from logcat -v thread
- stuff caller's thread id into the packet.

Bug: 13568206
Change-Id: If8b318ef75c7dcdddb05da8ac3038860f0fda5ec
2014-03-20 16:35:18 -07:00
Calin Juravle
e3fb244f7a am 00fa0390: am 2cc58603: Merge "Added a test flag to bionic run-test targets."
* commit '00fa0390dfba0f66685133b51474a2614399b70e':
  Added a test flag to bionic run-test targets.
2014-03-19 18:45:27 +00:00
Calin Juravle
00fa0390df am 2cc58603: Merge "Added a test flag to bionic run-test targets."
* commit '2cc58603d5fd68ec582984318fb3c5f8865a186f':
  Added a test flag to bionic run-test targets.
2014-03-19 18:39:01 +00:00
Calin Juravle
2cc58603d5 Merge "Added a test flag to bionic run-test targets." 2014-03-19 18:31:26 +00:00