Lines Matching refs:chroot
47 struct support_chroot *chroot = xmalloc (sizeof (*chroot)); in support_chroot_create() local
48 chroot->path_chroot = support_create_temp_directory ("tst-resolv-res_init-"); in support_chroot_create()
51 char *path_etc = xasprintf ("%s/etc", chroot->path_chroot); in support_chroot_create()
56 &chroot->path_resolv_conf); in support_chroot_create()
57 write_file (path_etc, "hosts", conf.hosts, &chroot->path_hosts); in support_chroot_create()
58 write_file (path_etc, "host.conf", conf.host_conf, &chroot->path_host_conf); in support_chroot_create()
59 write_file (path_etc, "aliases", conf.aliases, &chroot->path_aliases); in support_chroot_create()
65 char *path_tmp = xasprintf ("%s/tmp", chroot->path_chroot); in support_chroot_create()
71 return chroot; in support_chroot_create()
75 support_chroot_free (struct support_chroot *chroot) in support_chroot_free() argument
77 free (chroot->path_chroot); in support_chroot_free()
78 free (chroot->path_resolv_conf); in support_chroot_free()
79 free (chroot->path_hosts); in support_chroot_free()
80 free (chroot->path_host_conf); in support_chroot_free()
81 free (chroot->path_aliases); in support_chroot_free()
82 free (chroot); in support_chroot_free()