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

Function get_outstatus

src/sort.c:928–936  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

926/* Return a pointer to stdout status, or NULL on failure. */
927
928static struct stat *
929get_outstatus (void)
930{
931 static int outstat_errno;
932 static struct stat outstat;
933 if (outstat_errno == 0)
934 outstat_errno = fstat (STDOUT_FILENO, &outstat) == 0 ? -1 : errno;
935 return outstat_errno < 0 ? &outstat : NULL;
936}
937
938/* Return a stream for FILE, opened with mode HOW. If HOW is "w",
939 the file is already open on standard output, and needs to be

Callers 2

stream_openFunction · 0.85
avoid_trashing_inputFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected