Home
last modified time | relevance | path

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

/hardware/google/gfxstream/guest/android-emu/android/utils/
Ddebug.c112 int null_fd, out_fd, err_fd; in stdio_disable() local
114 out_fd = _fileno(stdout); in stdio_disable()
116 stdio_save_out_fd = _dup(out_fd); in stdio_disable()
119 _dup2(null_fd, out_fd); in stdio_disable()
127 int out_fd, err_fd; in stdio_enable() local
129 out_fd = _fileno(stdout); in stdio_enable()
131 _dup2(stdio_save_out_fd, out_fd); in stdio_enable()
140 int null_fd, out_fd, err_fd; in stdio_disable() local
142 out_fd = fileno(stdout); in stdio_disable()
144 stdio_save_out_fd = dup(out_fd); in stdio_disable()
[all …]
/hardware/interfaces/wifi/aidl/default/
Dwifi.cpp38 bool cpioWriteHeader(int out_fd, struct stat& st, const char* file_name, size_t file_name_len) { in cpioWriteHeader() argument
47 if (write(out_fd, read_buf.data(), llen < buf_size ? llen : buf_size - 1) == -1) { in cpioWriteHeader()
51 if (write(out_fd, file_name, file_name_len) == -1) { in cpioWriteHeader()
60 if (write(out_fd, &zero, 4 - llen) == -1) { in cpioWriteHeader()
69 size_t cpioWriteFileContent(int fd_read, int out_fd, struct stat& st) { in cpioWriteFileContent() argument
81 if (write(out_fd, read_buf.data(), bytes_read) == -1) { in cpioWriteFileContent()
95 if (write(out_fd, &zero, 4 - llen) == -1) { in cpioWriteFileContent()
104 bool cpioWriteFileTrailer(int out_fd) { in cpioWriteFileTrailer() argument
109 if (write(out_fd, read_buf.data(), (llen < buf_size ? llen : buf_size - 1) + 4) == -1) { in cpioWriteFileTrailer()
119 size_t cpioArchiveFilesInDir(int out_fd, const char* input_dir) { in cpioArchiveFilesInDir() argument
[all …]