OSDN Git Service

android-x86/bionic.git
10 years agoam 60a67a0c: am 05ec00bf: Merge "[MIPS] Reimplement syscall to invoke the system...
Elliott Hughes [Fri, 15 Nov 2013 01:07:13 +0000 (17:07 -0800)]
am 60a67a0c: am 05ec00bf: Merge "[MIPS] Reimplement syscall to invoke the system call directly"

* commit '60a67a0c7e44dfc47b9b4271ea4ae2dbf336849a':
  [MIPS] Reimplement syscall to invoke the system call directly

10 years agoam 05ec00bf: Merge "[MIPS] Reimplement syscall to invoke the system call directly"
Elliott Hughes [Fri, 15 Nov 2013 01:05:10 +0000 (17:05 -0800)]
am 05ec00bf: Merge "[MIPS] Reimplement syscall to invoke the system call directly"

* commit '05ec00bf62ac168c9787a3d0640879ab3e502fe5':
  [MIPS] Reimplement syscall to invoke the system call directly

10 years agoMerge "[MIPS] Reimplement syscall to invoke the system call directly"
Elliott Hughes [Fri, 15 Nov 2013 01:01:06 +0000 (01:01 +0000)]
Merge "[MIPS] Reimplement syscall to invoke the system call directly"

10 years ago[MIPS] Reimplement syscall to invoke the system call directly
Chris Dearman [Wed, 13 Nov 2013 22:15:31 +0000 (14:15 -0800)]
[MIPS] Reimplement syscall to invoke the system call directly

Some MIPS kernels do not correctly restart interrupted system calls that
have been invoked using the indirect syscall (NR_syscall).

The simplest workaround is to handle the indirection in userland and then
call the required system call directly.

Change-Id: I8385399621529db9a52b463c96925f6decaaca30

10 years agoam 5a70acd1: am ae5c3dd7: Merge "Remove the mips regdef.h and fpregdef.h old kernel...
Elliott Hughes [Thu, 14 Nov 2013 00:28:37 +0000 (16:28 -0800)]
am 5a70acd1: am ae5c3dd7: Merge "Remove the mips regdef.h and fpregdef.h old kernel headers."

* commit '5a70acd176a792868a61c94169d5e6c0679202f2':
  Remove the mips regdef.h and fpregdef.h old kernel headers.

10 years agoam ae5c3dd7: Merge "Remove the mips regdef.h and fpregdef.h old kernel headers."
Elliott Hughes [Thu, 14 Nov 2013 00:24:33 +0000 (16:24 -0800)]
am ae5c3dd7: Merge "Remove the mips regdef.h and fpregdef.h old kernel headers."

* commit 'ae5c3dd73844e6a9e1a14dbf893eab5142902f18':
  Remove the mips regdef.h and fpregdef.h old kernel headers.

10 years agoMerge "Remove the mips regdef.h and fpregdef.h old kernel headers."
Elliott Hughes [Thu, 14 Nov 2013 00:18:58 +0000 (00:18 +0000)]
Merge "Remove the mips regdef.h and fpregdef.h old kernel headers."

10 years agoRemove the mips regdef.h and fpregdef.h old kernel headers.
Elliott Hughes [Thu, 14 Nov 2013 00:13:01 +0000 (16:13 -0800)]
Remove the mips regdef.h and fpregdef.h old kernel headers.

Bug: 11559337
Change-Id: I6352cac9c4ef425cb21e34d0299223711ec079af

10 years agoam 3cc7da48: am c4250430: Merge "Add unit tests for pow\'s behavior with NaNs."
Elliott Hughes [Wed, 13 Nov 2013 23:05:43 +0000 (15:05 -0800)]
am 3cc7da48: am c4250430: Merge "Add unit tests for pow\'s behavior with NaNs."

* commit '3cc7da4838ea5896ff142f447ecb03f62d3e70e6':
  Add unit tests for pow's behavior with NaNs.

10 years agoam c4250430: Merge "Add unit tests for pow\'s behavior with NaNs."
Elliott Hughes [Wed, 13 Nov 2013 23:01:31 +0000 (15:01 -0800)]
am c4250430: Merge "Add unit tests for pow\'s behavior with NaNs."

* commit 'c425043063eae2fa3e8622bf77ef1ab3a805f156':
  Add unit tests for pow's behavior with NaNs.

10 years agoMerge "Add unit tests for pow's behavior with NaNs."
Elliott Hughes [Wed, 13 Nov 2013 22:57:36 +0000 (22:57 +0000)]
Merge "Add unit tests for pow's behavior with NaNs."

10 years agoam e77538d5: am 44cbe94b: Merge "Add a unit test for syscall(2)."
Elliott Hughes [Wed, 13 Nov 2013 21:37:18 +0000 (13:37 -0800)]
am e77538d5: am 44cbe94b: Merge "Add a unit test for syscall(2)."

* commit 'e77538d570e8a811b09bdcd3c746471d8f74b3de':
  Add a unit test for syscall(2).

10 years agoam 44cbe94b: Merge "Add a unit test for syscall(2)."
Elliott Hughes [Wed, 13 Nov 2013 21:33:12 +0000 (13:33 -0800)]
am 44cbe94b: Merge "Add a unit test for syscall(2)."

* commit '44cbe94bba2e7e4b1369c86b11d66d6b60f0e333':
  Add a unit test for syscall(2).

10 years agoAdd unit tests for pow's behavior with NaNs.
Elliott Hughes [Wed, 13 Nov 2013 21:29:23 +0000 (13:29 -0800)]
Add unit tests for pow's behavior with NaNs.

Bug: 11669804
Change-Id: Idfa6527640c8d0c2cf3e5343bf7afe013e237545

10 years agoMerge "Add a unit test for syscall(2)."
Elliott Hughes [Wed, 13 Nov 2013 21:29:05 +0000 (21:29 +0000)]
Merge "Add a unit test for syscall(2)."

10 years agoAdd a unit test for syscall(2).
Elliott Hughes [Wed, 13 Nov 2013 21:14:31 +0000 (13:14 -0800)]
Add a unit test for syscall(2).

Change-Id: Ic7d9735d46711af93c3a1747de7b2eb8cebea094

10 years agoam 6a7e539c: am 22ba86ee: Merge "Add extra regression tests for an already-fixed...
Elliott Hughes [Tue, 12 Nov 2013 01:06:27 +0000 (17:06 -0800)]
am 6a7e539c: am 22ba86ee: Merge "Add extra regression tests for an already-fixed dynamic linker bug."

* commit '6a7e539cf1d8ee49fc2b6a11d043ce7962aa2de4':
  Add extra regression tests for an already-fixed dynamic linker bug.

10 years agoam 22ba86ee: Merge "Add extra regression tests for an already-fixed dynamic linker...
Elliott Hughes [Tue, 12 Nov 2013 01:04:28 +0000 (17:04 -0800)]
am 22ba86ee: Merge "Add extra regression tests for an already-fixed dynamic linker bug."

* commit '22ba86ee44867c2d16973fc2f8da3b0f5b58cc5e':
  Add extra regression tests for an already-fixed dynamic linker bug.

10 years agoMerge "Add extra regression tests for an already-fixed dynamic linker bug."
Elliott Hughes [Tue, 12 Nov 2013 01:01:24 +0000 (01:01 +0000)]
Merge "Add extra regression tests for an already-fixed dynamic linker bug."

10 years agoAdd extra regression tests for an already-fixed dynamic linker bug.
Elliott Hughes [Mon, 11 Nov 2013 23:48:06 +0000 (15:48 -0800)]
Add extra regression tests for an already-fixed dynamic linker bug.

Bug: https://code.google.com/p/android/issues/detail?id=61799
Change-Id: I84af68f8430a06e999297c2e57e06ecb45adf81e

10 years agoam cdd6fdec: am 6768c1ee: Merge "Add a temporary uapi/linux/compiler.h until upstream...
Elliott Hughes [Fri, 8 Nov 2013 23:25:38 +0000 (15:25 -0800)]
am cdd6fdec: am 6768c1ee: Merge "Add a temporary uapi/linux/compiler.h until upstream has one."

* commit 'cdd6fdec6c8175b4b9f132a2b11c1fc5f20e8869':
  Add a temporary uapi/linux/compiler.h until upstream has one.

10 years agoam 6768c1ee: Merge "Add a temporary uapi/linux/compiler.h until upstream has one."
Elliott Hughes [Fri, 8 Nov 2013 23:22:43 +0000 (15:22 -0800)]
am 6768c1ee: Merge "Add a temporary uapi/linux/compiler.h until upstream has one."

* commit '6768c1ee510a8e93175b54e93cb583f009766eed':
  Add a temporary uapi/linux/compiler.h until upstream has one.

10 years agoMerge "Add a temporary uapi/linux/compiler.h until upstream has one."
Elliott Hughes [Fri, 8 Nov 2013 23:20:18 +0000 (23:20 +0000)]
Merge "Add a temporary uapi/linux/compiler.h until upstream has one."

10 years agoam 5b6290bc: am ff5b0fc8: Merge "Remove the dependency on the non-uapi __kernel_nlink_t."
Elliott Hughes [Fri, 8 Nov 2013 23:17:19 +0000 (15:17 -0800)]
am 5b6290bc: am ff5b0fc8: Merge "Remove the dependency on the non-uapi __kernel_nlink_t."

* commit '5b6290bcfb47ffb27a66450c9cc3258021e259fa':
  Remove the dependency on the non-uapi __kernel_nlink_t.

10 years agoam ff5b0fc8: Merge "Remove the dependency on the non-uapi __kernel_nlink_t."
Elliott Hughes [Fri, 8 Nov 2013 23:15:18 +0000 (15:15 -0800)]
am ff5b0fc8: Merge "Remove the dependency on the non-uapi __kernel_nlink_t."

* commit 'ff5b0fc8f3406c98561e17bd2a6c5433e192f5be':
  Remove the dependency on the non-uapi __kernel_nlink_t.

10 years agoAdd a temporary uapi/linux/compiler.h until upstream has one.
Elliott Hughes [Fri, 8 Nov 2013 23:13:54 +0000 (15:13 -0800)]
Add a temporary uapi/linux/compiler.h until upstream has one.

Bug: 11559337
Change-Id: I205974b1a26e4f85d0e11503afa80669195d211c

10 years agoMerge "Remove the dependency on the non-uapi __kernel_nlink_t."
Elliott Hughes [Fri, 8 Nov 2013 23:12:35 +0000 (23:12 +0000)]
Merge "Remove the dependency on the non-uapi __kernel_nlink_t."

10 years agoRemove the dependency on the non-uapi __kernel_nlink_t.
Elliott Hughes [Fri, 8 Nov 2013 22:38:12 +0000 (14:38 -0800)]
Remove the dependency on the non-uapi __kernel_nlink_t.

The kernel doesn't have an nlink_t; it just uses the equivalent of
uint32_t. We already had a usable __nlink_t in the C library, so
let's just define our nlink_t in terms of __nlink_t, which is what
__nlink_t was meant for anyway.

Note that our struct stat just follows the kernel, and doesn't refer
to nlink_t anyway.

Change-Id: I2a56e418e42404b1741b08c50554b03c11caebae

10 years agoam cac7eec5: am 68723453: Merge "Generate the uapi headers for mips and x86/x86_64."
Elliott Hughes [Fri, 8 Nov 2013 22:23:38 +0000 (14:23 -0800)]
am cac7eec5: am 68723453: Merge "Generate the uapi headers for mips and x86/x86_64."

* commit 'cac7eec55a4853abfcd5b8d7bce35d79ab330132':
  Generate the uapi headers for mips and x86/x86_64.

10 years agoam 68723453: Merge "Generate the uapi headers for mips and x86/x86_64."
Elliott Hughes [Fri, 8 Nov 2013 22:20:59 +0000 (14:20 -0800)]
am 68723453: Merge "Generate the uapi headers for mips and x86/x86_64."

* commit '68723453ac920004fcba2a820c2d56919a5b7081':
  Generate the uapi headers for mips and x86/x86_64.

10 years agoMerge "Generate the uapi headers for mips and x86/x86_64."
Elliott Hughes [Fri, 8 Nov 2013 22:18:46 +0000 (22:18 +0000)]
Merge "Generate the uapi headers for mips and x86/x86_64."

10 years agoGenerate the uapi headers for mips and x86/x86_64.
Elliott Hughes [Fri, 8 Nov 2013 19:45:48 +0000 (11:45 -0800)]
Generate the uapi headers for mips and x86/x86_64.

Bug: 11559337
Change-Id: I23b1a43e7bfa8fa6f9df7e59d2e731a0ec52dafc

10 years agoam 99a38fcf: am 486c8616: Merge "Prepare to switch to the uapi <linux/signal.h>."
Elliott Hughes [Thu, 7 Nov 2013 20:45:33 +0000 (12:45 -0800)]
am 99a38fcf: am 486c8616: Merge "Prepare to switch to the uapi <linux/signal.h>."

* commit '99a38fcf33d220524e41979a3f9d842399fd638d':
  Prepare to switch to the uapi <linux/signal.h>.

10 years agoam 486c8616: Merge "Prepare to switch to the uapi <linux/signal.h>."
Elliott Hughes [Thu, 7 Nov 2013 20:43:22 +0000 (12:43 -0800)]
am 486c8616: Merge "Prepare to switch to the uapi <linux/signal.h>."

* commit '486c8616ac030b14d37d364a0ed541c4c6c90716':
  Prepare to switch to the uapi <linux/signal.h>.

10 years agoMerge "Prepare to switch to the uapi <linux/signal.h>."
Elliott Hughes [Thu, 7 Nov 2013 20:41:19 +0000 (20:41 +0000)]
Merge "Prepare to switch to the uapi <linux/signal.h>."

10 years agoPrepare to switch to the uapi <linux/signal.h>.
Elliott Hughes [Thu, 7 Nov 2013 20:28:46 +0000 (12:28 -0800)]
Prepare to switch to the uapi <linux/signal.h>.

<time.h> didn't need to copy the cruft from <signal.h>, and
<signal.h> only needs the uid_t hack when it's not using
uapi headers.

pthread_exit.cpp should include what it uses.

Change-Id: I836c36abe0f0a781d41fc425b249d1c7686bb124

10 years agoam c9c84992: am 266eb4a4: Merge "Stop using the non-uapi <linux/err.h> header file."
Elliott Hughes [Thu, 7 Nov 2013 18:48:29 +0000 (10:48 -0800)]
am c9c84992: am 266eb4a4: Merge "Stop using the non-uapi <linux/err.h> header file."

* commit 'c9c84992fb9ccbf32580c93967356383f58d9687':
  Stop using the non-uapi <linux/err.h> header file.

10 years agoam 266eb4a4: Merge "Stop using the non-uapi <linux/err.h> header file."
Elliott Hughes [Thu, 7 Nov 2013 18:46:37 +0000 (10:46 -0800)]
am 266eb4a4: Merge "Stop using the non-uapi <linux/err.h> header file."

* commit '266eb4a44c4cdd9502980511ff2846fde5c66454':
  Stop using the non-uapi <linux/err.h> header file.

10 years agoMerge "Stop using the non-uapi <linux/err.h> header file."
Elliott Hughes [Thu, 7 Nov 2013 18:44:49 +0000 (18:44 +0000)]
Merge "Stop using the non-uapi <linux/err.h> header file."

10 years agoStop using the non-uapi <linux/err.h> header file.
Elliott Hughes [Thu, 7 Nov 2013 18:31:05 +0000 (10:31 -0800)]
Stop using the non-uapi <linux/err.h> header file.

We only need it for MAX_ERRNO, and it's time we had somewhere to put
the little assembler utility macros we've been putting off writing.

Change-Id: I9354d2e0dc47c689296a34b5b229fc9ba75f1a83

10 years agoam 6fc4a1cd: am a034e1d3: Merge "Remove pathconf\'s dependencies on non-uapi header...
Elliott Hughes [Thu, 7 Nov 2013 01:38:12 +0000 (17:38 -0800)]
am 6fc4a1cd: am a034e1d3: Merge "Remove pathconf\'s dependencies on non-uapi header files."

* commit '6fc4a1cd3aecca409766e82d333f9cb127a85593':
  Remove pathconf's dependencies on non-uapi header files.

10 years agoam a034e1d3: Merge "Remove pathconf\'s dependencies on non-uapi header files."
Elliott Hughes [Thu, 7 Nov 2013 01:35:36 +0000 (17:35 -0800)]
am a034e1d3: Merge "Remove pathconf\'s dependencies on non-uapi header files."

* commit 'a034e1d3e06207f079e814101bb3bce1924264e0':
  Remove pathconf's dependencies on non-uapi header files.

10 years agoMerge "Remove pathconf's dependencies on non-uapi header files."
Elliott Hughes [Thu, 7 Nov 2013 01:32:27 +0000 (01:32 +0000)]
Merge "Remove pathconf's dependencies on non-uapi header files."

10 years agoam dc9b54c1: am f945732e: Merge "Fix a TODO; we\'ve had SOCK_CLOEXEC for a while...
Elliott Hughes [Thu, 7 Nov 2013 01:21:35 +0000 (17:21 -0800)]
am dc9b54c1: am f945732e: Merge "Fix a TODO; we\'ve had SOCK_CLOEXEC for a while now."

* commit 'dc9b54c11c3b20fe5d1dc5c591ff058788e7b376':
  Fix a TODO; we've had SOCK_CLOEXEC for a while now.

10 years agoRemove pathconf's dependencies on non-uapi header files.
Elliott Hughes [Thu, 7 Nov 2013 01:21:09 +0000 (17:21 -0800)]
Remove pathconf's dependencies on non-uapi header files.

Change-Id: I597996e4b141b009916f7ad2866dd100e08aa4d3

10 years agoam f945732e: Merge "Fix a TODO; we\'ve had SOCK_CLOEXEC for a while now."
Elliott Hughes [Thu, 7 Nov 2013 01:19:30 +0000 (17:19 -0800)]
am f945732e: Merge "Fix a TODO; we\'ve had SOCK_CLOEXEC for a while now."

* commit 'f945732e21e3c1291943d21fa5fee0c43792bbec':
  Fix a TODO; we've had SOCK_CLOEXEC for a while now.

10 years agoMerge "Fix a TODO; we've had SOCK_CLOEXEC for a while now."
Elliott Hughes [Thu, 7 Nov 2013 01:16:47 +0000 (01:16 +0000)]
Merge "Fix a TODO; we've had SOCK_CLOEXEC for a while now."

10 years agoam 76833a7c: am 9e63e03d: Merge "Clean up the 32-bit kernel support, fix LP64 fcntl...
Elliott Hughes [Thu, 7 Nov 2013 01:07:35 +0000 (17:07 -0800)]
am 76833a7c: am 9e63e03d: Merge "Clean up the 32-bit kernel support, fix LP64 fcntl declaration."

* commit '76833a7c575ca372b41cb6e2a964918d69fc0dbe':
  Clean up the 32-bit kernel support, fix LP64 fcntl declaration.

10 years agoam 9e63e03d: Merge "Clean up the 32-bit kernel support, fix LP64 fcntl declaration."
Elliott Hughes [Thu, 7 Nov 2013 01:05:46 +0000 (17:05 -0800)]
am 9e63e03d: Merge "Clean up the 32-bit kernel support, fix LP64 fcntl declaration."

* commit '9e63e03d34fc0b4d87cff047a4bc55f8ebc5e12a':
  Clean up the 32-bit kernel support, fix LP64 fcntl declaration.

10 years agoFix a TODO; we've had SOCK_CLOEXEC for a while now.
Elliott Hughes [Thu, 7 Nov 2013 01:04:56 +0000 (17:04 -0800)]
Fix a TODO; we've had SOCK_CLOEXEC for a while now.

Change-Id: I4bc39b57f3c33441ead74127f576bf5a4e311566

10 years agoMerge "Clean up the 32-bit kernel support, fix LP64 fcntl declaration."
Elliott Hughes [Thu, 7 Nov 2013 01:02:54 +0000 (01:02 +0000)]
Merge "Clean up the 32-bit kernel support, fix LP64 fcntl declaration."

10 years agoClean up the 32-bit kernel support, fix LP64 fcntl declaration.
Elliott Hughes [Thu, 7 Nov 2013 00:20:54 +0000 (16:20 -0800)]
Clean up the 32-bit kernel support, fix LP64 fcntl declaration.

In practice, thanks to all the registers the stubs don't actually change,
but it's confusing to have an incorrect declaration.

I suspect that fcntl remains broken for aarch64; it happens to work for
x86_64 because the first vararg argument gets placed in the right register
anyway, but I have no reason to believe that's true for aarch64.

This patch adds a unit test, though, so we'll be able to tell when we get
as far as running the unit tests.

Change-Id: I58dd0054fe99d7d51d04c22781d8965dff1afbf3

10 years agoam 99205dc9: am af10f9e9: Merge "Add processed uapi kernel headers for ARM."
Ben Cheng [Thu, 7 Nov 2013 00:10:15 +0000 (16:10 -0800)]
am 99205dc9: am af10f9e9: Merge "Add processed uapi kernel headers for ARM."

* commit '99205dc987735e1d57f2e1b8446448f655808ab5':
  Add processed uapi kernel headers for ARM.

10 years agoam 3721a7e7: am 7115c802: Merge "Fix pread/pwrite for LP64."
Elliott Hughes [Thu, 7 Nov 2013 00:10:14 +0000 (16:10 -0800)]
am 3721a7e7: am 7115c802: Merge "Fix pread/pwrite for LP64."

* commit '3721a7e71fc831f6d58b7253627043d0658ad977':
  Fix pread/pwrite for LP64.

10 years agoam afc51b92: am c4dbc16e: Merge "Make cpp.py less braindead."
Elliott Hughes [Thu, 7 Nov 2013 00:10:12 +0000 (16:10 -0800)]
am afc51b92: am c4dbc16e: Merge "Make cpp.py less braindead."

* commit 'afc51b92a0e531f05e0e5477ea857a8669e5e5d1':
  Make cpp.py less braindead.

10 years agoam af10f9e9: Merge "Add processed uapi kernel headers for ARM."
Ben Cheng [Wed, 6 Nov 2013 23:58:39 +0000 (15:58 -0800)]
am af10f9e9: Merge "Add processed uapi kernel headers for ARM."

* commit 'af10f9e927ed22c8bccc80919e10df4d5f4aecdd':
  Add processed uapi kernel headers for ARM.

10 years agoMerge "Add processed uapi kernel headers for ARM."
Ben Cheng [Wed, 6 Nov 2013 23:55:25 +0000 (23:55 +0000)]
Merge "Add processed uapi kernel headers for ARM."

10 years agoAdd processed uapi kernel headers for ARM.
Ben Cheng [Wed, 6 Nov 2013 23:51:05 +0000 (15:51 -0800)]
Add processed uapi kernel headers for ARM.

Change-Id: Id34de841b7b4b5a1bf7d22eb793860f92f24a6e5

10 years agoam 7115c802: Merge "Fix pread/pwrite for LP64."
Elliott Hughes [Wed, 6 Nov 2013 22:26:58 +0000 (14:26 -0800)]
am 7115c802: Merge "Fix pread/pwrite for LP64."

* commit '7115c80231aa88272294076c8775c09727ece85a':
  Fix pread/pwrite for LP64.

10 years agoMerge "Fix pread/pwrite for LP64."
Elliott Hughes [Wed, 6 Nov 2013 22:25:17 +0000 (22:25 +0000)]
Merge "Fix pread/pwrite for LP64."

10 years agoFix pread/pwrite for LP64.
Elliott Hughes [Wed, 6 Nov 2013 21:10:37 +0000 (13:10 -0800)]
Fix pread/pwrite for LP64.

Unlike on 32-bit systems where off_t is 32-bit, we don't want to
throw away the top 32 bits of an LP64 system's 64-bit off_t.

Change-Id: Ib2e0daeb4fc0b8ab3d1b983d0b371d8f81033b50

10 years agoam c4dbc16e: Merge "Make cpp.py less braindead."
Elliott Hughes [Wed, 6 Nov 2013 20:34:22 +0000 (12:34 -0800)]
am c4dbc16e: Merge "Make cpp.py less braindead."

* commit 'c4dbc16eb03bcc0a3ea04cd32ce7551ad94b2bfc':
  Make cpp.py less braindead.

10 years agoMerge "Make cpp.py less braindead."
Elliott Hughes [Wed, 6 Nov 2013 20:31:09 +0000 (20:31 +0000)]
Merge "Make cpp.py less braindead."

10 years agoMake cpp.py less braindead.
Elliott Hughes [Tue, 5 Nov 2013 22:54:29 +0000 (14:54 -0800)]
Make cpp.py less braindead.

The old code ignored operator precedence (!), despite having two tables
of operator precedence. The code's still pretty awful, but I've cleaned
it up enough to fix this, the most important bug.

This patch lets us correctly clean the uapi unistd.h, stat.h, and swab.h files,
and also fixes the mess we were already making of various old kernel
header files. I've added a bunch more tests, fixed the existing tests that
the existing script was already failing (!), and changed the script so that
the tests are run every time the script is run.

We can probably remove some of the old kernel header files that we were
parsing incorrectly, but we can worry about that later.

Bug: 11253477
Change-Id: Ie66c65b3a7ae13b4e98ed8038a6a534f06eae0e5

10 years agoam ffe06880: am f1258672: Merge "Fix <sys/select.h> for LP64, clean up <time.h>."
Elliott Hughes [Tue, 5 Nov 2013 22:01:49 +0000 (14:01 -0800)]
am ffe06880: am f1258672: Merge "Fix <sys/select.h> for LP64, clean up <time.h>."

* commit 'ffe068808909c9825807dbaf8679b9f9efc2c690':
  Fix <sys/select.h> for LP64, clean up <time.h>.

10 years agoam f1258672: Merge "Fix <sys/select.h> for LP64, clean up <time.h>."
Elliott Hughes [Tue, 5 Nov 2013 21:58:18 +0000 (13:58 -0800)]
am f1258672: Merge "Fix <sys/select.h> for LP64, clean up <time.h>."

* commit 'f1258672d1eed41da30612a70690c19ff1966b73':
  Fix <sys/select.h> for LP64, clean up <time.h>.

10 years agoMerge "Fix <sys/select.h> for LP64, clean up <time.h>."
Elliott Hughes [Tue, 5 Nov 2013 21:54:38 +0000 (21:54 +0000)]
Merge "Fix <sys/select.h> for LP64, clean up <time.h>."

10 years agoFix <sys/select.h> for LP64, clean up <time.h>.
Elliott Hughes [Tue, 5 Nov 2013 21:28:36 +0000 (13:28 -0800)]
Fix <sys/select.h> for LP64, clean up <time.h>.

The 64-bit uapi headers don't define FD_CLR and friends, so this
patch updates libc/kernel/common/linux/time.h after the change
b934bbec145e9e084bf48149a3a94ae3dd132157 in external/kernel-headers,
then fixes <sys/select.h> to work in this new world, and removes
some now-unnecessary duplication from <time.h> (with other cruft
cleaned up while I'm here).

Change-Id: Ifd26f901b4d200c65065b3e6ef1b74055127e052

10 years agoam 3c5d651c: am 9b9f0d0c: Merge "Remove unnecessary #include."
Elliott Hughes [Tue, 5 Nov 2013 20:06:58 +0000 (12:06 -0800)]
am 3c5d651c: am 9b9f0d0c: Merge "Remove unnecessary #include."

* commit '3c5d651c051e56e7fb48214e334600cd3f361460':
  Remove unnecessary #include.

10 years agoam 9b9f0d0c: Merge "Remove unnecessary #include."
Elliott Hughes [Tue, 5 Nov 2013 20:04:34 +0000 (12:04 -0800)]
am 9b9f0d0c: Merge "Remove unnecessary #include."

* commit '9b9f0d0cd05b5249e4b8119a8bd12ec17712b9da':
  Remove unnecessary #include.

10 years agoMerge "Remove unnecessary #include."
Elliott Hughes [Tue, 5 Nov 2013 20:00:29 +0000 (20:00 +0000)]
Merge "Remove unnecessary #include."

10 years agoRemove unnecessary #include.
Elliott Hughes [Tue, 5 Nov 2013 19:59:06 +0000 (11:59 -0800)]
Remove unnecessary #include.

Change-Id: I99dade0b3803272ee29eba2ad36b0311f8a24c31

10 years agoam 00889af0: am 943cc1b5: Merge "Refresh libc/kernel/common/linux/uinput.h"
Elliott Hughes [Thu, 31 Oct 2013 23:07:39 +0000 (16:07 -0700)]
am 00889af0: am 943cc1b5: Merge "Refresh libc/kernel/common/linux/uinput.h"

* commit '00889af038359e0a7e97384bad25a809e8887857':
  Refresh libc/kernel/common/linux/uinput.h

10 years agoam 943cc1b5: Merge "Refresh libc/kernel/common/linux/uinput.h"
Elliott Hughes [Thu, 31 Oct 2013 23:05:50 +0000 (16:05 -0700)]
am 943cc1b5: Merge "Refresh libc/kernel/common/linux/uinput.h"

* commit '943cc1b58892c627f65f44b7f0fcf365048b7364':
  Refresh libc/kernel/common/linux/uinput.h

10 years agoMerge "Refresh libc/kernel/common/linux/uinput.h"
Elliott Hughes [Thu, 31 Oct 2013 23:03:15 +0000 (23:03 +0000)]
Merge "Refresh libc/kernel/common/linux/uinput.h"

10 years agoRefresh libc/kernel/common/linux/uinput.h
Scott Anderson [Fri, 25 Oct 2013 22:04:49 +0000 (15:04 -0700)]
Refresh libc/kernel/common/linux/uinput.h

Change-Id: Icd830af5aee63276554ebf7bfe8192965209cc59
Signed-off-by: Scott Anderson <saa@google.com>
10 years agoam 6b69b753: am 4d2ab4c7: Merge "Fix linker crashes during unknown symbol lookup"
Elliott Hughes [Thu, 31 Oct 2013 22:13:39 +0000 (15:13 -0700)]
am 6b69b753: am 4d2ab4c7: Merge "Fix linker crashes during unknown symbol lookup"

* commit '6b69b753d7c9820fb4fd7f88a047931c645834c8':
  Fix linker crashes during unknown symbol lookup

10 years agoam 4d2ab4c7: Merge "Fix linker crashes during unknown symbol lookup"
Elliott Hughes [Thu, 31 Oct 2013 22:10:25 +0000 (15:10 -0700)]
am 4d2ab4c7: Merge "Fix linker crashes during unknown symbol lookup"

* commit '4d2ab4c758a8c76193452b139778e90531721930':
  Fix linker crashes during unknown symbol lookup

10 years agoMerge "Fix linker crashes during unknown symbol lookup"
Elliott Hughes [Thu, 31 Oct 2013 22:06:59 +0000 (22:06 +0000)]
Merge "Fix linker crashes during unknown symbol lookup"

10 years agoFix linker crashes during unknown symbol lookup
Sergey Melnikov [Thu, 31 Oct 2013 14:02:12 +0000 (18:02 +0400)]
Fix linker crashes during unknown symbol lookup

Integration of kernel VDSO into internal bionic data structures using
common functions.
Fix for dl_iterate_phdr function: the function provides incorrect
address of object in case of nonzero virtual and base addresses.
Location in address space of a particular program header should be
calculated using the formula:  addr = base_addr + virtual_addr.

Signed-off-by: Sergey Melnikov <sergey.melnikov@intel.com>
Change-Id: Ie2ab4257fd456242aab8afed0bd5bd6b29e81d6d

10 years agoam 61ec6a62: am cc9b7456: Merge "Move the pthread debugging flags to the right place."
Elliott Hughes [Thu, 31 Oct 2013 21:26:46 +0000 (14:26 -0700)]
am 61ec6a62: am cc9b7456: Merge "Move the pthread debugging flags to the right place."

* commit '61ec6a621c699d68246a3dfe724fa13f0555ecf4':
  Move the pthread debugging flags to the right place.

10 years agoam cc9b7456: Merge "Move the pthread debugging flags to the right place."
Elliott Hughes [Thu, 31 Oct 2013 21:25:03 +0000 (14:25 -0700)]
am cc9b7456: Merge "Move the pthread debugging flags to the right place."

* commit 'cc9b7456b66b7c7c218a9d1f00d7aef1f5ecf409':
  Move the pthread debugging flags to the right place.

10 years agoMerge "Move the pthread debugging flags to the right place."
Elliott Hughes [Thu, 31 Oct 2013 21:23:29 +0000 (21:23 +0000)]
Merge "Move the pthread debugging flags to the right place."

10 years agoMove the pthread debugging flags to the right place.
Elliott Hughes [Thu, 31 Oct 2013 21:09:39 +0000 (14:09 -0700)]
Move the pthread debugging flags to the right place.

Change-Id: Ie805bd837d1f72cdf1818e056c0baeb0857e4e84

10 years agoam 5ab8d33a: Upgrade to tzdata2013h.
Elliott Hughes [Thu, 31 Oct 2013 20:50:33 +0000 (13:50 -0700)]
am 5ab8d33a: Upgrade to tzdata2013h.

* commit '5ab8d33aa64a4ca12172dba92df172f70629874d':
  Upgrade to tzdata2013h.

10 years agoam 1658691e: am 0360e3ab: Merge "<pthread.h> fixes and pthread cleanup."
Elliott Hughes [Thu, 31 Oct 2013 20:43:18 +0000 (13:43 -0700)]
am 1658691e: am 0360e3ab: Merge "<pthread.h> fixes and pthread cleanup."

* commit '1658691e0cfe2eb221bee837649de1907a579a0b':
  <pthread.h> fixes and pthread cleanup.

10 years agoUpgrade to tzdata2013h.
Elliott Hughes [Mon, 28 Oct 2013 16:38:00 +0000 (09:38 -0700)]
Upgrade to tzdata2013h.

From the release notes:

  Changes affecting current and future time stamps:

    Libya has switched its time zone back to UTC+2 without DST,
    instead of UTC+1 with DST.  (Thanks to Even Scharning.)

    Western Sahara (Africa/El_Aaiun) uses Morocco's DST rules.
    (Thanks to Gwillim Law.)

  Changes affecting future time stamps:

    Acre and (we guess) western Amazonas will switch from UTC-4 to UTC-5
    on 2013-11-10.  This affects America/Rio_Branco and America/Eirunepe.
    (Thanks to Steffen Thorsen.)

    Add entries for DST transitions in Morocco in the year 2038.
    This avoids some year-2038 glitches introduced in 2013g.
    (Thanks to Yoshito Umaoka for reporting the problem.)

(cherry picked from commit 3df3879bd679f2a8cf29000036c751c93275c094)

Change-Id: Ibdac6cc1db0fe24c62fe68e99d057dface6b6745

10 years agoam 0360e3ab: Merge "<pthread.h> fixes and pthread cleanup."
Elliott Hughes [Thu, 31 Oct 2013 20:41:00 +0000 (13:41 -0700)]
am 0360e3ab: Merge "<pthread.h> fixes and pthread cleanup."

* commit '0360e3ab2d21d4b4b3d5590765857bef595c0046':
  <pthread.h> fixes and pthread cleanup.

10 years agoMerge "<pthread.h> fixes and pthread cleanup."
Elliott Hughes [Thu, 31 Oct 2013 20:36:48 +0000 (20:36 +0000)]
Merge "<pthread.h> fixes and pthread cleanup."

10 years ago<pthread.h> fixes and pthread cleanup.
Elliott Hughes [Wed, 30 Oct 2013 21:40:09 +0000 (14:40 -0700)]
<pthread.h> fixes and pthread cleanup.

<pthread.h> was missing nonnull attributes, noreturn on pthread_exit,
and had incorrect cv qualifiers for several standard functions.

I've also marked the non-standard stuff (where I count glibc rather
than POSIX as "standard") so we can revisit this cruft for LP64 and
try to ensure we're compatible with glibc.

I've also broken out the pthread_cond* functions into a new file.

I've made the remaining pthread files (plus ptrace) part of the bionic code
and fixed all the warnings.

I've added a few more smoke tests for chunks of untested pthread functionality.

We no longer need the libc_static_common_src_files hack for any of the
pthread implementation because we long since stripped out the rest of
the armv5 support, and this hack was just to ensure that __get_tls in libc.a
went via the kernel if necessary.

This patch also finishes the job of breaking up the pthread.c monolith, and
adds a handful of new tests.

Change-Id: Idc0ae7f5d8aa65989598acd4c01a874fe21582c7

10 years agoam 9be24f71: am d0d0b52d: Merge "Remove an obsolete ARM gdb hack."
Elliott Hughes [Wed, 30 Oct 2013 21:42:59 +0000 (14:42 -0700)]
am 9be24f71: am d0d0b52d: Merge "Remove an obsolete ARM gdb hack."

* commit '9be24f71604d4e667bf23d77bb953a29737b3f2d':
  Remove an obsolete ARM gdb hack.

10 years agoam d0d0b52d: Merge "Remove an obsolete ARM gdb hack."
Elliott Hughes [Wed, 30 Oct 2013 21:40:17 +0000 (14:40 -0700)]
am d0d0b52d: Merge "Remove an obsolete ARM gdb hack."

* commit 'd0d0b52da375bfa85947a4257198791f615f18a8':
  Remove an obsolete ARM gdb hack.

10 years agoMerge "Remove an obsolete ARM gdb hack."
Elliott Hughes [Wed, 30 Oct 2013 21:37:56 +0000 (21:37 +0000)]
Merge "Remove an obsolete ARM gdb hack."

10 years agoRemove an obsolete ARM gdb hack.
Elliott Hughes [Wed, 30 Oct 2013 21:32:42 +0000 (14:32 -0700)]
Remove an obsolete ARM gdb hack.

Experiment shows that the claim in the makefile was false: gdb works fine
setting breakpoints in these functions when compiled without special treatment.

Change-Id: Ibdf4dd5a14d171c954b8c2089daaf28e1c310be9

10 years agoam 6cf34775: am 47a73363: Merge "Factor out some of the makefile cruft."
Elliott Hughes [Wed, 30 Oct 2013 02:18:56 +0000 (19:18 -0700)]
am 6cf34775: am 47a73363: Merge "Factor out some of the makefile cruft."

* commit '6cf34775513859dd48b986162e761aff57df82fb':
  Factor out some of the makefile cruft.

10 years agoam 47a73363: Merge "Factor out some of the makefile cruft."
Elliott Hughes [Wed, 30 Oct 2013 02:15:37 +0000 (19:15 -0700)]
am 47a73363: Merge "Factor out some of the makefile cruft."

* commit '47a73363fcdb88811eedbe484720fb08dc30a995':
  Factor out some of the makefile cruft.

10 years agoMerge "Factor out some of the makefile cruft."
Elliott Hughes [Wed, 30 Oct 2013 02:13:34 +0000 (02:13 +0000)]
Merge "Factor out some of the makefile cruft."

10 years agoam ee99ebbc: am 7a8e20c9: Merge "Explain the sigprocmask in pthread_exit."
Elliott Hughes [Wed, 30 Oct 2013 01:31:06 +0000 (18:31 -0700)]
am ee99ebbc: am 7a8e20c9: Merge "Explain the sigprocmask in pthread_exit."

* commit 'ee99ebbc8f0447880f316a10b2249f813f964172':
  Explain the sigprocmask in pthread_exit.

10 years agoam 4fbd0277: am f084f7dc: Merge "Fix up failing glibc tests."
Christopher Ferris [Wed, 30 Oct 2013 01:31:05 +0000 (18:31 -0700)]
am 4fbd0277: am f084f7dc: Merge "Fix up failing glibc tests."

* commit '4fbd0277aedd9cf1e81648e9a849c52211a65adf':
  Fix up failing glibc tests.

10 years agoFactor out some of the makefile cruft.
Elliott Hughes [Tue, 29 Oct 2013 23:59:54 +0000 (16:59 -0700)]
Factor out some of the makefile cruft.

I really don't want to add yet another copy for aarch64.

Also sort arm, mips, and x86.

Also silence the "TARGET_ARCH_VARIANT" warning for non-ARM; Intel and MIPS
have both complained about it.

Change-Id: I32c592a90c0cf0cdae250d84035b3e4655543781