Searched refs:output_fd (Results 1 – 3 of 3) sorted by relevance
/external/linux-tools-perf/src/tools/perf/util/ |
D | trace-event-info.c | 46 static int output_fd; variable 63 off_t hdr_pos = lseek(output_fd, 0, SEEK_CUR); in record_file() 75 if (write(output_fd, &size, hdr_sz) != hdr_sz) in record_file() 83 if (write(output_fd, buf, r) != r) in record_file() 93 if (hdr_sz && pwrite(output_fd, sizep, hdr_sz, hdr_pos) < 0) { in record_file() 121 if (write(output_fd, "header_page", 12) != 12) { in record_header_files() 145 if (write(output_fd, "header_event", 13) != 13) { in record_header_files() 207 if (write(output_fd, &count, 4) != 4) { in copy_event_system() 306 if (write(output_fd, &count, 4) != 4) { in record_event_files() 330 if (write(output_fd, dent->d_name, size) != size || in record_event_files() [all …]
|
/external/selinux/libsemanage/src/ |
D | direct_api.c | 661 int output_fd[2]; in semanage_pipe_data() local 689 retval = pipe(output_fd); in semanage_pipe_data() 711 retval = dup2(output_fd[PIPE_WRITE], STDOUT_FILENO); in semanage_pipe_data() 727 retval = close(output_fd[PIPE_READ]); in semanage_pipe_data() 750 retval = close(output_fd[PIPE_WRITE]); in semanage_pipe_data() 751 output_fd[PIPE_WRITE] = -1; in semanage_pipe_data() 777 …retval = read_from_pipe_to_data(sh, initial_len, output_fd[PIPE_READ], &data_read, &data_read_len); in semanage_pipe_data() 781 retval = close(output_fd[PIPE_READ]); in semanage_pipe_data() 782 output_fd[PIPE_READ] = -1; in semanage_pipe_data() 827 if (output_fd[PIPE_READ] != -1) { in semanage_pipe_data() [all …]
|
/external/linux-tools-perf/src/tools/perf/ |
D | builtin-stat.c | 1389 int output_fd = 0; in cmd_stat() local 1431 OPT_INTEGER(0, "log-fd", &output_fd, in cmd_stat() 1467 if (output_name && output_fd) { in cmd_stat() 1472 if (output_fd < 0) { in cmd_stat() 1488 } else if (output_fd > 0) { in cmd_stat() 1490 output = fdopen(output_fd, mode); in cmd_stat()
|