Lines Matching refs:tmpstr
117 char *tmpstr, *tmpstr2; in cam_get_device() local
139 tmpstr = newpath; in cam_get_device()
144 if (*tmpstr == '/') { in cam_get_device()
145 tmpstr2 = tmpstr; in cam_get_device()
146 tmpstr = strrchr(tmpstr2, '/'); in cam_get_device()
148 assert(tmpstr != NULL && *tmpstr != '\0'); in cam_get_device()
149 tmpstr++; in cam_get_device()
152 if (*tmpstr == '\0') { in cam_get_device()
163 if (*tmpstr == 'n' || *tmpstr == 'e') { in cam_get_device()
166 if (strncmp(tmpstr + 1, nonrewind_devs[i], len) == 0) { in cam_get_device()
167 if (isdigit(tmpstr[len + 1])) { in cam_get_device()
168 tmpstr++; in cam_get_device()
180 if (strlen(tmpstr) < 2) { in cam_get_device()
192 if (isdigit(*tmpstr)) { in cam_get_device()
205 if (!isdigit(tmpstr[strlen(tmpstr) - 1])) { in cam_get_device()
223 (unit_offset < (strlen(tmpstr))) in cam_get_device()
224 && (isdigit(tmpstr[strlen(tmpstr) - unit_offset])); unit_offset++); in cam_get_device()
231 *unit = atoi(&tmpstr[strlen(tmpstr) - unit_offset]); in cam_get_device()
237 tmpstr[strlen(tmpstr) - unit_offset] = '\0'; in cam_get_device()
239 strlcpy(dev_name, tmpstr, devnamelen); in cam_get_device()
451 char tmpstr[256]; in cam_lookup_pass() local
460 snprintf(tmpstr, sizeof(tmpstr), in cam_lookup_pass()
468 (errno == ENOENT) ? tmpstr : ""); in cam_lookup_pass()