Lines Matching refs:tmpstr
116 char *tmpstr, *tmpstr2;
138 tmpstr = newpath;
143 if (*tmpstr == '/') {
144 tmpstr2 = tmpstr;
145 tmpstr = strrchr(tmpstr2, '/');
147 assert(tmpstr != NULL && *tmpstr != '\0');
148 tmpstr++;
151 if (*tmpstr == '\0') {
162 if (*tmpstr == 'n' || *tmpstr == 'e') {
165 if (strncmp(tmpstr + 1, nonrewind_devs[i], len) == 0) {
166 if (isdigit(tmpstr[len + 1])) {
167 tmpstr++;
179 if (strlen(tmpstr) < 2) {
191 if (isdigit(*tmpstr)) {
204 if (!isdigit(tmpstr[strlen(tmpstr) - 1])) {
222 (unit_offset < (strlen(tmpstr)))
223 && (isdigit(tmpstr[strlen(tmpstr) - unit_offset])); unit_offset++);
230 *unit = atoi(&tmpstr[strlen(tmpstr) - unit_offset]);
236 tmpstr[strlen(tmpstr) - unit_offset] = '\0';
238 strlcpy(dev_name, tmpstr, devnamelen);
450 char tmpstr[256];
459 snprintf(tmpstr, sizeof(tmpstr),
467 (errno == ENOENT) ? tmpstr : "");