Lines Matching defs:basedir
186 static char basedir[PATH_MAX]; /* current base directory */
187 static size_t basedir_len; /* strlen(basedir) */
566 * Scan a directory tree rooted at "basedir" for manpages.
620 if (strncmp(buf, basedir, basedir_len) != 0
832 else if (strncmp(usefile, basedir, basedir_len) == 0)
871 if (strncmp(infile, basedir, basedir_len) == 0) {
879 * This symbolic link points into the basedir
881 * the parent directories resolve to the basedir.
901 * If one of the directories resolves to the basedir,
1170 * and add them to the database specified in "basedir".
2331 *basedir = '\0';
2353 * Always resolve basedir to the canonicalized absolute
2357 if (realpath(targetdir, basedir) == NULL) {
2362 *basedir = '\0';
2364 } else if (chdir(basedir) == -1) {
2369 *basedir = '\0';
2373 basedir_len = strlen(basedir);
2374 if (basedir[basedir_len - 1] != '/') {
2378 *basedir = '\0';
2382 basedir[basedir_len++] = '/';
2383 basedir[basedir_len] = '\0';
2413 if (*basedir != '\0')
2414 fprintf(stderr, "%s", basedir);
2415 if (*basedir != '\0' && *file != '\0')
2435 if (*basedir != '\0' || *file != '\0')
2442 if (*basedir != '\0' || *file != '\0' || format != NULL)