| 2033 | */ |
| 2034 | |
| 2035 | cups_file_t * /* O - CUPS file */ |
| 2036 | cupsFileStdin(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 | /* |