Home
last modified time | relevance | path

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

/system/uapp/xdc-test/
A Dxdc-test.cpp41 static zx_status_t read_file_header(const fbl::unique_fd& xdc_fd, file_header_t* out_file_header) { in read_file_header() argument
48 ((res = read(xdc_fd.get(), buf + total_read, len - total_read)) != 0)) { in read_file_header()
63 static zx_status_t write_file_header(const fbl::unique_fd& file_fd, fbl::unique_fd& xdc_fd, in write_file_header() argument
72 ssize_t res = write(xdc_fd.get(), buf, sizeof(file_header)); in write_file_header()
153 fbl::unique_fd xdc_fd; in main() local
154 zx_status_t status = configure_xdc(stream_id, &xdc_fd); in main()
171 if (read_file_header(xdc_fd, &file_header) != ZX_OK) { in main()
174 src_fd = std::move(xdc_fd); in main()
177 if (write_file_header(file_fd, xdc_fd, &file_header) != ZX_OK) { in main()
181 dest_fd = std::move(xdc_fd); in main()

Completed in 2 milliseconds