Lines Matching refs:data_read
773 char *data_read = NULL; in read_from_pipe_to_data() local
778 data_read = malloc(max_len * sizeof(*data_read)); in read_from_pipe_to_data()
779 if (data_read == NULL) { in read_from_pipe_to_data()
784 while ((read_len = read(fd, data_read + data_read_len, max_len - data_read_len)) > 0) { in read_from_pipe_to_data()
788 data_read = realloc(data_read, max_len); in read_from_pipe_to_data()
789 if (data_read == NULL) { in read_from_pipe_to_data()
797 *out_data_read = data_read; in read_from_pipe_to_data()
808 char *data_read = NULL; in semanage_pipe_data() local
921 …retval = read_from_pipe_to_data(sh, initial_len, output_fd[PIPE_READ], &data_read, &data_read_len); in semanage_pipe_data()
961 if (data_read != NULL) { in semanage_pipe_data()
962 *out_data = data_read; in semanage_pipe_data()