Lines Matching refs:uml_dir
26 static char *uml_dir = UML_DIR; variable
33 if (*uml_dir == '~') { in make_uml_dir()
44 uml_dir++; in make_uml_dir()
46 strlcat(dir, uml_dir, sizeof(dir)); in make_uml_dir()
52 uml_dir = malloc(strlen(dir) + 1); in make_uml_dir()
53 if (uml_dir == NULL) { in make_uml_dir()
58 strcpy(uml_dir, dir); in make_uml_dir()
60 if ((mkdir(uml_dir, 0777) < 0) && (errno != EEXIST)) { in make_uml_dir()
62 uml_dir, strerror(errno)); in make_uml_dir()
69 free(uml_dir); in make_uml_dir()
71 uml_dir = NULL; in make_uml_dir()
223 n = strlen(uml_dir) + UMID_LEN + sizeof("/pid"); in create_pid_file()
273 strlcpy(tmp, uml_dir, sizeof(tmp)); in make_umid()
285 set_umid(&tmp[strlen(uml_dir)]); in make_umid()
298 snprintf(tmp, sizeof(tmp), "%s%s", uml_dir, umid); in make_umid()
353 n = snprintf(buf, len, "%s%s/%s", uml_dir, umid, name); in umid_file_name()
375 uml_dir = name; in set_uml_dir()
379 uml_dir = malloc(strlen(name) + 2); in set_uml_dir()
380 if (uml_dir == NULL) { in set_uml_dir()
389 sprintf(uml_dir, "%s/", name); in set_uml_dir()
403 dir = malloc(strlen(uml_dir) + UMID_LEN + 1); in remove_umid_dir()
407 sprintf(dir, "%s%s", uml_dir, umid); in remove_umid_dir()