Lines Matching refs:device
168 char *device; in open_direct() local
193 device = pp->device; in open_direct()
194 if (is_printer_uri(device) == 0) { in open_direct()
201 device = strstr(device, "://"); in open_direct()
202 if (device != NULL) in open_direct()
203 device = strchr(device + 3, '/'); in open_direct()
205 if ((device == NULL) || (access(device, F_OK) < 0)) in open_direct()
206 device = "/dev/null"; in open_direct()
218 if (access(device, R_OK) == 0) in open_direct()
224 while ((fd = open(device, open_mode, 0)) == -1) { in open_direct()
244 if (strcmp(device, "/dev/null") && Fcntl(fd, F_SETLKW, &lck) < 0) { in open_direct()
245 execlog("lock error: %s\n", pp->device); in open_direct()
309 if (push_module(1, device, *modules++) == -1) in open_direct()
332 push_module(int fd, char *device, char *module) in push_module() argument
337 note("push (%s) on %s failed (%s)\n", module, device, PERROR); in push_module()