Lines Matching defs:basedir
182 static char basedir[PATH_MAX]; /* current base directory */
558 * Scan a directory tree rooted at "basedir" for manpages.
612 if (strstr(buf, basedir) != buf
822 else if (strstr(buf, basedir) == buf)
823 start = buf + strlen(basedir);
854 if (OP_TEST != op && strstr(buf, basedir) == buf)
855 start += strlen(basedir);
1110 * and add them to the database specified in "basedir".
2271 *basedir = '\0';
2292 * Always resolve basedir to the canonicalized absolute
2296 if (NULL == realpath(targetdir, basedir)) {
2302 } else if (-1 == chdir(basedir)) {
2310 cp = strchr(basedir, '\0');
2312 if (cp - basedir >= PATH_MAX - 1) {
2329 if ('\0' != *basedir)
2330 fprintf(stderr, "%s", basedir);
2331 if ('\0' != *basedir && '\0' != *file)
2351 if ('\0' != *basedir || '\0' != *file)
2358 if ('\0' != *basedir || '\0' != *file || NULL != format)