Home
last modified time | relevance | path

Searched refs:dir_fd (Results 1 – 4 of 4) sorted by relevance

/system/bt/gd/storage/
Dlegacy_osi_config.cc278 int dir_fd = -1; in config_save() local
292 dir_fd = open(directoryname.c_str(), O_RDONLY); in config_save()
293 if (dir_fd < 0) { in config_save()
348 if (fsync(dir_fd) < 0) { in config_save()
352 if (close(dir_fd) < 0) { in config_save()
364 if (dir_fd != -1) close(dir_fd); in config_save()
382 int dir_fd = -1; in checksum_save() local
396 dir_fd = open(directoryname.c_str(), O_RDONLY); in checksum_save()
397 if (dir_fd < 0) { in checksum_save()
438 if (fsync(dir_fd) < 0) { in checksum_save()
[all …]
/system/bt/osi/src/
Dconfig.cc275 int dir_fd = -1; in config_save() local
290 dir_fd = open(directoryname.c_str(), O_RDONLY); in config_save()
291 if (dir_fd < 0) { in config_save()
356 if (fsync(dir_fd) < 0) { in config_save()
361 if (close(dir_fd) < 0) { in config_save()
374 if (dir_fd != -1) close(dir_fd); in config_save()
392 int dir_fd = -1; in checksum_save() local
407 dir_fd = open(directoryname.c_str(), O_RDONLY); in checksum_save()
408 if (dir_fd < 0) { in checksum_save()
457 if (fsync(dir_fd) < 0) { in checksum_save()
[all …]
/system/security/keystore/
Dkeystore_utils.cpp94 android::base::unique_fd dir_fd(TEMP_FAILURE_RETRY(open(path.c_str(), O_DIRECTORY | O_RDONLY))); in fsyncDirectory() local
96 if (dir_fd < 0) { in fsyncDirectory()
101 if (TEMP_FAILURE_RETRY(fsync(dir_fd)) == -1) { in fsyncDirectory()
/system/core/init/
Dpersistent_properties.cpp201 auto dir_fd = unique_fd{open(dir.c_str(), O_DIRECTORY | O_RDONLY | O_CLOEXEC)}; in WritePersistentPropertyFile()
202 if (dir_fd < 0) { in WritePersistentPropertyFile()
205 fsync(dir_fd); in WritePersistentPropertyFile()