OSDN Git Service

[DO NOT MERGE] btif: Lighter weight file existence check
authorGreg Kaiser <gkaiser@google.com>
Thu, 7 Feb 2019 16:54:01 +0000 (08:54 -0800)
committerMartin Brabham <optedoblivion@google.com>
Mon, 11 Mar 2019 21:20:34 +0000 (14:20 -0700)
commit169ddca90e8bb6b6d286444a81b8eb1fbdb6c812
tree16ddd5f472259c975f5c68f13d07ab9ce13d0438
parente0f1e9a32ce5d013aea911eabfc574093e40a7c0
[DO NOT MERGE] btif: Lighter weight file existence check

We switch from the heavier weight fopen() to using access() to
check for file existence and readability.  This avoids some of
the file opening overhead we don't need here.

Bug: b/117993149
Test: TreeHugger
Change-Id: Ib47b24e9d96803b7822535f9f566aa7818b38953
Merged-In: Ib47b24e9d96803b7822535f9f566aa7818b38953
btif/src/btif_config.cc