Lines Matching refs:out_fd
167 bool cpioWriteHeader(int out_fd, struct stat& st, const char* file_name, in cpioWriteHeader() argument
178 if (write(out_fd, read_buf.data(), llen) == -1) { in cpioWriteHeader()
182 if (write(out_fd, file_name, file_name_len) == -1) { in cpioWriteHeader()
191 if (write(out_fd, &zero, 4 - llen) == -1) { in cpioWriteHeader()
200 size_t cpioWriteFileContent(int fd_read, int out_fd, struct stat& st) { in cpioWriteFileContent() argument
212 if (write(out_fd, read_buf.data(), bytes_read) == -1) { in cpioWriteFileContent()
226 if (write(out_fd, &zero, 4 - llen) == -1) { in cpioWriteFileContent()
235 bool cpioWriteFileTrailer(int out_fd) { in cpioWriteFileTrailer() argument
238 if (write(out_fd, read_buf.data(), in cpioWriteFileTrailer()
251 size_t cpioArchiveFilesInDir(int out_fd, const char* input_dir) { in cpioArchiveFilesInDir() argument
282 if (!cpioWriteHeader(out_fd, st, cur_file_name.c_str(), in cpioArchiveFilesInDir()
286 size_t write_error = cpioWriteFileContent(fd_read, out_fd, st); in cpioArchiveFilesInDir()
291 if (!cpioWriteFileTrailer(out_fd)) { in cpioArchiveFilesInDir()