OSDN Git Service

android-x86/bionic.git
13 years agosigsetmask.c was not processing the "mask" argument.
Bruce Beare [Sat, 4 Dec 2010 00:48:47 +0000 (16:48 -0800)]
sigsetmask.c was not processing the "mask" argument.

Orig-Change-Id: I79b898ea5b882e8c0564e25466e827a9bedda6e8
Author: yhe19 <yunan.he@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
13 years agoAdd defines for CAIF support
Bruce Beare [Sat, 4 Dec 2010 00:14:59 +0000 (16:14 -0800)]
Add defines for CAIF support

Orig-Change-Id: I32d2e02814f1965ebdcecb804e947ff303dbe230
Author: Mark Gross <mark.gross@intel.com>
Signed-off-by: Bruce Beare <brucex.j.beare@intel.com>
13 years agoRemove extra/unneeded copy of fenv.h
Bruce Beare [Mon, 11 Oct 2010 19:01:14 +0000 (12:01 -0700)]
Remove extra/unneeded copy of fenv.h

Orig-Change-Id: I80da2521c50df7e8967af48164cc834abf499c50
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
13 years agoUse proper variable typing
Bruce Beare [Mon, 11 Oct 2010 19:08:07 +0000 (12:08 -0700)]
Use proper variable typing

Orig-Change-Id: If5c33d90b33f538448ac12e7bee94b4b9173d39c
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
13 years agoUpdate ATOM string routines to latest
Bruce Beare [Tue, 31 May 2011 16:56:55 +0000 (09:56 -0700)]
Update ATOM string routines to latest

Orig-Change-Id: I22a600e7f172681cfd38ff73a64e3fd07b284959
Signed-off-by: Lu, Hongjiu <hongjiu.lu@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
13 years agoFix undefined reference to dl_iterate_phdr for x86
Bruce Beare [Thu, 8 Jul 2010 21:47:50 +0000 (14:47 -0700)]
Fix undefined reference to dl_iterate_phdr for x86

Orig-Change-Id: I22410b27939e8f54da932d7a1104102550c4685f
Signed-off-by: Bruce Beare <brucex.j.beare@intel.com>
13 years agoFix missing NL
Bruce Beare [Fri, 25 Jun 2010 16:02:10 +0000 (09:02 -0700)]
Fix missing NL

Orig-Change-Id: Ic210fe9f740b9a8235a66d479ad4eddc869998bb
Signed-off-by: Bruce Beare <brucex.j.beare@intel.com>
13 years agoptrace.c Fix source file format to unix from dos
Bruce Beare [Tue, 31 May 2011 17:26:08 +0000 (10:26 -0700)]
ptrace.c Fix source file format to unix from dos

Orig-Change-Id: Ia771b457eec7f9575d4631fb1c12a7062ebcc7de
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
13 years agoDO NOT MERGE: Update USB accessory kernel header to include serial number support
Mike Lockwood [Mon, 14 Mar 2011 21:50:44 +0000 (17:50 -0400)]
DO NOT MERGE: Update USB accessory kernel header to include serial number support

Change-Id: I61d889b107bd5e052ebac393883b87dac730ea6a
Signed-off-by: Mike Lockwood <lockwood@android.com>
13 years agoDO NOT MERGE: linux/usb/f_accessory.h: Update USB accessory kernel header
Mike Lockwood [Thu, 10 Mar 2011 02:57:00 +0000 (21:57 -0500)]
DO NOT MERGE: linux/usb/f_accessory.h: Update USB accessory kernel header

For bugs b/4079236, b/4073248 and b/4080288

Change-Id: Id9cdbe95d7dd892bf38e16e7da505ee0eae26b99
Signed-off-by: Mike Lockwood <lockwood@android.com>
13 years agoAdd linux/usb/f_accessory.h header for USB accessory driver DO NOT MERGE
Mike Lockwood [Tue, 15 Feb 2011 14:20:21 +0000 (09:20 -0500)]
Add linux/usb/f_accessory.h header for USB accessory driver DO NOT MERGE

Change-Id: I972d28065ee7e77e93699512310fcd6d5742ed0d
Signed-off-by: Mike Lockwood <lockwood@android.com>
13 years agoMerge "Only look up A records if the system has IPv4." into gingerbread
David Turner [Wed, 19 Jan 2011 01:32:02 +0000 (17:32 -0800)]
Merge "Only look up A records if the system has IPv4." into gingerbread

13 years agoOnly look up A records if the system has IPv4.
Lorenzo Colitti [Fri, 14 Jan 2011 20:26:05 +0000 (12:26 -0800)]
Only look up A records if the system has IPv4.

getaddrinfo only asks DNS for IPv6 addresses if the system
has IPv6 connectivity, but always asks for IPv4 addresses.
Don't ask for IPv4 addresses if there is no IPv4
connectivity.

Change-Id: Iefe9fcb006fabe60b4b11dd4653a7c4a406506f4

13 years agoBackport (simple cherry-pick) d33019030c1f0cddca557f9659e3c471bde0e6a9
Steinar H. Gunderson [Mon, 20 Dec 2010 10:48:07 +0000 (11:48 +0100)]
Backport (simple cherry-pick) d33019030c1f0cddca557f9659e3c471bde0e6a9
to gingerbread.

Implement RFC3484 policy table changes from draft-ietf-6man-rfc3484-revise-01.

The changes in a nutshell:

 - Handle v4-mapped as different from v4-compat (this was probably
   an existing bug in our code).
 - Add policy entries for ULA, above most everything else.
 - Put v4-compat, old-style IPv6 site-local and 6bone addresses
   way down in the preference table.

The rest is just shuffling numbers around (no actual changes to
priority).

13 years agoBackport (simple cherry-pick) 64b6c43379dba176659bc1313b6bb488ac94cfd6
Steinar H. Gunderson [Mon, 20 Dec 2010 10:33:31 +0000 (11:33 +0100)]
Backport (simple cherry-pick) 64b6c43379dba176659bc1313b6bb488ac94cfd6
to gingerbread.

Add a new #define IN6_IS_ADDR_ULA, for testing for Universal Local IPv6 Unicast addresses (ULAs). These replace the old site-local IPv6 addresses.

13 years agoBackport (simple cherry-pick) d1624add2b73ce8ff7826ce27b1d6d6e35bb83a6
Steinar H. Gunderson [Mon, 20 Dec 2010 10:15:33 +0000 (11:15 +0100)]
Backport (simple cherry-pick) d1624add2b73ce8ff7826ce27b1d6d6e35bb83a6
to gingerbread.

Don't treat private IPv4 addresses as being in a non-global scope. The effect of this change is essentially to prefer NATed IPv4 over 6to4.

13 years agoAdd pn544.h clean kernel header
Nick Pelly [Mon, 1 Nov 2010 20:49:19 +0000 (15:49 -0500)]
Add pn544.h clean kernel header

Allows pn544 hardware reset

Change-Id: I6d6d22b16c228f03a70a14a4655a41005761b5d6
Signed-off-by: Nick Pelly <npelly@google.com>
13 years agolibc: fix executable destruction support.
David 'Digit' Turner [Thu, 21 Oct 2010 02:16:50 +0000 (04:16 +0200)]
libc: fix executable destruction support.

This change allows an executable to call its destructor functions
(declared with __attribute__((destructor))) to be properly called
when it normally exits.

Note that this is different from calling the destructors of a shared
library when it is unloaded with dlclose() or through program exit,
which are already supported.

Bug: 3106500
Change-Id: I1412ef5407f13b613fc6cb6103e0a691dbee4b1a

13 years agolibc: fix typo in waitid() declaration.
David 'Digit' Turner [Wed, 13 Oct 2010 13:46:55 +0000 (15:46 +0200)]
libc: fix typo in waitid() declaration.

The implementation file uses the correct spelling.

Change-Id: I572e336f8695a9754267c8d2e0a67b1b69bacb06

13 years agoFix the build. Oops.
David 'Digit' Turner [Mon, 11 Oct 2010 13:27:39 +0000 (15:27 +0200)]
Fix the build. Oops.

(We remove the declaration for on_exit() from the C library headers,
so do the same for the C++ <cstdlib>)

Change-Id: I31a21d5643068cd160724908dd8156863a44d95a

13 years agoMerge "libc: tag missing functions in system headers." into gingerbread
David 'Digit' Turner [Mon, 11 Oct 2010 13:01:52 +0000 (06:01 -0700)]
Merge "libc: tag missing functions in system headers." into gingerbread

13 years agolibc: tag missing functions in system headers.
David 'Digit' Turner [Sat, 9 Oct 2010 15:56:55 +0000 (17:56 +0200)]
libc: tag missing functions in system headers.

This matches recent changes in the NDK header.
We enclose missing functions in #if 0 .. #endif blocks
with a clear "MISSING" in comments in order to locate
them later.

Change-Id: I87b3a62e777897e75c9243360fb0a82bcc53d9fb

13 years agolibc: optimize memmove() with memcpy() if possible.
David 'Digit' Turner [Thu, 7 Oct 2010 09:03:32 +0000 (11:03 +0200)]
libc: optimize memmove() with memcpy() if possible.

Change-Id: I90e578fdc82e427caee8fa4157ce3f8c6c99926d

13 years agoRevert "libc: memmove(): non-overlapping block optim."
Marco Nelissen [Tue, 28 Sep 2010 17:24:20 +0000 (10:24 -0700)]
Revert "libc: memmove(): non-overlapping block optim."

This reverts commit 80fba9a2fe4eacaabee99cf0bbead872c2792231,
which caused the system to not boot anymore, aborting with:
"java.lang.RuntimeException: Missing static main on com.android.server.SystemServer".

Change-Id: I745e0a23c728cccf5f95a3c7642d544478a4e57e

13 years agolibc: add <sys/eventfd.h> and corresponding implementations.
David 'Digit' Turner [Sun, 26 Sep 2010 20:29:14 +0000 (22:29 +0200)]
libc: add <sys/eventfd.h> and corresponding implementations.

Change-Id: Ide040884c456190226e580513099fdb8377e015b

13 years agolibc: Add missing waitid() implementation.
David 'Digit' Turner [Mon, 27 Sep 2010 15:30:33 +0000 (17:30 +0200)]
libc: Add missing waitid() implementation.

Change-Id: I312ee608dbf9249e4886a10d45d13e3cda8a9042

13 years agolibc: Add missing fdatasync() implementation
David 'Digit' Turner [Mon, 27 Sep 2010 15:28:38 +0000 (17:28 +0200)]
libc: Add missing fdatasync() implementation

Change-Id: I04bb655d77e414021e1f2a973329167ad76ca1c4

13 years agoMerge "libc: Add missing C++ guards to <pathconf.h>" into gingerbread
David 'Digit' Turner [Tue, 28 Sep 2010 07:15:23 +0000 (00:15 -0700)]
Merge "libc: Add missing C++ guards to <pathconf.h>" into gingerbread

13 years agoMerge "libc: memmove(): non-overlapping block optim." into gingerbread
David 'Digit' Turner [Tue, 28 Sep 2010 07:15:05 +0000 (00:15 -0700)]
Merge "libc: memmove(): non-overlapping block optim." into gingerbread

13 years agoMerge "libc: add missing O_CLOEXEC from <fcntl.h>" into gingerbread
David 'Digit' Turner [Tue, 28 Sep 2010 07:12:13 +0000 (00:12 -0700)]
Merge "libc: add missing O_CLOEXEC from <fcntl.h>" into gingerbread

13 years agoMerge "libc: Add missing pipe2() declaration and implementation." into gingerbread
David 'Digit' Turner [Tue, 28 Sep 2010 07:12:08 +0000 (00:12 -0700)]
Merge "libc: Add missing pipe2() declaration and implementation." into gingerbread

13 years agoMerge "libm: remove aliasing issue." into gingerbread
David 'Digit' Turner [Tue, 28 Sep 2010 07:11:58 +0000 (00:11 -0700)]
Merge "libm: remove aliasing issue." into gingerbread

13 years agolibm: remove aliasing issue.
David 'Digit' Turner [Sun, 26 Sep 2010 21:17:21 +0000 (23:17 +0200)]
libm: remove aliasing issue.

See http://code.google.com/p/android/issues/detail?id=6697
for details about this change.

Change-Id: I516f00c6f3bc99b22be51669e4573246bdd6e33d

13 years agolibc: remove C++ comments from public headers.
David 'Digit' Turner [Sun, 26 Sep 2010 21:00:36 +0000 (23:00 +0200)]
libc: remove C++ comments from public headers.

Change-Id: I4af84f912062cd2ff34711c25122fb323f20c032

13 years agolibc: memmove(): non-overlapping block optim.
David 'Digit' Turner [Sun, 26 Sep 2010 20:40:02 +0000 (22:40 +0200)]
libc: memmove(): non-overlapping block optim.

Change-Id: I5652f4f97ca59d95176443fc27c737ef76258183

13 years agolibc: add missing O_CLOEXEC from <fcntl.h>
David 'Digit' Turner [Sun, 26 Sep 2010 18:03:16 +0000 (20:03 +0200)]
libc: add missing O_CLOEXEC from <fcntl.h>

Change-Id: Ie7ad57898e67800a9fe92bb52589d67ec30e1cd9

13 years agolibc: Add missing pipe2() declaration and implementation.
David 'Digit' Turner [Mon, 27 Sep 2010 15:33:08 +0000 (17:33 +0200)]
libc: Add missing pipe2() declaration and implementation.

Change-Id: Iacb914bd6ac5adc60c5671e6fef680ede21f9b0c

13 years agolibc: Add missing C++ guards to <pathconf.h>
David 'Digit' Turner [Mon, 27 Sep 2010 15:27:14 +0000 (17:27 +0200)]
libc: Add missing C++ guards to <pathconf.h>

Change-Id: I94dad48678181d8b02431b1c1f5d507beafb5406

13 years agoUse a recursive lock for pthread_once. DO NOT MERGE.
Wink Saville [Wed, 22 Sep 2010 21:51:53 +0000 (14:51 -0700)]
Use a recursive lock for pthread_once. DO NOT MERGE.

Backport change I9fc8b790 from Master to Gingerbread

Change-Id: I5cf48fcd4efb7991ed82f87d9365c19655dc9b7f

13 years agoadd /vendor support
Brian Swetland [Sun, 19 Sep 2010 10:39:13 +0000 (03:39 -0700)]
add /vendor support

- add /vendor/lib to front of default library search path
- remove long-obsolete /lib from default library search path

Change-Id: I7d33bf899be018e7cc4c213d5790bbd991023a62

13 years agoAdd wmemcmp to Android.mk
Kenny Root [Fri, 10 Sep 2010 19:20:58 +0000 (12:20 -0700)]
Add wmemcmp to Android.mk

Change-Id: I9dc96d72b2becdd31981b4d176a13358aef6dcb9

13 years agoMerge "Fix return value." into gingerbread
rich cannings [Tue, 31 Aug 2010 22:48:25 +0000 (15:48 -0700)]
Merge "Fix return value." into gingerbread

13 years agoFix return value.
rich cannings [Tue, 31 Aug 2010 22:19:38 +0000 (15:19 -0700)]
Fix return value.

Return a valid pointer (not NULL) when the character "c" is at the end of "src".

Change-Id: Iab0b677943f2c8a9fbb255c44689f5d6dc3535d7
Example:
  memccpy(dest, "xzy", 'y', 3) should return dest+3 rather than null.

13 years agoMerge "Make timezones available to the host build." into gingerbread
Jesse Wilson [Tue, 31 Aug 2010 21:01:13 +0000 (14:01 -0700)]
Merge "Make timezones available to the host build." into gingerbread

13 years agoMake timezones available to the host build.
Jesse Wilson [Tue, 31 Aug 2010 20:16:25 +0000 (13:16 -0700)]
Make timezones available to the host build.

Change-Id: Ib2c89ac13b03f07c6c712a544bc0d5d1c9dc57df

13 years agoFix __get_tls() in static C library to use kernel helpers.
David 'Digit' Turner [Fri, 27 Aug 2010 15:19:19 +0000 (08:19 -0700)]
Fix __get_tls() in static C library to use kernel helpers.

This is needed to fix gdbserver's handling of threaded programs,
among other things.

Change-Id: I823387c602cef9891532da946a01db14be780ab0

14 years agoApply https://android-git.corp.google.com/g/60855 to dalvik-dev.
Brian Carlstrom [Wed, 18 Aug 2010 07:33:52 +0000 (00:33 -0700)]
Apply https://android-git.corp.google.com/g/60855 to dalvik-dev.

(We've been missing the zoneinfo.* files for the host dalvikvm. My fix for
gingerbread will have to wait for someone to return from vacation, but I can
commit here in advance, and I need to so that I can submit
https://android-git.corp.google.com/g/60790 which -- amongst other things --
makes lack of time zone data a hard failure, rather than just silently
pretending all time zones are UTC.)

Bug: 2870945

git cherry-pick --no-commit 18a859aff4e1b97d644429b7ecdb366b18d5a708

Change-Id: I66647e824c5fee9b8d2c63085e2a58e5910a5544

14 years agolinker: fix overwriting the real linker error string
Dima Zavin [Tue, 17 Aug 2010 22:56:40 +0000 (15:56 -0700)]
linker: fix overwriting the real linker error string

Change-Id: Ia9165fd9aa1951b2bb81d0ac8f5bb3057aded8bd
Signed-off-by: Dima Zavin <dima@android.com>
14 years agoBulletproof leak dump against null hash entries
Christopher Tate [Mon, 9 Aug 2010 20:43:46 +0000 (13:43 -0700)]
Bulletproof leak dump against null hash entries

Previously, the malloc leak checking code would crash in qsort()
if null entries existed in its bookkeeping table.  This change
makes the comparison function detect null entries and sort them
to the end safely.

Change-Id: I88244a7df1e289dd9d7992ce29606d505bd63079

14 years agoRevert "Set SA_RESTORER in sigaction()"
Dima Zavin [Fri, 30 Jul 2010 02:12:04 +0000 (19:12 -0700)]
Revert "Set SA_RESTORER in sigaction()"

This reverts commit e4fa46e75cd0d433b5c6c064720ed7e195cba7c8.

14 years agobionic: update processed kernel header msm_camera.h
Wu-cheng Li [Tue, 27 Jul 2010 21:26:21 +0000 (14:26 -0700)]
bionic: update processed kernel header msm_camera.h

Change-Id: If66422d538d0fb0c6ae8a7399c62911635d1fd13

14 years agoUpdate time zone data to the new version 2010k.
Eric Fischer [Mon, 26 Jul 2010 22:53:24 +0000 (15:53 -0700)]
Update time zone data to the new version 2010k.

Change-Id: If657e1783e3f96c52bfe613bad027482d8373c67

14 years agolinker: Support dlopen(NULL, ...) properly.
David 'Digit' Turner [Wed, 21 Jul 2010 23:18:21 +0000 (16:18 -0700)]
linker: Support dlopen(NULL, ...) properly.

Change-Id: Icba37823cb350c34848cc466d144c3a0af87c94c

14 years agobionic: update processed kernel header msm_camera.h
Wu-cheng Li [Mon, 12 Jul 2010 17:32:11 +0000 (10:32 -0700)]
bionic: update processed kernel header msm_camera.h

Change-Id: I25598b08e9cafe98a86cdb2e40481d9aedc8dcee

14 years agoadd meta-files about 3rd party projects
The Android Open Source Project [Fri, 16 Jul 2010 18:41:33 +0000 (11:41 -0700)]
add meta-files about 3rd party projects

Change-Id: I399d7811a07f82a6819d3973681f8b35b655dbd1

14 years agolibc: update alarm() implementation to return 0 on error.
David 'Digit' Turner [Fri, 9 Jul 2010 00:19:07 +0000 (17:19 -0700)]
libc: update alarm() implementation to return 0 on error.

This matches the GLibc behaviour, and allows alarm(0xFFFFFFFF) to return 0.

Change-Id: I419aa71b27d6bb2015d15ba6b6112bf62eadcbb8

14 years agolibc: fix fstatfs() implementation.
David 'Digit' Turner [Thu, 8 Jul 2010 23:52:27 +0000 (16:52 -0700)]
libc: fix fstatfs() implementation.

The syscall expects the size of the buffer as the second argument.

Change-Id: I99ede2fec7fcd385ca03ff022c2cffa4297bea8d

14 years agoAdd missing SMP barriers to libstdc++
David 'Digit' Turner [Fri, 11 Jun 2010 20:18:41 +0000 (13:18 -0700)]
Add missing SMP barriers to libstdc++

Change-Id: I20a8dcd2e3316ac60237e800c682cacc8e59e187

14 years agolibc: Fix sem_post() implementation to wake up all waiting threads.
David 'Digit' Turner [Mon, 28 Jun 2010 21:10:14 +0000 (14:10 -0700)]
libc: Fix sem_post() implementation to wake up all waiting threads.

This also allows us to optimize the case where we increment an
uncontended semaphore (no need to call futex_wake() then).

Change-Id: Iad48efe8551dc66dc89d3e3f18c001e5a6c1939f

14 years agolibc: add sanity checks to pthread_mutex_destroy()
David 'Digit' Turner [Mon, 28 Jun 2010 21:20:22 +0000 (14:20 -0700)]
libc: add sanity checks to pthread_mutex_destroy()

Change-Id: Iddb2204fa792fa9aca5f19838926dddbb09b74a2

14 years agolibstdc++: use extern "C++" in all our C++ system headers.
David 'Digit' Turner [Fri, 25 Jun 2010 23:53:37 +0000 (16:53 -0700)]
libstdc++: use extern "C++" in all our C++ system headers.

This is needed to build an independent toolchain with g++ that doesn't think
that all these headers are in C.

Change-Id: Ie9a8ccfcab7780d6a4e5722777d61c2b1b312001

14 years agoMerge "Add clean headers for 7x30 video codec." into gingerbread
Nick Pelly [Thu, 24 Jun 2010 00:56:38 +0000 (17:56 -0700)]
Merge "Add clean headers for 7x30 video codec." into gingerbread

14 years agoAdd clean headers for 7x30 video codec.
Nick Pelly [Wed, 23 Jun 2010 23:17:58 +0000 (16:17 -0700)]
Add clean headers for 7x30 video codec.

Change-Id: Id4faa5bacb03cc42377527e05c53c6392c776e7d

14 years agoRemove compiler warnings when building Bionic.
David 'Digit' Turner [Wed, 16 Jun 2010 23:36:41 +0000 (16:36 -0700)]
Remove compiler warnings when building Bionic.

Also add missing declarations to misc. functions.
Fix clearerr() implementation (previous was broken).
Handle feature test macros like _POSIX_C_SOURCE properly.

Change-Id: Icdc973a6b9d550a166fc2545f727ea837fe800c4

14 years agoAllow static C++ destructors to be properly called on dlclose().
David 'Digit' Turner [Fri, 18 Jun 2010 21:47:22 +0000 (14:47 -0700)]
Allow static C++ destructors to be properly called on dlclose().

With this patch, _and_ an upcoming build/ patch, the destruction
of static C++ objects contained in shared libraries will happen
properly when dlclose() is called.

Note that this change introduces crtbegin_so.S and crtend_so.S which
are currently ignored by the build system.

+ move definition of __dso_handle to the right place
  (before that, all shared libraries used the __dso_handle
   global variable from the C library).

  Note that we keep a 'weak' __dso_handle in aeabi.c to avoid
  breaking the build until the next patch to build/core/combo/
  appears. We will be able to remove that later.

+ move bionic/aeabi.c to arch-arm/bionic/ (its proper location)

Change-Id: Ie771aa204e3acbdf02fd30ebd4150373a1398f39
NOTE: The NDK will need to be modified to enable this feature in
      the shared libraries that are generated through it.

14 years agoMerge "wchar.h: improve wchar_t support in Bionic" into kraken
David 'Digit' Turner [Tue, 15 Jun 2010 14:05:21 +0000 (07:05 -0700)]
Merge "wchar.h: improve wchar_t support in Bionic" into kraken

14 years agowchar.h: improve wchar_t support in Bionic
David 'Digit' Turner [Tue, 15 Jun 2010 00:18:35 +0000 (17:18 -0700)]
wchar.h: improve wchar_t support in Bionic

Change-Id: Iffd41046fd0933c66542abf7627a1569522dfcb2

14 years agoMerge "linker: remove libcutils dependency by re-implementing simpler socket_local_cl...
David 'Digit' Turner [Tue, 15 Jun 2010 13:54:45 +0000 (06:54 -0700)]
Merge "linker: remove libcutils dependency by re-implementing simpler socket_local_client." into kraken

14 years agolibc: add missing truncate() declaration
David 'Digit' Turner [Fri, 11 Jun 2010 21:37:34 +0000 (14:37 -0700)]
libc: add missing truncate() declaration

Change-Id: Icb3601bbc9365b75b05ff443a39192f9cd3cbfb7

14 years agolibc: Add missing <termio.h> header
David 'Digit' Turner [Fri, 11 Jun 2010 20:30:25 +0000 (13:30 -0700)]
libc: Add missing <termio.h> header

Change-Id: Id4e020ed330b3eabf09324f9b6d44d3a0f336d87

14 years agolibc: remove cutils dependencies
David 'Digit' Turner [Fri, 11 Jun 2010 06:34:24 +0000 (23:34 -0700)]
libc: remove cutils dependencies

We simply copy the stuff we need from cutils headers.

A future patch will change cutils to include the private <bionic_atomic_inline.h>

Change-Id: Ib6fd9a03bc9e337ce867bd606dc94c2b4438480a

14 years agolinker: remove libcutils dependency by re-implementing simpler socket_local_client.
David 'Digit' Turner [Fri, 11 Jun 2010 01:29:33 +0000 (18:29 -0700)]
linker: remove libcutils dependency by re-implementing simpler socket_local_client.

Change-Id: I87f29fd59454d713b9ddfb13e6cf114822f52efd

14 years agosysconf(): Fix line parser for /proc files.
David 'Digit' Turner [Thu, 10 Jun 2010 01:15:57 +0000 (18:15 -0700)]
sysconf(): Fix line parser for /proc files.

Change-Id: I2678010ee95933de19c8a8e3b2fe65ceb9b86400

14 years agoAdd missing termios defns to bring on par with ARM - DO NOT MERGE
Bruce Beare [Fri, 4 Jun 2010 15:14:44 +0000 (08:14 -0700)]
Add missing termios defns to bring on par with ARM - DO NOT MERGE

Change-Id: I6e16e7ab117b6df07ef24f092de1511fe1e9e7b1

14 years agoDO NOT MERGE - add sincos.c to libm compilation
David 'Digit' Turner [Wed, 9 Jun 2010 22:49:35 +0000 (15:49 -0700)]
DO NOT MERGE - add sincos.c to libm compilation

For some reason, a previous backport from master didn't get this.

Change-Id: I59eb96ad9de495a659808fdfb557033476c3d123

14 years agoUpdate libthread_db for gdb-7.0 - DO NOT MERGE
David 'Digit' Turner [Fri, 19 Mar 2010 23:01:28 +0000 (16:01 -0700)]
Update libthread_db for gdb-7.0 - DO NOT MERGE

Change-Id: Id02b29314109ad1bf6de3388f856af6da3f90d33

14 years agoAdd sincosl() function to bionic. So that sincos optimization can - DO NOT MERGE
David 'Digit' Turner [Wed, 9 Jun 2010 21:35:29 +0000 (14:35 -0700)]
Add sincosl() function to bionic. So that sincos optimization can - DO NOT MERGE
be enabled.

Change-Id: I672cb319689aa4fb3f1f7cd868dda76842bebae9

14 years agoRemove a gcc-4.5 compilation warning:
Jing Yu [Fri, 21 May 2010 03:25:48 +0000 (20:25 -0700)]
Remove a gcc-4.5 compilation warning:
bionic/libc/include/../include/stdlib.h: In function 'int grantpt(int)':
bionic/libc/include/../include/stdlib.h:138:23: warning: parameter '__fd' set but not used [-Wunused-but-set-parameter]

By adding __attribute((unused)) to __fd, the warning is gone, and this
attribute is compatible with gcc-4.4.0, gcc-4.3.1 gcc-4.2.1.
There is no any side effect.

Change-Id: I385f0f4da1013ffd1499e391eac9123aafe1f7a5

14 years agoFix setjmp()/longjmp() to save FP registers on ARMv7. - DO NOT MERGE
David 'Digit' Turner [Thu, 25 Mar 2010 16:54:33 +0000 (09:54 -0700)]
Fix setjmp()/longjmp() to save FP registers on ARMv7. - DO NOT MERGE

Change-Id: I3a0c2c05e295ac05ed51a531dabda668be204ca0

14 years agoAdd missing sysinfo() implementation (already declared in <sys/sysinfo.h>) - DO NOT...
David 'Digit' Turner [Thu, 20 May 2010 17:55:45 +0000 (10:55 -0700)]
Add missing sysinfo() implementation (already declared in <sys/sysinfo.h>) - DO NOT MERGE

Change-Id: Iac4eb5911ffe4a7ab72b84df44e907685ac816af

14 years agoUse private futexes for semaphores, unless they are initialized with pshared != 0.
David 'Digit' Turner [Thu, 3 Jun 2010 01:12:12 +0000 (18:12 -0700)]
Use private futexes for semaphores, unless they are initialized with pshared != 0.

Change-Id: I534e36a7171cd37037ae03b910ba71ea6968286d
Note: previously, sem_init() would return an error if pshared != 0.

14 years agoresolved conflicts for merge of 7b6e6fa5 to kraken
Jean-Baptiste Queru [Thu, 3 Jun 2010 22:05:04 +0000 (15:05 -0700)]
resolved conflicts for merge of 7b6e6fa5 to kraken

Change-Id: I2b9b80a7fa32c56be2b85ff8be0d6e7ac1848afe

14 years agomerge from open-source master
The Android Open Source Project [Thu, 3 Jun 2010 21:39:20 +0000 (14:39 -0700)]
merge from open-source master

Change-Id: Ib7fc9c6f79f9b13e2175da137005d8968ea85eaf

14 years agoMerge "pthread: introduce pthread_setname_np() as a mean to give names to threads"
David Turner [Thu, 3 Jun 2010 20:11:52 +0000 (13:11 -0700)]
Merge "pthread: introduce pthread_setname_np() as a mean to give names to threads"

14 years agoAtomic/SMP update, part 3.
Andy McFadden [Fri, 28 May 2010 20:31:45 +0000 (13:31 -0700)]
Atomic/SMP update, part 3.

Update ARM atomic ops to use LDREX/STREX.  Stripped out #if 0 chunk.

Insert explicit memory barriers in pthread and semaphore code.

For bug 2721865.

Change-Id: I0f153b797753a655702d8be41679273d1d5d6ae7

14 years agoAtomic/SMP update.
Andy McFadden [Thu, 20 May 2010 05:38:07 +0000 (22:38 -0700)]
Atomic/SMP update.

Added an underscore to _ARM_HAVE_LDREX_STREX to make it match the others.

Added __ARM_HAVE_DMB and __ARM_HAVE_LDREXD when appropriate.

Fixed some typos.

Change-Id: I2f55febcff4aeb7de572a514fb2cd2f820dca27c

14 years agopthread: introduce pthread_setname_np() as a mean to give names to threads
André Goddard Rosa [Thu, 20 May 2010 02:17:16 +0000 (23:17 -0300)]
pthread: introduce pthread_setname_np() as a mean to give names to threads

... so that each cloned process at the kernel level can be named
independently. Tools like 'top' can display the CPU/memory statistics
for each process's thread if "Show Threads" mode is on.

With this function in place, we can convert dalvik/Thread.c setThreadName()
function over this function. This feature ought to be provided by the
underlying C library and not coded directly in Dalvik.

Change-Id: Ifa997665dbaa114e0b126f8c667708be9a4137fd
Signed-off-by: André Goddard Rosa <andre.goddard@gmail.com>
14 years agoAdd pthread_rwlock_t implementation to the C library (DO NOT MERGE)
David 'Digit' Turner [Tue, 11 May 2010 23:39:22 +0000 (16:39 -0700)]
Add pthread_rwlock_t implementation to the C library (DO NOT MERGE)

Change-Id: I756d8c26afc37cd7b71117ddbaa02a2cb40fdecb

14 years agomerge from open-source master
The Android Open Source Project [Mon, 17 May 2010 17:22:35 +0000 (10:22 -0700)]
merge from open-source master

Change-Id: I5804d8850f2d4fb7b5d5c53d51e153f7ced9646e

14 years agoimprove readability of stdio: fix indentation and remove trailing spaces
André Goddard Rosa [Sun, 31 Jan 2010 00:46:25 +0000 (22:46 -0200)]
improve readability of stdio: fix indentation and remove trailing spaces

Change-Id: Ic51e58a7c75d20bf770dc0ebd7f97a338fbe0036
Signed-off-by: André Goddard Rosa <andre.goddard@gmail.com>
14 years agomerge from open-source master
The Android Open Source Project [Fri, 14 May 2010 20:30:10 +0000 (13:30 -0700)]
merge from open-source master

Change-Id: I9c926a3cd680a96ece026cdec71c6e0fb0b7ad7c

14 years agoMerge "Add declaration for sys_signame[] forgotten in change 12489"
David Turner [Fri, 14 May 2010 19:12:24 +0000 (12:12 -0700)]
Merge "Add declaration for sys_signame[] forgotten in change 12489"

14 years agomerge from open-source master
The Android Open Source Project [Thu, 13 May 2010 21:31:02 +0000 (14:31 -0700)]
merge from open-source master

Change-Id: I2be62bce462ee53fe9519f433523bd7a44a73d40

14 years agoSet SA_RESTORER in sigaction()
Matt Fischer [Mon, 11 Jan 2010 02:02:06 +0000 (10:02 +0800)]
Set SA_RESTORER in sigaction()

GDB looks for specific opcode sequences when trying to recognize a stack
frame as a signal trampoline.  The sequences it looks for happen to be those
created when SA_RESTORER is set, since glibc always sets a restorer.  This
patch does the same here, so that the trampolines can be correctly identified.

Change-Id: I0ac574a68818cb24d939c3527f3aaeb04b853d04

14 years agofix build
Jean-Baptiste Queru [Wed, 12 May 2010 17:05:59 +0000 (10:05 -0700)]
fix build

Change-Id: I243c98e20a250e0d40d481f16af481ff070219fd

14 years agomerge from open-source master
The Android Open Source Project [Wed, 12 May 2010 16:22:50 +0000 (09:22 -0700)]
merge from open-source master

Change-Id: Iecfd2bd3069f70bbe508042cc249fcf7ff24800d

14 years agoMerge "Sometimes the compiler is very right! Found bug in bessel routines for float."
Jean-Baptiste Queru [Tue, 11 May 2010 17:43:56 +0000 (10:43 -0700)]
Merge "Sometimes the compiler is very right! Found bug in bessel routines for float."

14 years agoMerge "Reduce compiler anxiety."
David Turner [Tue, 11 May 2010 17:20:15 +0000 (10:20 -0700)]
Merge "Reduce compiler anxiety."

14 years agoMerge "Added support for LD_PRELOAD"
David Turner [Tue, 11 May 2010 17:17:00 +0000 (10:17 -0700)]
Merge "Added support for LD_PRELOAD"

14 years agoMerge "stdio: simplify __fremovelock()"
David Turner [Mon, 10 May 2010 23:04:02 +0000 (16:04 -0700)]
Merge "stdio: simplify __fremovelock()"