OSDN Git Service

android-x86/bionic.git
11 years agoam 48c632a3: Merge "[MIPS] Set DT_DEBUG dyntab entry if it is writable"
Elliott Hughes [Mon, 14 Jan 2013 17:46:19 +0000 (09:46 -0800)]
am 48c632a3: Merge "[MIPS] Set DT_DEBUG dyntab entry if it is writable"

* commit '48c632a381b10996ec72a53cc95b009b06785d09':
  [MIPS] Set DT_DEBUG dyntab entry if it is writable

11 years agoMerge "[MIPS] Set DT_DEBUG dyntab entry if it is writable"
Elliott Hughes [Mon, 14 Jan 2013 17:31:04 +0000 (09:31 -0800)]
Merge "[MIPS] Set DT_DEBUG dyntab entry if it is writable"

11 years ago[MIPS] Set DT_DEBUG dyntab entry if it is writable
Chris Dearman [Fri, 11 Jan 2013 23:32:20 +0000 (15:32 -0800)]
[MIPS] Set DT_DEBUG dyntab entry if it is writable

This is primarily for MIPS exutables that do not have a
DT_MIPS_RLD_MAP entry.

Change-Id: I4c221d92debcfed961eeee2515123f3fb21ec8e6
Signed-off-by: Chris Dearman <chris@mips.com>
11 years agoam 2c5153b0: libc: add getauxval()
Nick Kralevich [Sat, 12 Jan 2013 00:59:57 +0000 (16:59 -0800)]
am 2c5153b0: libc: add getauxval()

* commit '2c5153b043b44e9935a334ae9b2d5a4bc5258b40':
  libc: add getauxval()

11 years agolibc: add getauxval()
Nick Kralevich [Fri, 11 Jan 2013 22:43:05 +0000 (14:43 -0800)]
libc: add getauxval()

Add support for getauxval().  This method allows a program an easy way
to retrieve information from the kernel auxiliary vector, and will
hopefully replace other clumsy ways of accessing this same information.

This particular function was also added to glibc in glibc 2.16.
See the following URLs for more details.

  * http://lwn.net/Articles/519085/
  * http://www.gnu.org/software/libc/manual/html_node/Auxiliary-Vector.html

This change is a prerequisite for bug 7959813.

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

11 years agoam 69c89942: Merge "Add stack canaries / strcpy tests."
Nick Kralevich [Fri, 11 Jan 2013 19:26:54 +0000 (11:26 -0800)]
am 69c89942: Merge "Add stack canaries / strcpy tests."

* commit '69c89942db2ed472c71aa84903d0259cc84aa074':
  Add stack canaries / strcpy tests.

11 years agoMerge "Add stack canaries / strcpy tests."
Nick Kralevich [Fri, 11 Jan 2013 19:03:40 +0000 (11:03 -0800)]
Merge "Add stack canaries / strcpy tests."

11 years agoAdd stack canaries / strcpy tests.
Nick Kralevich [Fri, 11 Jan 2013 01:12:29 +0000 (17:12 -0800)]
Add stack canaries / strcpy tests.

Add a test to ensure that stack canaries are working
correctly. Since stack canaries aren't normally generated
on non-string functions, we have to enable stack-protector-all.

Add a test to ensure that an out of bounds strcpy generates
a runtime failure.

Change-Id: Id0d3e59fc4b9602da019e4d35c5c653e1a57fae4

11 years agoam a12c5445: Fix unused warnings in pthread.c
Wink Saville [Fri, 11 Jan 2013 18:12:12 +0000 (10:12 -0800)]
am a12c5445: Fix unused warnings in pthread.c

* commit 'a12c54454f3a6132988b68873903f6e9eed7f384':
  Fix unused warnings in pthread.c

11 years agoFix unused warnings in pthread.c
Wink Saville [Tue, 8 Jan 2013 23:15:45 +0000 (15:15 -0800)]
Fix unused warnings in pthread.c

Change-Id: I0287aadb825fd8cda29dc976bce55d75a1279fc5

11 years agoam bfde0b6f: Merge "glibc 2.15 treats errno as signed in strerror(3)."
Elliott Hughes [Fri, 11 Jan 2013 00:27:26 +0000 (16:27 -0800)]
am bfde0b6f: Merge "glibc 2.15 treats errno as signed in strerror(3)."

* commit 'bfde0b6fd9e5de545746ab963d3a05ed2a8014f6':
  glibc 2.15 treats errno as signed in strerror(3).

11 years agoMerge "glibc 2.15 treats errno as signed in strerror(3)."
Elliott Hughes [Fri, 11 Jan 2013 00:24:36 +0000 (16:24 -0800)]
Merge "glibc 2.15 treats errno as signed in strerror(3)."

11 years agoglibc 2.15 treats errno as signed in strerror(3).
Elliott Hughes [Fri, 11 Jan 2013 00:01:59 +0000 (16:01 -0800)]
glibc 2.15 treats errno as signed in strerror(3).

And the only reason I hadn't done that in bionic is because I wanted to behave
the same as glibc.

Change-Id: I2cf1bf0aac82a748cd6305a2cabbac0790058570

11 years agoam 0d3700d9: Merge "Only have one copy of the kernel_sigset_t hack, and add more...
Elliott Hughes [Thu, 10 Jan 2013 23:28:46 +0000 (15:28 -0800)]
am 0d3700d9: Merge "Only have one copy of the kernel_sigset_t hack, and add more tests."

* commit '0d3700d957debe841c385f66a8026ca8b3755815':
  Only have one copy of the kernel_sigset_t hack, and add more tests.

11 years agoMerge "Only have one copy of the kernel_sigset_t hack, and add more tests."
Elliott Hughes [Thu, 10 Jan 2013 23:12:46 +0000 (15:12 -0800)]
Merge "Only have one copy of the kernel_sigset_t hack, and add more tests."

11 years agoOnly have one copy of the kernel_sigset_t hack, and add more tests.
Elliott Hughes [Thu, 10 Jan 2013 22:42:14 +0000 (14:42 -0800)]
Only have one copy of the kernel_sigset_t hack, and add more tests.

Change-Id: I377522fcba6fb4b5fd2754ab15b091014bd7c16f

11 years agoam 2bbb8fac: Merge "Add signalfd call to bionic"
Elliott Hughes [Thu, 10 Jan 2013 21:30:16 +0000 (13:30 -0800)]
am 2bbb8fac: Merge "Add signalfd call to bionic"

* commit '2bbb8fac61e482dd96386620cc6f7f193e9c6840':
  Add signalfd call to bionic

11 years agoMerge "Add signalfd call to bionic"
Elliott Hughes [Thu, 10 Jan 2013 21:17:26 +0000 (13:17 -0800)]
Merge "Add signalfd call to bionic"

11 years agoAdd signalfd call to bionic
Rom Lemarchand [Wed, 9 Jan 2013 23:46:06 +0000 (15:46 -0800)]
Add signalfd call to bionic

Add signalfd() call to bionic.

Adding the signalfd call was done in 3 steps:
- add signalfd4 system call (function name and syscall
  number) to libc/SYSCALLS.TXT
- generate all necessary headers by calling
  libc/tools/gensyscalls.py. This patch is adding
  the generated files since the build system
  does not call gensyscalls.py.
- create the signalfd wrapper in signalfd.cpp and add
  the function prototype to sys/signalfd.h

(cherry-pick of 0c11611c11f4dc1b6d43587b72c3ccbe8c51a51c, modified to
work with older versions of GCC still in use on some branches.)

Change-Id: I4c6c3f12199559af8be63f93a5336851b7e63355

11 years agoam 364d9ee6: Merge "Don\'t test GNU-style ELF hashes on MIPS."
Elliott Hughes [Mon, 7 Jan 2013 23:00:28 +0000 (15:00 -0800)]
am 364d9ee6: Merge "Don\'t test GNU-style ELF hashes on MIPS."

* commit '364d9ee62f583bca795a2b40f71a04e272c80389':
  Don't test GNU-style ELF hashes on MIPS.

11 years agoMerge "Don't test GNU-style ELF hashes on MIPS."
Elliott Hughes [Mon, 7 Jan 2013 22:46:13 +0000 (14:46 -0800)]
Merge "Don't test GNU-style ELF hashes on MIPS."

11 years agoDon't test GNU-style ELF hashes on MIPS.
Elliott Hughes [Mon, 7 Jan 2013 22:18:22 +0000 (14:18 -0800)]
Don't test GNU-style ELF hashes on MIPS.

The MIPS toolchain can't generate them because they're incompatible
with the MIPS ABI (which requires .dynsym match the GOT, while GNU-style
requires .dynsym to be sorted by hash code), so there's nothing to test.

Change-Id: I2220f452fe6fe595ec1312544cc741dd390a36a5

11 years agoam 7e22db03: Merge "Fix an off-by-one error in the sigset_t function error handling."
Elliott Hughes [Mon, 7 Jan 2013 22:21:26 +0000 (14:21 -0800)]
am 7e22db03: Merge "Fix an off-by-one error in the sigset_t function error handling."

* commit '7e22db037e6d9ab117bf5d50c7aca85fe74941a0':
  Fix an off-by-one error in the sigset_t function error handling.

11 years agoMerge "Fix an off-by-one error in the sigset_t function error handling."
Elliott Hughes [Mon, 7 Jan 2013 22:11:43 +0000 (14:11 -0800)]
Merge "Fix an off-by-one error in the sigset_t function error handling."

11 years agoFix an off-by-one error in the sigset_t function error handling.
Elliott Hughes [Mon, 7 Jan 2013 21:58:49 +0000 (13:58 -0800)]
Fix an off-by-one error in the sigset_t function error handling.

Spotted while running the tests on MIPS, where sigset_t is
actually large enough. The bits in sigset_t are used such that
signal 1 is represented by bit 0, so the range of signals is
actually [1, 8*sizeof(sigset_t)]; it seems clearer to reword
the code in terms of valid bit offsets [0, 8*sizeof(sigset_t)),
which leads to the usual bounds checking idiom.

Change-Id: Id899c288e15ff71c85dd2fd33c47f8e97aa1956f

11 years agoam 26c5b2d4: Merge "[MIPS] Rewrite fenv.h for Android"
Elliott Hughes [Mon, 7 Jan 2013 21:48:55 +0000 (13:48 -0800)]
am 26c5b2d4: Merge "[MIPS] Rewrite fenv.h for Android"

* commit '26c5b2d460e3b2595eb7f0605edcd02753a13594':
  [MIPS] Rewrite fenv.h for Android

11 years agoMerge "[MIPS] Rewrite fenv.h for Android"
Elliott Hughes [Mon, 7 Jan 2013 21:30:58 +0000 (13:30 -0800)]
Merge "[MIPS] Rewrite fenv.h for Android"

11 years ago[MIPS] Rewrite fenv.h for Android
Raghu Gandham [Sat, 5 Jan 2013 00:29:14 +0000 (16:29 -0800)]
[MIPS] Rewrite fenv.h for Android

Change-Id: I4d1e2f0b37b587426ccc9f26c525ec0d36637c7d

11 years agoam 63dc5927: Merge "Add AF_CAN and PF_CAN (and other missing families)."
Elliott Hughes [Fri, 4 Jan 2013 00:59:39 +0000 (16:59 -0800)]
am 63dc5927: Merge "Add AF_CAN and PF_CAN (and other missing families)."

* commit '63dc592789e386ba2cd4e748090ba71d449a1e7c':
  Add AF_CAN and PF_CAN (and other missing families).

11 years agoMerge "Add AF_CAN and PF_CAN (and other missing families)."
Elliott Hughes [Fri, 4 Jan 2013 00:55:30 +0000 (16:55 -0800)]
Merge "Add AF_CAN and PF_CAN (and other missing families)."

11 years agoam f0036944: Merge "Fix debug malloc."
Elliott Hughes [Fri, 4 Jan 2013 00:42:42 +0000 (16:42 -0800)]
am f0036944: Merge "Fix debug malloc."

* commit 'f0036944a13a76dddda70347032128d4a27081d6':
  Fix debug malloc.

11 years agoAdd AF_CAN and PF_CAN (and other missing families).
Elliott Hughes [Fri, 4 Jan 2013 00:25:47 +0000 (16:25 -0800)]
Add AF_CAN and PF_CAN (and other missing families).

Change-Id: I2c183a6f5f7a7e81e87dad85d8c9aff9c43ed33a

11 years agoMerge "Fix debug malloc."
Elliott Hughes [Fri, 4 Jan 2013 00:20:01 +0000 (16:20 -0800)]
Merge "Fix debug malloc."

11 years agoFix debug malloc.
Elliott Hughes [Thu, 3 Jan 2013 23:44:03 +0000 (15:44 -0800)]
Fix debug malloc.

...which has been broken since the linker data structures went read-only.

Bug: 7941716
Change-Id: If28f6bac0fcb13e371e4d85b064544f561c8d692

11 years agoam b1b53177: Merge "sysconf.c was renamed to sysconf.cpp (and modified)..."
Elliott Hughes [Thu, 3 Jan 2013 20:04:48 +0000 (12:04 -0800)]
am b1b53177: Merge "sysconf.c was renamed to sysconf.cpp (and modified)..."

* commit 'b1b5317799a34ac9e93f568af82952e52a9e9a13':
  sysconf.c was renamed to sysconf.cpp (and modified)...

11 years agoMerge "sysconf.c was renamed to sysconf.cpp (and modified)..."
Elliott Hughes [Thu, 3 Jan 2013 19:54:56 +0000 (11:54 -0800)]
Merge "sysconf.c was renamed to sysconf.cpp (and modified)..."

11 years agosysconf.c was renamed to sysconf.cpp (and modified)...
Elliott Hughes [Thu, 3 Jan 2013 19:53:35 +0000 (11:53 -0800)]
sysconf.c was renamed to sysconf.cpp (and modified)...

...but sysconf.c still lingers on due to some git/repo accident. Kill it.

Change-Id: Iae354ecb21abf03a3f718cc45cfdddb7a9347778

11 years agoam fb62558b: Merge "Define _POSIX_MONOTONIC_CLOCK and implement sysconf(_SC_MONOTONIC...
Elliott Hughes [Wed, 2 Jan 2013 23:55:42 +0000 (15:55 -0800)]
am fb62558b: Merge "Define _POSIX_MONOTONIC_CLOCK and implement sysconf(_SC_MONOTONIC_CLOCK)."

* commit 'fb62558bb4c25c8f71e0b949ba8552c674578674':
  Define _POSIX_MONOTONIC_CLOCK and implement sysconf(_SC_MONOTONIC_CLOCK).

11 years agoMerge "Define _POSIX_MONOTONIC_CLOCK and implement sysconf(_SC_MONOTONIC_CLOCK)."
Elliott Hughes [Wed, 2 Jan 2013 23:51:15 +0000 (15:51 -0800)]
Merge "Define _POSIX_MONOTONIC_CLOCK and implement sysconf(_SC_MONOTONIC_CLOCK)."

11 years agoDefine _POSIX_MONOTONIC_CLOCK and implement sysconf(_SC_MONOTONIC_CLOCK).
Elliott Hughes [Wed, 2 Jan 2013 22:23:43 +0000 (14:23 -0800)]
Define _POSIX_MONOTONIC_CLOCK and implement sysconf(_SC_MONOTONIC_CLOCK).

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

11 years agoam 918d776f: Merge "Support System.loadLibrary for libraries with transitive dependen...
Elliott Hughes [Sat, 22 Dec 2012 01:54:07 +0000 (17:54 -0800)]
am 918d776f: Merge "Support System.loadLibrary for libraries with transitive dependencies."

* commit '918d776f7edf1a9c4209ada4c2401ef0ea0bf660':
  Support System.loadLibrary for libraries with transitive dependencies.

11 years agoMerge "Support System.loadLibrary for libraries with transitive dependencies."
Elliott Hughes [Sat, 22 Dec 2012 01:46:22 +0000 (17:46 -0800)]
Merge "Support System.loadLibrary for libraries with transitive dependencies."

11 years agoam f6524f8b: Merge "Fix format_number."
Elliott Hughes [Fri, 21 Dec 2012 18:04:27 +0000 (10:04 -0800)]
am f6524f8b: Merge "Fix format_number."

* commit 'f6524f8bda87f7d25dad7bed7091a93f3de58728':
  Fix format_number.

11 years agoMerge "Fix format_number."
Elliott Hughes [Fri, 21 Dec 2012 03:08:17 +0000 (19:08 -0800)]
Merge "Fix format_number."

11 years agoFix format_number.
Elliott Hughes [Fri, 21 Dec 2012 02:59:05 +0000 (18:59 -0800)]
Fix format_number.

I broke this the other day when silencing x86 gcc warnings.

Bug: 7904160
Change-Id: I8e60cc1f8cbaff95248c8738d84e515413d839e4

11 years agoSupport System.loadLibrary for libraries with transitive dependencies.
Elliott Hughes [Thu, 20 Dec 2012 22:42:14 +0000 (14:42 -0800)]
Support System.loadLibrary for libraries with transitive dependencies.

Also fix the FLAG_ERROR annoyance --- it's not helpful to cache failures.

Bug: 7896159
Bug: http://code.google.com/p/android/issues/detail?id=34416
Bug: http://code.google.com/p/android/issues/detail?id=22143
Change-Id: I60f235edb4ea4756e1f7ce56f7739f18e8a50789

11 years agoam 4b582142: Merge "Fix x86 dynamic linker build."
Elliott Hughes [Wed, 19 Dec 2012 17:46:32 +0000 (09:46 -0800)]
am 4b582142: Merge "Fix x86 dynamic linker build."

* commit '4b58214205d3d29dbdfed49964010235ef3f0403':
  Fix x86 dynamic linker build.

11 years agoam a4ebdcf5: Merge "Check for unknown flags passed to dlopen(3)."
Elliott Hughes [Wed, 19 Dec 2012 03:41:24 +0000 (19:41 -0800)]
am a4ebdcf5: Merge "Check for unknown flags passed to dlopen(3)."

* commit 'a4ebdcf5bd20072f9a0e48c22fff401acda43e1e':
  Check for unknown flags passed to dlopen(3).

11 years agoMerge "Fix x86 dynamic linker build."
Elliott Hughes [Wed, 19 Dec 2012 02:16:09 +0000 (18:16 -0800)]
Merge "Fix x86 dynamic linker build."

11 years agoFix x86 dynamic linker build.
Elliott Hughes [Wed, 19 Dec 2012 02:13:19 +0000 (18:13 -0800)]
Fix x86 dynamic linker build.

Change-Id: Ia9fc6342e3d409de86dcd187c7402e8ac2ae96c8

11 years agoMerge "Check for unknown flags passed to dlopen(3)."
Elliott Hughes [Wed, 19 Dec 2012 00:38:37 +0000 (16:38 -0800)]
Merge "Check for unknown flags passed to dlopen(3)."

11 years agoCheck for unknown flags passed to dlopen(3).
Elliott Hughes [Tue, 18 Dec 2012 23:57:55 +0000 (15:57 -0800)]
Check for unknown flags passed to dlopen(3).

Change-Id: I56f4aab0e5a1487bc32d2c4d231e8bd15c4ac8da

11 years agoam 4c4b08a3: Merge "Fix <endian.h> and <sys/endian.h>."
Elliott Hughes [Wed, 12 Dec 2012 01:27:41 +0000 (17:27 -0800)]
am 4c4b08a3: Merge "Fix <endian.h> and <sys/endian.h>."

* commit '4c4b08a32eace878e4780ee340a57c43be950159':
  Fix <endian.h> and <sys/endian.h>.

11 years agoMerge "Fix <endian.h> and <sys/endian.h>."
Elliott Hughes [Wed, 12 Dec 2012 01:18:58 +0000 (17:18 -0800)]
Merge "Fix <endian.h> and <sys/endian.h>."

11 years agoFix <endian.h> and <sys/endian.h>.
Elliott Hughes [Wed, 12 Dec 2012 00:14:54 +0000 (16:14 -0800)]
Fix <endian.h> and <sys/endian.h>.

Previously we'd been relying on getting the machine-specific <endian.h>
instead of the top-level <endian.h>, and <sys/endian.h> was basically broken.
Now, with this patch and the previous patch we should have <endian.h>
and <sys/endian.h> behaving the same. This is basically how NetBSD's endian.h
works, and was probably how ours was originally intended to work.

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

11 years agoam 0521ff82: Merge "Use pthread_kill() in raise()"
Elliott Hughes [Mon, 10 Dec 2012 19:40:04 +0000 (11:40 -0800)]
am 0521ff82: Merge "Use pthread_kill() in raise()"

* commit '0521ff8234cafcc61060961b2f856fcf4dae1e7d':
  Use pthread_kill() in raise()

11 years agoMerge "Use pthread_kill() in raise()"
Elliott Hughes [Mon, 10 Dec 2012 19:21:42 +0000 (11:21 -0800)]
Merge "Use pthread_kill() in raise()"

11 years agoUse pthread_kill() in raise()
Chris Dearman [Sat, 8 Dec 2012 02:41:10 +0000 (18:41 -0800)]
Use pthread_kill() in raise()

raise() should use pthread_kill() in a pthreads environment.
For bionic this means it should always be used.

Change-Id: Ic679272b664d2b8a7068b628fb83a9f7395c441f

11 years agoam 6fcf1770: Merge "Added audit.h from the kernel."
Geremy Condra [Fri, 7 Dec 2012 22:32:21 +0000 (14:32 -0800)]
am 6fcf1770: Merge "Added audit.h from the kernel."

* commit '6fcf1770e5829b8439b7e7ed7efb39ee5d425e23':
  Added audit.h from the kernel.

11 years agoMerge "Added audit.h from the kernel."
Geremy Condra [Fri, 7 Dec 2012 22:21:16 +0000 (14:21 -0800)]
Merge "Added audit.h from the kernel."

11 years agoAdded audit.h from the kernel.
Geremy Condra [Thu, 6 Dec 2012 21:02:46 +0000 (13:02 -0800)]
Added audit.h from the kernel.

Just followed the recipe in I1ca996541d05b0d5927ab828a6ce49c09877ea01

Change-Id: I5713d9ce5ff62e310a694ecfbe21cad6577bcb4d

11 years agoam c8354f50: Merge "FORTIFY_SOURCE: remove memcpy overlap checks"
Nick Kralevich [Fri, 7 Dec 2012 20:19:08 +0000 (12:19 -0800)]
am c8354f50: Merge "FORTIFY_SOURCE: remove memcpy overlap checks"

* commit 'c8354f501ef9a6d3430de27386bf0b42c30981d9':
  FORTIFY_SOURCE: remove memcpy overlap checks

11 years agoam 5dfdb701: Merge "FORTIFY_SOURCE: fix up previous commit"
Nick Kralevich [Fri, 7 Dec 2012 20:18:58 +0000 (12:18 -0800)]
am 5dfdb701: Merge "FORTIFY_SOURCE: fix up previous commit"

* commit '5dfdb701292c53e74e319f277d808e598389c8e7':
  FORTIFY_SOURCE: fix up previous commit

11 years agoMerge "FORTIFY_SOURCE: remove memcpy overlap checks"
Nick Kralevich [Fri, 7 Dec 2012 18:10:49 +0000 (10:10 -0800)]
Merge "FORTIFY_SOURCE: remove memcpy overlap checks"

11 years agoFORTIFY_SOURCE: remove memcpy overlap checks
Nick Kralevich [Fri, 7 Dec 2012 17:57:01 +0000 (09:57 -0800)]
FORTIFY_SOURCE: remove memcpy overlap checks

These checks haven't been as useful as I hoped, and it's
causing a false positive finding.  Remove the overlap
compile time checks.

Change-Id: I5d45dde10ae4663d728230d41fa904adf20acaea

11 years agoMerge "FORTIFY_SOURCE: fix up previous commit"
Nick Kralevich [Thu, 6 Dec 2012 22:48:24 +0000 (14:48 -0800)]
Merge "FORTIFY_SOURCE: fix up previous commit"

11 years agoFORTIFY_SOURCE: fix up previous commit
Nick Kralevich [Wed, 5 Dec 2012 23:26:54 +0000 (15:26 -0800)]
FORTIFY_SOURCE: fix up previous commit

I forgot two files in 326ea5413d18ea019cd1bda415ce428f7bdcafd2.

Change-Id: I30430f65bfafad4274193fc5b973959eac0791a7

11 years agoam 7a34ed2b: Merge "clean up FORTIFY_SOURCE handling."
Nick Kralevich [Tue, 4 Dec 2012 23:52:53 +0000 (15:52 -0800)]
am 7a34ed2b: Merge "clean up FORTIFY_SOURCE handling."

* commit '7a34ed2bb36fcbe6967d8b670f4d70ada1dcef49':
  clean up FORTIFY_SOURCE handling.

11 years agoMerge "clean up FORTIFY_SOURCE handling."
Nick Kralevich [Tue, 4 Dec 2012 23:44:22 +0000 (15:44 -0800)]
Merge "clean up FORTIFY_SOURCE handling."

11 years agoclean up FORTIFY_SOURCE handling.
Nick Kralevich [Tue, 4 Dec 2012 21:55:19 +0000 (13:55 -0800)]
clean up FORTIFY_SOURCE handling.

Avoid duplicating huge chunks of code.

Change-Id: Id6145cdfce781c5ffba2abaaa79681d25a7ab28f

11 years agoam db79e827: Merge "FORTIFY_SOURCE: fortify strrchr"
Nick Kralevich [Tue, 4 Dec 2012 19:43:30 +0000 (11:43 -0800)]
am db79e827: Merge "FORTIFY_SOURCE: fortify strrchr"

* commit 'db79e827ebcb077ebaa6d6c96915c5bffba9a0ca':
  FORTIFY_SOURCE: fortify strrchr

11 years agoMerge "FORTIFY_SOURCE: fortify strrchr"
Nick Kralevich [Tue, 4 Dec 2012 19:30:18 +0000 (11:30 -0800)]
Merge "FORTIFY_SOURCE: fortify strrchr"

11 years agoFORTIFY_SOURCE: fortify strrchr
Nick Kralevich [Mon, 3 Dec 2012 18:36:13 +0000 (10:36 -0800)]
FORTIFY_SOURCE: fortify strrchr

This change compliments 049e58369c37fdeacd0380a6bf1e078d9baf819f

Change-Id: I27d015d70a520713c7472558a3c427f546d36ee4

11 years agoam 60fb6833: Merge "mmap: Remove madvise() workaround"
Elliott Hughes [Mon, 3 Dec 2012 17:36:47 +0000 (09:36 -0800)]
am 60fb6833: Merge "mmap: Remove madvise() workaround"

* commit '60fb68338b7541b6022fc343857b90c088c399cd':
  mmap: Remove madvise() workaround

11 years agoMerge "mmap: Remove madvise() workaround"
Elliott Hughes [Mon, 3 Dec 2012 17:13:20 +0000 (09:13 -0800)]
Merge "mmap: Remove madvise() workaround"

11 years agoam 46d64ed2: Merge "Add argument checking to sigemptyset(3) and friends."
Elliott Hughes [Mon, 3 Dec 2012 15:53:28 +0000 (07:53 -0800)]
am 46d64ed2: Merge "Add argument checking to sigemptyset(3) and friends."

* commit '46d64ed2e5cf8e37d53b116f2281b4a39cc4f288':
  Add argument checking to sigemptyset(3) and friends.

11 years agoMerge "Add argument checking to sigemptyset(3) and friends."
Elliott Hughes [Mon, 3 Dec 2012 15:45:45 +0000 (07:45 -0800)]
Merge "Add argument checking to sigemptyset(3) and friends."

11 years agoam 3acc908c: Merge "FORTIFY_SOURCE: fortify strchr"
Nick Kralevich [Sat, 1 Dec 2012 01:13:20 +0000 (17:13 -0800)]
am 3acc908c: Merge "FORTIFY_SOURCE: fortify strchr"

* commit '3acc908c79aa9cba975861fa23fa2672733b5d5d':
  FORTIFY_SOURCE: fortify strchr

11 years agoMerge "FORTIFY_SOURCE: fortify strchr"
Nick Kralevich [Sat, 1 Dec 2012 00:50:59 +0000 (16:50 -0800)]
Merge "FORTIFY_SOURCE: fortify strchr"

11 years agoAdd argument checking to sigemptyset(3) and friends.
Elliott Hughes [Sat, 1 Dec 2012 00:40:55 +0000 (16:40 -0800)]
Add argument checking to sigemptyset(3) and friends.

You could argue that this is hurting people smart enough to have manually
allocated a large-enough sigset_t, but those people are smart enough to
implement their own sigset functions too.

I wonder whether our least unpleasant way out of our self-inflicted 32-bit
cesspool is to have equivalents of _FILE_OFFSET_BITS such as _SIGSET_T_BITS,
so calling code could opt in? You'd have to be careful passing sigset_t
arguments between code compiled with different options.

Bug: 5828899
Change-Id: I0ae60ee8544835b069a2b20568f38ec142e0737b

11 years agoFORTIFY_SOURCE: fortify strchr
Nick Kralevich [Fri, 30 Nov 2012 23:15:58 +0000 (15:15 -0800)]
FORTIFY_SOURCE: fortify strchr

Detect when strchr reads off the end of a buffer.

Change-Id: I0e952eedcff5c36d646a9c3bc4e1337b959224f2

11 years agoam 16c61f08: Merge "Reduce the exposure of the __set_errno implementation detail."
Elliott Hughes [Fri, 30 Nov 2012 22:45:23 +0000 (14:45 -0800)]
am 16c61f08: Merge "Reduce the exposure of the __set_errno implementation detail."

* commit '16c61f088524756ef0fa1b030719f6745eaef2db':
  Reduce the exposure of the __set_errno implementation detail.

11 years agoMerge "Reduce the exposure of the __set_errno implementation detail."
Elliott Hughes [Fri, 30 Nov 2012 22:41:07 +0000 (14:41 -0800)]
Merge "Reduce the exposure of the __set_errno implementation detail."

11 years agoReduce the exposure of the __set_errno implementation detail.
Elliott Hughes [Fri, 30 Nov 2012 19:58:57 +0000 (11:58 -0800)]
Reduce the exposure of the __set_errno implementation detail.

Change-Id: I395e1b46a9491e34fc53e71853e932ea90b3d1cc

11 years agoam 97b70b2b: Merge "Replace .S version of x86 crtfiles with .c version"
Elliott Hughes [Fri, 30 Nov 2012 18:13:57 +0000 (10:13 -0800)]
am 97b70b2b: Merge "Replace .S version of x86 crtfiles with .c version"

* commit '97b70b2bda47af46adf58dfde61050357114aa1f':
  Replace .S version of x86 crtfiles with .c version

11 years agoMerge "Replace .S version of x86 crtfiles with .c version"
Elliott Hughes [Fri, 30 Nov 2012 18:06:53 +0000 (10:06 -0800)]
Merge "Replace .S version of x86 crtfiles with .c version"

11 years agoReplace .S version of x86 crtfiles with .c version
Pavel Chupin [Wed, 28 Nov 2012 14:31:14 +0000 (18:31 +0400)]
Replace .S version of x86 crtfiles with .c version

This patch replaces .S versions of x86 crtfiles with .c which are much
easier to support. Some of the files are matching .c version of Arm
crtfiles. x86 files required some cleanup anyway and this cleanup actually
led to matching Arm files.

I didn't change anything to share the same crt*.c between x86 and Arm. I
prefer to keep them separate for a while in case any change is required
for one of the arch, but it's good thing to do in the following patches.

Change-Id: Ibcf033f8d15aa5b10c05c879fd4b79a64dfc70f3
Signed-off-by: Pavel Chupin <pavel.v.chupin@intel.com>
11 years agoam 07c0b73a: Merge "Remove (near-)duplicate definitions of size_t and ssize_t."
Elliott Hughes [Fri, 30 Nov 2012 03:43:50 +0000 (19:43 -0800)]
am 07c0b73a: Merge "Remove (near-)duplicate definitions of size_t and ssize_t."

* commit '07c0b73a7fc9214e50fc6b9a15a06aeef0506e0f':
  Remove (near-)duplicate definitions of size_t and ssize_t.

11 years agoMerge "Remove (near-)duplicate definitions of size_t and ssize_t."
Elliott Hughes [Fri, 30 Nov 2012 03:33:01 +0000 (19:33 -0800)]
Merge "Remove (near-)duplicate definitions of size_t and ssize_t."

11 years agoRemove (near-)duplicate definitions of size_t and ssize_t.
Elliott Hughes [Fri, 30 Nov 2012 01:25:23 +0000 (17:25 -0800)]
Remove (near-)duplicate definitions of size_t and ssize_t.

The near duplicates upset fussier compilers that insist that
typedefs be exactly the same, but the fix isn't to make all
copies identical...

Change-Id: Icfdace41726f36ec33c9ae919dbb5a54d3529cc9

11 years agoam 50e62e40: Merge "Bug: __WINT_TYPE__ and wint_t reference to different types"
Elliott Hughes [Thu, 29 Nov 2012 23:58:13 +0000 (15:58 -0800)]
am 50e62e40: Merge "Bug: __WINT_TYPE__ and wint_t reference to different types"

* commit '50e62e4051c14d7d2a5e07ebe66afd2a81693a26':
  Bug: __WINT_TYPE__ and wint_t reference to different types

11 years agoMerge "Bug: __WINT_TYPE__ and wint_t reference to different types"
Elliott Hughes [Thu, 29 Nov 2012 23:51:57 +0000 (15:51 -0800)]
Merge "Bug: __WINT_TYPE__ and wint_t reference to different types"

11 years agoReconcile with jb-mr1.1-release - do not merge
The Android Open Source Project [Thu, 29 Nov 2012 23:40:29 +0000 (15:40 -0800)]
Reconcile with jb-mr1.1-release - do not merge

Change-Id: Ib3c4bb83421360add15219251a389d25f1211497

11 years agoam 99ea84b1: Merge "[MIPS] Fix the MIPS getsid system call"
Elliott Hughes [Thu, 29 Nov 2012 22:51:57 +0000 (14:51 -0800)]
am 99ea84b1: Merge "[MIPS] Fix the MIPS getsid system call"

* commit '99ea84b12dd3ebebbbd527b8748f0d74bb1dfc0d':
  [MIPS] Fix the MIPS getsid system call

11 years agoam 5d4b8421: Merge "Verify architecture neutral syscall numbers"
Elliott Hughes [Thu, 29 Nov 2012 22:51:56 +0000 (14:51 -0800)]
am 5d4b8421: Merge "Verify architecture neutral syscall numbers"

* commit '5d4b8421b3d040e8c2bdb83c8adb2752eab7b4b6':
  Verify architecture neutral syscall numbers

11 years agoMerge "[MIPS] Fix the MIPS getsid system call"
Elliott Hughes [Thu, 29 Nov 2012 22:37:13 +0000 (14:37 -0800)]
Merge "[MIPS] Fix the MIPS getsid system call"

11 years agoam 78114220: Merge "Define DEFFILEMODE and friends"
Elliott Hughes [Thu, 29 Nov 2012 22:37:06 +0000 (14:37 -0800)]
am 78114220: Merge "Define DEFFILEMODE and friends"

* commit '781142208033e72b3773bcfab83cddf5ca34c9b2':
  Define DEFFILEMODE and friends

11 years agoMerge "Verify architecture neutral syscall numbers"
Elliott Hughes [Thu, 29 Nov 2012 22:34:19 +0000 (14:34 -0800)]
Merge "Verify architecture neutral syscall numbers"

11 years agoMerge "Define DEFFILEMODE and friends"
Elliott Hughes [Thu, 29 Nov 2012 22:31:19 +0000 (14:31 -0800)]
Merge "Define DEFFILEMODE and friends"

11 years agoam 940e4c9d: am f61e5020: msm_mdp: Update header for 4 layer support
Naseer Ahmed [Thu, 29 Nov 2012 22:28:29 +0000 (14:28 -0800)]
am 940e4c9d: am f61e5020: msm_mdp: Update header for 4 layer support

* commit '940e4c9d9218ee183c8eb522beb9838c0482084b':
  msm_mdp: Update header for 4 layer support