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

Function cups_setup

cups/backchannel.c:172–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170 */
171
172static void
173cups_setup(fd_set *set, /* I - Set for select() */
174 struct timeval *tval, /* I - Timer value */
175 double timeout) /* I - Timeout in seconds */
176{
177 tval->tv_sec = (time_t)timeout;
178 tval->tv_usec = (suseconds_t)(1000000.0 * (timeout - tval->tv_sec));
179
180 FD_ZERO(set);
181 FD_SET(3, set);
182}

Callers 2

cupsBackChannelReadFunction · 0.85
cupsBackChannelWriteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected