The Android Open Source Project
e8f79c1f5d
merge from open-source master
...
Change-Id: I408b5705b18d9e93e66bfbfeec0e3baefd618dec
2010-06-18 11:33:00 -07:00
David Turner
c6b5cd8d76
Merge "Fix for incorrect reply from sysconf(_SC_NPROCESSORS_ONLN)"
2010-06-16 17:36:32 -07:00
Mikael Ohlson
b44fcd6e8f
Fix for incorrect reply from sysconf(_SC_NPROCESSORS_ONLN)
...
When calling sysconf with _SC_NPROCESSORS_ONLN, the value one (1) was
returned on systems with two or more cores, since '/proc/stat' was
incorrectly parsed.
The function line_parser_getc (LineParser* p) read 128 characters of
input for each invocation.
The proper and probably aimed for behavior is to read 128 characters
at the first call, then for each subsequent call only return the next
buffered character until a new read is needed and only then read
another 128 characters.
Due to a flipped comparison between the two variables in_len and
in_pos that track the number of bytes of data read into the input
buffer and how much of it has been parsed, a new group of 128
characters were read at almost every call to line_parser_getc,
overwriting the still unhandled bytes from the previous call to
read. This caused the lines to be read to be sampled more than parsed.
Change-Id: I93eec3c8c9b9f19ef798748579d0977111b5c0bb
Signed-off-by: Christian Bejram <christian.bejram@stericsson.com>
2010-06-16 22:02:20 +00:00
David 'Digit' Turner
f201ae83fc
am 6a09cfd9
: Merge "wchar.h: improve wchar_t support in Bionic" into kraken
...
Merge commit '6a09cfd9f916e3a60de707ff0806cdeb143d77a4' into gingerbread-plus-aosp
* commit '6a09cfd9f916e3a60de707ff0806cdeb143d77a4':
wchar.h: improve wchar_t support in Bionic
2010-06-15 07:07:44 -07:00
David 'Digit' Turner
6a09cfd9f9
Merge "wchar.h: improve wchar_t support in Bionic" into kraken
2010-06-15 07:05:21 -07:00
David 'Digit' Turner
3527fd6f0d
wchar.h: improve wchar_t support in Bionic
...
Change-Id: Iffd41046fd0933c66542abf7627a1569522dfcb2
2010-06-15 07:04:41 -07:00
David 'Digit' Turner
a37ffb0c74
am a24bc688
: Merge "linker: remove libcutils dependency by re-implementing simpler socket_local_client." into kraken
...
Merge commit 'a24bc688c037c9ecf0486747cb8d7568af8ec37b' into gingerbread-plus-aosp
* commit 'a24bc688c037c9ecf0486747cb8d7568af8ec37b':
linker: remove libcutils dependency by re-implementing simpler socket_local_client.
2010-06-15 07:01:02 -07:00
David 'Digit' Turner
a24bc688c0
Merge "linker: remove libcutils dependency by re-implementing simpler socket_local_client." into kraken
2010-06-15 06:54:45 -07:00
The Android Open Source Project
49b53c0b94
merge from froyo-plus-aosp
...
Change-Id: Ibbde24d8ee26259f3eff076ee4d32476f868db85
2010-06-14 11:18:38 -07:00
The Android Open Source Project
04ed4a1c88
merge from open-source master
...
Change-Id: I63e2bfcf87d190fb063c5b2457ebe6b0d50ddd26
2010-06-14 10:49:00 -07:00
Szymon Jakubczak
4032c1e2df
added missing ether_aton and ether_ntoa
...
Change-Id: I32ee448abde4d5693d393030ed77ddc6d2ad1dfc
2010-06-11 20:48:40 -04:00
David 'Digit' Turner
ef5f1ec301
am da3019b5
: libc: add missing truncate() declaration
...
Merge commit 'da3019b55305ce51b1b483d8727641e791ce0941' into gingerbread-plus-aosp
* commit 'da3019b55305ce51b1b483d8727641e791ce0941':
libc: add missing truncate() declaration
2010-06-11 14:42:58 -07:00
David 'Digit' Turner
1b5b230593
am ecb6d413
: libc: Add missing <termio.h> header
...
Merge commit 'ecb6d4133477fef90c2fa23a40637d3c62681ee0' into gingerbread-plus-aosp
* commit 'ecb6d4133477fef90c2fa23a40637d3c62681ee0':
libc: Add missing <termio.h> header
2010-06-11 14:42:56 -07:00
David 'Digit' Turner
da3019b553
libc: add missing truncate() declaration
...
Change-Id: Icb3601bbc9365b75b05ff443a39192f9cd3cbfb7
2010-06-11 14:40:02 -07:00
David 'Digit' Turner
ecb6d41334
libc: Add missing <termio.h> header
...
Change-Id: Id4e020ed330b3eabf09324f9b6d44d3a0f336d87
2010-06-11 14:39:39 -07:00
David 'Digit' Turner
c0b91e659a
am 6c8a2f2a
: libc: remove cutils dependencies
...
Merge commit '6c8a2f2a5bc8d612ee953f528f2b5eb35983656a' into gingerbread-plus-aosp
* commit '6c8a2f2a5bc8d612ee953f528f2b5eb35983656a':
libc: remove cutils dependencies
2010-06-11 13:58:56 -07:00
David 'Digit' Turner
6c8a2f2a5b
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
2010-06-11 13:49:09 -07:00
David 'Digit' Turner
8bff9a31aa
linker: remove libcutils dependency by re-implementing simpler socket_local_client.
...
Change-Id: I87f29fd59454d713b9ddfb13e6cf114822f52efd
2010-06-10 22:58:22 -07:00
David 'Digit' Turner
43a3d66f13
am 038fbae5
: sysconf(): Fix line parser for /proc files.
2010-06-09 18:19:10 -07:00
David 'Digit' Turner
038fbae518
sysconf(): Fix line parser for /proc files.
...
Change-Id: I2678010ee95933de19c8a8e3b2fe65ceb9b86400
2010-06-09 18:15:57 -07:00
Bruce Beare
cd11be09cb
am 9205fdf8
: Add missing termios defns to bring on par with ARM - DO NOT MERGE
2010-06-09 15:54:41 -07:00
David 'Digit' Turner
59e778eba7
am 2beac0f5
: DO NOT MERGE - add sincos.c to libm compilation
2010-06-09 15:53:03 -07:00
Bruce Beare
9205fdf8c6
Add missing termios defns to bring on par with ARM - DO NOT MERGE
...
Change-Id: I6e16e7ab117b6df07ef24f092de1511fe1e9e7b1
2010-06-09 15:52:28 -07:00
David 'Digit' Turner
2beac0f5c6
DO NOT MERGE - add sincos.c to libm compilation
...
For some reason, a previous backport from master didn't get this.
Change-Id: I59eb96ad9de495a659808fdfb557033476c3d123
2010-06-09 15:49:35 -07:00
David 'Digit' Turner
2837863f35
am 20783c14
: Update libthread_db for gdb-7.0 - DO NOT MERGE
2010-06-09 14:45:34 -07:00
David 'Digit' Turner
20783c1428
Update libthread_db for gdb-7.0 - DO NOT MERGE
...
Change-Id: Id02b29314109ad1bf6de3388f856af6da3f90d33
2010-06-09 14:43:39 -07:00
David 'Digit' Turner
0f9a0a025a
am 410b2ae7
: Add sincosl() function to bionic. So that sincos optimization can - DO NOT MERGE be enabled.
2010-06-09 14:38:40 -07:00
David 'Digit' Turner
410b2ae7fb
Add sincosl() function to bionic. So that sincos optimization can - DO NOT MERGE
...
be enabled.
Change-Id: I672cb319689aa4fb3f1f7cd868dda76842bebae9
2010-06-09 14:35:29 -07:00
Jing Yu
4b043b56f7
am 506b13d9
: 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]
2010-06-09 13:27:29 -07:00
Jing Yu
506b13d910
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
2010-06-09 13:24:22 -07:00
David 'Digit' Turner
8946da4fe1
am b8e6c50c
: Fix setjmp()/longjmp() to save FP registers on ARMv7. - DO NOT MERGE
2010-06-09 13:21:51 -07:00
David 'Digit' Turner
b8e6c50cfa
Fix setjmp()/longjmp() to save FP registers on ARMv7. - DO NOT MERGE
...
Change-Id: I3a0c2c05e295ac05ed51a531dabda668be204ca0
2010-06-09 13:18:29 -07:00
David 'Digit' Turner
732d133c1d
am aa4b1d04
: Add missing sysinfo() implementation (already declared in <sys/sysinfo.h>) - DO NOT MERGE
2010-06-09 13:15:12 -07:00
David 'Digit' Turner
aa4b1d0429
Add missing sysinfo() implementation (already declared in <sys/sysinfo.h>) - DO NOT MERGE
...
Change-Id: Iac4eb5911ffe4a7ab72b84df44e907685ac816af
2010-06-09 13:12:15 -07:00
David 'Digit' Turner
7d8574cefe
am 6304d8b2
: Use private futexes for semaphores, unless they are initialized with pshared != 0.
2010-06-08 17:29:43 -07:00
David 'Digit' Turner
6304d8b218
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.
2010-06-08 17:04:49 -07:00
The Android Open Source Project
7980f585f7
merge from froyo-plus-aosp
...
Change-Id: I54d3b035f378d92f287b3dd08987c4041fda9997
2010-06-07 11:19:33 -07:00
The Android Open Source Project
15956f9288
merge from open-source master
...
Change-Id: I1cc2f1123a296b05c4faaa419374376395e05936
2010-06-07 11:01:49 -07:00
David Turner
16c91eff09
Merge "Add missing termios defns to bring on par with ARM"
2010-06-05 13:07:40 -07:00
Bruce Beare
84baa86362
Add missing termios defns to bring on par with ARM
...
Change-Id: Ied1871aa0a2e33473b89a4ac6d54e3c44be7f457
2010-06-04 08:14:44 -07:00
Jean-Baptiste Queru
a8a2148863
resolved conflicts for merge of 7b6e6fa5
to kraken
...
Change-Id: I2b9b80a7fa32c56be2b85ff8be0d6e7ac1848afe
2010-06-03 15:05:04 -07:00
The Android Open Source Project
7b6e6fa572
merge from open-source master
...
Change-Id: Ib7fc9c6f79f9b13e2175da137005d8968ea85eaf
2010-06-03 14:39:20 -07:00
David Turner
f982f03832
Merge "pthread: introduce pthread_setname_np() as a mean to give names to threads"
2010-06-03 13:11:52 -07:00
Andy McFadden
fcd00ebbdf
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
2010-05-28 16:12:01 -07:00
Andy McFadden
4fdbadde92
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
2010-05-20 15:59:32 -07:00
André Goddard Rosa
78c1c04ced
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>
2010-05-19 23:17:16 -03:00
David 'Digit' Turner
8a1d2cf142
Add pthread_rwlock_t implementation to the C library (DO NOT MERGE)
...
Change-Id: I756d8c26afc37cd7b71117ddbaa02a2cb40fdecb
2010-05-19 14:53:18 -07:00
The Android Open Source Project
8e1ee7fd01
merge from open-source master
...
Change-Id: I5804d8850f2d4fb7b5d5c53d51e153f7ced9646e
2010-05-17 10:22:35 -07:00
André Goddard Rosa
a910abcd19
improve readability of stdio: fix indentation and remove trailing spaces
...
Change-Id: Ic51e58a7c75d20bf770dc0ebd7f97a338fbe0036
Signed-off-by: André Goddard Rosa <andre.goddard@gmail.com>
2010-05-17 09:34:13 -07:00
The Android Open Source Project
fdf2454db2
merge from open-source master
...
Change-Id: I9c926a3cd680a96ece026cdec71c6e0fb0b7ad7c
2010-05-14 13:30:10 -07:00