Home
last modified time | relevance | path

Searched refs:fp (Results 1 – 25 of 35) sorted by relevance

12

/coreutils/src/
Dprog-fprintf.c28 prog_fprintf (FILE *fp, char const *fmt, ...) in prog_fprintf() argument
31 fputs (program_name, fp); in prog_fprintf()
32 fputs (": ", fp); in prog_fprintf()
34 vfprintf (fp, fmt, ap); in prog_fprintf()
36 fputc ('\n', fp); in prog_fprintf()
Dexpand-common.c330 next_file (FILE *fp) in next_file() argument
335 if (fp) in next_file()
338 if (!ferror (fp)) in next_file()
341 clearerr (fp); /* Also clear EOF. */ in next_file()
342 else if (fclose (fp) != 0) in next_file()
356 fp = stdin; in next_file()
359 fp = fopen (file, "r"); in next_file()
360 if (fp) in next_file()
363 fadvise (fp, FADVISE_SEQUENTIAL); in next_file()
364 return fp; in next_file()
Dtemp-stream.c57 record_or_unlink_tempfile (char const *fn, FILE *fp) in record_or_unlink_tempfile() argument
62 fp_to_close = fp; in record_or_unlink_tempfile()
70 record_or_unlink_tempfile (char const *fn, MAYBE_UNUSED FILE *fp) in record_or_unlink_tempfile() argument
85 temp_stream (FILE **fp, char **file_name) in temp_stream() argument
161 *fp = tmp_fp; in temp_stream()
Dexpand.c97 FILE *fp = next_file (nullptr); in expand() local
99 if (!fp) in expand()
125 while ((c = getc (fp)) < 0 && (fp = next_file (fp))) in expand()
Dcksum_pclmul.c31 cksum_pclmul (FILE *fp, uint_fast32_t *crc_out, uintmax_t *length_out);
36 cksum_pclmul (FILE *fp, uint_fast32_t *crc_out, uintmax_t *length_out) in cksum_pclmul() argument
46 if (!fp || !crc_out || !length_out) in cksum_pclmul()
59 while ((bytes_read = fread (buf, 1, BUFLEN, fp)) > 0) in cksum_pclmul()
181 if (feof (fp)) in cksum_pclmul()
188 return !ferror (fp); in cksum_pclmul()
Dunexpand.c106 FILE *fp = next_file (nullptr); in unexpand() local
113 if (!fp) in unexpand()
158 while ((c = getc (fp)) < 0 && (fp = next_file (fp))) in unexpand()
Dcksum.c163 cksum_slice8 (FILE *fp, uint_fast32_t *crc_out, uintmax_t *length_out) in cksum_slice8() argument
170 if (!fp || !crc_out || !length_out) in cksum_slice8()
173 while ((bytes_read = fread (buf, 1, BUFLEN, fp)) > 0) in cksum_slice8()
206 if (feof (fp)) in cksum_slice8()
213 return !ferror (fp); in cksum_slice8()
Dpr.c386 FILE *fp; /* Input stream for this column. */ member
1357 init_header (*av, fileno (p->fp)); in init_fps()
1363 p->fp = stdin; in init_fps()
1373 FILE *firstfp = p->fp; in init_fps()
1378 p->fp = firstfp; in init_fps()
1486 p->fp = stdin; in open_file()
1492 p->fp = fopen (name, "r"); in open_file()
1494 if (p->fp == nullptr) in open_file()
1501 fadvise (p->fp, FADVISE_SEQUENTIAL); in open_file()
1523 if (!ferror (p->fp)) in close_file()
[all …]
Dtemp-stream.h6 extern bool temp_stream (FILE **fp, char **file_name);
Dprog-fprintf.h22 extern void prog_fprintf (FILE *fp, char const *fmt, ...)
Dexpand-common.h60 next_file (FILE *fp);
Dcksum.h15 cksum_pclmul (FILE *fp, uint_fast32_t *crc_out, uintmax_t *length_out);
Dtac.c380 FILE *fp; in copy_to_temp() local
383 if (!temp_stream (&fp, &file_name)) in copy_to_temp()
397 if (fwrite (G_buffer, 1, bytes_read, fp) != bytes_read) in copy_to_temp()
409 if (fflush (fp) != 0) in copy_to_temp()
415 *g_tmp = fp; in copy_to_temp()
/coreutils/scripts/build-older-versions/
Dcoreutils-7.2-on-glibc-2.28.diff6 freadahead (FILE *fp)
10 if (fp->_IO_write_ptr > fp->_IO_write_base)
12 return (fp->_IO_read_end - fp->_IO_read_ptr)
22 if (fp->_IO_write_ptr > fp->_IO_write_base)
24 size = fp->_IO_read_end - fp->_IO_read_ptr;
29 freadptrinc (FILE *fp, size_t increment)
34 fp->_IO_read_ptr += increment;
46 if (fp->_IO_read_end == fp->_IO_read_ptr
47 && fp->_IO_write_ptr == fp->_IO_write_base
48 && fp->_IO_save_base == NULL)
[all …]
Dcoreutils-8.24-on-glibc-2.28.diff6 freadahead (FILE *fp)
10 if (fp->_IO_write_ptr > fp->_IO_write_base)
12 return (fp->_IO_read_end - fp->_IO_read_ptr)
22 if (fp->_IO_write_ptr > fp->_IO_write_base)
24 size = fp->_IO_read_end - fp->_IO_read_ptr;
31 __freadptrinc (fp, increment);
34 fp->_IO_read_ptr += increment;
46 if (fp->_IO_read_end == fp->_IO_read_ptr
47 && fp->_IO_write_ptr == fp->_IO_write_base
48 && fp->_IO_save_base == NULL)
[all …]
Dcoreutils-6.10-on-glibc-2.28.diff6 freadahead (FILE *fp)
10 if (fp->_IO_write_ptr > fp->_IO_write_base)
12 return fp->_IO_read_end - fp->_IO_read_ptr;
22 fp->_flags |= _IO_ERR_SEEN;
24 fp->_flags |= __SERR;
Dcoreutils-8.4-on-glibc-2.28.diff6 freadahead (FILE *fp)
10 if (fp->_IO_write_ptr > fp->_IO_write_base)
12 return (fp->_IO_read_end - fp->_IO_read_ptr)
22 if (fp->_IO_write_ptr > fp->_IO_write_base)
24 size = fp->_IO_read_end - fp->_IO_read_ptr;
29 freadptrinc (FILE *fp, size_t increment)
34 fp->_IO_read_ptr += increment;
46 if (fp->_IO_read_end == fp->_IO_read_ptr
47 && fp->_IO_write_ptr == fp->_IO_write_base
48 && fp->_IO_save_base == NULL)
[all …]
Dcoreutils-8.18-on-glibc-2.28.diff6 freadahead (FILE *fp)
10 if (fp->_IO_write_ptr > fp->_IO_write_base)
12 return (fp->_IO_read_end - fp->_IO_read_ptr)
22 if (fp->_IO_write_ptr > fp->_IO_write_base)
24 size = fp->_IO_read_end - fp->_IO_read_ptr;
31 __freadptrinc (fp, increment);
34 fp->_IO_read_ptr += increment;
46 if (fp->_IO_read_end == fp->_IO_read_ptr
47 && fp->_IO_write_ptr == fp->_IO_write_base
48 && fp->_IO_save_base == NULL)
[all …]
Dcoreutils-8.17-on-glibc-2.28.diff6 freadahead (FILE *fp)
10 if (fp->_IO_write_ptr > fp->_IO_write_base)
12 return (fp->_IO_read_end - fp->_IO_read_ptr)
22 if (fp->_IO_write_ptr > fp->_IO_write_base)
24 size = fp->_IO_read_end - fp->_IO_read_ptr;
29 freadptrinc (FILE *fp, size_t increment)
34 fp->_IO_read_ptr += increment;
46 if (fp->_IO_read_end == fp->_IO_read_ptr
47 && fp->_IO_write_ptr == fp->_IO_write_base
48 && fp->_IO_save_base == NULL)
[all …]
Dcoreutils-8.13-on-glibc-2.28.diff6 freadahead (FILE *fp)
10 if (fp->_IO_write_ptr > fp->_IO_write_base)
12 return (fp->_IO_read_end - fp->_IO_read_ptr)
22 if (fp->_IO_write_ptr > fp->_IO_write_base)
24 size = fp->_IO_read_end - fp->_IO_read_ptr;
29 freadptrinc (FILE *fp, size_t increment)
34 fp->_IO_read_ptr += increment;
46 if (fp->_IO_read_end == fp->_IO_read_ptr
47 && fp->_IO_write_ptr == fp->_IO_write_base
48 && fp->_IO_save_base == NULL)
[all …]
Dcoreutils-6.12-on-glibc-2.28.diff6 freadahead (FILE *fp)
10 if (fp->_IO_write_ptr > fp->_IO_write_base)
12 return (fp->_IO_read_end - fp->_IO_read_ptr)
22 if (fp->_IO_write_ptr > fp->_IO_write_base)
24 size = fp->_IO_read_end - fp->_IO_read_ptr;
29 freadptrinc (FILE *fp, size_t increment)
34 fp->_IO_read_ptr += increment;
46 fp->_flags |= _IO_ERR_SEEN;
Dcoreutils-6.11-on-glibc-2.28.diff16 freadahead (FILE *fp)
20 if (fp->_IO_write_ptr > fp->_IO_write_base)
22 return (fp->_IO_read_end - fp->_IO_read_ptr)
32 fp->_flags |= _IO_ERR_SEEN;
34 fp->_flags |= __SERR;
/coreutils/tests/ls/
Dgetxattr-speedup.sh39 FILE *fp = fopen ("x", "w"); if (!fp) return;
40 fprintf (fp, "%lu\n", n_calls); fclose (fp);
/coreutils/gl/lib/
Dfadvise.c39 fadvise (FILE *fp, fadvice_t advice) in fadvise() argument
41 if (fp) in fadvise()
42 fdadvise (fileno (fp), 0, 0, advice); in fadvise()
Dfadvise.h71 void fadvise (FILE *fp, fadvice_t advice);

12