OSDN Git Service

android-x86/bionic.git
11 years agoBreak bionic implementations into arch versions.
Christopher Ferris [Tue, 26 Feb 2013 09:30:00 +0000 (01:30 -0800)]
Break bionic implementations into arch versions.

Move arch specific code for arm, mips, x86 into separate
makefiles.
In addition, add different arm cpu versions of memcpy/memset.

Bug: 8005082
Change-Id: I04f3d0715104fab618e1abf7cf8f7eec9bec79df

11 years agoam 82f4cc5d: am 58b997c8: am f5f906c1: Merge "libc: create sys/capability.h"
Nick Kralevich [Tue, 26 Feb 2013 21:55:28 +0000 (21:55 +0000)]
am 82f4cc5d: am 58b997c8: am f5f906c1: Merge "libc: create sys/capability.h"

* commit '82f4cc5de495c6cc3d3736ab075ccd05285beabc':
  libc: create sys/capability.h

11 years agoam 58b997c8: am f5f906c1: Merge "libc: create sys/capability.h"
Nick Kralevich [Tue, 26 Feb 2013 21:51:26 +0000 (13:51 -0800)]
am 58b997c8: am f5f906c1: Merge "libc: create sys/capability.h"

* commit '58b997c8121455ecb9aa1b80d7c796115149ec2a':
  libc: create sys/capability.h

11 years agoam f5f906c1: Merge "libc: create sys/capability.h"
Nick Kralevich [Tue, 26 Feb 2013 21:50:03 +0000 (13:50 -0800)]
am f5f906c1: Merge "libc: create sys/capability.h"

* commit 'f5f906c184677b8295523231cfeead9ed94661ad':
  libc: create sys/capability.h

11 years agoMerge "libc: create sys/capability.h"
Nick Kralevich [Tue, 26 Feb 2013 21:38:10 +0000 (21:38 +0000)]
Merge "libc: create sys/capability.h"

11 years agolibc: create sys/capability.h
Nick Kralevich [Tue, 26 Feb 2013 21:27:15 +0000 (13:27 -0800)]
libc: create sys/capability.h

Per "man capset", sys/capability.h is the appropriate header file
for the capget / capset definition, not unistd.h. Fixed.

As a short term hack, continue to include sys/capability.h in
unistd.h, until we can fix all the code which uses capget / capset.

Change-Id: I6e7cf55955d761ca785a14c5e4b7a44125d8fc15

11 years agoam d9cb6988: am 406968b2: am c0e9ddd0: Merge "Reimplement scandir(3)."
Elliott Hughes [Mon, 25 Feb 2013 22:58:44 +0000 (22:58 +0000)]
am d9cb6988: am 406968b2: am c0e9ddd0: Merge "Reimplement scandir(3)."

* commit 'd9cb69881a062c615a8009be0a70270c70eb35da':
  Reimplement scandir(3).

11 years agoam 406968b2: am c0e9ddd0: Merge "Reimplement scandir(3)."
Elliott Hughes [Mon, 25 Feb 2013 22:56:51 +0000 (14:56 -0800)]
am 406968b2: am c0e9ddd0: Merge "Reimplement scandir(3)."

* commit '406968b2444bf29e449acebdfb7ff174abd1e0ad':
  Reimplement scandir(3).

11 years agoam c0e9ddd0: Merge "Reimplement scandir(3)."
Elliott Hughes [Mon, 25 Feb 2013 22:54:54 +0000 (14:54 -0800)]
am c0e9ddd0: Merge "Reimplement scandir(3)."

* commit 'c0e9ddd002f6084c29c26236d741d64d01713c15':
  Reimplement scandir(3).

11 years agoMerge "Reimplement scandir(3)."
Elliott Hughes [Mon, 25 Feb 2013 22:43:28 +0000 (22:43 +0000)]
Merge "Reimplement scandir(3)."

11 years agoReimplement scandir(3).
Elliott Hughes [Mon, 25 Feb 2013 21:14:31 +0000 (13:14 -0800)]
Reimplement scandir(3).

The old scandir implementation didn't take into account the varying
size of directory entries, and didn't correctly clean up on its
error exits.

Bug: 7339844
Change-Id: Ib40e3564709752241a3119a496cbb2192e3f9abe

11 years agoam ed1068c8: am 7b8bf681: am f6bb5bf4: Merge "Add the glibc-compatible names to ...
Elliott Hughes [Fri, 22 Feb 2013 22:09:30 +0000 (14:09 -0800)]
am ed1068c8: am 7b8bf681: am f6bb5bf4: Merge "Add the glibc-compatible names to <sys/endian.h>."

* commit 'ed1068c86ea0380e4b4909252367ffacc812ad57':
  Add the glibc-compatible names to <sys/endian.h>.

11 years agoam 7b8bf681: am f6bb5bf4: Merge "Add the glibc-compatible names to <sys/endian.h>."
Elliott Hughes [Fri, 22 Feb 2013 22:06:12 +0000 (14:06 -0800)]
am 7b8bf681: am f6bb5bf4: Merge "Add the glibc-compatible names to <sys/endian.h>."

* commit '7b8bf68133cda6c5ff9207248b563c2f6297e22a':
  Add the glibc-compatible names to <sys/endian.h>.

11 years agoam f6bb5bf4: Merge "Add the glibc-compatible names to <sys/endian.h>."
Elliott Hughes [Fri, 22 Feb 2013 22:02:44 +0000 (14:02 -0800)]
am f6bb5bf4: Merge "Add the glibc-compatible names to <sys/endian.h>."

* commit 'f6bb5bf498810d0622f66020059c87b96738c35b':
  Add the glibc-compatible names to <sys/endian.h>.

11 years agoMerge "Add the glibc-compatible names to <sys/endian.h>."
Elliott Hughes [Fri, 22 Feb 2013 21:46:59 +0000 (21:46 +0000)]
Merge "Add the glibc-compatible names to <sys/endian.h>."

11 years agoam dd843914: am 440bc83d: am 7b2c6385: Merge "Fix <memory.h> to be a synonym for...
Elliott Hughes [Fri, 22 Feb 2013 20:16:14 +0000 (12:16 -0800)]
am dd843914: am 440bc83d: am 7b2c6385: Merge "Fix <memory.h> to be a synonym for <string.h> like in glibc."

* commit 'dd8439141aeac6dc3a64e25f313d08833e1d85f5':
  Fix <memory.h> to be a synonym for <string.h> like in glibc.

11 years agoam 440bc83d: am 7b2c6385: Merge "Fix <memory.h> to be a synonym for <string.h> like...
Elliott Hughes [Fri, 22 Feb 2013 20:12:45 +0000 (12:12 -0800)]
am 440bc83d: am 7b2c6385: Merge "Fix <memory.h> to be a synonym for <string.h> like in glibc."

* commit '440bc83d924fa616614b4b426da66c2893048887':
  Fix <memory.h> to be a synonym for <string.h> like in glibc.

11 years agoam 7b2c6385: Merge "Fix <memory.h> to be a synonym for <string.h> like in glibc."
Elliott Hughes [Fri, 22 Feb 2013 20:10:15 +0000 (12:10 -0800)]
am 7b2c6385: Merge "Fix <memory.h> to be a synonym for <string.h> like in glibc."

* commit '7b2c6385effbb6d6e98bfe29cc6c144211128d9e':
  Fix <memory.h> to be a synonym for <string.h> like in glibc.

11 years agoam 41fb968c: am cadc8583: am bc0e7ee1: Merge "libc: add sys/signal.h for compatibility"
Nick Kralevich [Fri, 22 Feb 2013 19:59:38 +0000 (11:59 -0800)]
am 41fb968c: am cadc8583: am bc0e7ee1: Merge "libc: add sys/signal.h for compatibility"

* commit '41fb968c4268d080b0be4493876672efc4a71e16':
  libc: add sys/signal.h for compatibility

11 years agoam cadc8583: am bc0e7ee1: Merge "libc: add sys/signal.h for compatibility"
Nick Kralevich [Fri, 22 Feb 2013 19:56:39 +0000 (11:56 -0800)]
am cadc8583: am bc0e7ee1: Merge "libc: add sys/signal.h for compatibility"

* commit 'cadc858329a5929911eff5f9a208229112e36a93':
  libc: add sys/signal.h for compatibility

11 years agoam bc0e7ee1: Merge "libc: add sys/signal.h for compatibility"
Nick Kralevich [Fri, 22 Feb 2013 19:53:05 +0000 (11:53 -0800)]
am bc0e7ee1: Merge "libc: add sys/signal.h for compatibility"

* commit 'bc0e7ee18157c2ffe65644514555689f4259ccfe':
  libc: add sys/signal.h for compatibility

11 years agoMerge "Fix <memory.h> to be a synonym for <string.h> like in glibc."
Elliott Hughes [Fri, 22 Feb 2013 19:49:38 +0000 (19:49 +0000)]
Merge "Fix <memory.h> to be a synonym for <string.h> like in glibc."

11 years agoMerge "libc: add sys/signal.h for compatibility"
Nick Kralevich [Fri, 22 Feb 2013 19:33:52 +0000 (19:33 +0000)]
Merge "libc: add sys/signal.h for compatibility"

11 years agoMerge "gethostbyname: fix crash"
Nick Kralevich [Fri, 22 Feb 2013 19:32:37 +0000 (19:32 +0000)]
Merge "gethostbyname: fix crash"

11 years agoFix <memory.h> to be a synonym for <string.h> like in glibc.
Elliott Hughes [Fri, 22 Feb 2013 19:11:48 +0000 (11:11 -0800)]
Fix <memory.h> to be a synonym for <string.h> like in glibc.

Change-Id: If23589c5d85dffd28788e04b010303620fa178ca

11 years agoAdd the glibc-compatible names to <sys/endian.h>.
Elliott Hughes [Fri, 22 Feb 2013 19:01:17 +0000 (11:01 -0800)]
Add the glibc-compatible names to <sys/endian.h>.

Also remove declarations for functions that don't exist; these
are all macros.

Bug: http://code.google.com/p/android/issues/detail?id=41769
Change-Id: Ia3774ab2ff7d3c535f83774eac61068f9b11e194

11 years agolibc: add sys/signal.h for compatibility
Nick Kralevich [Fri, 22 Feb 2013 18:38:28 +0000 (10:38 -0800)]
libc: add sys/signal.h for compatibility

Some applications look for sys/signal.h instead of signal.h.
Work around those apps.

Change-Id: I76ac7744ebc56d196b5f0cb9ed381d32817436b9

11 years agoDon't pass pid to dnsproxyd
Nick Kralevich [Fri, 22 Feb 2013 05:22:54 +0000 (21:22 -0800)]
Don't pass pid to dnsproxyd

dnsproxyd can already determine our pid by looking at our
socket connection. It's dangerous (and unneeded) to pass it
ourselves.

Change-Id: I2596d02e361b302259ddb084be2fb75be59889c5

11 years agogethostbyname: fix crash
Nick Kralevich [Fri, 22 Feb 2013 04:10:41 +0000 (20:10 -0800)]
gethostbyname: fix crash

When an app doesn't have the internet permission, android_open_proxy
returns NULL, causing a segfault when calling fprintf. Fixed.

Change-Id: I598855350ed0db3cc88e5ae3b400145418a3a615

11 years agoam e974e951: am 2a5b57db: am 580a7073: Merge "Stop advertising rindex(3), which is...
Elliott Hughes [Fri, 22 Feb 2013 02:01:17 +0000 (18:01 -0800)]
am e974e951: am 2a5b57db: am 580a7073: Merge "Stop advertising rindex(3), which is both deprecated and unimplemented."

* commit 'e974e951606d2efbad4bafe5edbd09c13d875f6a':
  Stop advertising rindex(3), which is both deprecated and unimplemented.

11 years agoam 2a5b57db: am 580a7073: Merge "Stop advertising rindex(3), which is both deprecated...
Elliott Hughes [Fri, 22 Feb 2013 01:57:53 +0000 (17:57 -0800)]
am 2a5b57db: am 580a7073: Merge "Stop advertising rindex(3), which is both deprecated and unimplemented."

* commit '2a5b57db8c711b6f33581a68cfb7b82298ad988c':
  Stop advertising rindex(3), which is both deprecated and unimplemented.

11 years agoam 580a7073: Merge "Stop advertising rindex(3), which is both deprecated and unimplem...
Elliott Hughes [Fri, 22 Feb 2013 01:55:28 +0000 (17:55 -0800)]
am 580a7073: Merge "Stop advertising rindex(3), which is both deprecated and unimplemented."

* commit '580a707376d81bfcb39919f0a1203b39a39dbd8a':
  Stop advertising rindex(3), which is both deprecated and unimplemented.

11 years agoam 72e983d6: am 398f46dd: am a0259b42: Merge "libc: remove bcmp prototype"
Nick Kralevich [Fri, 22 Feb 2013 01:45:27 +0000 (17:45 -0800)]
am 72e983d6: am 398f46dd: am a0259b42: Merge "libc: remove bcmp prototype"

* commit '72e983d62828e1db5049800b7edef5a1b0cbbcbd':
  libc: remove bcmp prototype

11 years agoMerge "Stop advertising rindex(3), which is both deprecated and unimplemented."
Elliott Hughes [Fri, 22 Feb 2013 01:45:02 +0000 (01:45 +0000)]
Merge "Stop advertising rindex(3), which is both deprecated and unimplemented."

11 years agoam 398f46dd: am a0259b42: Merge "libc: remove bcmp prototype"
Nick Kralevich [Fri, 22 Feb 2013 01:42:07 +0000 (17:42 -0800)]
am 398f46dd: am a0259b42: Merge "libc: remove bcmp prototype"

* commit '398f46dd92fbb72e2a275cddccffdfde384bb3b4':
  libc: remove bcmp prototype

11 years agoStop advertising rindex(3), which is both deprecated and unimplemented.
Elliott Hughes [Fri, 22 Feb 2013 01:39:06 +0000 (17:39 -0800)]
Stop advertising rindex(3), which is both deprecated and unimplemented.

Change-Id: I3c775d9974e49c3f76a53e46e022659657b89034

11 years agoam a0259b42: Merge "libc: remove bcmp prototype"
Nick Kralevich [Fri, 22 Feb 2013 01:39:03 +0000 (17:39 -0800)]
am a0259b42: Merge "libc: remove bcmp prototype"

* commit 'a0259b42eba08e6d71a274fa3f770afccbb93107':
  libc: remove bcmp prototype

11 years agoMerge "libc: remove bcmp prototype"
Nick Kralevich [Fri, 22 Feb 2013 01:22:34 +0000 (01:22 +0000)]
Merge "libc: remove bcmp prototype"

11 years agolibc: remove bcmp prototype
Nick Kralevich [Fri, 22 Feb 2013 01:17:09 +0000 (17:17 -0800)]
libc: remove bcmp prototype

AFAIK, bionic only ever provided an implementation of bcmp
for x86, and even then, the code was never actually compiled.
Remove the prototype.

bcmp() has been obsoleted and replaced by memcmp()

Change-Id: I549d02ab6a9241a9acbbbfade0d98a9a02c2eaee

11 years agoam caeb0bf5: am 719d46f8: am a9ff09d1: Merge "Fix raise(3) so it works in signal...
Elliott Hughes [Thu, 21 Feb 2013 23:19:55 +0000 (15:19 -0800)]
am caeb0bf5: am 719d46f8: am a9ff09d1: Merge "Fix raise(3) so it works in signal handlers."

* commit 'caeb0bf53c8299d53f246573392fd688cae8a625':
  Fix raise(3) so it works in signal handlers.

11 years agoam 719d46f8: am a9ff09d1: Merge "Fix raise(3) so it works in signal handlers."
Elliott Hughes [Thu, 21 Feb 2013 22:21:13 +0000 (14:21 -0800)]
am 719d46f8: am a9ff09d1: Merge "Fix raise(3) so it works in signal handlers."

* commit '719d46f8ac4f2af89f8e8927db8c460b91622417':
  Fix raise(3) so it works in signal handlers.

11 years agoam a9ff09d1: Merge "Fix raise(3) so it works in signal handlers."
Elliott Hughes [Thu, 21 Feb 2013 22:17:47 +0000 (14:17 -0800)]
am a9ff09d1: Merge "Fix raise(3) so it works in signal handlers."

* commit 'a9ff09d1fc22292adc12cf99d4d44448d619b3cf':
  Fix raise(3) so it works in signal handlers.

11 years agoMerge "Fix raise(3) so it works in signal handlers."
Elliott Hughes [Thu, 21 Feb 2013 20:05:35 +0000 (20:05 +0000)]
Merge "Fix raise(3) so it works in signal handlers."

11 years agoFix raise(3) so it works in signal handlers.
Elliott Hughes [Thu, 21 Feb 2013 19:22:23 +0000 (11:22 -0800)]
Fix raise(3) so it works in signal handlers.

We could special-case raise(3) in non-threaded programs, but the more
conservative course is to make pthread_kill(3) work in signal handlers
at the cost of a race shared by other C libraries.

Change-Id: I59fb23d03bdabf403435e731704b33acdf3e0234

11 years agoam aa96db5b: (-s ours) am 818b1423: (-s ours) Fix mako builds. Do not merge.
Jean-Baptiste Queru [Wed, 20 Feb 2013 22:03:19 +0000 (14:03 -0800)]
am aa96db5b: (-s ours) am 818b1423: (-s ours) Fix mako builds. Do not merge.

* commit 'aa96db5ba0a39d8fac0925871632031d21e1ab3e':
  Fix mako builds. Do not merge.

11 years agoam 818b1423: (-s ours) Fix mako builds. Do not merge.
Jean-Baptiste Queru [Wed, 20 Feb 2013 22:00:43 +0000 (14:00 -0800)]
am 818b1423: (-s ours) Fix mako builds. Do not merge.

* commit '818b1423d228e478245a1b0d2fe687606ea1741c':
  Fix mako builds. Do not merge.

11 years agoMerge remote-tracking branch 'goog/jb-mr2-release'
Ed Heyl [Wed, 20 Feb 2013 21:47:20 +0000 (13:47 -0800)]
Merge remote-tracking branch 'goog/jb-mr2-release'

11 years agoFix mako builds. Do not merge.
Jean-Baptiste Queru [Wed, 20 Feb 2013 20:47:58 +0000 (12:47 -0800)]
Fix mako builds. Do not merge.

Revert "Regenerate msm_ion.h."

This reverts commit 3fac8f7f492302ae680288996e31debc645fd684.

11 years agomerge in jb-mr2-release history after reset to master
The Android Automerger [Wed, 20 Feb 2013 13:55:13 +0000 (05:55 -0800)]
merge in jb-mr2-release history after reset to master

11 years agoam ccd40316: Merge "use architecture-specific ssize_t definition"
Elliott Hughes [Tue, 19 Feb 2013 22:37:19 +0000 (14:37 -0800)]
am ccd40316: Merge "use architecture-specific ssize_t definition"

* commit 'ccd403161cdcc88a0ffcaecd1bc707e2d4c88a1c':
  use architecture-specific ssize_t definition

11 years agoam 593abb7b: Merge "stdlib: atexit: include <sys/cdefs.h>"
Elliott Hughes [Tue, 19 Feb 2013 22:19:33 +0000 (14:19 -0800)]
am 593abb7b: Merge "stdlib: atexit: include <sys/cdefs.h>"

* commit '593abb7b593a34d501c90512953a7368add6d185':
  stdlib: atexit: include <sys/cdefs.h>

11 years agoMerge "use architecture-specific ssize_t definition"
Elliott Hughes [Tue, 19 Feb 2013 22:13:53 +0000 (22:13 +0000)]
Merge "use architecture-specific ssize_t definition"

11 years agouse architecture-specific ssize_t definition
Thorsten Glaser [Sun, 17 Feb 2013 16:50:58 +0000 (16:50 +0000)]
use architecture-specific ssize_t definition

after change 32822 was rejected, this is the more light-weight
version of the fix: libc/include/sys/types.h already - via
libc/kernel/common/linux/posix_types.h - includes a definition
of __kernel_ssize_t from libc/kernel/arch-*/asm/posix_types.h
which is architecture-specific, toolchain-agnostic and also
gets rid of the gcc -Wformat warning (which it issues correctly,
since this i̲s̲ indeed a bug in bionic)

Change-Id: Ie4503ab16628bc25815a836d07556f665e9795c7

11 years agoMerge "stdlib: atexit: include <sys/cdefs.h>"
Elliott Hughes [Tue, 19 Feb 2013 21:58:18 +0000 (21:58 +0000)]
Merge "stdlib: atexit: include <sys/cdefs.h>"

11 years agoam eeecff72: Merge "Fix pthreads functions that should return ESRCH."
Elliott Hughes [Tue, 19 Feb 2013 21:46:37 +0000 (13:46 -0800)]
am eeecff72: Merge "Fix pthreads functions that should return ESRCH."

* commit 'eeecff7293efd6becf3b07b8d24cada3d820c894':
  Fix pthreads functions that should return ESRCH.

11 years agoMerge "Fix pthreads functions that should return ESRCH."
Elliott Hughes [Tue, 19 Feb 2013 21:37:55 +0000 (21:37 +0000)]
Merge "Fix pthreads functions that should return ESRCH."

11 years agoFix pthreads functions that should return ESRCH.
Elliott Hughes [Sat, 16 Feb 2013 03:21:51 +0000 (19:21 -0800)]
Fix pthreads functions that should return ESRCH.

imgtec pointed out that pthread_kill(3) was broken, but most of the
other functions that ought to return ESRCH for invalid/exited threads
were equally broken.

Change-Id: I96347f6195549aee0c72dc39063e6c5d06d2e01f

11 years agoam b5862d4d: Merge "Update linker README."
Elliott Hughes [Tue, 19 Feb 2013 19:39:40 +0000 (11:39 -0800)]
am b5862d4d: Merge "Update linker README."

* commit 'b5862d4d8a1246dc1e21695cf3bacafefedf0428':
  Update linker README.

11 years agoMerge "Update linker README."
Elliott Hughes [Tue, 19 Feb 2013 19:14:26 +0000 (19:14 +0000)]
Merge "Update linker README."

11 years agoUpdate linker README.
Elliott Hughes [Tue, 19 Feb 2013 19:13:44 +0000 (11:13 -0800)]
Update linker README.

Change-Id: Icaa353e9cf1848c86e7445f4ad590bdab44f7941

11 years agomerge in jb-mr2-release history after reset to master
The Android Automerger [Tue, 19 Feb 2013 17:50:40 +0000 (09:50 -0800)]
merge in jb-mr2-release history after reset to master

11 years agostdlib: atexit: include <sys/cdefs.h>
Chirayu Desai [Sat, 16 Feb 2013 15:53:27 +0000 (21:23 +0530)]
stdlib: atexit: include <sys/cdefs.h>

Change-Id: Ib9eb167710a021e0a2b5c77a06a9338cdc748e6d

11 years agoam 7f67f78a: Merge "dalvik is big enough and ugly enough to handle System.arraycopy...
Elliott Hughes [Sat, 16 Feb 2013 01:00:58 +0000 (17:00 -0800)]
am 7f67f78a: Merge "dalvik is big enough and ugly enough to handle System.arraycopy itself."

* commit '7f67f78ad5c3da689997edd8fbb5afb6e5fc6355':
  dalvik is big enough and ugly enough to handle System.arraycopy itself.

11 years agoMerge "dalvik is big enough and ugly enough to handle System.arraycopy itself."
Elliott Hughes [Sat, 16 Feb 2013 00:40:21 +0000 (00:40 +0000)]
Merge "dalvik is big enough and ugly enough to handle System.arraycopy itself."

11 years agoam 39804dcd: Merge "Fix the pthread_setname_np test."
Elliott Hughes [Fri, 15 Feb 2013 22:48:05 +0000 (14:48 -0800)]
am 39804dcd: Merge "Fix the pthread_setname_np test."

* commit '39804dcde6c1c596285432b28cdb09382ce59663':
  Fix the pthread_setname_np test.

11 years agodalvik is big enough and ugly enough to handle System.arraycopy itself.
Elliott Hughes [Fri, 15 Feb 2013 22:27:52 +0000 (14:27 -0800)]
dalvik is big enough and ugly enough to handle System.arraycopy itself.

Change-Id: I4b54a15ea101c0c6bab06cfb11e4178f5a57fc05

11 years agoMerge "Fix the pthread_setname_np test."
Elliott Hughes [Fri, 15 Feb 2013 21:55:22 +0000 (21:55 +0000)]
Merge "Fix the pthread_setname_np test."

11 years agoFix the pthread_setname_np test.
Elliott Hughes [Fri, 15 Feb 2013 02:59:37 +0000 (18:59 -0800)]
Fix the pthread_setname_np test.

Fix the pthread_setname_np test to take into account that emulator kernels are
so old that they don't support setting the name of other threads.

The CLONE_DETACHED thread is obsolete since 2.5 kernels.

Rename kernel_id to tid.

Fix the signature of __pthread_clone.

Clean up the clone and pthread_setname_np implementations slightly.

Change-Id: I16c2ff8845b67530544bbda9aa6618058603066d

11 years agoam 3e3b239d: Merge "Fix the stack protector death test."
Elliott Hughes [Fri, 15 Feb 2013 02:22:16 +0000 (18:22 -0800)]
am 3e3b239d: Merge "Fix the stack protector death test."

# Via Elliott Hughes (1) and Gerrit Code Review (1)
* commit '3e3b239d2be0c5a92e91385f4f10b8f7da8d2837':
  Fix the stack protector death test.

11 years agoMerge "Fix the stack protector death test."
Elliott Hughes [Fri, 15 Feb 2013 02:10:29 +0000 (02:10 +0000)]
Merge "Fix the stack protector death test."

11 years agoFix the stack protector death test.
Elliott Hughes [Fri, 15 Feb 2013 00:33:52 +0000 (16:33 -0800)]
Fix the stack protector death test.

Now __stack_chk_fail calls abort(3) directly, we terminate with
SIGSEGV rather than SIGABRT. (Because of the workaround for the
debuggerd lossage in the abort(3) implementation, which was the
motivation for switching __stack_chk_fail over to abort(3).)

Also clarify the comment on the weird pthread death test, so it
doesn't get copied and pasted onto real death tests.

Change-Id: Ie832eaded61359c99e7a10db65e28f35e8f63eed

11 years agoam 0a2cb815: Merge "Simplify __stack_chk_fail, and fix it so we get debuggerd stack...
Elliott Hughes [Thu, 14 Feb 2013 23:59:15 +0000 (15:59 -0800)]
am 0a2cb815: Merge "Simplify __stack_chk_fail, and fix it so we get debuggerd stack traces."

# Via Elliott Hughes (1) and Gerrit Code Review (1)
* commit '0a2cb815974ea96af664fa966079966a08916722':
  Simplify __stack_chk_fail, and fix it so we get debuggerd stack traces.

11 years agoMerge "Simplify __stack_chk_fail, and fix it so we get debuggerd stack traces."
Elliott Hughes [Thu, 14 Feb 2013 23:50:13 +0000 (23:50 +0000)]
Merge "Simplify __stack_chk_fail, and fix it so we get debuggerd stack traces."

11 years agoam b128f49f: Merge "bionic: Add securebits.h"
Nick Kralevich [Thu, 14 Feb 2013 23:05:22 +0000 (15:05 -0800)]
am b128f49f: Merge "bionic: Add securebits.h"

# Via Gerrit Code Review (1) and Nick Kralevich (1)
* commit 'b128f49fd58beecc5287ddff6366a97e5aa2e468':
  bionic: Add securebits.h

11 years agoMerge "bionic: Add securebits.h"
Nick Kralevich [Thu, 14 Feb 2013 22:49:28 +0000 (22:49 +0000)]
Merge "bionic: Add securebits.h"

11 years agoSimplify __stack_chk_fail, and fix it so we get debuggerd stack traces.
Elliott Hughes [Thu, 14 Feb 2013 22:37:34 +0000 (14:37 -0800)]
Simplify __stack_chk_fail, and fix it so we get debuggerd stack traces.

Bug: 2487269
Change-Id: Iec5e470fc22cd9108404f634a9d4baa2c7b7f58f

11 years agobionic: Add securebits.h
Nick Kralevich [Thu, 14 Feb 2013 22:03:37 +0000 (14:03 -0800)]
bionic: Add securebits.h

Change-Id: I2031796b9be117558b80246498b29736492cf269

11 years agoam c2d26ce7: Merge "Turn on -Werror for ssp.cpp."
Elliott Hughes [Thu, 14 Feb 2013 19:23:48 +0000 (11:23 -0800)]
am c2d26ce7: Merge "Turn on -Werror for ssp.cpp."

# Via Elliott Hughes (1) and Gerrit Code Review (1)
* commit 'c2d26ce7452e69b9492cd28b7c0271866798658b':
  Turn on -Werror for ssp.cpp.

11 years agoMerge "Turn on -Werror for ssp.cpp."
Elliott Hughes [Thu, 14 Feb 2013 19:17:32 +0000 (19:17 +0000)]
Merge "Turn on -Werror for ssp.cpp."

11 years agoTurn on -Werror for ssp.cpp.
Elliott Hughes [Thu, 14 Feb 2013 19:15:58 +0000 (11:15 -0800)]
Turn on -Werror for ssp.cpp.

libc_bionic.a is already compiled -Werror, but this one file gets
compiled into its own library because it needs to be compiled with
-fno-stack-protector.

Change-Id: I273c535ab5c73ccaccbcf793fda1f788a2589abe

11 years agoam fe33fc79: Merge "fix compiler warning."
Nick Kralevich [Thu, 14 Feb 2013 17:59:09 +0000 (09:59 -0800)]
am fe33fc79: Merge "fix compiler warning."

# Via Gerrit Code Review (1) and Nick Kralevich (1)
* commit 'fe33fc790a16d85ce4109a4575d6fdcd88d42023':
  fix compiler warning.

11 years agoMerge "fix compiler warning."
Nick Kralevich [Thu, 14 Feb 2013 17:48:30 +0000 (17:48 +0000)]
Merge "fix compiler warning."

11 years agofix compiler warning.
Nick Kralevich [Thu, 14 Feb 2013 17:44:13 +0000 (09:44 -0800)]
fix compiler warning.

bionic/libc/bionic/ssp.cpp:41:31: warning: converting to non-pointer type 'uintptr_t {aka unsigned int}' from NULL [-Wconversion-null]

Change-Id: Id154ed4a99520cca64ffd3dbe4d743db6e2da28a

11 years agomerge in jb-mr2-release history after reset to master
The Android Automerger [Thu, 14 Feb 2013 13:55:17 +0000 (05:55 -0800)]
merge in jb-mr2-release history after reset to master

11 years agoam 6b97c7dc: Merge "ffs was not being built for x86."
Elliott Hughes [Thu, 14 Feb 2013 01:08:07 +0000 (17:08 -0800)]
am 6b97c7dc: Merge "ffs was not being built for x86."

# Via Elliott Hughes (1) and Gerrit Code Review (1)
* commit '6b97c7dc0376577276abbdacc52e5cc11cf8a7fd':
  ffs was not being built for x86.

11 years agoam 97f2ec50: Merge "Stop using the local gcc."
Elliott Hughes [Thu, 14 Feb 2013 01:08:07 +0000 (17:08 -0800)]
am 97f2ec50: Merge "Stop using the local gcc."

# Via Elliott Hughes (1) and Gerrit Code Review (1)
* commit '97f2ec50a7993d2db7ef4511a251e6823f5dba10':
  Stop using the local gcc.

11 years agoMerge "ffs was not being built for x86."
Elliott Hughes [Thu, 14 Feb 2013 00:49:46 +0000 (00:49 +0000)]
Merge "ffs was not being built for x86."

11 years agoMerge "Stop using the local gcc."
Elliott Hughes [Thu, 14 Feb 2013 00:48:53 +0000 (00:48 +0000)]
Merge "Stop using the local gcc."

11 years agoStop using the local gcc.
Elliott Hughes [Thu, 14 Feb 2013 00:32:47 +0000 (16:32 -0800)]
Stop using the local gcc.

Some build servers are still out of date, so we're better off having
the known quanitity of the consistently out-of-date prebuilt host gcc.

Change-Id: Ib6308ae926ffa1ac5d95efbbf32052344c17a6b8

11 years agoffs was not being built for x86.
Elliott Hughes [Thu, 14 Feb 2013 00:31:52 +0000 (16:31 -0800)]
ffs was not being built for x86.

Change-Id: I53e92273664a4d0a13536c2fa1aeb87e1f3cf4e8

11 years agoam 95b1ea1b: Merge "Add a bunch more missing ENDs to assembler routines."
Elliott Hughes [Wed, 13 Feb 2013 23:27:11 +0000 (15:27 -0800)]
am 95b1ea1b: Merge "Add a bunch more missing ENDs to assembler routines."

# Via Elliott Hughes (1) and Gerrit Code Review (1)
* commit '95b1ea1bb3c93369d96045420b91b7617992d8bd':
  Add a bunch more missing ENDs to assembler routines.

11 years agoam 2fee0340: Merge "Everyone has CLZ."
Elliott Hughes [Wed, 13 Feb 2013 23:27:10 +0000 (15:27 -0800)]
am 2fee0340: Merge "Everyone has CLZ."

# Via Elliott Hughes (1) and Gerrit Code Review (1)
* commit '2fee0340a93637507de6a860914dc3e14d44ee94':
  Everyone has CLZ.

11 years agoMerge "Add a bunch more missing ENDs to assembler routines."
Elliott Hughes [Wed, 13 Feb 2013 23:18:23 +0000 (23:18 +0000)]
Merge "Add a bunch more missing ENDs to assembler routines."

11 years agoAdd a bunch more missing ENDs to assembler routines.
Elliott Hughes [Wed, 13 Feb 2013 23:12:32 +0000 (15:12 -0800)]
Add a bunch more missing ENDs to assembler routines.

This isn't everything; I've missed out those x86 files that are

Change-Id: Idb7bb1a68796d6c0b70ea2b5c3300e49da6c62d2

11 years agoMerge "Everyone has CLZ."
Elliott Hughes [Wed, 13 Feb 2013 23:10:19 +0000 (23:10 +0000)]
Merge "Everyone has CLZ."

11 years agoEveryone has CLZ.
Elliott Hughes [Wed, 13 Feb 2013 22:35:14 +0000 (14:35 -0800)]
Everyone has CLZ.

Even armv5 had CLZ.

Change-Id: I51bc8d1166d09940fd0d3f4c7717edf26977082c

11 years agoresolved conflicts for merge of 62727429 to master
Elliott Hughes [Wed, 13 Feb 2013 21:51:54 +0000 (13:51 -0800)]
resolved conflicts for merge of 62727429 to master

Change-Id: I8a3d167f3ef279a7c46cb8fb90c9477beff84d8e

11 years agoMerge "Update getnameinfo.c, remove dead code, and fix error reporting."
Elliott Hughes [Wed, 13 Feb 2013 21:15:05 +0000 (21:15 +0000)]
Merge "Update getnameinfo.c, remove dead code, and fix error reporting."

11 years agoUpdate getnameinfo.c, remove dead code, and fix error reporting.
Elliott Hughes [Wed, 13 Feb 2013 17:49:33 +0000 (09:49 -0800)]
Update getnameinfo.c, remove dead code, and fix error reporting.

Also add a unit test for the salen size checking.

Bug: 1889275
Change-Id: I8ec4107df9e2e9a8571e8915525249c6e44b98ad

11 years agoam f659b3c9: Merge "Add a test that getaddrinfo works when hints are NULL."
Elliott Hughes [Wed, 13 Feb 2013 17:18:45 +0000 (09:18 -0800)]
am f659b3c9: Merge "Add a test that getaddrinfo works when hints are NULL."

# Via Elliott Hughes (1) and Gerrit Code Review (1)
* commit 'f659b3c90d8b55a44945af807364a5df0475bd0e':
  Add a test that getaddrinfo works when hints are NULL.