Lines Matching refs:wcPath
330 wchar_t *wcPath; /* wide-character version of the path */
346 if ((wcPath = calloc(sizeof (wchar_t), mbPathlen+1)) == NULL) {
351 if ((wcPathlen = mbstowcs(wcPath, mbPath, mbPathlen)) == (size_t)-1) {
352 free(wcPath);
360 for (wptr = wcPath, i = 0; i < wcPathlen; i++) {
361 *wptr++ = wcPath[i];
363 if (wcPath[i] == '/') {
366 while (wcPath[i] == '/') {
380 for (wcPathlen = wcslen(wcPath), wptr = wcPath, i = 0;
381 i < wcPathlen-2 && wcPath[i] == '.' && wcPath[i+1] == '/';
391 if (i < wcPathlen-2 && wcPath[i] == '/' &&
392 wcPath[i+1] == '.' && wcPath[i+2] == '/') {
397 *wptr++ = wcPath[i++];
407 if (wcstombs(mbPath, wcPath, mbPathlen) == (size_t)-1) {
408 free(wcPath);
412 free(wcPath);