Merge "Add headers for new sensors"
diff --git a/libc/docs/CHANGES.TXT b/libc/docs/CHANGES.TXT
index 9407173..e700da4 100644
--- a/libc/docs/CHANGES.TXT
+++ b/libc/docs/CHANGES.TXT
@@ -13,6 +13,9 @@
 - <semaphore.h>: Use private futexes for semaphore implementation,
   unless your set 'pshared' to non-0 when calling sem_init().
 
+- sysconf() didn't work for some arguments due to a small bug in the
+  /proc line parser.
+
 -------------------------------------------------------------------------------
 Differences between Android 2.2. and Android 2.1:
 
diff --git a/libc/unistd/sysconf.c b/libc/unistd/sysconf.c
index d3089a4..dedc5bc 100644
--- a/libc/unistd/sysconf.c
+++ b/libc/unistd/sysconf.c
@@ -317,7 +317,7 @@
 static int
 line_parser_getc( LineParser*  p )
 {
-    if (p->in_len >= p->in_pos) {
+    if (p->in_pos >= p->in_len) {
         int  ret;
 
         p->in_len = p->in_pos = 0;