Searched refs:new_fd (Results 1 – 1 of 1) sorted by relevance
290 const int new_fd = TEMP_FAILURE_RETRY(open(file_path.c_str(), open_flags)); in ReopenOrDetach() local292 if (new_fd == -1) { in ReopenOrDetach()300 if (TEMP_FAILURE_RETRY(fcntl(new_fd, F_SETFD, fd_flags)) == -1) { in ReopenOrDetach()301 close(new_fd); in ReopenOrDetach()303 new_fd, in ReopenOrDetach()310 if (TEMP_FAILURE_RETRY(fcntl(new_fd, F_SETFL, fs_flags)) == -1) { in ReopenOrDetach()311 close(new_fd); in ReopenOrDetach()313 new_fd, in ReopenOrDetach()320 if (offset != -1 && TEMP_FAILURE_RETRY(lseek64(new_fd, offset, SEEK_SET)) == -1) { in ReopenOrDetach()321 close(new_fd); in ReopenOrDetach()[all …]