Searched refs:wcPath (Results 1 – 3 of 3) sorted by relevance
/titanic_41/usr/src/cmd/mkdir/ |
H A D | mkdir.c | 330 wchar_t *wcPath; /* wide-character version of the path */ in simplify() local 346 if ((wcPath = calloc(sizeof (wchar_t), mbPathlen+1)) == NULL) { in simplify() 351 if ((wcPathlen = mbstowcs(wcPath, mbPath, mbPathlen)) == (size_t)-1) { in simplify() 352 free(wcPath); in simplify() 360 for (wptr = wcPath, i = 0; i < wcPathlen; i++) { in simplify() 361 *wptr++ = wcPath[i]; in simplify() 363 if (wcPath[i] == '/') { in simplify() 366 while (wcPath[i] == '/') { in simplify() 380 for (wcPathlen = wcslen(wcPath), wptr = wcPath, i = 0; in simplify() 381 i < wcPathlen-2 && wcPath[i] == '.' && wcPath[i+1] == '/'; in simplify() [all …]
|
/titanic_41/usr/src/lib/libgen/common/ |
H A D | mkdirp.c | 144 wchar_t *wcPath; /* wide-character version of the path */ in simplify() local 169 if ((wcPath = calloc(sizeof (wchar_t), mbPathlen+1)) == NULL) { in simplify() 174 if ((wcPathlen = mbstowcs(wcPath, mbPath, mbPathlen)) == (size_t)-1) { in simplify() 176 free(wcPath); in simplify() 184 for (wptr = wcPath, i = 0; i < wcPathlen; i++) { in simplify() 185 *wptr++ = wcPath[i]; in simplify() 187 if (wcPath[i] == '/') { in simplify() 190 while (wcPath[i] == '/') { in simplify() 204 if (wcstombs(mbPath, wcPath, mbPathlen) == (size_t)-1) { in simplify() 206 free(wcPath); in simplify() [all …]
|
/titanic_41/usr/src/cmd/svr4pkg/pkgcond/ |
H A D | main.c | 3450 wchar_t *wcPath; /* wide-character version of the path */ in resolvePath() local 3484 if ((wcPath = (wchar_t *) in resolvePath() 3490 if ((wcPathlen = mbstowcs(wcPath, *r_path, mbPathlen)) == -1) { in resolvePath() 3491 free(wcPath); in resolvePath() 3499 for (wptr = wcPath, i = 0; i < wcPathlen; i++) { in resolvePath() 3500 *wptr++ = wcPath[i]; in resolvePath() 3502 if (wcPath[i] == '/') { in resolvePath() 3505 while (wcPath[i] == '/') { in resolvePath() 3520 if (wcstombs(*r_path, wcPath, mbPathlen) == -1) { in resolvePath() 3521 free(wcPath); in resolvePath() [all …]
|