Lines Matching defs:install_root
45 static char *install_root = NULL;
47 static int install_root_len; /* strlen(install_root) */
54 static int ir_accessed = 0; /* install_root has been used */
128 * If we've already set the install_root but no one has used it
134 if (strcmp(install_root, path))
135 /* We are trying to *change* the install_root */
142 install_root = NULL;
155 install_root = tmp_path;
159 install_root_len = strlen(install_root);
161 /* If install_root is '/' then it's trivial. */
165 z_set_zone_root(install_root);
173 * This routine returns a path with the correct install_root prepended.
174 * if the install_root has been set. NOTE : this allocates memory
195 while (*ir_ptr) /* for every char in install_root */
199 * If install_root == "/", a concatenation will
201 * for an install_root ending in '/'. So we back
247 while (*ir_ptr) /* for every char in install_root */
251 * If install_root == "/", a concatenation will
253 * for an install_root ending in '/'. So we back
287 return (install_root);
291 * This routine takes path and removes install_root from the path
292 * if it has already been prepended. If install_root is not prepended to
293 * path or install_root is '/' or path == NULL then path is returned
310 if (!install_root_exists) /* if no install_root */
314 * Otherwise, if install_root is really prepended to the path
317 else if (strncmp(path, install_root, install_root_len) == 0) {
323 * The result will be relative if install_root = '/'.
508 * we have an install_root, we need to
763 * possible path (with install_root and basedir prepended. The pointers
785 * whenever there's an install_root).
787 * 2. Prepend the install_root (not the basedir) to the path