Lines Matching refs:tmpstr
119 char *tmpstr, *tmpstr2; in cam_get_device() local
141 tmpstr = newpath; in cam_get_device()
146 if (*tmpstr == '/') { in cam_get_device()
147 tmpstr2 = tmpstr; in cam_get_device()
148 tmpstr = strrchr(tmpstr2, '/'); in cam_get_device()
150 assert(tmpstr != NULL && *tmpstr != '\0'); in cam_get_device()
151 tmpstr++; in cam_get_device()
154 if (*tmpstr == '\0') { in cam_get_device()
165 if (*tmpstr == 'n' || *tmpstr == 'e') { in cam_get_device()
168 if (strncmp(tmpstr + 1, nonrewind_devs[i], len) == 0) { in cam_get_device()
169 if (isdigit(tmpstr[len + 1])) { in cam_get_device()
170 tmpstr++; in cam_get_device()
182 if (strlen(tmpstr) < 2) { in cam_get_device()
194 if (isdigit(*tmpstr)) { in cam_get_device()
207 if (!isdigit(tmpstr[strlen(tmpstr) - 1])) { in cam_get_device()
225 (unit_offset < (strlen(tmpstr))) in cam_get_device()
226 && (isdigit(tmpstr[strlen(tmpstr) - unit_offset])); unit_offset++); in cam_get_device()
233 *unit = atoi(&tmpstr[strlen(tmpstr) - unit_offset]); in cam_get_device()
239 tmpstr[strlen(tmpstr) - unit_offset] = '\0'; in cam_get_device()
241 strlcpy(dev_name, tmpstr, devnamelen); in cam_get_device()
453 char tmpstr[256]; in cam_lookup_pass() local
462 snprintf(tmpstr, sizeof(tmpstr), in cam_lookup_pass()
470 (errno == ENOENT) ? tmpstr : ""); in cam_lookup_pass()