Home
last modified time | relevance | path

Searched refs:srcfd (Results 1 – 2 of 2) sorted by relevance

/frameworks/opt/net/wifi/libwifi_system/
Dsupplicant_manager.cpp51 int srcfd, destfd; in ensure_config_file_exists() local
74 srcfd = TEMP_FAILURE_RETRY(open(configPathSystem.c_str(), O_RDONLY)); in ensure_config_file_exists()
76 if (srcfd < 0) { in ensure_config_file_exists()
78 srcfd = TEMP_FAILURE_RETRY(open(configPathVendor.c_str(), O_RDONLY)); in ensure_config_file_exists()
80 if (srcfd < 0) { in ensure_config_file_exists()
94 close(srcfd); in ensure_config_file_exists()
100 while ((nread = TEMP_FAILURE_RETRY(read(srcfd, buf, sizeof(buf)))) != 0) { in ensure_config_file_exists()
104 close(srcfd); in ensure_config_file_exists()
113 close(srcfd); in ensure_config_file_exists()
/frameworks/native/cmds/installd/
Dutils.cpp534 static int _copy_owner_permissions(int srcfd, int dstfd) in _copy_owner_permissions() argument
537 if (fstat(srcfd, &st) != 0) { in _copy_owner_permissions()