MCPcopy Create free account
hub / github.com/OpenPrinting/cups / cupsFileStdout

Function cupsFileStdout

cups/file.c:2065–2092  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2063 */
2064
2065cups_file_t * /* O - CUPS file */
2066cupsFileStdout(void)
2067{
2068 _cups_globals_t *cg = _cupsGlobals(); /* Pointer to library globals... */
2069
2070
2071 /*
2072 * Open file descriptor 1 as needed...
2073 */
2074
2075 if (!cg->stdio_files[1])
2076 {
2077 /*
2078 * Flush any pending output on the stdio file...
2079 */
2080
2081 fflush(stdout);
2082
2083 /*
2084 * Open file descriptor 1...
2085 */
2086
2087 if ((cg->stdio_files[1] = cupsFileOpenFd(1, "w")) != NULL)
2088 cg->stdio_files[1]->is_stdio = 1;
2089 }
2090
2091 return (cg->stdio_files[1]);
2092}
2093
2094
2095/*

Callers 8

mainFunction · 0.85
do_monitor_printer_stateFunction · 0.85
do_testFunction · 0.85
init_dataFunction · 0.85
pause_messageFunction · 0.85
token_cbFunction · 0.85
cat_drvFunction · 0.85
mainFunction · 0.85

Calls 2

_cupsGlobalsFunction · 0.85
cupsFileOpenFdFunction · 0.85

Tested by

no test coverage detected