Home
last modified time | relevance | path

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

/frameworks/base/core/jni/
Dfd_utils.cpp318 const int new_fd = TEMP_FAILURE_RETRY(open(file_path.c_str(), open_flags)); in ReopenOrDetach() local
320 if (new_fd == -1) { in ReopenOrDetach()
327 if (TEMP_FAILURE_RETRY(fcntl(new_fd, F_SETFD, fd_flags)) == -1) { in ReopenOrDetach()
328 close(new_fd); in ReopenOrDetach()
330 new_fd, in ReopenOrDetach()
336 if (TEMP_FAILURE_RETRY(fcntl(new_fd, F_SETFL, fs_flags)) == -1) { in ReopenOrDetach()
337 close(new_fd); in ReopenOrDetach()
339 new_fd, in ReopenOrDetach()
345 if (offset != -1 && TEMP_FAILURE_RETRY(lseek64(new_fd, offset, SEEK_SET)) == -1) { in ReopenOrDetach()
346 close(new_fd); in ReopenOrDetach()
[all …]