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

Function sort_die

src/sort.c:402–412  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

400 If FILE is null, it represents standard output. */
401
402static void
403sort_die (char const *message, char const *file)
404{
405 /* If we got EPIPE writing to stdout (from a previous fwrite() or fclose()
406 and SIGPIPE was originally SIG_DFL, mimic standard SIGPIPE behavior. */
407 if (errno == EPIPE && !file && default_SIGPIPE)
408 sighandler (SIGPIPE);
409
410 error (SORT_FAILURE, errno, "%s: %s", message,
411 quotef (file ? file : _("standard output")));
412}
413
414void
415usage (int status)

Callers 12

xfopenFunction · 0.85
xfcloseFunction · 0.85
maybe_create_tempFunction · 0.85
sort_buffer_sizeFunction · 0.85
fillbufFunction · 0.85
random_md5_state_initFunction · 0.85
write_lineFunction · 0.85
mergefilesFunction · 0.85
check_inputsFunction · 0.85
check_outputFunction · 0.85
mergeFunction · 0.85
mainFunction · 0.85

Calls 1

sighandlerFunction · 0.70

Tested by

no test coverage detected