Elliott Hughes
7222b1b594
Hide __signalfd4, used to implement signalfd(3).
...
Bug: 11156955
Change-Id: I50842279cb5b32ec8bd45193435574e415cd806e
2014-05-16 15:47:29 -07:00
Elliott Hughes
6b7987cca3
Hide various debug malloc implementation details.
...
Bug: 11156955
Change-Id: Ib9d69d49ecec8eff4f12392bde94d843ae53d442
2014-05-16 15:23:54 -07:00
Elliott Hughes
bd27a8b4af
Remove dead code.
...
This doesn't exist upstream.
Really we should upgrade to the current arc4random, but that's a bigger
job for another day.
Bug: 11156955
Change-Id: If6cd41b79139c64c17e81999e246cf4f00882ce8
2014-05-16 14:43:00 -07:00
Elliott Hughes
971f66e469
am 1453b3df
: am 7177d1d6
: am d9b06298
: Merge "Hide __futex_wake_ex and __futex_wait_ex."
...
* commit '1453b3df559609252633e40d677aadaf5dd70309':
Hide __futex_wake_ex and __futex_wait_ex.
2014-05-16 20:07:34 +00:00
Elliott Hughes
3973de9616
Hide __futex_wake_ex and __futex_wait_ex.
...
Also remove some cruft that isn't needed now we're using uapi headers.
Bug: 11156955
Change-Id: I936b9c5b01d8bd6bfb2e5bc0e3f86cd86739cc04
2014-05-16 12:53:31 -07:00
Elliott Hughes
a0accd85c9
am 0178eba2
: am 9700b6ca
: am 22ade3c3
: Merge "With libstdc++ in libc, __futex_wait and __futex_wake can be hidden."
...
* commit '0178eba213dfec500e71cd9889ece5af2f7de4cb':
With libstdc++ in libc, __futex_wait and __futex_wake can be hidden.
2014-05-16 18:10:33 +00:00
Elliott Hughes
22ade3c30d
Merge "With libstdc++ in libc, __futex_wait and __futex_wake can be hidden."
2014-05-16 18:00:51 +00:00
Elliott Hughes
879180c3ac
With libstdc++ in libc, __futex_wait and __futex_wake can be hidden.
...
This patch is conservative and just touches LP64. (But not because we
know of anyone using this in LP32.)
Bug: 13367666
Change-Id: Id45652debc4534584479b16b501401f6f23acea9
2014-05-16 10:58:59 -07:00
Elliott Hughes
ae04d58b96
am 505de840
: am 80cff53e
: am 2a602272
: Merge "Move libstdc++ into libc."
...
* commit '505de840a225be10947f6aa25b25e8e623e670e5':
Move libstdc++ into libc.
2014-05-16 17:40:55 +00:00
Elliott Hughes
2a60227223
Merge "Move libstdc++ into libc."
2014-05-16 16:37:20 +00:00
Christopher Ferris
02aabff12e
am c98359cc
: am 0d9c78af
: am 5265ad62
: Merge "Fix comment typo."
...
* commit 'c98359cc6bffdffe03067740a0ad691cc16d83fa':
Fix comment typo.
2014-05-16 02:21:53 +00:00
Christopher Ferris
5265ad6273
Merge "Fix comment typo."
2014-05-16 02:14:07 +00:00
Christopher Ferris
9029d2f638
Fix comment typo.
...
Change-Id: I1909f724826b531daf14fec4853e40d578fc0f59
2014-05-15 19:11:58 -07:00
Dmitriy Ivanov
6a0f7d6187
am a161eea2
: am 7f3d6b69
: am 0a5b0166
: Merge "Register _cleanup function with atexit"
...
* commit 'a161eea241da06c70995248df7a00b6553050e05':
Register _cleanup function with atexit
2014-05-16 00:43:54 +00:00
Dmitriy Ivanov
0a5b016623
Merge "Register _cleanup function with atexit"
2014-05-16 00:37:54 +00:00
Elliott Hughes
c571c26820
am 9eb2d38d
: am b9fdad77
: am ec81b4a3
: Merge "Scrub uapi headers slightly harder."
...
* commit '9eb2d38d53b2d00a9b5bd189a34f51afb7c385bf':
Scrub uapi headers slightly harder.
2014-05-15 23:12:23 +00:00
Dmitriy Ivanov
623b0d05bd
Register _cleanup function with atexit
...
* Register cleanup function with atexit
instead of calling it explicitly on
exit()
* abort() no longer calls _cleanup:
Flushing stdio buffers on abort is no
longer required by POSIX.
* dlmalloc no longer need to reset cleanup
(see above)
* Upstream findfp.c makebuf.c setvbuf.cexit.c
to openbsd versions.
Bug: 14415367
Change-Id: I277058852485a9d3dbb13e5c232db5f9948d78ac
2014-05-15 13:05:21 -07:00
Elliott Hughes
8ed7a23309
Scrub uapi headers slightly harder.
...
There's no point having always-false tests. It just makes the headers
harder to read.
Bug: 11560081
Change-Id: I6187755e1514ca9ff5642b3c1b0489f22edddaf5
2014-05-15 12:01:11 -07:00
Calin Juravle
bfcc82b3c0
am 4c9eab72
: am 83c94c6d
: am 98efae4c
: Merge "Fill in missing bits in x86(_64) ucontext_t"
...
* commit '4c9eab723481df5921296c2dba2dbdd8a81b1395':
Fill in missing bits in x86(_64) ucontext_t
2014-05-15 10:34:37 +00:00
Calin Juravle
a6ab968ca0
Fill in missing bits in x86(_64) ucontext_t
...
Bug: 12828904
Bug: 12875898
Change-Id: I0ec0dfe16af80bfb3153f3c3b1b3d180eff30f39
2014-05-15 10:34:06 +01:00
Andrew Hsieh
61c88b5648
am 5d76a6c2
: am c67e917a
: am d0a89921
: Merge "Rename user_i387_struct -> user_fpregs_struct in sys/ucontext.h"
...
* commit '5d76a6c26e47cbd1b9c98b0151dda1677db32af6':
Rename user_i387_struct -> user_fpregs_struct in sys/ucontext.h
2014-05-15 01:59:52 +00:00
Elliott Hughes
15b641a267
Move libstdc++ into libc.
...
The Android build system always links against libstdc++.so anyway. Having
operator new and operator delete in a separate library means we can't use
constructors and destructors on heap-allocated objects inside the C library,
which is quite an unfortunate limitation.
This will be cheaper too; on LP64 we can stop linking against the [now empty]
libstdc++.so giving the dynamic linker one less library to worry about for
every process.
There's precedent too --- we already have no libpthread or librt.
For now I'm leaving the include files where they are, and I'm generating a
dummy libstdc++.so and libstdc++.a. We can come back and clean that up later
if all goes well.
Bug: 13367666
Change-Id: I6f3e27ea7c30d03d6394965d0400c9dc87fa83db
2014-05-14 18:18:55 -07:00
Christopher Ferris
4903b31733
am 70240fda
: am 493cfc33
: am 1596b884
: Merge "Increase minimum thread size for 64 bit."
...
* commit '70240fda03d5a375b6bb4e25dd50d1e7803a140e':
Increase minimum thread size for 64 bit.
2014-05-15 01:13:50 +00:00
Andrew Hsieh
9b5b40b4df
Rename user_i387_struct -> user_fpregs_struct in sys/ucontext.h
...
See 93e1907ae1
Change-Id: Icb207f4e17cfffdd6d37500656434adf1cc34427
2014-05-15 09:11:11 +08:00
Christopher Ferris
1596b88464
Merge "Increase minimum thread size for 64 bit."
2014-05-15 01:06:25 +00:00
Christopher Ferris
ea5248ee1b
Increase minimum thread size for 64 bit.
...
Bug: 14468519
Change-Id: I642a5515acf5fbed46e77e176f6b5dd3b7c7bd45
2014-05-14 18:02:11 -07:00
Elliott Hughes
71db4f6571
am e05c4ebb
: am 4cbb778b
: am f280130f
: Merge "Remove the unused __system_property_wait."
...
* commit 'e05c4ebb651dc73ba86ae45242707c285847df2b':
Remove the unused __system_property_wait.
2014-05-15 00:30:41 +00:00
Christopher Ferris
0799b77011
am d849068a
: am cd5b7920
: am bc7f8a79
: Merge "Do not keep struct state on the stack."
...
* commit 'd849068a35040083ef56cfe457011bbf3a0d305c':
Do not keep struct state on the stack.
2014-05-15 00:12:30 +00:00
Elliott Hughes
3e786987b5
Remove the unused __system_property_wait.
...
This isn't declared in any header file.
Bug: 14970171
Change-Id: Ib9fce61343dfb6b6ccd7e1430e1a6e34e4e869df
2014-05-14 17:02:09 -07:00
Christopher Ferris
8a8b0c9bfc
Do not keep struct state on the stack.
...
This structure is huge (~18000 bytes on arm64) and can blow out
the stack very easily.
Modify the code to allocate these structures instead of leaving them
on the stack.
Bug: 14468519
Change-Id: I774f71235d896d32a14ab1af06f95ca9ef819f52
2014-05-14 16:50:41 -07:00
Elliott Hughes
f693d2916b
am c6057a5f
: am d60d67db
: am aeec2ae7
: Merge "Remove the broken pthread deadlock prediction."
...
* commit 'c6057a5f618cca842432c3a28af1a9293b551aff':
Remove the broken pthread deadlock prediction.
2014-05-14 19:54:24 +00:00
Sreeram Ramachandran
49ec2a0cdc
Merge "Mark sockets on accept()."
2014-05-14 19:40:50 +00:00
Elliott Hughes
07f1ded139
Remove the broken pthread deadlock prediction.
...
This hasn't built in over one release cycle and no one even noticed.
art does this the right way and other projects should do the same.
Change-Id: I7d1fb84c4080e008f329ee73e209ce85a36e6d55
2014-05-14 11:38:22 -07:00
Sreeram Ramachandran
8f0cd8aa22
Mark sockets on accept().
...
(cherry picked from commit 58b1f3f6a30a660ad81637c2b50382c3d279243b)
Change-Id: I5d09be413cf720fbed905f96313b007997ada76c
2014-05-14 11:10:22 -07:00
Elliott Hughes
a0d2534ef4
am b270fd33
: am 7451897c
: am e6c27a7a
: Merge "Fix a typo in the big g_ search/replace."
...
* commit 'b270fd332922b365091f835b1b61ed221a87f102':
Fix a typo in the big g_ search/replace.
2014-05-14 18:09:56 +00:00
Elliott Hughes
cd46104cf8
Fix a typo in the big g_ search/replace.
...
Change-Id: I79261de70d225236d0eadff288220258d697437f
2014-05-14 10:58:58 -07:00
Elliott Hughes
73a3760ea8
am b2da973f
: am 6eb0fe2b
: am 15c13bd6
: Merge "Switch to g_ for globals."
...
* commit 'b2da973fe9e7a1c9e774433eeae86c517321ebdc':
Switch to g_ for globals.
2014-05-14 17:50:17 +00:00
Elliott Hughes
1728b23965
Switch to g_ for globals.
...
That's what the Google style guide recommends, and we're starting
to get a mix.
Change-Id: Ib0c53a890bb5deed5c679e887541a715faea91fc
2014-05-14 10:02:03 -07:00
Ross McIlroy
4586f8d3ae
am 582cf711
: am bc45edaa
: am bac79558
: Merge "Fix x86_64 user_fpregs_struct to use the same name for the tag word as glibc."
...
* commit '582cf711309138e4e7e0c46696491028c823834d':
Fix x86_64 user_fpregs_struct to use the same name for the tag word as glibc.
2014-05-14 14:40:05 +00:00
Ross McIlroy
bac795586b
Merge "Fix x86_64 user_fpregs_struct to use the same name for the tag word as glibc."
2014-05-14 14:27:41 +00:00
Ross McIlroy
0c8a5f82e6
Fix x86_64 user_fpregs_struct to use the same name for the tag word as glibc.
...
Glibc calls the tag pointer in user_fpregs_struct ftw instead of twd.
Change-Id: I4a8dab777fa889de0b9927035cd18557ae6f3263
2014-05-14 13:29:19 +01:00
Sreeram Ramachandran
dedf2922d5
Mark sockets on accept().
...
Conflicts:
libc/SYSCALLS.TXT
Change-Id: I5d09be413cf720fbed905f96313b007997ada76c
2014-05-14 04:26:51 -07:00
Paul Jensen
41d9a50371
Add support for deleting per-network DNS resolver caches.
...
This is required when the possible range of NetIds is large to
prevent netd consuming excessive amounts of memory.
This required replacing the per-cache locks in favor of a single
global lock to prevent accesses to deleted caches.
Change-Id: I99d058bafea5de743e56075dbed74031da4df63f
2014-05-14 04:16:18 -07:00
Calin Juravle
7fbc7481cc
am 32cd82f0
: am 7c0b313d
: am a7318774
: Merge "Change wctype_t from int to long."
...
* commit '32cd82f093184fc3b6b43171f16ed5d74ca02795':
Change wctype_t from int to long.
2014-05-14 10:47:04 +00:00
Calin Juravle
9d60edbcfe
am c16e4332
: am d36bbf13
: am fd3171b4
: Merge "Change wctype_t from enum to int"
...
* commit 'c16e4332e42ff152c06963c398e9195576d6aae4':
Change wctype_t from enum to int
2014-05-14 10:47:04 +00:00
Calin Juravle
a731877406
Merge "Change wctype_t from int to long."
2014-05-14 10:33:46 +00:00
Calin Juravle
fd3171b465
Merge "Change wctype_t from enum to int"
2014-05-14 10:33:35 +00:00
Elliott Hughes
8e168d2a01
am 28c9e21f
: am 2146f78c
: am 3e684183
: Merge "Use the NetBSD inet_ntop until the OpenBSD bug is fixed."
...
* commit '28c9e21fe7bfadf0af5d183d6bcad5bf638de91b':
Use the NetBSD inet_ntop until the OpenBSD bug is fixed.
2014-05-14 02:33:31 +00:00
Elliott Hughes
5c8c88dd8d
Use the NetBSD inet_ntop until the OpenBSD bug is fixed.
...
Stupidly I found this bug by accident when writing the existing
tests, but I didn't think any real code would hit it. It turns
out that libcore always uses an INET6_ADDRSTRLEN-sized buffer
even when working with AF_INET addresses.
Change-Id: Ieffc8e4bbe9b66b49b033e3e7101c896e097e6f8
2014-05-13 19:17:46 -07:00
Elliott Hughes
d8e8909f95
am 46afef32
: am 9b1e2a14
: am 3557f2f6
: Merge "Fix <sys/endian.h> uint32_t build failures."
...
* commit '46afef329fee8de35d092e3f1e635d11d6f6e91d':
Fix <sys/endian.h> uint32_t build failures.
2014-05-14 01:56:31 +00:00
Elliott Hughes
135b103fd9
Fix <sys/endian.h> uint32_t build failures.
...
Change-Id: I833b51318f0bf7749073859b7ffacc668c27558e
2014-05-13 18:42:12 -07:00
Elliott Hughes
aa8e269d29
am 239347d9
: am cb6f6243
: am 17f8ef87
: Merge "Flesh out <arpa/inet.h>."
...
* commit '239347d97effbd711f07da75def7620a1557988b':
Flesh out <arpa/inet.h>.
2014-05-14 01:21:59 +00:00
Elliott Hughes
6033068d17
am 62c24c83
: am f984afd0
: am 57722375
: Merge "We don\'t need two copies of <nsswitch.h>."
...
* commit '62c24c83538258fa2cd7e31d9b616bbb32d6398f':
We don't need two copies of <nsswitch.h>.
2014-05-14 01:21:58 +00:00
Elliott Hughes
17f8ef87b5
Merge "Flesh out <arpa/inet.h>."
2014-05-14 01:09:01 +00:00
Elliott Hughes
6a41b0fb0e
Flesh out <arpa/inet.h>.
...
Use the upstream OpenBSD implementations of these functions.
Also ensure we have symbols for htonl, htons, ntohl, and ntohs.
gtest doesn't like us using the macro versions in ASSERT_EQ.
Bug: 14840760
Change-Id: I68720e9aca14838df457d2bb27b999d5818ac2b5
2014-05-13 18:08:29 -07:00
Elliott Hughes
5772237588
Merge "We don't need two copies of <nsswitch.h>."
2014-05-14 01:06:11 +00:00
Elliott Hughes
eed3d0d1f3
We don't need two copies of <nsswitch.h>.
...
Change-Id: I3f874326d96f41249f5c9b1b3c2885f858589029
2014-05-13 18:05:29 -07:00
Sreeram Ramachandran
47b93faa48
Fix build (take two).
...
Make sure __netdClientDispatch is defined in the same set of libraries that
refer to it (e.g.: with connect.cpp).
(cherry picked from commit 8205a61248
)
Change-Id: I86d7bf2df5bde09f75a35b204eac0e1361747e22
2014-05-13 17:48:52 -07:00
Sreeram Ramachandran
8205a61248
Fix build (take two).
...
Make sure __netdClientDispatch is defined in the same set of libraries that
refer to it (e.g.: with connect.cpp).
Change-Id: I86d7bf2df5bde09f75a35b204eac0e1361747e22
2014-05-13 17:24:03 -07:00
Sreeram Ramachandran
2677d133dd
Fix build.
...
(cherry picked from commit 06e8796ee9
)
Change-Id: I33293d8bc62cbb22e23a704c4242e7e9d3fce7c5
2014-05-13 16:59:38 -07:00
Sreeram Ramachandran
06e8796ee9
Fix build.
...
Change-Id: I33293d8bc62cbb22e23a704c4242e7e9d3fce7c5
2014-05-13 16:30:12 -07:00
Sreeram Ramachandran
20f8da95c0
am af36c9ae
: am 9b5bc6fd
: am 79b56f4b
: Merge "Introduce netd_client, a dynamic library that talks to netd."
...
* commit 'af36c9ae139b08109fa9ffad923b542e3a64f612':
Introduce netd_client, a dynamic library that talks to netd.
2014-05-13 22:20:38 +00:00
Elliott Hughes
05ba476c11
am 5c0fe1a3
: am b00435d1
: am 0ccef7ec
: Merge "Upgrade to tzdata2014c."
...
* commit '5c0fe1a39d35886e30792f3b6023bc9799e5ebc2':
Upgrade to tzdata2014c.
2014-05-13 18:42:26 +00:00
Sreeram Ramachandran
ceb5bd787c
Introduce netd_client, a dynamic library that talks to netd.
...
The library exists outside bionic. It is dynamically loaded, to replace selected
standard socket syscalls with versions that talk to netd.
Change connect() to use the library if available.
(cherry picked from commit 3a6b627a14df8111b03e452f2df4b5f4938e0e49)
Change-Id: Ib6198e19dbc306521a26fcecfdf6e8424d163fc9
2014-05-13 11:30:03 -07:00
Elliott Hughes
a8e0f0e633
am 1d8130e8
: am 56b18bb4
: am a26dd781
: Merge "Add getmntent_r to our collection of <mntent.h> compatibility stubs."
...
* commit '1d8130e8b30e25ad8e3e33bbd0d08f8e44f73a35':
Add getmntent_r to our collection of <mntent.h> compatibility stubs.
2014-05-13 18:27:32 +00:00
Elliott Hughes
121cb5f4a7
Upgrade to tzdata2014c.
...
From the release notes:
Changes affecting near-future time stamps
Egypt observes DST starting 2014-05-15 at 24:00.
(Thanks to Ahmad El-Dardiry and Gunther Vermier.)
Details have not been announced, except that DST will not be
observed during Ramadan. Guess that DST will stop during the same
Ramadan dates as Morocco, and that Egypt's future spring and fall
transitions will be the same as 2010 when it last observed DST,
namely April's last Friday at 00:00 to September's last Thursday at
23:00 standard time. Also, guess that Ramadan transitions will be
at 00:00 standard time.
Change-Id: I6a20cae02a314871acbd52cb90fcbebd37625810
2014-05-13 11:23:18 -07:00
Elliott Hughes
280bd7a9f4
am 2fbb0fb7
: am 2b5503b5
: am dbcba8f5
: Merge "Reduce stack usage of tmpfile(3)."
...
* commit '2fbb0fb751b985c6f8a6fa556cf5fe51c88e6645':
Reduce stack usage of tmpfile(3).
2014-05-13 17:49:29 +00:00
Elliott Hughes
eb664e24c0
Add getmntent_r to our collection of <mntent.h> compatibility stubs.
...
This helps build 'external/flo' out of the box.
Bug: 14841211
Change-Id: I30dde77239cceaf1f5743163744eb3604d27a266
2014-05-13 10:44:07 -07:00
Elliott Hughes
dbcba8f5f9
Merge "Reduce stack usage of tmpfile(3)."
2014-05-13 17:32:48 +00:00
Calin Juravle
1b530a9f80
am 493f718d
: am 66faa0c2
: am f34f0ccb
: Merge "Use __LP64__ instead of __LP32__ in sched.h"
...
* commit '493f718d87722615b2657dc6a0254dc3c3714a16':
Use __LP64__ instead of __LP32__ in sched.h
2014-05-13 17:29:56 +00:00
Calin Juravle
f34f0ccb0e
Merge "Use __LP64__ instead of __LP32__ in sched.h"
2014-05-13 17:16:30 +00:00
Elliott Hughes
b6943186ce
Reduce stack usage of tmpfile(3).
...
Also ensure that none of our home-grown code uses more than 2KiB per frame.
Change-Id: I8987a17d72f4b7f082bb7fa25e137c8433664c14
2014-05-13 10:14:22 -07:00
Calin Juravle
dd09699fae
Use __LP64__ instead of __LP32__ in sched.h
...
Gcc defines only __LP64__ so testing __LP32__ will always be false.
Bug: 14881256
Change-Id: Ic63c1d562be09c3eb4b9e17c9e5ef2d9e404db80
2014-05-13 16:07:28 +01:00
Calin Juravle
b55f2631dc
Change wctype_t from int to long.
...
On LP64 this brings us on par with the other libcs where wctype_t is 8
bytes.
Bug: 12875898
Change-Id: Ice4f538ccf0634ef6667a8d90d0f7f09cec9e1b0
2014-05-13 13:11:27 +01:00
Calin Juravle
0c472479a2
Change wctype_t from enum to int
...
This increases bionic source compatibility with other libcs where
"wctype_t foo = 0;" is valid without -fpermissive.
Bug: 14646243
Change-Id: Ia9bd0785bc42c7b46e2bb6c3d9b9a9d3f769d983
2014-05-13 12:47:27 +01:00
Calin Juravle
3b0d098df1
am d0c625f5
: am d9f0e8f2
: am ddda264f
: Merge "Undef private *_BODY defines after use"
...
* commit 'd0c625f5de63e659e524710fe49ae1061d585dc6':
Undef private *_BODY defines after use
2014-05-13 10:41:10 +00:00
Calin Juravle
f963da22ec
Undef private *_BODY defines after use
...
Bug: 14865741
Change-Id: I1398f7b3f64e3c94f2714cede5b61205dfa78a24
2014-05-13 11:01:11 +01:00
Calin Juravle
e1a15335be
am df45321d
: am e0913cd4
: am e788f5e0
: Merge "Support mb sequences across calls to mb*to*wcs* functions"
...
* commit 'df45321da1b41ee3fb6c2a5504f6e84ea3599361':
Support mb sequences across calls to mb*to*wcs* functions
2014-05-13 09:49:39 +00:00
Calin Juravle
e788f5e04b
Merge "Support mb sequences across calls to mb*to*wcs* functions"
2014-05-13 09:36:01 +00:00
Christopher Ferris
823074c5e4
am 66d0e685
: am 199e830a
: am 1abb1b93
: Merge "Add 64-bit Silvermont-optimized string/memory functions."
...
* commit '66d0e685145a400b08f5e4ec6bbc61ed8185cd39':
Add 64-bit Silvermont-optimized string/memory functions.
2014-05-13 00:59:29 +00:00
Christopher Ferris
64010b8f7e
am 19e15c5b
: am 5a3303da
: am c1d26965
: Merge "Add 32-bit Silvermont-optimized string/memory functions."
...
* commit '19e15c5bf6eecf2baa5bf8dd50fcf028477991bf':
Add 32-bit Silvermont-optimized string/memory functions.
2014-05-13 00:38:59 +00:00
Varvara Rainchik
a020a244ae
Add 64-bit Silvermont-optimized string/memory functions.
...
Add following functions:
bcopy, bzero, memcpy, memmove, memset, stpcpy, stpncpy, strcat, strcpy,
strlen, strncat, strncpy, memcmp, strcmp, strncmp.
Set all these functions as the default ones.
Change-Id: Ic66b250ad8c349a43d25e2d4dea075604f6df6ac
Signed-off-by: Varvara Rainchik <varvara.rainchik@intel.com>
2014-05-12 17:37:07 -07:00
Elliott Hughes
3ff9c0246c
am 5a19b361
: am 0b1a2ee7
: am 8b307e0e
: Merge "Remove the useless indirection in mips\' __set_tls."
...
* commit '5a19b361684283e51e00d532af231f5e9e4a9456':
Remove the useless indirection in mips' __set_tls.
2014-05-13 00:33:52 +00:00
Christopher Ferris
c1d26965ae
Merge "Add 32-bit Silvermont-optimized string/memory functions."
2014-05-13 00:26:50 +00:00
Calin Juravle
15a6310e4b
Support mb sequences across calls to mb*to*wcs* functions
...
Bug: 13077905
Change-Id: I5abdc7cc3c27c109b7900c94b112f18a95c35763
2014-05-13 00:24:25 +01:00
Elliott Hughes
8b307e0e98
Merge "Remove the useless indirection in mips' __set_tls."
2014-05-12 23:14:51 +00:00
Elliott Hughes
dcbef06ce6
Remove the useless indirection in mips' __set_tls.
...
Change-Id: I12e9d6716c42ccbccc9a186441aca0736bb22d05
2014-05-12 16:11:06 -07:00
Varvara Rainchik
5a92284167
Add 32-bit Silvermont-optimized string/memory functions.
...
Add following functions:
bcopy, memcpy, memmove, memset, bzero, memcmp, wmemcmp, strlen,
strcpy, strncpy, stpcpy, stpncpy.
Create new directories inside arch-x86 to specify architecture: atom,
silvermont and generic (non atom or silvermont architectures are treated like generic).
Due to introducing optimized versions of stpcpy and stpncpy,
c-implementations of these functions are moved from
common for architectures makefile to arm and mips specific makefiles.
Change-Id: I990f8061c3e9bca1f154119303da9e781c5d086e
Signed-off-by: Varvara Rainchik <varvara.rainchik@intel.com>
2014-05-12 13:56:59 -07:00
Calin Juravle
3c831506cf
am 26fbede0
: am e032a18c
: am d67c6af2
: Merge "Reserve space for the future in statvfs(64)"
...
* commit '26fbede03e32a679836ac0b4fabe7be0d9458759':
Reserve space for the future in statvfs(64)
2014-05-12 10:11:57 +00:00
Calin Juravle
324f9e22ef
am fc7cc469
: am 60e11324
: am 4d695bf5
: Merge "Align struct passwd definition with other variations of libc"
...
* commit 'fc7cc469d320b8bb66dd40d93692cd159040a04f':
Align struct passwd definition with other variations of libc
2014-05-12 10:07:24 +00:00
Calin Juravle
d67c6af2f6
Merge "Reserve space for the future in statvfs(64)"
2014-05-12 09:59:57 +00:00
Calin Juravle
7bec1212c7
Reserve space for the future in statvfs(64)
...
The kernel struct has some spare space at the end too, and some extra
fields, so having a bit of flexibility in statvfs might be worthwhile.
Bug: 14681331
Bug: 12875898
Change-Id: I5b502c5dd9d2e3bb8f34804f83c02669cefce01e
2014-05-12 10:56:39 +01:00
Calin Juravle
4d695bf560
Merge "Align struct passwd definition with other variations of libc"
2014-05-12 09:53:41 +00:00
Elliott Hughes
d35f1b508e
am 5ce362b4
: am cf113ab9
: am 4b57305a
: Merge "Bring in google3-style DISALLOW_* macros."
...
* commit '5ce362b4c5a942beea8dc90542f00d19b3b49845':
Bring in google3-style DISALLOW_* macros.
2014-05-10 03:46:15 +00:00
Elliott Hughes
8eac9af24e
Bring in google3-style DISALLOW_* macros.
...
I've been meaning to do this for a very long time...
Change-Id: Ia8c16eee7c026c3c9505399948485fb778fb0152
2014-05-09 19:12:08 -07:00
Elliott Hughes
4e499eb7bf
am f05495fd
: am c66df5e9
: am b2c3c803
: Merge "Align the child stack in clone(2)."
...
* commit 'f05495fdab6a73575560190ae88cc0f2ba0a5a74':
Align the child stack in clone(2).
2014-05-10 00:51:17 +00:00
Elliott Hughes
0d236aa3f1
Align the child stack in clone(2).
...
Also let clone(2) set the TLS for x86.
Also ensure we initialize the TLS before we clone(2) for all architectures.
Change-Id: Ie5fa4466e1c9ee116a281dfedef574c5ba60c0b5
2014-05-09 17:06:51 -07:00
Elliott Hughes
656e405f8b
am 1bca28eb
: am 0db4c690
: am 8fa5c252
: Merge "Align arm64 stacks to 16 bytes in __bionic_clone."
...
* commit '1bca28eb0d75763ba1813bed65b68f913dc6d79e':
Align arm64 stacks to 16 bytes in __bionic_clone.
2014-05-09 21:54:56 +00:00
Christopher Ferris
e58f9950ae
am 262700ac
: am aabcf287
: am b222097d
: Merge "Use larger neon instructions for moving data."
...
* commit '262700ac96e4cdb299f542e7e7723b980dd2244f':
Use larger neon instructions for moving data.
2014-05-09 21:54:55 +00:00
Calin Juravle
c768874c66
Align struct passwd definition with other variations of libc
...
Add pg_gecos ("real name") field to struct passwd.
Bug: 14679430
Bug: 12875898
Change-Id: I833ec2c46f6a6259b7232a8e3f7942968ef0b50d
2014-05-09 22:29:23 +01:00
Elliott Hughes
8fa5c2528c
Merge "Align arm64 stacks to 16 bytes in __bionic_clone."
2014-05-09 21:28:05 +00:00
Elliott Hughes
fff3c0fdcf
Align arm64 stacks to 16 bytes in __bionic_clone.
...
Also ensure that arm64/x86-64/x86 assembler uses local labels.
(There are are so many non-local labels in arm that fixing them
seems out of scope.)
Also synchronize the __bionic_clone.S comments.
Change-Id: I03b4f84780d996b54d6637a074638196bbb01cd4
2014-05-09 12:16:20 -07:00
Christopher Ferris
2146d142b2
Use larger neon instructions for moving data.
...
Included is a new target generic-neon that will use neon instructions
on 64 bit platforms where appropriate.
Change-Id: Iaf71b768780aa9240a24539cd87666ca9298e4c6
2014-05-09 11:29:37 -07:00
Elliott Hughes
137945c0d5
am 5f98c5a5
: am df3aa079
: am 55b4c8a4
: Merge "Hide the __bionic_clone and __bionic_clone_entry implementation details."
...
* commit '5f98c5a54a63be80c59bcdf0d278c3e37cf9b325':
Hide the __bionic_clone and __bionic_clone_entry implementation details.
2014-05-09 16:26:26 +00:00
Elliott Hughes
954cf0d4e2
Hide the __bionic_clone and __bionic_clone_entry implementation details.
...
clone(2) is the public symbol.
Also switch a test from __bionic_clone to clone; testing public API
means the test now works on glibc too.
Change-Id: If59def26a00c3afadb8a6cf9442094c35a59ffde
2014-05-08 19:00:23 -07:00
Elliott Hughes
b91610c95a
am 8eed5d8b
: am fae100f9
: am a3ce6bdb
: Merge "Fix LOG_ID_CRASH build failure."
...
* commit '8eed5d8bca6a3a2810bce17c2316ad44a3daa191':
Fix LOG_ID_CRASH build failure.
2014-05-08 18:31:14 +00:00
Elliott Hughes
19d97abe9b
am 64b53953
: am 96fd4159
: am 1ee18d0e
: Merge "Send bionic\'s fatal logging to the crash log."
...
* commit '64b539533dc3a6ca21c680003d60fe1fcdd6fbdb':
Send bionic's fatal logging to the crash log.
2014-05-08 18:31:12 +00:00
Elliott Hughes
ae0a62b014
Fix LOG_ID_CRASH build failure.
...
Change-Id: I66517e30c568d7f36f6bf6b1e4507ecf14f01226
2014-05-07 17:12:40 -07:00
Elliott Hughes
011101905d
Send bionic's fatal logging to the crash log.
...
Bug: 14159417
Change-Id: I7aa986fb8e11660035221f9bb4fe0bc40ac36c58
2014-05-07 16:35:59 -07:00
Elliott Hughes
66d8ed603b
am 62fcc2f6
: am b40f4243
: am 8ec38997
: Merge "Give bionic\'s __ANDROID_API__ a more reasonable value."
...
* commit '62fcc2f6f012e7c66e61e564c3592f466a2be188':
Give bionic's __ANDROID_API__ a more reasonable value.
2014-05-07 22:35:24 +00:00
Calin Juravle
9b6b11b0f9
am 71ee6889
: am ed4e01f7
: am e292875c
: Merge "Reserve some space in sem_t for the future."
...
* commit '71ee6889457eb238c6a1bcbba5ecf0587f8b71c8':
Reserve some space in sem_t for the future.
2014-05-07 22:35:22 +00:00
Calin Juravle
7fbe52b9af
am 478a1b57
: am c2787015
: am b6c48b20
: Merge "Allow for better utmp logging."
...
* commit '478a1b57bd44220373cedc72813ae7a9e26f328a':
Allow for better utmp logging.
2014-05-07 22:35:21 +00:00
Calin Juravle
c5413a55e1
am 2b180ea8
: am b742e82e
: am fc2af0ca
: Merge "Fix ino_t and suseconds_t"
...
* commit '2b180ea80c79db5887c03e7d6cf2b40e7036f8e0':
Fix ino_t and suseconds_t
2014-05-07 22:35:20 +00:00
Calin Juravle
363eb3de3a
am 2b4313a2
: am adf5e63a
: am 764a8882
: Merge "Leave more space for extensions in pthread_rwlockattr_t"
...
* commit '2b4313a2737a9df2c0ce2e05077980ce638643c3':
Leave more space for extensions in pthread_rwlockattr_t
2014-05-07 22:35:19 +00:00
Elliott Hughes
c47ec798bc
am 5d73936f
: am 1ecf7633
: am 6ad9cd41
: Merge "Change the interface for fatal logging."
...
* commit '5d73936fabd2cdcb336ec7c84d52e91a7d5e76de':
Change the interface for fatal logging.
2014-05-07 22:35:19 +00:00
Elliott Hughes
4aa2e6a32a
Give bionic's __ANDROID_API__ a more reasonable value.
...
This matches what frameworks/base does with Build.VERSION and means that
bionic's version number will always sort >= than any released version.
This should prevent confusion in code that builds both against bionic
and the NDK.
(Note that <sys/cdefs.h> drags this in, so it's always in the namespace.)
Bug: 14613709
Change-Id: I91fb745920e848a6b20f2f5797c0a7d6cde6c032
2014-05-07 12:57:51 -07:00
Calin Juravle
e292875cf5
Merge "Reserve some space in sem_t for the future."
2014-05-07 14:04:32 +00:00
Calin Juravle
b6c48b20e4
Merge "Allow for better utmp logging."
2014-05-07 14:04:22 +00:00
Calin Juravle
fc2af0ca47
Merge "Fix ino_t and suseconds_t"
2014-05-07 14:04:12 +00:00
Calin Juravle
764a888218
Merge "Leave more space for extensions in pthread_rwlockattr_t"
2014-05-07 14:04:01 +00:00
Elliott Hughes
c78368f04f
Change the interface for fatal logging.
...
This more general interface lets liblog give us any fatal log message,
regardless of source. This means we can remove the special case for
LOG_ALWAYS_FATAL with a simpler scheme that automatically works for
the VM too.
Change-Id: Ia6dbf7c3dbabf223081bd5159294835d954bb067
2014-05-06 20:37:22 -07:00
Elliott Hughes
8cfe8c1d40
am c46ffbd5
: am 4a7afa48
: am e05df251
: Merge "Fix a gethnamaddr.c warning that\'s already fixed upstream."
...
* commit 'c46ffbd51e48a8902db18b5f98d767766063c236':
Fix a gethnamaddr.c warning that's already fixed upstream.
2014-05-06 20:52:55 +00:00
Elliott Hughes
e05df25145
Merge "Fix a gethnamaddr.c warning that's already fixed upstream."
2014-05-06 20:42:10 +00:00
Elliott Hughes
80a4b70efd
am 33ba85cb
: am 856e6a35
: am 89ca3c5a
: Merge "Sync with upstream OpenBSD wcsftime.c."
...
* commit '33ba85cbd6807bd15f7b197a0807f6a95b6e57b5':
Sync with upstream OpenBSD wcsftime.c.
2014-05-06 20:29:36 +00:00
Elliott Hughes
3e5f0c9849
Fix a gethnamaddr.c warning that's already fixed upstream.
...
We're still way out of sync, but this cleans up a tiny corner.
Change-Id: I51e76601785bf351d6418841b56e08a900a84d82
2014-05-06 11:23:40 -07:00
Elliott Hughes
2716f3e805
Sync with upstream OpenBSD wcsftime.c.
...
They removed the code nobody wants rather than fix the ""/L"" mixup.
Even better!
Change-Id: Ib4333acf5e90d69586805a218d2894c5dffcb82f
2014-05-06 11:12:34 -07:00
Calin Juravle
6726862e9a
Fix ino_t and suseconds_t
...
Align ino_t and suseconds_t definitions with kernel
and OpenBSD upstream.
Bug: 14583346
Bug: 12875898
Change-Id: I0d97c6b4fc85b261472575290e6f6f2df1c8a36a
2014-05-06 18:41:26 +01:00
Elliott Hughes
59effda9ca
am 00708229
: am 41d97fa1
: am 100168ab
: Merge "Fix <math.h> to quieten most of our warnings."
...
* commit '0070822911bc5d5a6cf6c00c57b80b15803d8fbe':
Fix <math.h> to quieten most of our warnings.
2014-05-06 17:29:52 +00:00
Elliott Hughes
100168abff
Merge "Fix <math.h> to quieten most of our warnings."
2014-05-06 17:18:16 +00:00
Calin Juravle
0686d5e26f
Reserve some space in sem_t for the future.
...
Reserve 12 more bytes in sem_t to give room for future implementation
improvements. This gets us to a 16 bytes sem_t. Glibc uses 32 bytes (16
actual use + 16 reserved), while OpenBSD has 16 bytes (out of which 4
are for padding).
Bug: 14587103
Bug: 12875898
Change-Id: Id835cc5abf874c651e6b5ad5b8f29c9d6ab08d5a
2014-05-06 16:24:27 +01:00
Calin Juravle
7d8f303353
Allow for better utmp logging.
...
Increase (UT_NAMESIZE,UT_LINESIZE,UT_HOSTSIZE) to (32,32,256).
Nobody writes utmp on Android but it would be nice to be aligned
with others who use 32,32,256 (like glibc). If ever used it will produce
nicer logging. There is no consensus in BSDs for these values.
Bug: 14584341
Bug: 12875898
Change-Id: I94af10b982b8f9fcaea897c4cf968563f38403f9
2014-05-06 15:44:14 +01:00
Calin Juravle
289ce81cde
am bfc812da
: am c6141470
: am 7b1a95bc
: Merge "Add include guard to fileext.h"
...
* commit 'bfc812da93c785f66e9ad4486a94f6aaa3a6fa9d':
Add include guard to fileext.h
2014-05-06 13:54:53 +00:00
Calin Juravle
7b1a95bc76
Merge "Add include guard to fileext.h"
2014-05-06 13:47:19 +00:00
Calin Juravle
7c435f2415
Leave more space for extensions in pthread_rwlockattr_t
...
Change pthread_rwlockattr_t from int to long. On LP64 this gives us more
room for extensibility since longs are 8 bytes. glibc also reserves 8
bytes for this.
Bug: 14582681
Bug: 12875898
Change-Id: I55d599be0fdbbf0cb55957ec0ea62ab042bdee94
2014-05-06 13:40:24 +01:00
Elliott Hughes
9a5a3e8e74
Fix <math.h> to quieten most of our warnings.
...
I've reported the wcsftime bug upstream, but we really just want to use -D
to ensure the buggy code isn't built. (I've also brought our strftime a bit
closer to upstream now we have the right define.)
I don't think upstream is likely to fix all their sign-compare and
uninitialized warnings, so let's just silence them.
As for libm, again upstream isn't likely to fix all their warnings, and
silencing those made the ones that were our fault stand out. I've fixed
our <math.h> to fix the warnings caused by our lack of definitions for
the non-imprecise long-double functions. I checked the C99 standard, and
all these functions are there.
Change-Id: Iee8e1182c1db375058fb2c451eceb212bab47a37
2014-05-05 21:19:47 -07:00
Elliott Hughes
4e6c71fab9
am b8d60a2a
: am e71e6a2e
: am 185dd72a
: Merge "bionic: make epoll_event structure packed"
...
* commit 'b8d60a2a0c7febce87b0511c86c3fc168c8089a4':
bionic: make epoll_event structure packed
2014-05-06 02:59:58 +00:00
Philip Hatcher
9ded07cff6
bionic: make epoll_event structure packed
...
Description: In the kernel the epoll_event structure is packed
in 64 bit kernel builds to allow the structure to be more easily
compatible with 32 bit user space. As a result, when user space
is 64-bit the structure must be packed as well.
Add unit test to show the ptr alignment issue.
Change-Id: I2c4848d5e38a357219091f350f9b6e3da05090da
Signed-off-by: Philip Hatcher <philip.hatcher@intel.com>
Signed-off-by: Fengwei Yin <fengwei.yin@intel.com>
Reviewed-by: Hazarika, Prodyut <prodyut.hazarika@intel.com>
Tested-by: Hazarika, Prodyut <prodyut.hazarika@intel.com>
2014-05-05 19:48:55 -07:00
Elliott Hughes
30dc3f8313
am 1911676c
: am e0cbc5da
: am 4356adc3
: Merge "Remove the non-standard time64 stuff for LP64."
...
* commit '1911676cecafeb9ae31bfb2718c7d3a351ce50b6':
Remove the non-standard time64 stuff for LP64.
2014-05-06 02:02:44 +00:00
Elliott Hughes
52defb7c70
Remove the non-standard time64 stuff for LP64.
...
We need a workaround in strftime as long as we still need to support
64-bit times on LP32.
Change-Id: I8ffb616f6312d4063fb9ea3c36b52653e8f4c5f8
2014-05-05 17:14:02 -07:00
Elliott Hughes
a07758a8bf
am 3356c72f
: am 48931ca1
: am 629d892d
: Merge "Update the NOTICE files and improve the script slightly."
...
* commit '3356c72f273ba62128088e37214d786aa54b06cc':
Update the NOTICE files and improve the script slightly.
2014-05-05 23:37:25 +00:00
Elliott Hughes
629d892d0b
Merge "Update the NOTICE files and improve the script slightly."
2014-05-05 23:24:00 +00:00
Elliott Hughes
bfa582d032
Update the NOTICE files and improve the script slightly.
...
Change-Id: Ia131634cd97ca9523e1b63dce41f66247cbaa311
2014-05-05 16:23:15 -07:00
Elliott Hughes
2a0d2202ef
am b303cdc2
: am 9d586d85
: am 6916166e
: Merge "Sync with upstream OpenBSD."
...
* commit 'b303cdc2c18a28becb2be5b5394dc599022f7ace':
Sync with upstream OpenBSD.
2014-05-05 22:18:03 +00:00
Elliott Hughes
7ef978f183
am c13ea3e2
: am bab07de0
: am ad534985
: Merge "Disable %n in printf and vfwprintf."
...
* commit 'c13ea3e2365a4b42c10fa437c588e25a9807687e':
Disable %n in printf and vfwprintf.
2014-05-05 21:58:52 +00:00
Elliott Hughes
e0a36f49a9
Sync with upstream OpenBSD.
...
These trivial differences are are only current differences from upstream
OpenBSD.
Change-Id: Iddbee2c803911915a25e1da8b246e8403fa72daf
2014-05-05 14:57:23 -07:00
Elliott Hughes
ad534985ec
Merge "Disable %n in printf and vfwprintf."
2014-05-05 21:49:22 +00:00
Elliott Hughes
e2341d08fa
Disable %n in printf and vfwprintf.
...
Bug: 14492135
Change-Id: If190bede29e5f68a65043ddbe8e878c660933d03
2014-05-05 14:43:17 -07:00
Elliott Hughes
eac1c72997
am 2357a4cc
: am d2943b60
: am 8ec21d9d
: Merge "Switch to current upstream OpenBSD wsetup.c."
...
* commit '2357a4cc7451e0387c236ab19467254483250cc1':
Switch to current upstream OpenBSD wsetup.c.
2014-05-05 21:41:39 +00:00
Elliott Hughes
8ec21d9ded
Merge "Switch to current upstream OpenBSD wsetup.c."
2014-05-05 21:33:22 +00:00
Elliott Hughes
53b24382f5
Switch to current upstream OpenBSD wsetup.c.
...
Change-Id: I2c1123f3e1d3c4af7fd7bf354e763934a39b78c0
2014-05-05 14:31:20 -07:00