Searched refs:output_fd (Results 1 – 3 of 3) sorted by relevance
/external/selinux/policycoreutils/semodule/ |
D | semodule.c | 432 FILE *output_fd = NULL; in main() local 498 output_fd = fopen(output_path, "w"); in main() 499 if (output_fd == NULL) { in main() 505 if (fwrite(data, 1, data_len, output_fd) < data_len) { in main() 511 if (output_fd != NULL) { in main() 512 fclose(output_fd); in main()
|
/external/selinux/libsemanage/src/ |
D | direct_api.c | 751 int output_fd[2] = {-1, -1}; in semanage_pipe_data() local 779 retval = pipe(output_fd); in semanage_pipe_data() 801 retval = dup2(output_fd[PIPE_WRITE], STDOUT_FILENO); in semanage_pipe_data() 817 retval = close(output_fd[PIPE_READ]); in semanage_pipe_data() 840 retval = close(output_fd[PIPE_WRITE]); in semanage_pipe_data() 841 output_fd[PIPE_WRITE] = -1; in semanage_pipe_data() 867 …retval = read_from_pipe_to_data(sh, initial_len, output_fd[PIPE_READ], &data_read, &data_read_len); in semanage_pipe_data() 871 retval = close(output_fd[PIPE_READ]); in semanage_pipe_data() 872 output_fd[PIPE_READ] = -1; in semanage_pipe_data() 917 if (output_fd[PIPE_READ] != -1) { in semanage_pipe_data() [all …]
|
/external/ltp/testcases/realtime/lib/ |
D | librttest.c | 662 static void read_and_print(const char *pathname, int output_fd) in read_and_print() argument 684 write_or_complain(output_fd, data, ret); in read_and_print()
|