Searched refs:srcfd (Results 1 – 2 of 2) sorted by relevance
51 int srcfd, destfd; in ensure_config_file_exists() local74 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()
534 static int _copy_owner_permissions(int srcfd, int dstfd) in _copy_owner_permissions() argument537 if (fstat(srcfd, &st) != 0) { in _copy_owner_permissions()