Elliott Hughes
c5bfb62433
Merge "sys/personality.h: include <sys/cdefs.h>"
2013-06-06 00:28:07 +00:00
Elliott Hughes
8d36050ac2
Merge "Clean up useless declaration in thread_private.h"
2013-06-06 00:00:40 +00:00
Kito Cheng
328223230b
sys/personality.h: include <sys/cdefs.h>
...
Change-Id: Ia3fa558a38e0cffe5287bc454e85d5d3bdaa6ba1
2013-06-05 11:30:17 +08:00
Kito Cheng
94d0daa2dd
Clean up useless declaration in thread_private.h
...
Change-Id: Ie7bcdc7195a3fcbcd09a95f73b0c49e8897ad50b
2013-06-05 11:26:24 +08:00
Elliott Hughes
4c001859fe
Merge "Fix declaration of malloc_usable_size()"
2013-06-05 01:58:26 +00:00
Nick Kralevich
a24e81efd3
Merge "Add tests for __strcpy_chk()"
2013-06-04 19:05:33 +00:00
Nick Kralevich
13476deec4
Add tests for __strcpy_chk()
...
Change-Id: I5675d04fcd471732c1b87b83879a54fbcd27762e
2013-06-04 11:55:08 -07:00
Brian Carlstrom
0671393072
Merge "Small cleanup of soinfo_elf_lookup."
2013-06-04 03:18:23 +00:00
Christopher Ferris
6bec5b792a
Small cleanup of soinfo_elf_lookup.
...
- Remove unnecessary line.
- Move declarations to first use.
Change-Id: I1d8398d6c13f7cb86bffe0b68af849e35a4b234d
2013-06-03 20:15:14 -07:00
Ben Cheng
404d491eb6
Merge "Use bl instead of blx to support interworking properly."
2013-05-31 21:40:37 +00:00
Ben Cheng
a123b5d319
Use bl instead of blx to support interworking properly.
...
(cherry picked from commit 9e1905794b
in
master)
Change-Id: I9b8c35ea9e201e00f84315f9f105013c23c94d85
2013-05-31 14:39:23 -07:00
Nick Kralevich
8539961ff2
Merge "FORTIFY_SOURCE: strcat / strncat optimize"
2013-05-31 18:13:23 +00:00
Nick Kralevich
cf870199d5
FORTIFY_SOURCE: strcat / strncat optimize
...
__strcat_chk and __strncat_chk are slightly inefficient,
because they end up traversing over the same memory region
two times.
This change optimizes __strcat_chk / __strncat_chk so they
only access the memory once. Although I haven't benchmarked these
changes, it should improve the performance of these functions.
__strlen_chk - expose this function, even if -D_FORTIFY_SOURCE
isn't defined. This is needed to compile libc itself without
-D_FORTIFY_SOURCE.
Change-Id: Id2c70dff55a276b47c59db27a03734d659f84b74
2013-05-31 09:07:46 -07:00
Nick Kralevich
72f59c84fd
Merge "Add strncpy FORTIFY_SOURCE tests."
2013-05-30 20:33:02 +00:00
Nick Kralevich
8cc145edf4
Add strncpy FORTIFY_SOURCE tests.
...
Change-Id: Id108b1d72b44d7e5fb911268e80bbdf896808f60
2013-05-30 13:21:14 -07:00
Nick Kralevich
d515f46888
Merge "libc x86: Remove strcat.S"
2013-05-30 19:59:38 +00:00
Nick Kralevich
4fe461b3a6
libc x86: Remove strcat.S
...
This file is never used.
Change-Id: Iae4bba4a5a12a86a775af05e7477fb7b6511480b
2013-05-30 11:15:40 -07:00
Nick Kralevich
8d79fd1c94
Merge "libc x86: Remove index.S, strcpy.S, strchr.S"
2013-05-24 18:34:57 +00:00
Nick Kralevich
e4c4ada580
libc x86: Remove index.S, strcpy.S, strchr.S
...
These files are never used.
Change-Id: Iab8474bdff3bd4d225597c62b3c0f0849f808818
2013-05-24 10:50:05 -07:00
Nick Kralevich
2317275f85
Merge "libc: delete x86 memchr.S"
2013-05-24 17:27:47 +00:00
Nick Kralevich
615684c256
libc: delete x86 memchr.S
...
This file is never used.
Change-Id: Ief08ad176713b5194048852609613801969e1364
2013-05-24 08:52:04 -07:00
David 'Digit' Turner
25a87f7641
Fix declaration of malloc_usable_size()
...
The function should take a 'const void*' parameter, instead of 'void*'.
Note that the implementation in upstream-dlmalloc/malloc.c already does
this.
For context, see http://b.android.com/55725
Change-Id: Iefd55cdb8996699189e0545f9195972490306227
2013-05-23 10:02:02 +02:00
Brian Carlstrom
f5f29de6ae
Merge "Fix bionic linker to support segments with zero p_filesz"
2013-05-21 23:59:52 +00:00
Brian Carlstrom
82dcc7910d
Fix bionic linker to support segments with zero p_filesz
...
(cherry picked from commit 96362fb9d11beef6233aa03db396f25688e70860)
Change-Id: Ib075a6dfc45d5d0746d8b278f317dd9b8d772f2a
2013-05-21 16:57:55 -07:00
Erik Gilling
2e317075b0
Merge "libc/arm: add cortex-a8 cpu variant"
2013-05-16 19:57:28 +00:00
Rom Lemarchand
22bda4bd67
libc/arm: add cortex-a8 cpu variant
...
Change-Id: I30e8dd6d4b2e7889aea8f5ed21182a5941bfb489
2013-05-15 20:13:28 -07:00
Elliott Hughes
5217fb528c
Merge "Fix sysconf(3) for _SC_GETGR_R_SIZE_MAX and _SC_GETPW_R_SIZE_MAX."
2013-05-15 00:56:06 +00:00
Elliott Hughes
d35106fd55
Fix sysconf(3) for _SC_GETGR_R_SIZE_MAX and _SC_GETPW_R_SIZE_MAX.
...
Change-Id: Ie16cb21c1a5a2bdce8502b5974e2c4dbb1d679ce
2013-05-14 17:20:34 -07:00
Elliott Hughes
6f502bc743
Merge "Add more __restricts, clean up __format__ attributes."
2013-05-14 23:45:49 +00:00
Elliott Hughes
d04c183979
Add more __restricts, clean up __format__ attributes.
...
Change-Id: I7e2d270cc722d339d221eaea92747eaff3b51403
2013-05-14 16:08:43 -07:00
Elliott Hughes
349ef893e8
Merge "Pull upstream FreeBSD revision 249810."
2013-05-14 23:06:34 +00:00
Elliott Hughes
b2e1abda05
Pull upstream FreeBSD revision 249810.
...
Fix license clause numbering.
Convert libc/stdio from K&R to ANSI C.
And add '__restrict' where it appeared in the header prototypes.
Change-Id: I5fdb22f79d3effa2298d03f9aa8412b4b087da04
Upstream: http://svnweb.freebsd.org/base?view=revision&revision=249810
2013-05-14 15:02:16 -07:00
Elliott Hughes
5b7b2809a2
Merge "epoll: add EPOLLRDHUP, EPOLLWAKEUP, and EPOLLONESHOT events"
2013-05-14 21:49:09 +00:00
Todd Poynor
b0a2fc35d6
epoll: add EPOLLRDHUP, EPOLLWAKEUP, and EPOLLONESHOT events
...
(cherry-pick of d1ad4f6dab06189d4d3dcfa19ae4bc301481eb3f.)
Change-Id: I4a8476bff068951533d4188de94097c8b84bc489
2013-05-14 14:48:43 -07:00
Elliott Hughes
f0f4fa3fb1
Merge "libc: add timerfd calls"
2013-05-14 21:45:29 +00:00
Todd Poynor
4200e6203a
libc: add timerfd calls
...
(cherry-pick of 04c0ac14a49e0969333008a9522b64046d58fbdc.)
Change-Id: I06d0b6c2a8781602362b81f48faf1cca76b9ec05
2013-05-14 14:45:02 -07:00
Elliott Hughes
e1c58ab5bb
Merge "libc: remove obsolete CLOCK_REALTIME_HR and CLOCK_MONOTONIC_HR"
2013-05-14 21:44:28 +00:00
Todd Poynor
5c4340b2ab
libc: remove obsolete CLOCK_REALTIME_HR and CLOCK_MONOTONIC_HR
...
Add CLOCK_MONOTONIC_RAW, CLOCK_REALTIME_COARSE, and CLOCK_MONOTONIC_COARSE
as supported by recent linux kernels.
(cherry-pick of 60e5144ca312b210b54ac8e6966108da0c97ff80.)
Bug: 8895727
Change-Id: If79a4d05d1301108f49a37588f9416c4be19277a
2013-05-14 14:43:59 -07:00
Elliott Hughes
7cb82791ca
Merge "libc: add clock ids CLOCK_REALTIME_ALARM and CLOCK_BOOTTIME_ALARM"
2013-05-14 21:43:37 +00:00
Todd Poynor
23b9fd2c1d
libc: add clock ids CLOCK_REALTIME_ALARM and CLOCK_BOOTTIME_ALARM
...
(cherry-pick of b928bda83d4413b703329f607e2706602f15293f.)
Change-Id: Ica6aad84299819ffc5e57ae4891e057d2e401fa1
2013-05-14 14:43:09 -07:00
Elliott Hughes
d8a9cccb4d
Merge "Fix all printf warnings in res_send.c."
2013-05-14 17:10:21 +00:00
Kito Cheng
bb0b09cad6
Fix all printf warnings in res_send.c.
...
Change-Id: I4bf959140b5a5475897bd80704e64e3c4645fc3f
2013-05-14 10:09:23 -07:00
Elliott Hughes
98f7659d7e
Merge "Don't fail to run DT_INIT and DT_INIT_ARRAY constructors if a shared library has DT_PREINIT_ARRAY constructors."
2013-05-09 22:30:21 +00:00
Elliott Hughes
8147d3c284
Don't fail to run DT_INIT and DT_INIT_ARRAY constructors if a shared library has DT_PREINIT_ARRAY constructors.
...
The GNU dynamic linker silently ignores a DT_PREINIT_ARRAY section
in a shared library. We had ineffectual code that tried to report
an error, which I tried to fix but got wrong --- my version still
wouldn't report the error to the caller, but would prevent us from
continuing to call constructors.
Bug: 8825226
Change-Id: I4fd8450ecc44d8767a1cb808aeecfbfbfc77c070
2013-05-09 15:29:54 -07:00
Ben Cheng
ff220f7003
Merge "Remove a spurious FIXME and unnecessary type cast."
2013-05-07 23:56:11 +00:00
Ben Cheng
63dd03cced
Remove a spurious FIXME and unnecessary type cast.
...
Change-Id: I05dcefdec7f047bef7eef5c5ceb7453992d56c24
2013-05-07 16:53:33 -07:00
Ben Cheng
b9256adab3
Merge "Adjust PC value in ARM stack trace."
2013-05-07 22:45:42 +00:00
Ben Cheng
52171b9bdc
Adjust PC value in ARM stack trace.
...
-2 for Thumb BLX(2) or -4 for the rest.
Change-Id: I804fdabfa1db4709bede222d4b432e8d42d53167
2013-05-07 15:44:13 -07:00
Nick Kralevich
d541ba1719
Merge "Use restrict pointers for various libc functions."
2013-05-07 17:37:48 +00:00
Nick Kralevich
1c462b7a04
Use restrict pointers for various libc functions.
...
All the cool kids say this is the best thing since sliced bread.
http://cellperformance.beyond3d.com/articles/2006/05/demystifying-the-restrict-keyword.html
For the most part, these changes match what glibc does.
Change-Id: I176268f27f82800162fe5f2515b08d5469ea2dfe
2013-05-07 10:00:21 -07:00