Lines Matching refs:secv

148 	char		**secv;		/* submandir suffices */  member
467 freev(currp->secv); in build_manpath()
529 manp->secv = NULL; in getsect()
532 manp->secv = split(mansec, ','); in getsect()
533 for (sectp = manp->secv; *sectp; sectp++) in getsect()
537 manp->secv = split(++sections, ','); in getsect()
538 for (sectp = manp->secv; *sectp; sectp++) in getsect()
540 if (*manp->secv == NULL) in getsect()
546 manp->secv = split(sections, ','); in getsect()
547 for (sectp = manp->secv; *sectp; sectp++) in getsect()
549 if (*manp->secv == NULL) in getsect()
554 manp->secv = NULL; in getsect()
581 if (manp->secv == NULL) { in get_all_sect()
582 if ((manp->secv = malloc(maxentries * sizeof (char *))) == NULL) in get_all_sect()
586 for (dv = dirv, p = manp->secv; *dv; dv++) { in get_all_sect()
612 if ((manp->secv = realloc(manp->secv, in get_all_sect()
615 p = manp->secv + entries; in get_all_sect()
888 p = manp->secv; in free_manp()
893 free(manp->secv); in free_manp()
967 mandir(local->secv, ldir, name, 1); in manual()
978 mandir(p->secv, p->path, name, 0); in manual()
1005 mandir(char **secv, char *path, char *name, int lspec) in mandir() argument
1021 for (; *secv; secv++) { in mandir()
1022 len = strlen(*secv); in mandir()
1027 if (**secv == '\\') { in mandir()
1028 if (strcmp(*secv + 1, *dv + 3) != 0) in mandir()
1030 } else if (strncasecmp(*secv, *dv + 3, len) != 0) { in mandir()
1032 (newsection = map_section(*secv, path)) in mandir()
1363 if (mnp->secv == NULL) in dupcheck()
1385 for (i = 0; mnp->secv[i] != NULL; i++) { in dupcheck()
1391 if ((cursnp->secp = strdup(mnp->secv[i])) == NULL) in dupcheck()
1405 for (i = 0; mnp->secv[i] != NULL; i++) { in dupcheck()
1409 if (strcmp(mnp->secv[i], cursnp->secp) == 0) { in dupcheck()
1415 mnp->secv[i][0] = '\0'; in dupcheck()
1428 if ((cursnp->secp = strdup(mnp->secv[i])) == NULL) in dupcheck()
1571 for (secp = manp->secv; *secp != NULL; secp++) { in print_manpath()