basepath
gen_backing_store_path(char *basepath, int num, char **outpath)
*outpath = malloc(strlen(basepath) + MAX_SUFFIX);
(void) strcpy(*outpath, basepath);
(void) sprintf(*outpath, "%s.%d", basepath, num);
void gen_backing_store_path(char *basepath, int num, char **outpath);
if (strcmp(basepath, "/") == 0) {
child->hp_basepath = basepath;
char *basepath;
if ((basepath = base_path(path)) == NULL)
if ((rv = copy_devinfo(basepath, connection, flags, &root)) != 0) {
free(basepath);
free(basepath);
basepath(ept->path, maptyp ? NULL : basedir, ir);
basepath(ept->ainfo.local, NULL, ir);
basepath(path, get_basedir(), get_inst_root());
basepath(temp, dname[nfp], NULL);
const char *basepath;
basepath = get_unrooted(path);
basepath = path;
return (fstatat(fd, basepath, statp, flags));
const char *basepath;
basepath = get_unrooted(path);
basepath = path;
return (fstatat(fd, basepath, statp, flags | AT_SYMLINK_NOFOLLOW));
char *basepath;
basepath = root->hp_basepath;
free(basepath);
char *basepath = NULL;
if ((basepath = strdup(val_string)) == NULL)
if (basepath)
free(basepath);
if (basepath) {
root->hp_basepath = basepath;
extern void basepath(char *path, char *basedir, char *ir);
char basepath[MAXPATHLEN];
(void) strlcpy(basepath, path, MAXPATHLEN);
slash = strrchr(basepath, '/');
(void) snprintf(scmpath, MAXPATHLEN, "%s/%s", basepath,
(void) strlcpy(scmdata.root, basepath, MAXPATHLEN);