Lines Matching refs:tmpstr

126 	char *tmpstr, *tmpstr2;  in cam_get_device()  local
142 tmpstr = newpath; in cam_get_device()
145 while (isspace(*tmpstr) && (*tmpstr != '\0')) in cam_get_device()
146 tmpstr++; in cam_get_device()
151 if (*tmpstr == '/') { in cam_get_device()
152 tmpstr2 = tmpstr; in cam_get_device()
153 tmpstr = (char *)rindex(tmpstr2, '/'); in cam_get_device()
154 if ((tmpstr != NULL) && (*tmpstr != '\0')) in cam_get_device()
155 tmpstr++; in cam_get_device()
158 if (*tmpstr == '\0') { in cam_get_device()
168 if (*tmpstr == 'n') in cam_get_device()
169 tmpstr++; in cam_get_device()
171 if (*tmpstr == '\0') { in cam_get_device()
180 if (*tmpstr == 'r') in cam_get_device()
181 tmpstr++; in cam_get_device()
183 if (*tmpstr == '\0') { in cam_get_device()
192 tmpstr2 = &tmpstr[strlen(tmpstr) - 1]; in cam_get_device()
194 while ((*tmpstr2 != '\0') && (tmpstr2 > tmpstr) &&(!isdigit(*tmpstr2))){ in cam_get_device()
203 if (strlen(tmpstr) > 3) { in cam_get_device()
211 if ((isdigit(tmpstr[strlen(tmpstr) - 1])) in cam_get_device()
212 && (tmpstr[strlen(tmpstr) - 2] == 's') in cam_get_device()
213 && (isdigit(tmpstr[strlen(tmpstr) - 3]))) { in cam_get_device()
214 tmpstr[strlen(tmpstr) - 1] = '\0'; in cam_get_device()
215 tmpstr[strlen(tmpstr) - 1] = '\0'; in cam_get_device()
224 if (strlen(tmpstr) < 2) { in cam_get_device()
236 if (isdigit(*tmpstr)) { in cam_get_device()
249 if (!isdigit(tmpstr[strlen(tmpstr) - 1])) { in cam_get_device()
267 (unit_offset < (strlen(tmpstr))) in cam_get_device()
268 && (isdigit(tmpstr[strlen(tmpstr) - unit_offset])); unit_offset++); in cam_get_device()
275 *unit = atoi(&tmpstr[strlen(tmpstr) - unit_offset]); in cam_get_device()
281 tmpstr[strlen(tmpstr) - unit_offset] = '\0'; in cam_get_device()
289 if (strcmp(tmpstr, devmatchtable[i].given_dev) == 0) { in cam_get_device()
296 strlcpy(dev_name, tmpstr, devnamelen); in cam_get_device()
497 char tmpstr[256]; in cam_lookup_pass() local
506 snprintf(tmpstr, sizeof(tmpstr), in cam_lookup_pass()
514 (errno == ENOENT) ? tmpstr : ""); in cam_lookup_pass()