• Home
  • Raw
  • Download

Lines Matching refs:fp

145   FILE *fp;  member
528 long result = ck_getline (&b, &blen, input->fp);
550 ck_fwrite("\n", 1, 1, outf->fp);
557 flush_output(fp) in flush_output() argument
558 FILE *fp; in flush_output()
560 if (fp != stdout || unbuffered_output)
561 ck_fflush(fp);
577 ck_fwrite(text, 1, length, outf->fp);
579 ck_fwrite("\n", 1, 1, outf->fp);
583 flush_output(outf->fp);
632 ck_fwrite(p->text, 1, p->textlen, output_file.fp); in dump_append_queue()
638 FILE *fp; in dump_append_queue() local
644 fp = ck_fopen(p->fname, read_mode, false); in dump_append_queue()
645 if (fp) in dump_append_queue()
647 while ((cnt = ck_fread(buf, 1, sizeof buf, fp)) > 0) in dump_append_queue()
648 ck_fwrite(buf, 1, cnt, output_file.fp); in dump_append_queue()
649 ck_fclose(fp); in dump_append_queue()
654 flush_output(output_file.fp); in dump_append_queue()
704 input->fp = ck_fdopen (fileno (stdin), "stdin", read_mode, false);
706 else if ( ! (input->fp = ck_fopen(name, read_mode, false)) )
739 if (isatty (fileno (input->fp)))
742 input_fd = fileno (input->fp);
770 output_file.fp = ck_mkstemp (&input->out_file_name, tmpdir, "sed");
782 if (!output_file.fp)
786 output_file.fp = stdout;
797 if (!input->fp)
800 if (in_place_extension && output_file.fp != NULL)
806 input_fd = fileno (input->fp);
807 output_fd = fileno (output_file.fp);
816 ck_fclose (input->fp);
817 ck_fclose (output_file.fp);
829 ck_fclose (input->fp);
831 input->fp = NULL;
912 if (input->fp)
914 if ((ch = getc(input->fp)) != EOF)
916 ungetc(ch, input->fp);
933 if (!input->fp)
935 if (feof(input->fp))
937 if ((ch = getc(input->fp)) == EOF)
939 ungetc(ch, input->fp);
1073 FILE *fp = output_file.fp; local
1112 ck_fwrite("\\\n", 1, 2, fp);
1115 ck_fwrite(obuf, 1, olen, fp);
1118 ck_fwrite("$\n", 1, 2, fp);
1119 flush_output (fp);
1475 ck_fwrite(buf, 1, n, output_file.fp);
1493 flush_output(output_file.fp);
1552 output_file.fp);
1553 flush_output(output_file.fp);
1605 if (cur_cmd->x.fp && !feof (cur_cmd->x.fp))
1612 result = ck_getline (&text, &buflen, cur_cmd->x.fp);
1647 if (cur_cmd->x.fp)
1653 if (cur_cmd->x.fp)
1752 fprintf(output_file.fp, "%lu\n",
1754 flush_output(output_file.fp);
1850 input.fp = NULL;