Hans Boehm
ed68221a82
Define atomic_charN_t only if charN_t is supported.
...
Some platform code is apparently compiled with switches that do
not support char16_t and char32_t. This caused stdatomic.h to fail
to compile. This CL makes stdatomic.h usable in those environments.
(cherry picked from commit 8b002362d996859ebfc8588d6859a9a79203dc27)
Change-Id: Ie5a17f20b8b545c97128d00605b4eabd2a6bfe3e
2014-07-18 17:53:01 -07:00
Elliott Hughes
fbd0081923
Merge "Clean up some misinformation around prctl." into lmp-dev
2014-07-18 22:16:50 +00:00
Elliott Hughes
de24f1ac00
Clean up some misinformation around prctl.
...
prctl shouldn't be in <unistd.h>.
(cherry picked from commit 9c07aee83b4ebbf2dba8e23d6896683187b9724e)
Change-Id: I70cda886fbf4d58d82dc70adaa981506ebff9949
2014-07-18 16:54:28 -07:00
Elliott Hughes
291da8d353
Remove SIOCKILLADDR from <sys/socket.h>.
...
(cherry picked from commit 8a3d1ca183e19d849728318fe8b0d36856fa000f)
Change-Id: Idb5cc4cff3ece7fa8740db12a19438d1a1c9a6a8
2014-07-18 16:53:23 -07:00
Elliott Hughes
b5bef263b3
Remove PR_SET_TIMERSLACK_PID from <sys/prctl.h>.
...
(cherry picked from commit 9f165d24f00c3bd4337ef719105bfb36bfa00a8b)
Change-Id: I009d3742cefbf36115f09824f267a0265ae215bf
2014-07-18 16:52:24 -07:00
Christopher Ferris
e8bc581333
Use the mmap/munmap for allocation routines.
...
To avoid any issues calling malloc related routines, use mmap/munmap.
Specifically, this avoids any problems when this is compiled into a
malloc debug shared library.
(cherry picked from commit 6425327c3278137d153b8a7505f97d2f5f058d49)
Change-Id: If43d12b2c588c9abcbfbbd2c53702cdac7695a73
2014-07-18 15:23:32 -07:00
Elliott Hughes
b46696858b
Fix private/bionic_name_mem.h build breakage.
...
(cherry picked from commit 2f9c6e38b8f59ea6e53e95e062e04dc987ac67f3)
Change-Id: Ia8e96da98802d312011df866ac1baaa48f97811c
2014-07-17 15:15:44 -07:00
Elliott Hughes
d648f557f1
Remove non-standard prctl constants from <sys/prctl.h>.
...
Also remove __bionic_name_mem which has exactly one caller, and is only
ever expected to be used in this one place.
(cherry picked from commit d7453860a6b06e7d4a960c20792ce6f0b6cc5f3a)
Change-Id: I26b7638609e9d4eaf4f21ae29721ea27d4176702
2014-07-17 15:15:37 -07:00
Christopher Ferris
a694517909
Merge "Add gen syscalls step to instructions." into lmp-dev
2014-07-17 21:15:46 +00:00
Christopher Ferris
013c9b8035
Add gen syscalls step to instructions.
...
Also, fix incorrect path to some tools.
(cherry picked from commit ea271fdf2671707ed29bc6b564f544d2489115ff)
Change-Id: Ie93cbc84b9a46d622b0b462a33bed0ee129992cb
2014-07-18 16:56:33 -07:00
Elliott Hughes
9a7fdb2dae
ptrace(3) should be varargs.
...
Bug: 16352070
(cherry picked from commit 98b088dce70a2625d5cfa1872e427af5f06bfd99)
Change-Id: I6193ef44df9a5668020916eaca90b47fc4c8ab77
2014-07-16 16:59:31 -07:00
Elliott Hughes
3002131da3
Use VDSO for clock_gettime(2) and gettimeofday(2).
...
Bug: 15387103
(cherry picked from commit 625993dfbb085a3cde7492eda8ec1cdc1ee39a78)
Change-Id: I0e156d7049ba1495902259071a96936592e74025
2014-07-16 15:15:53 -07:00
Dan Albert
a446505874
Merge "Remove isascii_l(3)." into lmp-dev
2014-07-16 13:12:22 +00:00
Elliott Hughes
97ba2a5cc4
Regenerate the syscalls list after the uapi update.
...
(cherry picked from commit 3fa60e10bcbfb8c7d94aeefc427640371683c920)
Change-Id: Id545a5b0b0953967effd819177f0dadb134f2011
2014-07-15 19:09:12 -07:00
Dan Albert
da8accfefe
Remove isascii_l(3).
...
Had intended to remove this one before submitting the locale changes,
but forgot. It isn't a standard ctype function, so we don't need it.
Change-Id: Ie9c09fa6c61b1101b5992fa06da30e373a0c6bf7
2014-07-15 16:49:30 -07:00
Christopher Ferris
73c963e4c5
Fix BIONIC_ROUND_UP_POWER_OF_2 for 64 bit.
...
There were two bugs here:
- For 64 bit values, this did not properly round up.
- The macro rounded to the power of 2 less than value, not to the power
of 2 greater than value.
(cherry picked from commit 27047faf283cb9d3d025a984cd9934fd2c404407)
Change-Id: Idf1ec67854e1eb423704e599ae1c6b674d36618d
2014-07-15 13:23:06 -07:00
Elliott Hughes
ca276c40df
Fix visibility for a bunch more symbols.
...
Bug: 11156955
Bug: 15291317
(cherry picked from commit a167eef5482d4a89d4277ec74f57adbe38052813)
Change-Id: Ib038ad34ef59631f7b4ed6dff2b7956001b8b159
2014-07-14 18:59:51 -07:00
Elliott Hughes
99ae0983c0
Implement rand/srand in terms of random/srandom.
...
Code developed for glibc or older versions of bionic might expect more
randomness than the BSD implementation provides.
Bug: 15829381
(cherry picked from commit 76c241b091b4d9d9a9237d40e814e52ce2917f47)
Change-Id: If721b3f16efdb21cb67df5ec5034c0ba905bd029
2014-07-14 14:06:11 -07:00
Elliott Hughes
caaf71ebb3
Sync upstream-openbsd.
...
(cherry picked from commit 4f0b67a8dbf0e1d8b1dae42358553fb8d14456d4)
Change-Id: I8753959853312ab978bc4eb1bbbcdc7d1b007b95
2014-07-14 13:59:03 -07:00
Dmitriy Ivanov
38778e3b6c
Upstream atexit
...
Change-Id: Ia454a2181b5058ed9783dc02b6b1805d0e4d2715
(cherry picked from commit 53c3c271dc9927dd280981fc23409af60f460007)
2014-07-14 13:29:34 -07:00
Elliott Hughes
f6968e3c08
Define SIOCKILLADDR which isn't in the common kernel uapi headers.
...
(cherry picked from commit 2ba2888cac2f04daff7bbaf032d0df7a095b00c3)
Change-Id: I3845871bb44dae94d9a0428af0f562ddfb8bd660
2014-07-11 22:37:13 -07:00
Elliott Hughes
b962ab81fc
am 57a5b338: Merge "Define three prctl constants that went missing from uapi."
...
* commit '57a5b3380a8834ecb4a32d01433a3127454443d7':
Define three prctl constants that went missing from uapi.
2014-07-12 03:10:36 +00:00
Elliott Hughes
0594b9ddde
am b8e82b5e: Merge "EM_ARM and EM_AARCH64 are now in the uapi header."
...
* commit 'b8e82b5e729a1f6e30ee9593b2dbcbb3ad623874':
EM_ARM and EM_AARCH64 are now in the uapi header.
2014-07-12 01:41:51 +00:00
Christopher Ferris
efdf7862be
am 385bb1ed: Merge "Add optimized memchr implementation from newlib"
...
* commit '385bb1ededa734e88bafb8aaf817e9a984bf0d18':
Add optimized memchr implementation from newlib
2014-07-12 01:41:51 +00:00
Christopher Ferris
55230dd048
am 96502e27: Merge "Make jemalloc the default choice."
...
* commit '96502e273eea49c95899af57fa578c8055b9618c':
Make jemalloc the default choice.
2014-07-12 01:41:51 +00:00
Christopher Ferris
18a25078f0
am c6bc0017: Merge "Update kernel headers to v3.14."
...
* commit 'c6bc001776931fd1c8583df2b8948dcb8bf61007':
Update kernel headers to v3.14.
2014-07-12 01:41:50 +00:00
Elliott Hughes
ce1422b985
am 040e1187: Merge "Enable building libc with clang."
...
* commit '040e11877d19f2fdd7a9c730d33056e88f43a760':
Enable building libc with clang.
2014-07-12 01:41:50 +00:00
Dan Albert
c0afc23e26
am 37f09d6d: Merge "Revert "Revert "Add locale aware APIs."""
...
* commit '37f09d6d2ea329984a3182b99a38f170dc86661d':
Revert "Revert "Add locale aware APIs.""
2014-07-12 01:41:50 +00:00
Elliott Hughes
d19f2d859f
am 76df69d1: Merge "The err family allow null format strings."
...
* commit '76df69d1f5cbbc8a2c1e899bc1ad5ada8b083e1e':
The err family allow null format strings.
2014-07-12 01:41:49 +00:00
Elliott Hughes
35805377f9
am 9b491470: Merge "Slim down static binaries by avoiding stdio."
...
* commit '9b491470ac65a11775e52631ef5e655af9eb2a85':
Slim down static binaries by avoiding stdio.
2014-07-12 01:41:49 +00:00
Elliott Hughes
7d9f1cc55c
am f0f8cd1f: Merge "Remove the global lock around thread stack creation."
...
* commit 'f0f8cd1ff3e7f7124cab8a687370b51df4ec93de':
Remove the global lock around thread stack creation.
2014-07-12 01:41:48 +00:00
Elliott Hughes
12ce91157a
am cd23370c: Merge "Remove the obsolete _thread_created_hook."
...
* commit 'cd23370ca737dffc49166f8aacd19a025e72266f':
Remove the obsolete _thread_created_hook.
2014-07-12 01:41:48 +00:00
Calin Juravle
9712d913eb
am 02459d34: Merge "Move __cmsg_nxthdr to its proper file."
...
* commit '02459d34c9b82741155fbbb32850a7987eb7abaf':
Move __cmsg_nxthdr to its proper file.
2014-07-12 01:41:48 +00:00
Calin Juravle
cd061f6e43
am 8a71a745: Merge "Removed obsolete symbol cmsg_nxthdr."
...
* commit '8a71a745cb2a1eb573c6dc41e30c2f94a3a99db7':
Removed obsolete symbol cmsg_nxthdr.
2014-07-12 01:41:48 +00:00
Christopher Ferris
4306b0f82b
am 25fba981: Merge "Do not include libc_common in malloc debug code."
...
* commit '25fba981a17c51df6cf88d5ace7ffe3c5a5766e4':
Do not include libc_common in malloc debug code.
2014-07-12 01:41:47 +00:00
Elliott Hughes
1cad0226f5
am 84f0c7c2: Merge "update-tzdata.py needs to know where to find icu."
...
* commit '84f0c7c258b3a72eed8737662bb5a730d6d9f5e2':
update-tzdata.py needs to know where to find icu.
2014-07-12 01:41:47 +00:00
Dan Albert
ea04b5a6d9
am 7a85d9a1: Merge "Revert "Add locale aware APIs.""
...
* commit '7a85d9a1de7f0970af19eca5f3ca6938cbc2ce95':
Revert "Add locale aware APIs."
2014-07-12 01:41:47 +00:00
Dan Albert
f6b9599348
am 430d5f93: Merge "Add locale aware APIs."
...
* commit '430d5f93ceea2e5172144a05885c295dca51b876':
Add locale aware APIs.
2014-07-12 01:41:46 +00:00
Dmitriy Ivanov
ca673e7300
am b9c5d606: am 006e0770: Merge "Change android_dlextinfo flags to uint64_t"
...
* commit 'b9c5d606aab6c1a21e3785d155613c35c276eb18':
Change android_dlextinfo flags to uint64_t
2014-07-11 17:28:53 +00:00
Elliott Hughes
7e43f0d40d
resolved conflicts for merge of aedc14b1 to lmp-dev
...
Change-Id: I36d3a6ca42778686f1f2971ae72cd3b7b156a3da
2014-07-11 10:03:35 -07:00
Elliott Hughes
040e11877d
Merge "Enable building libc with clang."
2014-07-11 16:35:27 +00:00
Elliott Hughes
c999f76977
Enable building libc with clang.
...
Bug: 16218205
Change-Id: I024de2044fe016412c7bead22c264e96be4cb39c
2014-07-11 09:28:53 -07:00
Christopher Ferris
c6bc001776
Merge "Update kernel headers to v3.14."
2014-07-10 21:32:00 +00:00
Elliott Hughes
2f61fba72b
The err family allow null format strings.
...
Also remove declarations for the _* variants that were never implemented in bionic (or glibc).
Change-Id: I4ea1f17bbb377e70632c10dd218f47110cabc27b
2014-07-11 02:53:27 +00:00
Elliott Hughes
263325d4b0
Define three prctl constants that went missing from uapi.
...
Change-Id: Ib81846ddefe9a75e02151c6592ed99b1f8ec5858
2014-07-11 19:54:55 -07:00
Dan Albert
dfb5ce42bc
Revert "Revert "Add locale aware APIs.""
...
This reverts commit 063e20c26943ec82ef1d53a544545e79054e93d3.
Change-Id: Ib8c9004efefe75a5346b3af50dfe37952d91eb21
2014-07-11 16:21:31 +00:00
Elliott Hughes
b8e82b5e72
Merge "EM_ARM and EM_AARCH64 are now in the uapi header."
2014-07-10 20:49:23 +00:00
Elliott Hughes
10cf0d8c1f
EM_ARM and EM_AARCH64 are now in the uapi header.
...
Change-Id: Ice73403daff75ea45b24e02351269f6c012df6c1
2014-07-11 11:01:42 -07:00
Christopher Ferris
385bb1eded
Merge "Add optimized memchr implementation from newlib"
2014-07-10 20:49:23 +00:00
Bernhard Rosenkränzer
8c20c13100
Add optimized memchr implementation from newlib
...
Add NEON optimized memchr adapted from newlib
Change-Id: I91b2fafa243e4ab35fa56bb6171d48433c947cfd
Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
2014-07-11 00:17:07 +02:00