Lines Matching defs:devpath
150 char devpath[PATH_MAX], tmppath[PATH_MAX];
252 (void) strcpy(devpath, "/devices");
253 if (q_getdevctlpath(devpath, (int *)&devcnt) == 0) {
624 q_getdevctlpath(char *devpath, int *devcnt)
633 if (lstat(devpath, &statbuf) < 0) {
635 MSGSTR(21016, "Error: %s lstat() error\n"), devpath);
639 if ((strstr(devpath, fc_trans) ||
640 (strstr(devpath, fp_trans_id) && strstr(devpath, fp_trans))) &&
641 strstr(devpath, "devctl")) {
643 if ((testopen = open(devpath, O_RDONLY)) >= 0) {
645 (void) strcpy(pcibus_list[*devcnt], devpath);
663 ptr = devpath + strlen(devpath);
668 if (strcmp(devpath, "/devices/pseudo/") == 0) {
672 if ((dp = opendir(devpath)) == NULL) {
674 MSGSTR(21017, "Error: %s Can't read directory\n"), devpath);
685 err = q_getdevctlpath(devpath, devcnt);
690 MSGSTR(21018, "Error: Can't close directory %s\n"), devpath);