Lines Matching defs:pcroot
227 * pcroot The root of the install database. If NULL assume '/'.
240 get_special_contents(const char *pcroot, char ***pppcSC, int *piMax)
254 if (pcroot == NULL) {
255 pcroot = "/";
258 if (pcroot[strlen(pcroot) - 1] == '/') {
259 if (snprintf(path, PATH_MAX, "%s%s", pcroot, pc) >= PATH_MAX) {
264 if (snprintf(path, PATH_MAX, "%s/%s", pcroot, pc)
487 * pcroot The alternate install root. Could be NULL. In this
498 special_contents_remove(int ient, struct cfent **ppcfent, const char *pcroot)
520 if ((get_special_contents(pcroot, &ppcSC, &max)) != 0) {
530 if (pcroot == NULL) pcroot = "/";
531 if (pcroot[strlen(pcroot) - 1] == '/') {
532 if (snprintf(cpath, PATH_MAX, "%s%s", pcroot, pccontents)
534 snprintf(tcpath, PATH_MAX, "%s%s", pcroot, pctcontents)
541 if (snprintf(cpath, PATH_MAX, "%s/%s", pcroot, pccontents)
543 snprintf(tcpath, PATH_MAX, "%s/%s", pcroot, pctcontents)