MCPcopy Create free account
hub / github.com/coreutils/coreutils / stat

Class stat

src/wc.c:898–898  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

896 /* Read the file list into RAM if we can detect its size and that
897 size is reasonable. Otherwise, we'll read a name at a time. */
898 struct stat st;
899 if (fstat (fileno (stream), &st) == 0
900 && S_ISREG (st.st_mode)
901 && st.st_size <= MIN (10 * 1024 * 1024, physmem_available () / 2))

Callers 1

get_input_fstatusFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected