Lines Matching defs:basedir
178 static char basedir[PATH_MAX]; /* current base directory */
564 * Scan a directory tree rooted at "basedir" for manpages.
618 if (strstr(buf, basedir) != buf
828 else if (strstr(buf, basedir) == buf)
829 start = buf + strlen(basedir);
860 if (OP_TEST != op && strstr(buf, basedir) == buf)
861 start += strlen(basedir);
1116 * and add them to the database specified in "basedir".
2246 *basedir = '\0';
2267 * Always resolve basedir to the canonicalized absolute
2271 if (NULL == realpath(targetdir, basedir)) {
2277 } else if (-1 == chdir(basedir)) {
2285 cp = strchr(basedir, '\0');
2287 if (cp - basedir >= PATH_MAX - 1) {
2304 if ('\0' != *basedir)
2305 fprintf(stderr, "%s", basedir);
2306 if ('\0' != *basedir && '\0' != *file)
2326 if ('\0' != *basedir || '\0' != *file)
2333 if ('\0' != *basedir || '\0' != *file || NULL != format)