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

Function cupsFileStdin

cups/file.c:2035–2056  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2033 */
2034
2035cups_file_t * /* O - CUPS file */
2036cupsFileStdin(void)
2037{
2038 _cups_globals_t *cg = _cupsGlobals(); /* Pointer to library globals... */
2039
2040
2041 /*
2042 * Open file descriptor 0 as needed...
2043 */
2044
2045 if (!cg->stdio_files[0])
2046 {
2047 /*
2048 * Open file descriptor 0...
2049 */
2050
2051 if ((cg->stdio_files[0] = cupsFileOpenFd(0, "r")) != NULL)
2052 cg->stdio_files[0]->is_stdio = 1;
2053 }
2054
2055 return (cg->stdio_files[0]);
2056}
2057
2058
2059/*

Callers 4

mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85

Calls 2

_cupsGlobalsFunction · 0.85
cupsFileOpenFdFunction · 0.85

Tested by 1

mainFunction · 0.68