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

Function set_exit_status

src/ls.c:2906–2913  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2904 serious failure; otherwise, it is merely a minor problem. */
2905
2906static void
2907set_exit_status (bool serious)
2908{
2909 if (serious)
2910 exit_status = LS_FAILURE;
2911 else if (exit_status == EXIT_SUCCESS)
2912 exit_status = LS_MINOR_PROBLEM;
2913}
2914
2915/* Assuming a failure is serious if SERIOUS, use the printf-style
2916 MESSAGE to report the failure to access a file named FILE. Assume

Callers 3

file_failureFunction · 0.85
print_dirFunction · 0.85
xstrcollFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected