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

Function known_value

src/df.c:853–857  ·  view source on GitHub ↗

Return true if N is a known integer value. On many file systems, UINTMAX_MAX represents an unknown value; on AIX, UINTMAX_MAX - 1 represents unknown. Use a rule that works on AIX file systems, and that almost-always works on other types. */

Source from the content-addressed store, hash-verified

851 represents unknown. Use a rule that works on AIX file systems, and
852 that almost-always works on other types. */
853static bool
854known_value (uintmax_t n)
855{
856 return n < UINTMAX_MAX - 1;
857}
858
859/* Like human_readable (N, BUF, human_output_opts, INPUT_UNITS, OUTPUT_UNITS),
860 except:

Callers 4

df_readableFunction · 0.85
get_field_valuesFunction · 0.85
add_to_grand_totalFunction · 0.85
get_devFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected