/coreutils/src/ |
D | prog-fprintf.c | 28 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()
|
D | expand-common.c | 330 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()
|
D | temp-stream.c | 57 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()
|
D | expand.c | 97 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()
|
D | cksum_pclmul.c | 31 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()
|
D | unexpand.c | 106 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()
|
D | cksum.c | 163 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()
|
D | pr.c | 386 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 …]
|
D | temp-stream.h | 6 extern bool temp_stream (FILE **fp, char **file_name);
|
D | prog-fprintf.h | 22 extern void prog_fprintf (FILE *fp, char const *fmt, ...)
|
D | expand-common.h | 60 next_file (FILE *fp);
|
D | cksum.h | 15 cksum_pclmul (FILE *fp, uint_fast32_t *crc_out, uintmax_t *length_out);
|
D | tac.c | 380 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/ |
D | coreutils-7.2-on-glibc-2.28.diff | 6 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 …]
|
D | coreutils-8.24-on-glibc-2.28.diff | 6 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 …]
|
D | coreutils-6.10-on-glibc-2.28.diff | 6 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;
|
D | coreutils-8.4-on-glibc-2.28.diff | 6 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 …]
|
D | coreutils-8.18-on-glibc-2.28.diff | 6 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 …]
|
D | coreutils-8.17-on-glibc-2.28.diff | 6 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 …]
|
D | coreutils-8.13-on-glibc-2.28.diff | 6 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 …]
|
D | coreutils-6.12-on-glibc-2.28.diff | 6 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;
|
D | coreutils-6.11-on-glibc-2.28.diff | 16 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/ |
D | getxattr-speedup.sh | 39 FILE *fp = fopen ("x", "w"); if (!fp) return; 40 fprintf (fp, "%lu\n", n_calls); fclose (fp);
|
/coreutils/gl/lib/ |
D | fadvise.c | 39 fadvise (FILE *fp, fadvice_t advice) in fadvise() argument 41 if (fp) in fadvise() 42 fdadvise (fileno (fp), 0, 0, advice); in fadvise()
|
D | fadvise.h | 71 void fadvise (FILE *fp, fadvice_t advice);
|