Lines Matching defs:basedir

6004 **		basedir -- base of all queue directories.
6005 ** blen -- strlen(basedir).
6021 multiqueue_cache(basedir, blen, qg, qn, phash)
6022 char *basedir;
6034 char prefix[MAXPATHLEN]; /* dir relative to basedir */
6066 ** XXX we could add basedir, but then we have to realloc()
6085 /* begin of qpath must be same as basedir */
6086 if (strncmp(basedir, qpath, blen) != 0 &&
6087 (strncmp(basedir, qpath, blen - 1) != 0 || len != blen - 1))
6090 qpath, basedir);
6113 /* This is guaranteed by the basedir check above */
6149 ** Path relative to basedir, with trailing /
6161 /* It is always basedir: we don't need to store it per group */
6163 qg->qg_qdir = newstr(basedir);
6175 i = safedirpath(basedir, RunAsUid, RunAsGid, NULL,
6179 basedir, sm_errstring(i));
7030 char basedir[MAXPATHLEN];
7034 ** Determine basedir for all queue directories.
7036 ** of the basedir. The basedir is the QueueDir
7042 len = sm_strlcpy(basedir, QueueDir, sizeof(basedir));
7045 if (len >= sizeof(basedir) - 1)
7048 len, (int) sizeof(basedir) - 1);
7053 if (basedir[len - 1] == '*')
7057 cp = SM_LAST_DIR_DELIM(basedir);
7071 len = cp - basedir;
7073 else if (!SM_IS_DIR_DELIM(basedir[len - 1]))
7076 basedir[len] = '/';
7077 basedir[++len] = '\0';
7081 SM_ASSERT(basedir[len - 1] == '/');
7083 if (chdir(basedir) < 0)
7087 syserr("can not chdir(%s)", basedir);
7093 basedir, sm_errstring(errno));
7098 hashval = hash_q(basedir, hashval);
7114 syserr("can not stat(%s)", basedir);
7117 basedir, sm_errstring(errno));
7135 basedir, (int) RunAsGid, (int) st.st_gid);
7141 (int) st.st_mode, basedir);
7146 (int) st.st_mode, basedir);
7158 qn = multiqueue_cache(basedir, len, Queue[i], qn, &hashval);