Lines Matching refs:dirlen

369   size_t dirlen;  local
523 dirlen = strlen (pattern);
538 dirlen = 0;
545 dirlen = 1;
551 dirlen = filename - pattern;
558 ++dirlen;
559 drive_spec = (char *) __alloca (dirlen + 1);
561 *((char *) mempcpy (drive_spec, pattern, dirlen)) = '\0';
563 memcpy (drive_spec, pattern, dirlen);
564 drive_spec[dirlen] = '\0';
575 newp = (char *) __alloca (dirlen + 1);
577 *((char *) mempcpy (newp, pattern, dirlen)) = '\0';
579 memcpy (newp, pattern, dirlen);
580 newp[dirlen] = '\0';
587 && dirname[dirlen - 1] != ':'
588 && (dirlen < 3 || dirname[dirlen - 2] != ':'
589 || dirname[dirlen - 1] != '/')
591 && dirlen > 1)
703 newp = (char *) __alloca (home_len + dirlen);
706 &dirname[1], dirlen);
709 memcpy (&newp[home_len], &dirname[1], dirlen);
1004 if (dirlen > 0)
1108 size_t dirlen = strlen (dirname); local
1116 if (dirlen == 1 && dirname[0] == '/')
1119 dirlen = 0;
1121 else if (dirlen > 1)
1123 if (dirname[dirlen - 1] == '/' && dirname[dirlen - 2] == ':')
1125 --dirlen;
1126 else if (dirname[dirlen - 1] == ':')
1129 --dirlen;
1138 char *new = (char *) malloc (dirlen + 1 + eltlen);
1148 char *endp = (char *) mempcpy (new, dirname, dirlen);
1153 memcpy (new, dirname, dirlen);
1154 new[dirlen] = DIRSEP_CHAR;
1155 memcpy (&new[dirlen + 1], array[i], eltlen);
1249 size_t dirlen = strlen (directory); variable
1250 char *fullname = (char *) __alloca (dirlen + 1 + patlen + 1);
1253 mempcpy (mempcpy (mempcpy (fullname, directory, dirlen),
1257 memcpy (fullname, directory, dirlen);
1258 fullname[dirlen] = '/';
1259 memcpy (&fullname[dirlen + 1], pattern, patlen + 1);