Lines Matching refs:tmpstr
117 char *tmpstr, *tmpstr2;
134 tmpstr = newpath;
139 if (*tmpstr == '/') {
140 tmpstr2 = tmpstr;
141 tmpstr = (char *)rindex(tmpstr2, '/');
142 if ((tmpstr != NULL) && (*tmpstr != '\0'))
143 tmpstr++;
146 if (*tmpstr == '\0') {
157 if (*tmpstr == 'n' || *tmpstr == 'e') {
160 if (strncmp(tmpstr + 1, nonrewind_devs[i], len) == 0) {
161 if (isdigit(tmpstr[len + 1])) {
162 tmpstr++;
174 if (strlen(tmpstr) < 2) {
186 if (isdigit(*tmpstr)) {
199 if (!isdigit(tmpstr[strlen(tmpstr) - 1])) {
217 (unit_offset < (strlen(tmpstr)))
218 && (isdigit(tmpstr[strlen(tmpstr) - unit_offset])); unit_offset++);
225 *unit = atoi(&tmpstr[strlen(tmpstr) - unit_offset]);
231 tmpstr[strlen(tmpstr) - unit_offset] = '\0';
233 strlcpy(dev_name, tmpstr, devnamelen);
442 char tmpstr[256];
451 snprintf(tmpstr, sizeof(tmpstr),
459 (errno == ENOENT) ? tmpstr : "");