Lines Matching defs:root
54 #define ERR_PATH_TOO_BIG "alternate root path is too long"
75 pkgfilename(char path[PATH_MAX], const char *root, const char *sadmdir,
78 if (snprintf(path, PATH_MAX, "%s%s/%s", root == NULL ? "" : root,
149 * root is used but returned in the computed sadmdir and so the caller should
150 * not use "root" any longer or set it to NULL.
153 pkgfindrealsadmdir(char fullpath[PATH_MAX], const char *root,
163 root == NULL ? "" : root,
247 pkgopenserver_i(const char *root, const char *sadmdir, boolean_t readonly,
280 pkgfindrealsadmdir(realsadmdir, root, &sadmdir);
281 root = NULL;
282 pkgfilename(pkgdoor, root, sadmdir, PKGDOOR);
320 if (root != NULL && strcmp(root, "/") != 0) {
322 cmd[args++] = (char *)root;
389 pkgopenserver(const char *root, const char *sadmdir, boolean_t ro)
391 return (pkgopenserver_i(root, sadmdir, ro, pkgservergetmode()));
542 pkgsync_needed(const char *root, const char *sadmdir, boolean_t want_quit)
550 pkgfilename(pkgfile, root, sadmdir, PKGLOG);
557 pkgfilename(pkgfile, root, sadmdir, PKGDOOR);
575 pkgsync(const char *root, const char *sadmdir, boolean_t force_quit)
581 if (!pkgsync_needed(root, sadmdir, force_quit))
584 server = pkgopenserver_i(root, sadmdir, B_FALSE, FLUSH_LOG);