Searched refs:dir_fd (Results 1 – 3 of 3) sorted by relevance
79 int dir_fd = HANDLE_EINTR(open(dir_name.c_str(), O_RDONLY|O_DIRECTORY)); in Write() local80 if (dir_fd < 0) { in Write()85 int result = HANDLE_EINTR(fsync(dir_fd)); in Write()88 close(dir_fd); in Write()92 result = IGNORE_EINTR(close(dir_fd)); in Write()
130 int dir_fd = HANDLE_EINTR(open(dir_name.c_str(), O_RDONLY|O_DIRECTORY)); in Write() local131 if (dir_fd < 0) { in Write()136 int result = HANDLE_EINTR(fsync(dir_fd)); in Write()139 close(dir_fd); in Write()143 result = IGNORE_EINTR(close(dir_fd)); in Write()
291 int dir_fd = -1; in config_save() local309 dir_fd = open(directoryname, O_RDONLY); in config_save()310 if (dir_fd < 0) { in config_save()369 if (fsync(dir_fd) < 0) { in config_save()373 if (close(dir_fd) < 0) { in config_save()387 if (dir_fd != -1) in config_save()388 close(dir_fd); in config_save()