Searched refs:currpath (Results 1 - 1 of 1) sorted by relevance

/system/core/toolbox/
H A Dmkdir.c37 char currpath[PATH_MAX], *pathpiece; local
45 strcpy(currpath, "");
50 strcat(currpath, "/");
53 if(strlen(currpath) + strlen(pathpiece) + 2/*NUL and slash*/ > PATH_MAX) {
57 strcat(currpath, pathpiece);
58 strcat(currpath, "/");
59 if(stat(currpath, &st) != 0) {
60 ret = mkdir(currpath, 0777);
62 fprintf(stderr, "mkdir failed for %s, %s\n", currpath, strerror(errno));

Completed in 106 milliseconds