Lines Matching refs:dev
60 int fd, polltime, dev, nodaemon, clear, c;
93 for (dev = optind; dev < a; dev++)
94 carray[dev] = (encioc_enc_status_t) -1;
99 for (dev = optind; dev < a; dev++) {
100 fd = open(v[dev], O_RDWR);
102 perror(v[dev]);
107 v[dev], strerror(errno));
123 for (dev = optind; dev < a; dev++) {
124 fd = open(v[dev], O_RDWR);
126 syslog(LOG_ERR, "%s: %m", v[dev]);
135 "%s: ENCIOC_GETENCSTAT- %m", v[dev]);
144 "%s: ENCIOC_SETENCSTAT- %m", v[dev]);
149 if (stat == carray[dev])
152 carray[dev] = stat;
155 "%s: Enclosure Status OK", v[dev]);
159 "%s: Enclosure Has Information", v[dev]);
163 "%s: Enclosure Non-Critical", v[dev]);
167 "%s: Enclosure Critical", v[dev]);
171 "%s: Enclosure Unrecoverable", v[dev]);