Lines Matching defs:basedir

6084 **		basedir -- base of all queue directories.
6085 ** blen -- strlen(basedir).
6101 multiqueue_cache(basedir, blen, qg, qn, phash)
6102 char *basedir;
6114 char prefix[MAXPATHLEN]; /* dir relative to basedir */
6146 ** XXX we could add basedir, but then we have to realloc()
6165 /* begin of qpath must be same as basedir */
6166 if (strncmp(basedir, qpath, blen) != 0 &&
6167 (strncmp(basedir, qpath, blen - 1) != 0 || len != blen - 1))
6170 qpath, basedir);
6193 /* This is guaranteed by the basedir check above */
6229 ** Path relative to basedir, with trailing /
6241 /* It is always basedir: we don't need to store it per group */
6243 qg->qg_qdir = newstr(basedir);
6255 i = safedirpath(basedir, RunAsUid, RunAsGid, NULL,
6259 basedir, sm_errstring(i));
7231 char basedir[MAXPATHLEN];
7235 ** Determine basedir for all queue directories.
7237 ** of the basedir. The basedir is the QueueDir
7243 len = sm_strlcpy(basedir, QueueDir, sizeof(basedir));
7246 if (len >= sizeof(basedir) - 1)
7249 len, (int) sizeof(basedir) - 1);
7254 if (basedir[len - 1] == '*')
7258 cp = SM_LAST_DIR_DELIM(basedir);
7272 len = cp - basedir;
7274 else if (!SM_IS_DIR_DELIM(basedir[len - 1]))
7277 basedir[len] = '/';
7278 basedir[++len] = '\0';
7282 SM_ASSERT(basedir[len - 1] == '/');
7284 if (chdir(basedir) < 0)
7288 syserr("can not chdir(%s)", basedir);
7294 basedir, sm_errstring(errno));
7299 hashval = hash_q(basedir, hashval);
7315 syserr("can not stat(%s)", basedir);
7318 basedir, sm_errstring(errno));
7336 basedir, (long) RunAsGid, (long) st.st_gid);
7342 (unsigned int) st.st_mode, basedir);
7347 (unsigned int) st.st_mode, basedir);
7359 qn = multiqueue_cache(basedir, len, Queue[i], qn, &hashval);