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)
committerColin Cross <ccross@android.com>
Tue, 25 Jun 2013 23:52:34 +0000 (16:52 -0700)
commit1ec20a086cb1da1d7455a36ea5d2ea4856426ea0
tree1a99f8a56a835c983dc6d61205db9f40ad290e24
parentb116bf76286178a7d552c4d0a72b79212c8c93d1
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.

(cherry picked from commit 285b42a04cbe8e627a75c9bfb3c7cb3f7b539267)

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