Home
last modified time | relevance | path

Searched refs:stream (Results 1 – 18 of 18) sorted by relevance

/coreutils/src/
Dcut.c217 cut_bytes (FILE *stream) in cut_bytes() argument
231 c = getc (stream); in cut_bytes()
277 cut_fields (FILE *stream) in cut_fields() argument
286 c = getc (stream); in cut_fields()
290 ungetc (c, stream); in cut_fields()
309 GETNLINE_NO_LIMIT, delim, line_delim, stream); in cut_fields()
314 if (ferror (stream) || feof (stream)) in cut_fields()
359 int last_c = getc (stream); in cut_fields()
362 ungetc (last_c, stream); in cut_fields()
387 while ((c = getc (stream)) != delim && c != line_delim && c != EOF) in cut_fields()
[all …]
Dsum.c40 bsd_sum_stream (FILE *stream, void *resstream, uintmax_t *length) in bsd_sum_stream() argument
60 n = fread (buffer + sum, 1, buffer_length - sum, stream); in bsd_sum_stream()
68 if (ferror (stream)) in bsd_sum_stream()
73 if (feof (stream)) in bsd_sum_stream()
118 sysv_sum_stream (FILE *stream, void *resstream, uintmax_t *length) in sysv_sum_stream() argument
140 n = fread (buffer + sum, 1, buffer_length - sum, stream); in sysv_sum_stream()
148 if (ferror (stream)) in sysv_sum_stream()
153 if (feof (stream)) in sysv_sum_stream()
Dlibstdbuf.c92 apply_mode (FILE *stream, char const *mode) in apply_mode() argument
110 mode, fileno_to_name (fileno (stream))); in apply_mode()
128 if (setvbuf (stream, buf, setvbuf_mode, size) != 0) in apply_mode()
131 fileno_to_name (fileno (stream)), mode); in apply_mode()
Dnl.c438 FILE *stream; in nl_file() local
443 stream = stdin; in nl_file()
444 assume (stream); /* Pacify GCC bug#109613. */ in nl_file()
448 stream = fopen (file, "r"); in nl_file()
449 if (stream == nullptr) in nl_file()
456 fadvise (stream, FADVISE_SEQUENTIAL); in nl_file()
458 process_file (stream); in nl_file()
461 if (!ferror (stream)) in nl_file()
464 clearerr (stream); /* Also clear EOF. */ in nl_file()
465 else if (fclose (stream) != 0 && !err) in nl_file()
Dpinky.c352 FILE *stream; in print_long_entry() local
359 stream = fopen (project, "r"); in print_long_entry()
360 if (stream) in print_long_entry()
366 while ((bytes = fread (buf, 1, sizeof (buf), stream)) > 0) in print_long_entry()
368 fclose (stream); in print_long_entry()
376 FILE *stream; in print_long_entry() local
383 stream = fopen (plan, "r"); in print_long_entry()
384 if (stream) in print_long_entry()
390 while ((bytes = fread (buf, 1, sizeof (buf), stream)) > 0) in print_long_entry()
392 fclose (stream); in print_long_entry()
Dsum.h2 bsd_sum_stream (FILE *stream, void *resstream, uintmax_t *length);
5 sysv_sum_stream (FILE *stream, void *resstream, uintmax_t *length);
Ddigest.c243 md5_sum_stream (FILE *stream, void *resstream, uintmax_t *length) in md5_sum_stream() argument
245 return md5_stream (stream, resstream); in md5_sum_stream()
248 sha1_sum_stream (FILE *stream, void *resstream, uintmax_t *length) in sha1_sum_stream() argument
250 return sha1_stream (stream, resstream); in sha1_sum_stream()
253 sha224_sum_stream (FILE *stream, void *resstream, uintmax_t *length) in sha224_sum_stream() argument
255 return sha224_stream (stream, resstream); in sha224_sum_stream()
258 sha256_sum_stream (FILE *stream, void *resstream, uintmax_t *length) in sha256_sum_stream() argument
260 return sha256_stream (stream, resstream); in sha256_sum_stream()
263 sha384_sum_stream (FILE *stream, void *resstream, uintmax_t *length) in sha384_sum_stream() argument
265 return sha384_stream (stream, resstream); in sha384_sum_stream()
[all …]
Dcksum.h7 crc_sum_stream (FILE *stream, void *resstream, uintmax_t *length);
Dwc.c809 FILE *stream; in main() local
822 stream = stdin; in main()
825 stream = fopen (files_from, "r"); in main()
826 if (stream == nullptr) in main()
834 if (fstat (fileno (stream), &st) == 0 in main()
840 if (! readtokens0 (stream, &tok) || fclose (stream) != 0) in main()
851 ai = argv_iter_init_stream (stream); in main()
Dcksum.c220 crc_sum_stream (FILE *stream, void *resstream, uintmax_t *length) in crc_sum_stream() argument
233 if (! cksum_fp (stream, &crc, &total_bytes)) in crc_sum_stream()
Dlocal.mk62 src/temp-stream.h \
406 src_split_SOURCES = src/split.c src/temp-stream.c
407 src_tac_SOURCES = src/tac.c src/temp-stream.c
Dsort.c4676 FILE *stream = xfopen (files_from, "r"); in main() local
4680 if (! readtokens0 (stream, &tok)) in main()
4683 xfclose (stream, files_from); in main()
/coreutils/src/blake2/
Db2sum.c33 int blake2s_stream( FILE *stream, void *resstream, size_t outbytes )
51 n = fread( buffer + sum, 1, buffer_length - sum, stream );
59 if( ferror( stream ) )
65 if( feof( stream ) )
84 int blake2b_stream( FILE *stream, void *resstream, size_t outbytes ) in blake2b_stream() argument
102 n = fread( buffer + sum, 1, buffer_length - sum, stream ); in blake2b_stream()
110 if( ferror( stream ) ) in blake2b_stream()
116 if( feof( stream ) ) in blake2b_stream()
136 int blake2sp_stream( FILE *stream, void *resstream, size_t outbytes )
154 n = fread( buffer + sum, 1, buffer_length - sum, stream );
[all …]
Db2sum.h16 int blake2b_stream (FILE *stream, void *resstream, size_t outbytes)
/coreutils/tests/csplit/
Dcsplit-io-err.sh40 fwrite (const void *ptr, size_t size, size_t nitems, FILE *stream)
42 if (stream == stderr)
49 if (putc ((unsigned char) *p++, stream) == EOF)
62 fwrite_unlocked (const void *ptr, size_t size, size_t nitems, FILE *stream)
64 return fwrite (ptr, size, nitems, stream);
/coreutils/po/
DPOTFILES.in128 src/temp-stream.c
/coreutils/
Dconfigure.ac479 # include <sys/stream.h>
/coreutils/doc/
Dcoreutils.texi2296 @cindex Ignore garbage in base64 stream
5441 Note that when groups are delimited and the input stream contains
10759 undifferentiated byte stream of @dfn{normal files}. For example, when a
18522 @section @command{stdbuf}: Run a command with modified I/O stream buffering
18557 Adjust the standard input stream buffering.
18563 Adjust the standard output stream buffering.
18569 Adjust the standard error stream buffering.
18578 Set the stream to line buffered mode.
18580 input is read from any stream attached to a terminal device.
18584 Disable buffering of the selected stream.
[all …]