Commit Graph

8175 Commits

Author SHA1 Message Date
Elliott Hughes
6fbdc117db am 156f77c3: am 296f17af: Merge "Fix wchar.cpp MIPS narrowing conversion build failure."
* commit '156f77c3a0a9eb9ee9acaa0aecc8ab9f2d4027c4':
  Fix wchar.cpp MIPS narrowing conversion build failure.
2014-05-02 00:19:44 +00:00
Elliott Hughes
156f77c3a0 am 296f17af: Merge "Fix wchar.cpp MIPS narrowing conversion build failure."
* commit '296f17af0a630550f980dab85363093e4be55eb0':
  Fix wchar.cpp MIPS narrowing conversion build failure.
2014-05-02 00:17:45 +00:00
Elliott Hughes
296f17af0a Merge "Fix wchar.cpp MIPS narrowing conversion build failure." 2014-05-02 00:15:42 +00:00
Elliott Hughes
f83e644e2c Fix wchar.cpp MIPS narrowing conversion build failure.
Change-Id: Id9103c78958d60337dbdb807b11256c1b31c632a
2014-05-01 17:14:59 -07:00
Elliott Hughes
c2ee2cd09d am ba8c37f1: am 7da31910: Merge "Fix wchar.cpp signed/unsigned comparison build failure."
* commit 'ba8c37f1871e1ea574e48b77da665a0d56b57114':
  Fix wchar.cpp signed/unsigned comparison build failure.
2014-05-01 23:59:03 +00:00
Elliott Hughes
ba8c37f187 am 7da31910: Merge "Fix wchar.cpp signed/unsigned comparison build failure."
* commit '7da319106906ad236a0b4502cbafdd8dff7b8a39':
  Fix wchar.cpp signed/unsigned comparison build failure.
2014-05-01 23:56:03 +00:00
Elliott Hughes
7da3191069 Merge "Fix wchar.cpp signed/unsigned comparison build failure." 2014-05-01 23:50:35 +00:00
Elliott Hughes
568c86a489 Fix wchar.cpp signed/unsigned comparison build failure.
Change-Id: Id20b91f3d57c4430987b5cc88ac99c245801d73b
2014-05-01 16:49:55 -07:00
Elliott Hughes
5d4c911436 am 745b023b: am f0291ca6: Merge "Switch to a working UTF-8 mb/wc implementation."
* commit '745b023b4d7372851fb1f713c017b461de8d8860':
  Switch to a working UTF-8 mb/wc implementation.
2014-05-01 23:18:49 +00:00
Elliott Hughes
745b023b4d am f0291ca6: Merge "Switch to a working UTF-8 mb/wc implementation."
* commit 'f0291ca6b7d0ef42a31ae76a18a99c81d6e6d345':
  Switch to a working UTF-8 mb/wc implementation.
2014-05-01 23:15:32 +00:00
Elliott Hughes
f0291ca6b7 Merge "Switch to a working UTF-8 mb/wc implementation." 2014-05-01 23:12:41 +00:00
Elliott Hughes
5a0aa3dee2 Switch to a working UTF-8 mb/wc implementation.
Although glibc gets by with an 8-byte mbstate_t, OpenBSD uses 12 bytes (of
the 128 bytes it reserves!).

We can actually implement UTF-8 encoding/decoding with a 0-byte mbstate_t
which means we can make things work on LP32 too, as long as we accept the
limitation that the caller needs to present us with a complete sequence
before we'll process it.

Our behavior is fine when going from characters to bytes; we just
update the source wchar_t** to say how far through the input we got.

I'll come back and use the 4 bytes we do have to cope with byte sequences
split across multiple input buffers. The fact that we don't support
UTF-8 sequences longer than 4 bytes plus the fact that the first byte of
a UTF-8 sequence encodes the length means we shouldn't need the other
fields OpenBSD used (at the cost of some recomputation in cases where a
sequence is split across buffers).

This patch also makes the minimal changes necessary to setlocale(3) to
make us behave like glibc when an app requests UTF-8. (The difference
being that our "C" locale is the same as our "C.UTF-8" locale.)

Change-Id: Ied327a8c4643744b3611bf6bb005a9b389ba4c2f
2014-05-01 14:46:54 -07:00
Christopher Ferris
796bf88381 am 97ded7f2: am cb475651: Merge "Add ability to run on host for x86/x86_64."
* commit '97ded7f2bca3c3fdd1bd695b94df28071fec467b':
  Add ability to run on host for x86/x86_64.
2014-05-01 21:09:51 +00:00
Christopher Ferris
97ded7f2bc am cb475651: Merge "Add ability to run on host for x86/x86_64."
* commit 'cb475651e3270175a5e6667952069f3ae7e7645a':
  Add ability to run on host for x86/x86_64.
2014-05-01 21:07:01 +00:00
Christopher Ferris
cb475651e3 Merge "Add ability to run on host for x86/x86_64." 2014-05-01 21:03:27 +00:00
Christopher Ferris
3347a79664 Add ability to run on host for x86/x86_64.
Change-Id: I063cb71ce0f7247cefacaa653c7b87b7b3e72025
2014-05-01 13:44:57 -07:00
Christopher Ferris
fe13174759 am 24f724c4: am de54b90e: Merge "Modify hard-coded directory."
* commit '24f724c446f5741e4a0e1739fdb8167e15e11111':
  Modify hard-coded directory.
2014-05-01 20:26:07 +00:00
Christopher Ferris
24f724c446 am de54b90e: Merge "Modify hard-coded directory."
* commit 'de54b90ed573fdea390f8a06618374adbb32f18a':
  Modify hard-coded directory.
2014-05-01 20:22:29 +00:00
Christopher Ferris
de54b90ed5 Merge "Modify hard-coded directory." 2014-05-01 20:19:20 +00:00
Christopher Ferris
8b1ade5c0b Modify hard-coded directory.
Use the ANDROID_DATA environment variable instead of the hard-coded
directory for these benchmarks.

Change-Id: I00bae7b4a24e81e77fc8f52e1fe99f4d4918f520
2014-05-01 13:10:48 -07:00
Elliott Hughes
0d4437263e am d2623501: am 8979cfe1: Merge "Keep the kernel header scrubber\'s data structures in sync."
* commit 'd2623501664f6345f1136d7edc5058bcc1fa5fc4':
  Keep the kernel header scrubber's data structures in sync.
2014-05-01 17:32:08 +00:00
Elliott Hughes
d262350166 am 8979cfe1: Merge "Keep the kernel header scrubber\'s data structures in sync."
* commit '8979cfe14b619743dba0625a62abd2e2834434dc':
  Keep the kernel header scrubber's data structures in sync.
2014-05-01 17:29:57 +00:00
Elliott Hughes
8979cfe14b Merge "Keep the kernel header scrubber's data structures in sync." 2014-05-01 17:28:12 +00:00
Elliott Hughes
fddbafdc0a Keep the kernel header scrubber's data structures in sync.
If you rewrite the tokens of a #if you need to rewrite the expression to match
because either might be used later. This was showing up as SIGRTMAX being
rewritten in a #define but not in the #ifndef that guarded it, for which case
I've added a unit test.

Change-Id: I6929675461a1afe272edd667594529fd84a3dc4d
2014-05-01 10:27:49 -07:00
Elliott Hughes
01dc4152b7 am 4a41581a: am 9fb53dd4: Merge "Make SIGRTMIN hide the real-time signals we use internally."
* commit '4a41581af5216867ec089c473bd1936b85565408':
  Make SIGRTMIN hide the real-time signals we use internally.
2014-04-30 18:36:33 +00:00
Elliott Hughes
e04f30d874 am db9d6094: am 2ae3f60c: Merge "Fix the CPU_*_S tests."
* commit 'db9d60940bde9dee18f0efaeac7e175c9e7a9286':
  Fix the CPU_*_S tests.
2014-04-30 18:36:32 +00:00
Elliott Hughes
4a41581af5 am 9fb53dd4: Merge "Make SIGRTMIN hide the real-time signals we use internally."
* commit '9fb53dd4dbaa7633c234d9da8417827fa3d3c32f':
  Make SIGRTMIN hide the real-time signals we use internally.
2014-04-30 18:32:28 +00:00
Elliott Hughes
db9d60940b am 2ae3f60c: Merge "Fix the CPU_*_S tests."
* commit '2ae3f60ca37ce01beba748bb6ffd02401a543721':
  Fix the CPU_*_S tests.
2014-04-30 18:32:28 +00:00
Elliott Hughes
9fb53dd4db Merge "Make SIGRTMIN hide the real-time signals we use internally." 2014-04-30 18:30:15 +00:00
Elliott Hughes
2ae3f60ca3 Merge "Fix the CPU_*_S tests." 2014-04-30 18:29:31 +00:00
Elliott Hughes
2d36750c3a Fix the CPU_*_S tests.
Change-Id: Id67c48b9c12a20b01309490670438bfcd9163465
2014-04-30 10:45:35 -07:00
Elliott Hughes
0990d4fda8 Make SIGRTMIN hide the real-time signals we use internally.
__SIGRTMIN will continue to tell the truth. This matches glibc's
behavior (as evidenced by the fact that we don't need a special case
in the strsignal test now).

Change-Id: I1abe1681d516577afa8cd39c837ef12467f68dd2
2014-04-30 10:06:09 -07:00
Calin Juravle
9981c35d3e am b55562dd: am 77473e40: Merge "Fix cpu_set_t"
* commit 'b55562dd89a4f896c34f7247ffe072ba756180b4':
  Fix cpu_set_t
2014-04-30 16:14:16 +00:00
Calin Juravle
b55562dd89 am 77473e40: Merge "Fix cpu_set_t"
* commit '77473e408504a7e298816b4071cd6902065b03d8':
  Fix cpu_set_t
2014-04-30 16:10:57 +00:00
Calin Juravle
77473e4085 Merge "Fix cpu_set_t" 2014-04-30 16:09:08 +00:00
Dan Albert
9f2d500334 am a51f7153: am 45667317: Merge "Adds quick_exit(3) and at_quick_exit(3) from freebsd"
* commit 'a51f7153ea60f5efec67559b8be8134ab338b441':
  Adds quick_exit(3) and at_quick_exit(3) from freebsd
2014-04-30 15:44:52 +00:00
Dan Albert
a51f7153ea am 45667317: Merge "Adds quick_exit(3) and at_quick_exit(3) from freebsd"
* commit '4566731772f3121c7c9b47bb6de44d5a9123fc11':
  Adds quick_exit(3) and at_quick_exit(3) from freebsd
2014-04-30 15:42:45 +00:00
Dan Albert
4566731772 Merge "Adds quick_exit(3) and at_quick_exit(3) from freebsd" 2014-04-30 15:39:14 +00:00
Calin Juravle
f595e1ffda am fb15c73f: am d4ae59dc: Merge "Reserve space in mbstate to allow for proper wchar support"
* commit 'fb15c73f3cdc4fa3781e21f9dc554e3b2dd41182':
  Reserve space in mbstate to allow for proper wchar support
2014-04-30 15:38:02 +00:00
Elliott Hughes
c8af363f50 am ff7dec44: am 01933d92: Merge "Switch to OpenBSD stdio wide printf functions."
* commit 'ff7dec44bdebccf2d000e65188ee7e02489a2757':
  Switch to OpenBSD stdio wide printf functions.
2014-04-30 15:38:02 +00:00
Calin Juravle
fb15c73f3c am d4ae59dc: Merge "Reserve space in mbstate to allow for proper wchar support"
* commit 'd4ae59dcf228cf602189c6d5e69fb65640b353e3':
  Reserve space in mbstate to allow for proper wchar support
2014-04-30 15:12:52 +00:00
Elliott Hughes
ff7dec44bd am 01933d92: Merge "Switch to OpenBSD stdio wide printf functions."
* commit '01933d921e9e2a36707dbb96dfc24073e8489912':
  Switch to OpenBSD stdio wide printf functions.
2014-04-30 15:12:45 +00:00
Calin Juravle
b743790cca Fix cpu_set_t
- extend CPU_SETSIZE for LP64
- fix CPU_(AND|OR|XOR) macros
- fix CPU_OP_S macro
- fix __sched_cpucount
- tidy up the code

Change-Id: I741afff4d0c473e8a1ee6b4141981dc24467e0d4
2014-04-30 14:30:15 +01:00
Calin Juravle
d4ae59dcf2 Merge "Reserve space in mbstate to allow for proper wchar support" 2014-04-30 10:34:09 +00:00
Elliott Hughes
01933d921e Merge "Switch to OpenBSD stdio wide printf functions." 2014-04-30 03:16:40 +00:00
Dan Albert
b8425c549a Adds quick_exit(3) and at_quick_exit(3) from freebsd
Change-Id: I4fe88abd8f7b8aa45e58aeb2529d59a8d555d338
2014-04-29 19:17:00 -07:00
Elliott Hughes
a9b10332b4 am 608aa733: am 85e780d0: Merge "Switch to OpenBSD stdio wide get/put functions."
* commit '608aa733a9535f9ebc7381b30ccd4c6e23eb873f':
  Switch to OpenBSD stdio wide get/put functions.
2014-04-30 01:20:09 +00:00
Elliott Hughes
b21c7985c4 am 25009c3b: am c19c8e6f: Merge "Switch to the OpenBSD implementations of the wide scanf functions."
* commit '25009c3b0259b5ff3ad5b9bb32c028114c1ed8a4':
  Switch to the OpenBSD implementations of the wide scanf functions.
2014-04-30 01:19:48 +00:00
Elliott Hughes
7bc266b128 am 42f33234: am c6e563c8: Merge "Fix build (signed char issue)."
* commit '42f33234b0a16dbd06ad1b78499d52588c11415f':
  Fix build (signed char issue).
2014-04-30 01:13:21 +00:00
Elliott Hughes
934e793b19 am 15848671: am 55cd8276: Merge "Switch to the OpenBSD wcsto* functions."
* commit '158486717ed5b58be4cdcf427d5fb6b279eae27d':
  Switch to the OpenBSD wcsto* functions.
2014-04-30 00:49:36 +00:00