Lines Matching refs:rootdir
148 topo_open(int version, const char *rootdir, int *errp)
162 if ((rootdir != NULL) && (stat(rootdir, &st) < 0))
197 if (rootdir == NULL) {
198 rootdir = topo_hdl_strdup(thp, "/");
199 thp->th_rootdir = (char *)rootdir;
204 len = strlen(rootdir);
208 if (rootdir[len - 1] != '/') {
210 (void) snprintf(rpath, len + 2, "%s/", rootdir);
212 rpath = (char *)rootdir;