Lines Matching refs:stdout
1 /* xexit.c -- exit with attention to return values and closing stdout.
44 /* Flush stdout first, exit if failure (therefore, xexit should be
52 if (ferror (stdout))
54 fputs (_("ferror on stdout\n"), stderr);
57 else if (fflush (stdout) != 0)
59 fputs (_("fflush error on stdout\n"), stderr);
69 /* Why do we care about stdout you may ask? Here's why, from Jim
72 /* If a program writes *anything* to stdout, that program should close
73 stdout and make sure that the close succeeds. Otherwise, suppose that
75 that does an explicit write to stdout. The last printf can succeed in
76 writing to the internal stream buffer, and yet the fclose(stdout) could
82 that writes to stdout -- just let the internal stream state record