Lines Matching refs:scoped_fd
68 base::ScopedFD scoped_fd(HANDLE_EINTR(openat( in RegularFileOrDelete() local
70 bool path_not_empty = (errno == ELOOP || scoped_fd != -1); in RegularFileOrDelete()
73 if (scoped_fd != -1) { in RegularFileOrDelete()
75 if (fstat(scoped_fd.get(), &file_stat) != -1 && in RegularFileOrDelete()
121 base::ScopedFD scoped_fd(HANDLE_EINTR(openat( in TouchFileInternal() local
124 if (scoped_fd == -1) { in TouchFileInternal()
130 fd_out->swap(scoped_fd); in TouchFileInternal()
165 base::ScopedFD scoped_fd; in TouchFile() local
166 if (!TouchFileInternal(path, uid, gid, &scoped_fd)) { in TouchFile()
171 if (scoped_fd != -1 && in TouchFile()
172 HANDLE_EINTR(fchmod(scoped_fd.get(), new_file_permissions)) == -1) { in TouchFile()