No description
Find a file
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
libc Fix for incorrect reply from sysconf(_SC_NPROCESSORS_ONLN) 2010-06-16 22:02:20 +00:00
libdl Added support for dladdr() 2010-03-17 16:11:37 -05:00
libm Merge "Sometimes the compiler is very right! Found bug in bessel routines for float." 2010-05-11 10:43:56 -07:00
libstdc++ optimize delete/delete[] operators by removing unneeded branch 2010-01-30 22:26:30 -02:00
libthread_db auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
linker Added support for LD_PRELOAD 2010-05-10 15:09:19 -07:00
.gitignore add msm_camera.h header and .gitignore file to bionic 2009-05-26 17:06:24 -07:00
Android.mk auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
MAINTAINERS added and modified libm to support SuperH architecture 2009-08-31 16:25:42 +09:00