Home | History | Annotate | Download | only in sed

Lines Matching refs:fp

133   /* Function to read one line.  If FP is NULL, read_fn better not
134 be one which uses fp; in particular, read_always_fail() is
146 FILE *fp;
531 long result = ck_getline (&b, &blen, input->fp);
554 ck_fwrite("\n", 1, 1, outf->fp);
561 flush_output(fp)
562 FILE *fp;
564 if (fp != stdout || unbuffered_output)
565 ck_fflush(fp);
581 ck_fwrite(text, 1, length, outf->fp);
583 ck_fwrite("\n", 1, 1, outf->fp);
587 flush_output(outf->fp);
636 ck_fwrite(p->text, 1, p->textlen, output_file.fp);
642 FILE *fp;
648 fp = ck_fopen(p->fname, read_mode, false);
649 if (fp)
651 while ((cnt = ck_fread(buf, 1, sizeof buf, fp)) > 0)
652 ck_fwrite(buf, 1, cnt, output_file.fp);
653 ck_fclose(fp);
658 flush_output(output_file.fp);
709 input->fp = ck_fdopen (fileno (stdin), "stdin", read_mode, false);
711 else if ( ! (input->fp = ck_fopen(name, read_mode, false)) )
744 if (isatty (fileno (input->fp)))
747 input_fd = fileno (input->fp);
775 output_file.fp = ck_mkstemp (&input->out_file_name, tmpdir, "sed");
787 if (!output_file.fp)
791 output_file.fp = stdout;
802 if (!input->fp)
805 if (in_place_extension && output_file.fp != NULL)
811 input_fd = fileno (input->fp);
812 output_fd = fileno (output_file.fp);
821 ck_fclose (input->fp);
822 ck_fclose (output_file.fp);
834 ck_fclose (input->fp);
836 input->fp = NULL;
918 if (input->fp)
920 if ((ch = getc(input->fp)) != EOF)
922 ungetc(ch, input->fp);
939 if (!input->fp)
941 if (feof(input->fp))
943 if ((ch = getc(input->fp)) == EOF)
945 ungetc(ch, input->fp);
1080 FILE *fp = output_file.fp;
1119 ck_fwrite("\\\n", 1, 2, fp);
1122 ck_fwrite(obuf, 1, olen, fp);
1125 ck_fwrite("$\n", 1, 2, fp);
1126 flush_output (fp);
1482 ck_fwrite(buf, 1, n, output_file.fp);
1500 flush_output(output_file.fp);
1559 output_file.fp);
1560 flush_output(output_file.fp);
1612 if (cur_cmd->x.fp && !feof (cur_cmd->x.fp))
1619 result = ck_getline (&text, &buflen, cur_cmd->x.fp);
1654 if (cur_cmd->x.fp)
1660 if (cur_cmd->x.fp)
1759 fprintf(output_file.fp, "%lu\n",
1761 flush_output(output_file.fp);
1858 input.fp = NULL;