Lines Matching defs:device
53 * check_device - check to see if the device exists,
54 * - and if it is a character device
58 check_device(char *device)
62 if ((device == NULL) || (*device == '\0')) {
63 log("error -- device field is missing");
66 if (*device != '/') {
67 log("error -- must specify full path name for \"%s\".", device);
70 if (access(device, 0) == 0) {
71 if (stat(device,&statbuf) < 0) {
72 log("stat(%s) failed: %s", device, strerror(errno));
76 log("error -- \"%s\" not character special device",
77 device);
82 log("error -- device \"%s\" does not exist", device);