Commit Graph

6309 Commits

Author SHA1 Message Date
Elliott Hughes
9f2532507f am a047e0ab: am afc51b92: am c4dbc16e: Merge "Make cpp.py less braindead."
* commit 'a047e0ab516551430cf2fc19f12703d48b9d60f3':
  Make cpp.py less braindead.
2013-11-06 16:15:44 -08:00
Elliott Hughes
a047e0ab51 am afc51b92: am c4dbc16e: Merge "Make cpp.py less braindead."
* commit 'afc51b92a0e531f05e0e5477ea857a8669e5e5d1':
  Make cpp.py less braindead.
2013-11-06 16:10:12 -08:00
Elliott Hughes
afc51b92a0 am c4dbc16e: Merge "Make cpp.py less braindead."
* commit 'c4dbc16eb03bcc0a3ea04cd32ce7551ad94b2bfc':
  Make cpp.py less braindead.
2013-11-06 12:34:22 -08:00
Elliott Hughes
c4dbc16eb0 Merge "Make cpp.py less braindead." 2013-11-06 20:31:10 +00:00
Elliott Hughes
40596aa005 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
2013-11-06 12:04:48 -08:00
Elliott Hughes
fdbbcc2fab am c76ba85e: am ffe06880: am f1258672: Merge "Fix <sys/select.h> for LP64, clean up <time.h>."
* commit 'c76ba85e166fa98baf44102894471c483f134c17':
  Fix <sys/select.h> for LP64, clean up <time.h>.
2013-11-05 14:24:21 -08:00
Elliott Hughes
d13288d1ed am a0352c60: am 3c5d651c: am 9b9f0d0c: Merge "Remove unnecessary #include."
* commit 'a0352c60ec72b2fbd9d7a9a1685ec893bf9014aa':
  Remove unnecessary #include.
2013-11-05 14:22:24 -08:00
Elliott Hughes
c76ba85e16 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>.
2013-11-05 14:01:49 -08:00
Elliott Hughes
ffe0688089 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>.
2013-11-05 13:58:18 -08:00
Elliott Hughes
f1258672d1 Merge "Fix <sys/select.h> for LP64, clean up <time.h>." 2013-11-05 21:54:38 +00:00
Elliott Hughes
3503ce2177 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
2013-11-05 13:28:36 -08:00
Elliott Hughes
a0352c60ec am 3c5d651c: am 9b9f0d0c: Merge "Remove unnecessary #include."
* commit '3c5d651c051e56e7fb48214e334600cd3f361460':
  Remove unnecessary #include.
2013-11-05 12:06:58 -08:00
Elliott Hughes
3c5d651c05 am 9b9f0d0c: Merge "Remove unnecessary #include."
* commit '9b9f0d0cd05b5249e4b8119a8bd12ec17712b9da':
  Remove unnecessary #include.
2013-11-05 12:04:34 -08:00
Elliott Hughes
9b9f0d0cd0 Merge "Remove unnecessary #include." 2013-11-05 20:00:30 +00:00
Elliott Hughes
6fa79c5cf5 Remove unnecessary #include.
Change-Id: I99dade0b3803272ee29eba2ad36b0311f8a24c31
2013-11-05 11:59:06 -08:00
Elliott Hughes
ab7e8fba0a am 748ad3d3: am 00889af0: am 943cc1b5: Merge "Refresh libc/kernel/common/linux/uinput.h"
* commit '748ad3d3f514707a596b7ede59f1f4788832d3f5':
  Refresh libc/kernel/common/linux/uinput.h
2013-10-31 16:09:42 -07:00
Elliott Hughes
748ad3d3f5 am 00889af0: am 943cc1b5: Merge "Refresh libc/kernel/common/linux/uinput.h"
* commit '00889af038359e0a7e97384bad25a809e8887857':
  Refresh libc/kernel/common/linux/uinput.h
2013-10-31 16:07:39 -07:00
Elliott Hughes
00889af038 am 943cc1b5: Merge "Refresh libc/kernel/common/linux/uinput.h"
* commit '943cc1b58892c627f65f44b7f0fcf365048b7364':
  Refresh libc/kernel/common/linux/uinput.h
2013-10-31 16:05:50 -07:00
Elliott Hughes
943cc1b588 Merge "Refresh libc/kernel/common/linux/uinput.h" 2013-10-31 23:03:16 +00:00
Scott Anderson
126f66a601 Refresh libc/kernel/common/linux/uinput.h
Change-Id: Icd830af5aee63276554ebf7bfe8192965209cc59
Signed-off-by: Scott Anderson <saa@google.com>
2013-10-31 15:45:32 -07:00
Elliott Hughes
040fe7a832 am 2a60b264: am 6b69b753: am 4d2ab4c7: Merge "Fix linker crashes during unknown symbol lookup"
* commit '2a60b264ebf85bdec2ef741651815781b145d868':
  Fix linker crashes during unknown symbol lookup
2013-10-31 15:17:07 -07:00
Elliott Hughes
2a60b264eb am 6b69b753: am 4d2ab4c7: Merge "Fix linker crashes during unknown symbol lookup"
* commit '6b69b753d7c9820fb4fd7f88a047931c645834c8':
  Fix linker crashes during unknown symbol lookup
2013-10-31 15:13:39 -07:00
Elliott Hughes
6b69b753d7 am 4d2ab4c7: Merge "Fix linker crashes during unknown symbol lookup"
* commit '4d2ab4c758a8c76193452b139778e90531721930':
  Fix linker crashes during unknown symbol lookup
2013-10-31 15:10:25 -07:00
Elliott Hughes
4d2ab4c758 Merge "Fix linker crashes during unknown symbol lookup" 2013-10-31 22:07:00 +00:00
Sergey Melnikov
ebd506c69e 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
2013-10-31 15:06:20 -07:00
Elliott Hughes
f6bf2cd9b1 am 8441e031: am 61ec6a62: am cc9b7456: Merge "Move the pthread debugging flags to the right place."
* commit '8441e0312cf0215560b502a38284b1e918a31364':
  Move the pthread debugging flags to the right place.
2013-10-31 14:29:14 -07:00
Elliott Hughes
8441e0312c 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.
2013-10-31 14:26:46 -07:00
Elliott Hughes
61ec6a621c am cc9b7456: Merge "Move the pthread debugging flags to the right place."
* commit 'cc9b7456b66b7c7c218a9d1f00d7aef1f5ecf409':
  Move the pthread debugging flags to the right place.
2013-10-31 14:25:03 -07:00
Elliott Hughes
cc9b7456b6 Merge "Move the pthread debugging flags to the right place." 2013-10-31 21:23:29 +00:00
Elliott Hughes
66759d6041 Move the pthread debugging flags to the right place.
Change-Id: Ie805bd837d1f72cdf1818e056c0baeb0857e4e84
2013-10-31 14:09:39 -07:00
Elliott Hughes
0f83967545 am ff9b41de: am 5ab8d33a: Upgrade to tzdata2013h.
* commit 'ff9b41de6285961d4c397ae660cf8c11a6508af0':
  Upgrade to tzdata2013h.
2013-10-31 13:53:37 -07:00
Elliott Hughes
ff9b41de62 am 5ab8d33a: Upgrade to tzdata2013h.
* commit '5ab8d33aa64a4ca12172dba92df172f70629874d':
  Upgrade to tzdata2013h.
2013-10-31 13:50:33 -07:00
Elliott Hughes
e0503cca60 am 26e9e3c7: am 1658691e: am 0360e3ab: Merge "<pthread.h> fixes and pthread cleanup."
* commit '26e9e3c76a082ae8b6b06208270c7aaf713d2853':
  <pthread.h> fixes and pthread cleanup.
2013-10-31 13:45:49 -07:00
Elliott Hughes
26e9e3c76a am 1658691e: am 0360e3ab: Merge "<pthread.h> fixes and pthread cleanup."
* commit '1658691e0cfe2eb221bee837649de1907a579a0b':
  <pthread.h> fixes and pthread cleanup.
2013-10-31 13:43:18 -07:00
Elliott Hughes
5ab8d33aa6 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 3df3879bd6)

Change-Id: Ibdac6cc1db0fe24c62fe68e99d057dface6b6745
2013-10-31 13:41:31 -07:00
Elliott Hughes
1658691e0c am 0360e3ab: Merge "<pthread.h> fixes and pthread cleanup."
* commit '0360e3ab2d21d4b4b3d5590765857bef595c0046':
  <pthread.h> fixes and pthread cleanup.
2013-10-31 13:41:00 -07:00
Elliott Hughes
0360e3ab2d Merge "<pthread.h> fixes and pthread cleanup." 2013-10-31 20:36:48 +00:00
Elliott Hughes
c3f114037d <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
2013-10-31 12:31:16 -07:00
Elliott Hughes
9685cc4967 am b0b2e29d: am 9be24f71: am d0d0b52d: Merge "Remove an obsolete ARM gdb hack."
* commit 'b0b2e29d4eb252a6136348491b6ed85e3da42216':
  Remove an obsolete ARM gdb hack.
2013-10-30 14:44:18 -07:00
Elliott Hughes
b0b2e29d4e am 9be24f71: am d0d0b52d: Merge "Remove an obsolete ARM gdb hack."
* commit '9be24f71604d4e667bf23d77bb953a29737b3f2d':
  Remove an obsolete ARM gdb hack.
2013-10-30 14:42:59 -07:00
Elliott Hughes
9be24f7160 am d0d0b52d: Merge "Remove an obsolete ARM gdb hack."
* commit 'd0d0b52da375bfa85947a4257198791f615f18a8':
  Remove an obsolete ARM gdb hack.
2013-10-30 14:40:17 -07:00
Elliott Hughes
d0d0b52da3 Merge "Remove an obsolete ARM gdb hack." 2013-10-30 21:37:56 +00:00
Elliott Hughes
b5b97f20a8 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
2013-10-30 14:32:42 -07:00
Elliott Hughes
7a7380cdad am 0f3973bd: am 6cf34775: am 47a73363: Merge "Factor out some of the makefile cruft."
* commit '0f3973bdb5ad424c7c034c1dcb428b07848155ef':
  Factor out some of the makefile cruft.
2013-10-29 19:21:45 -07:00
Elliott Hughes
0f3973bdb5 am 6cf34775: am 47a73363: Merge "Factor out some of the makefile cruft."
* commit '6cf34775513859dd48b986162e761aff57df82fb':
  Factor out some of the makefile cruft.
2013-10-29 19:18:56 -07:00
Elliott Hughes
6cf3477551 am 47a73363: Merge "Factor out some of the makefile cruft."
* commit '47a73363fcdb88811eedbe484720fb08dc30a995':
  Factor out some of the makefile cruft.
2013-10-29 19:15:37 -07:00
Elliott Hughes
47a73363fc Merge "Factor out some of the makefile cruft." 2013-10-30 02:13:34 +00:00
Elliott Hughes
2b2a5b6139 am 86959493: am ee99ebbc: am 7a8e20c9: Merge "Explain the sigprocmask in pthread_exit."
* commit '8695949391d0d892351bb1b877b44d4171d8bead':
  Explain the sigprocmask in pthread_exit.
2013-10-29 18:36:20 -07:00
Christopher Ferris
7bc9b73a65 am fa088df4: am 4fbd0277: am f084f7dc: Merge "Fix up failing glibc tests."
* commit 'fa088df49ef6508b1e8072a37e67d95b2a4c60f3':
  Fix up failing glibc tests.
2013-10-29 18:36:20 -07:00
Elliott Hughes
8695949391 am ee99ebbc: am 7a8e20c9: Merge "Explain the sigprocmask in pthread_exit."
* commit 'ee99ebbc8f0447880f316a10b2249f813f964172':
  Explain the sigprocmask in pthread_exit.
2013-10-29 18:31:06 -07:00