summaryrefslogtreecommitdiffstats
path: root/libcutils/fs_config.c
Commit message (Collapse)AuthorAgeFilesLines
* fs_config: replace getenv('OUT') by new fs_config parameterThierry Strudel2015-07-091-6/+13
| | | | | | | | | | | | | | Using a getenv('OUT') in such a deep down function is a wrong design choice. Replacing with explicit parameter that may be NULL in case device specific files can be accessed from /. Since TARGET_COPY_OUT_SYSTEM may be defined to something different than system we also ensure that we use a path relative to TARGET_OUT to compute path to fs_config_* files. Bug: 21989305 Bug: 22048934 Change-Id: Id91bc183b29beac7379d1117ad83bd3346e6897b Signed-off-by: Thierry Strudel <tstrudel@google.com>
* libcutils: fs_config must use O_BINARYMark Salyzyn2015-04-161-2/+6
| | | | | Bug: 19908228 Change-Id: I3273cf99b320941f9530a015c9e582af72469acb
* libcutils: fs_config: winsdk_tools build fixMark Salyzyn2015-04-161-1/+1
| | | | | Bug: 19908228 Change-Id: Ia725d20ca4f8a87deec63b6c661f6a09c8671231
* libcutils: drop use of mmapMark Salyzyn2015-04-151-45/+30
| | | | | | | - Causes a build break for MAC and Windows Bug: 19908228 Change-Id: I9d69967aa988c9ca202805593fa846cb670101cf
* libcutils: add fs_config_generateMark Salyzyn2015-04-151-0/+21
| | | | | Bug: 19908228 Change-Id: Icb0e189a86758bb779b9bdf7c0d92216d297869f
* libcutils: fs_config read from fileMark Salyzyn2015-04-151-12/+141
| | | | | | | | | | Intention is to read from ${OUT}/system/etc/fs_config_dirs and ${OUT}/system/etc/fs_config_files on host. And /system/etc/fs_config_dirs and /system/etc/config_files on target systems. Bug: 19908228 Change-Id: Ieaedd99e88c7f7f717878d9344c387ddf335ccbb
* Revert "libcutils: fs_config read from file"Mark Salyzyn2015-04-151-125/+12
| | | | | | | | There is no endian.h on windows This reverts commit 4e5f71ae727c5993db05d0024da026bf68eabc59. Change-Id: I6aedf35ed319c7f8febc7ab98e104a625fb27f69
* libcutils: fs_config read from fileMark Salyzyn2015-04-151-12/+125
| | | | | | | | | | Intention is to read from ${OUT}/system/etc/fs_config_dirs and ${OUT}/system/etc/fs_config_files on host. And /system/etc/fs_config_dirs and /system/etc/config_files on target systems. Bug: 19908228 Change-Id: I0966a94f79a3fae4f7325056c701ea355370f9df
* android_filesystem_config: move fs_config to libcutilsMark Salyzyn2015-04-061-11/+0
| | | | | Bug: 19908228 Change-Id: Id51c0c50eb2677824d052882f4263193a08e1402
* libcutils: add fs_configMark Salyzyn2015-04-061-0/+145
Bug: 19908228 Change-Id: I78e6a8d780e578a287ffdee7b7120ecc74797e80