OSDN Git Service

bionic: use the size of the file to determine property area size
authorColin Cross <ccross@android.com>
Tue, 25 Jun 2013 01:42:21 +0000 (18:42 -0700)
committerGreg Hackmann <ghackmann@google.com>
Tue, 25 Jun 2013 20:34:45 +0000 (13:34 -0700)
commit285b42a04cbe8e627a75c9bfb3c7cb3f7b539267
tree5253a3f93c92892fcb9075ea5d1b6d15310eda7b
parent4fe82929eb19b35cbd144aace00f71fa533e7bce
bionic: use the size of the file to determine property area size

On the reader size, don't assume that the property size is PA_SIZE,
read it from the size of the file.  Allows init to use a different
property size without recompiling statically linked executables.

Change-Id: I87fb0bf40c4724e3759a583fd9ea1f49492bc958
libc/bionic/system_properties.c