Lines Matching defs:ex
96 make_mntpt(char *mntpt, size_t l, const exports ex, const char *mf_mount)
98 if (ex->ex_dir[0] == '/') {
99 if (ex->ex_dir[1] == 0)
102 xsnprintf(mntpt, l, "%s%s", mf_mount, ex->ex_dir);
103 } else if (ex->ex_dir[0] >= 'a' &&
104 ex->ex_dir[0] <= 'z' &&
105 ex->ex_dir[1] == ':' &&
106 ex->ex_dir[2] == '/' &&
107 ex->ex_dir[3] == 0)
108 xsnprintf(mntpt, l, "%s/%c%%", mf_mount, ex->ex_dir[0]);
110 xsnprintf(mntpt, l, "%s/%s", mf_mount, ex->ex_dir);
308 exports exlist = 0, ex;
413 for (n_export = 0, ex = exlist; ex; ex = ex->ex_next) {
423 for (j = 0, ex = exlist; ex; ex = ex->ex_next) {
424 make_mntpt(mntpt, sizeof(mntpt), ex, mf->mf_mount);
429 ep[j++] = ex;
479 ex = ep[j];
480 if (ex) {
487 xstrlcpy(rfs_dir, ex->ex_dir, sizeof(fs_name) - (rfs_dir - fs_name));
488 make_mntpt(mntpt, sizeof(mntpt), ex, mf->mf_mount);