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()
215 n = strlen(uml_dir) + UMID_LEN + sizeof("/pid"); in create_pid_file()
265 strlcpy(tmp, uml_dir, sizeof(tmp)); in make_umid()
277 set_umid(&tmp[strlen(uml_dir)]); in make_umid()
290 snprintf(tmp, sizeof(tmp), "%s%s", uml_dir, umid); in make_umid()
345 n = snprintf(buf, len, "%s%s/%s", uml_dir, umid, name); in umid_file_name()
367 uml_dir = name; in set_uml_dir()
371 uml_dir = malloc(strlen(name) + 2); in set_uml_dir()
372 if (uml_dir == NULL) { in set_uml_dir()
381 sprintf(uml_dir, "%s/", name); in set_uml_dir()
395 dir = malloc(strlen(uml_dir) + UMID_LEN + 1); in remove_umid_dir()
399 sprintf(dir, "%s%s", uml_dir, umid); in remove_umid_dir()