Commit graph

234 commits

Author SHA1 Message Date
David 'Digit' Turner
97cf7f3394 Implement clone() C library function properly.
Only provide an implementation for ARM at the moment, since
it requires specific assembly fragments (the standard syscall
stubs cannot be used because the child returns in a different
stack).
2010-01-25 11:18:30 -08:00
David 'Digit' Turner
d6bf8f9229 Add Bionic Changelog in libc/docs/CHANGES.TXT 2010-01-21 16:25:38 -08:00
Colin Cross
fc10b24acc Add implementation of fdprintf, clearenv, and stubs for ttyname_r, *usershell
Change-Id:	I5fe7e8b6ee5edbb49e707c3b6737a58563781fa3
2010-01-15 16:52:35 -08:00
Colin Cross
8c59d96e24 Add killpg function
Change-Id:	I9bc347d264fe38faf2d0f9935d2ebb43a353196e
2010-01-15 16:27:04 -08:00
Colin Cross
64ceac3f49 Add fts, err, and sys/queue for grep
Change-Id:	Id47514a1812d828e95efa2fab0e9c15c5b682b58
2010-01-15 15:57:02 -08:00
Colin Cross
c29731a491 mntent.h requires stdio.h
Change-Id:	If69f64cf088dedb19602bf47627d03400abb9095
2010-01-15 15:57:02 -08:00
Colin Cross
e9d08ba523 Add definition of rlim_t
Change-Id:	Ie8c2451360cbcce9fc1587528a95aca09a03d0de
2010-01-15 15:57:02 -08:00
Colin Cross
2497f65fee Import change from ctype.h revision 1.20 from openbsd
Fixes builds with gcc >= 4.3 with -std=gnu99

Change-Id:	I8729b7f4237fd7a99a82b2fe60573a7afe66b435
2010-01-15 15:57:02 -08:00
Colin Cross
d1cfc947f9 Import include/arpa/telnet.h from BSD
Change-Id:	I684251bfb8ef04f0706866ea55dceebcd2a5b0e1
2010-01-15 15:15:52 -08:00
Colin Cross
4fa7b10564 Import regex from OpenBSD
Change-Id: I7ad7d907ef65e4e345f94777d730813b1270a612
2010-01-15 15:01:44 -08:00
Colin Cross
6458c49c96 Fix ptsname_r(3) return type to match glibc
The gHardy man pages specify the return type of ptsname_r to be char*, but the
return value to be 0 on success, negative on error and the gHardy stdlib.h
defines extern int ptsname_r(...).

Busybox telnetd fails to run successfully without this change.
2010-01-12 12:58:12 -08:00
Elliott Hughes
0b5db51ea6 Merge "Fix usleep(3) return type to be POSIX-compliant." 2010-01-07 15:54:35 -08:00
Ben Cheng
ee84231886 Add user-space ptrace data structure to dump VFP registers and status word. 2009-12-17 12:46:45 -08:00
Elliott Hughes
99d7907611 Fix usleep(3) return type to be POSIX-compliant.
POSIX usleep(3) returns 0 on successful completion, -1 otherwise:
  http://www.opengroup.org/onlinepubs/007908799/xsh/usleep.html

This was found by an external user porting native code:
  http://groups.google.com/group/android-porting/browse_thread/thread/674848f001db0292
2009-12-14 17:07:19 -08:00
Mathias Agopian
278d960aae am f197147a: am ca07064c: am 5f53a182: Revert "Add qsort_r() implementation to the C library."
Merge commit 'f197147a787d7415e6e0a1bad15566836c55befb'

* commit 'f197147a787d7415e6e0a1bad15566836c55befb':
  Revert "Add qsort_r() implementation to the C library."
2009-12-04 04:31:23 -08:00
David 'Digit' Turner
44358b9fed am be71c814: am 20b3097d: am 754c178a: Add qsort_r() implementation to the C library.
Merge commit 'be71c8142d4225dd9af4742ec050f30fcbc2aa5e'

* commit 'be71c8142d4225dd9af4742ec050f30fcbc2aa5e':
  Add qsort_r() implementation to the C library.
2009-12-04 04:29:36 -08:00
Dima Zavin
4cf30fb534 am a0783df1: am df55c642: am e1e68492: Merge change Ifa58a406 into eclair
Merge commit 'a0783df14eaf9b0d858dd42d4e8a64a738314900'

* commit 'a0783df14eaf9b0d858dd42d4e8a64a738314900':
  libc: kernel: Update msm_kgsl.h header
2009-12-03 17:21:46 -08:00
Mathias Agopian
f197147a78 am ca07064c: am 5f53a182: Revert "Add qsort_r() implementation to the C library."
Merge commit 'ca07064c9ebd8523ed88fa09e97feaaafb7e9c15' into eclair-mr2-plus-aosp

* commit 'ca07064c9ebd8523ed88fa09e97feaaafb7e9c15':
  Revert "Add qsort_r() implementation to the C library."
2009-12-03 17:15:16 -08:00
Mathias Agopian
ca07064c9e am 5f53a182: Revert "Add qsort_r() implementation to the C library."
Merge commit '5f53a18204ec991f5a77872806eeaa185936aa8c' into eclair-mr2

* commit '5f53a18204ec991f5a77872806eeaa185936aa8c':
  Revert "Add qsort_r() implementation to the C library."
2009-12-03 17:10:14 -08:00
David 'Digit' Turner
be71c8142d am 20b3097d: am 754c178a: Add qsort_r() implementation to the C library.
Merge commit '20b3097d4cc225d948dac38e778a9d3b3b1549db' into eclair-mr2-plus-aosp

* commit '20b3097d4cc225d948dac38e778a9d3b3b1549db':
  Add qsort_r() implementation to the C library.
2009-12-03 16:44:43 -08:00
Doug Kwan
d548a265ca Add missing symbol type directives. 2009-12-03 16:26:04 -08:00
Mathias Agopian
5f53a18204 Revert "Add qsort_r() implementation to the C library."
This reverts commit 754c178ae5.

Turns out we don't need it afterall (needed a stable sort anyways).
So, we'll make that change in the dev branch instead.
2009-12-03 16:14:40 -08:00
David 'Digit' Turner
20b3097d4c am 754c178a: Add qsort_r() implementation to the C library.
Merge commit '754c178ae551aedcbbfd3bfd1c1c3b710d9ad989' into eclair-mr2

* commit '754c178ae551aedcbbfd3bfd1c1c3b710d9ad989':
  Add qsort_r() implementation to the C library.
2009-12-03 16:00:48 -08:00
David 'Digit' Turner
754c178ae5 Add qsort_r() implementation to the C library.
NOTE: This replaces qsort.c with the FreeBSD version. While
      the patch changes the source, it should not alter the
      implementation that should use the exact same algorithm.
2009-12-03 11:40:15 -08:00
Dima Zavin
a0783df14e am df55c642: am e1e68492: Merge change Ifa58a406 into eclair
Merge commit 'df55c64203ac96fa0447357d1d19e6adee52c8d1' into eclair-mr2-plus-aosp

* commit 'df55c64203ac96fa0447357d1d19e6adee52c8d1':
  libc: kernel: Update msm_kgsl.h header
2009-12-03 02:20:57 -08:00
Dima Zavin
df55c64203 am e1e68492: Merge change Ifa58a406 into eclair
Merge commit 'e1e684920f3bea04f7cccee9f2d7ecd8b9a1ba47' into eclair-mr2

* commit 'e1e684920f3bea04f7cccee9f2d7ecd8b9a1ba47':
  libc: kernel: Update msm_kgsl.h header
2009-12-03 02:14:56 -08:00
Dima Zavin
7b12b4a349 libc: kernel: Update msm_kgsl.h header
Change-Id: Ifa58a406c9419c5ad73a1f9456add6dd54bfb2ba
Signed-off-by: Dima Zavin <dima@android.com>
2009-12-02 05:09:56 -08:00
Andy McFadden
5cdb2b73d2 Fix libc logging implementation.
The file descriptor wasn't getting set, so the writev() call was
silently failing.

There's a parallel implementation over in system/core/liblog, but it's
still using the old approach and didn't have this problem.
2009-11-30 17:09:45 -08:00
Android (Google) Code Review
3bbac05726 Merge change Ic1202510
* changes:
  Added a comment.
2009-11-25 16:25:04 -08:00
Andy McFadden
c1202510b6 Added a comment.
The structs for stdin/stdout/stderr are formed with a static initializer
that needs to be updated if something in FILE is changed.
2009-11-25 14:16:53 -08:00
Eric Fischer
780775c812 am ae77aae8: am 07401a68: am cd5df2d9: Rebuild the time zone data files in 32-bit format instead of 64-bit.
Merge commit 'ae77aae80cb78b33f32e65c43a473d5e297b866b'

* commit 'ae77aae80cb78b33f32e65c43a473d5e297b866b':
  Rebuild the time zone data files in 32-bit format instead of 64-bit.
2009-11-24 14:14:02 -08:00
Eric Fischer
ae77aae80c am 07401a68: am cd5df2d9: Rebuild the time zone data files in 32-bit format instead of 64-bit.
Merge commit '07401a681f7530a8126fb0fd07a097828337b30a' into eclair-mr2-plus-aosp

* commit '07401a681f7530a8126fb0fd07a097828337b30a':
  Rebuild the time zone data files in 32-bit format instead of 64-bit.
2009-11-24 14:09:34 -08:00
Eric Fischer
07401a681f am cd5df2d9: Rebuild the time zone data files in 32-bit format instead of 64-bit.
Merge commit 'cd5df2d92c3adeac41e27aab5ba0f999c753c4c4' into eclair-mr2

* commit 'cd5df2d92c3adeac41e27aab5ba0f999c753c4c4':
  Rebuild the time zone data files in 32-bit format instead of 64-bit.
2009-11-24 14:02:30 -08:00
Eric Fischer
cd5df2d92c Rebuild the time zone data files in 32-bit format instead of 64-bit.
The 64-bit data is not currently being used and more than doubles the size.
2009-11-24 13:52:05 -08:00
Eric Fischer
00da948b09 am a5d96513: am 8d7c6953: am 7e617899: Correct the raw offsets in the time zone index for a few zones.
Merge commit 'a5d9651368779ae054f4184c5881566fdee85003'

* commit 'a5d9651368779ae054f4184c5881566fdee85003':
  Correct the raw offsets in the time zone index for a few zones.
2009-11-23 17:12:28 -08:00
Eric Fischer
a5d9651368 am 8d7c6953: am 7e617899: Correct the raw offsets in the time zone index for a few zones.
Merge commit '8d7c6953373b4e2c6f49dfff741bf0da09030760' into eclair-mr2-plus-aosp

* commit '8d7c6953373b4e2c6f49dfff741bf0da09030760':
  Correct the raw offsets in the time zone index for a few zones.
2009-11-23 17:08:20 -08:00
Eric Fischer
8d7c695337 am 7e617899: Correct the raw offsets in the time zone index for a few zones.
Merge commit '7e6178998507f993eedf6bec726b0c28881f0485' into eclair-mr2

* commit '7e6178998507f993eedf6bec726b0c28881f0485':
  Correct the raw offsets in the time zone index for a few zones.
2009-11-23 17:04:18 -08:00
Eric Fischer
7e61789985 Correct the raw offsets in the time zone index for a few zones.
ZoneCompactor was using the system time zone database to get the offsets
instead of using the data it was compiling, so for newly added or recently
changed zones the index could be inconsistent with the data.

Affected zones: San_Luis, Casey, Davis, Mawson, Kathmandu, Novokuznetsk
2009-11-23 16:28:11 -08:00
Fred Fettinger
25f8ea4d40 am 01a1f8b0: am b5239ed1: libc: allow usage of time64.h from cpp code
Merge commit '01a1f8b080d9d4e619ce00039f195f6fa3aa2045'

* commit '01a1f8b080d9d4e619ce00039f195f6fa3aa2045':
  libc: allow usage of time64.h from cpp code
2009-11-23 13:43:42 -08:00
Fred Fettinger
01a1f8b080 am b5239ed1: libc: allow usage of time64.h from cpp code
Merge commit 'b5239ed16aeba648f1c9bcb7a4887b8a41670326' into eclair-mr2-plus-aosp

* commit 'b5239ed16aeba648f1c9bcb7a4887b8a41670326':
  libc: allow usage of time64.h from cpp code
2009-11-23 13:39:03 -08:00
Fred Fettinger
b5239ed16a libc: allow usage of time64.h from cpp code
Wrapped declarations in time64.h with __BEGIN_DECLS/__END_DECLS so that
the prototypes are correctly identified as extern C.

Change-Id: I253453307831c929a6c7174b28b48bceef946fed
Signed-off-by: Fred Fettinger <fred.fettinger@motorola.com>
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-11-23 16:25:32 -05:00
Eric Fischer
62a1bb5acf am 9cb69cf4: am 25a3a3ea: am a6083b77: Update zoneinfo time zone data to version 2009s
Merge commit '9cb69cf4dc8962204715a7662c7d0e778a7ee113'

* commit '9cb69cf4dc8962204715a7662c7d0e778a7ee113':
  Update zoneinfo time zone data to version 2009s
2009-11-20 15:55:50 -08:00
Eric Fischer
9cb69cf4dc am 25a3a3ea: am a6083b77: Update zoneinfo time zone data to version 2009s
Merge commit '25a3a3ea8cb234bead6d80a71823713b80acfea8' into eclair-mr2-plus-aosp

* commit '25a3a3ea8cb234bead6d80a71823713b80acfea8':
  Update zoneinfo time zone data to version 2009s
2009-11-20 15:47:49 -08:00
Eric Fischer
25a3a3ea8c am a6083b77: Update zoneinfo time zone data to version 2009s
Merge commit 'a6083b7768a2d1efc52805ff7ce049866186c744' into eclair-mr2

* commit 'a6083b7768a2d1efc52805ff7ce049866186c744':
  Update zoneinfo time zone data to version 2009s
2009-11-20 15:42:11 -08:00
Eric Fischer
a6083b7768 Update zoneinfo time zone data to version 2009s
http://b/issue?id=2272477
2009-11-20 14:39:55 -08:00
Vladimir Chtchetkine
870fa11830 am fdfa1677: am 362b2aab: Merge change Ib4550a04 into eclair-mr2
Merge commit 'fdfa16776ca8f33f671cbac5dd9fa8bd761e16a8'

* commit 'fdfa16776ca8f33f671cbac5dd9fa8bd761e16a8':
  Split libc_debug.so into two .so modules loaded on demand from libc.so
2009-11-19 17:37:46 -08:00
Vladimir Chtchetkine
fdfa16776c am 362b2aab: Merge change Ib4550a04 into eclair-mr2
Merge commit '362b2aabee2dd04e04a3ad9c09f0ad0212569be4' into eclair-mr2-plus-aosp

* commit '362b2aabee2dd04e04a3ad9c09f0ad0212569be4':
  Split libc_debug.so into two .so modules loaded on demand from libc.so
2009-11-19 11:28:22 -08:00
Vladimir Chtchetkine
b74ceb25aa Split libc_debug.so into two .so modules loaded on demand from libc.so
This change is intended to eliminate need to replace libc.so with libc_debug.so in order to enablememory allocation debugging.
This is also the first step towards implementing extended memoryallocation debugging using emulator's capabilities in monitoring memory access.
2009-11-18 10:36:25 -08:00
Jean-Baptiste Queru
0896a3a9f0 am 817b4c45: merge from open-source master
Merge commit '817b4c45f05c613a4a1ac5940687a2ed24f3b093'

* commit '817b4c45f05c613a4a1ac5940687a2ed24f3b093':
  modified SYSCALLS.TXT to support SuperH architecture
2009-11-15 11:30:50 -08:00
Jean-Baptiste Queru
817b4c45f0 merge from open-source master 2009-11-15 10:58:55 -08:00