Lines Matching refs:dir_fd
275 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()
462 if (close(dir_fd) < 0) { in checksum_save()
475 if (dir_fd != -1) close(dir_fd); in checksum_save()