MCPcopy Index your code
hub / github.com/coreutils/coreutils / write_error

Function write_error

src/system.h:959–967  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

957/* exit with a _single_ "write error" diagnostic. */
958
959static inline void
960write_error (void)
961{
962 int saved_errno = errno;
963 fflush (stdout); /* Last attempt to write any buffered data. */
964 fpurge (stdout); /* Ensure nothing buffered that might induce an error. */
965 clearerr (stdout); /* Avoid extraneous diagnostic from close_stdout. */
966 error (EXIT_FAILURE, saved_errno, _("write error"));
967}
968
969/* Like stpncpy, but do ensure that the result is NUL-terminated,
970 and do not NUL-pad out to LEN. I.e., when strnlen (src, len) == len,

Callers 15

mainFunction · 0.85
mainFunction · 0.85
print_pageFunction · 0.85
print_clumpFunction · 0.85
writelineFunction · 0.85
outputFunction · 0.85
prjoinFunction · 0.85
print_sizeFunction · 0.85
process_fileFunction · 0.85
mainFunction · 0.85
writelineFunction · 0.85
check_fileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected