| 926 | /* Return a pointer to stdout status, or NULL on failure. */ |
| 927 | |
| 928 | static struct stat * |
| 929 | get_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 |
no outgoing calls
no test coverage detected