Lines Matching defs:ex
98 make_mntpt(char *mntpt, size_t l, const exports ex, const char *mf_mount)
100 if (ex->ex_dir[0] == '/') {
101 if (ex->ex_dir[1] == 0)
104 xsnprintf(mntpt, l, "%s%s", mf_mount, ex->ex_dir);
105 } else if (ex->ex_dir[0] >= 'a' &&
106 ex->ex_dir[0] <= 'z' &&
107 ex->ex_dir[1] == ':' &&
108 ex->ex_dir[2] == '/' &&
109 ex->ex_dir[3] == 0)
110 xsnprintf(mntpt, l, "%s/%c%%", mf_mount, ex->ex_dir[0]);
112 xsnprintf(mntpt, l, "%s/%s", mf_mount, ex->ex_dir);
310 exports exlist = 0, ex;
415 for (n_export = 0, ex = exlist; ex; ex = ex->ex_next) {
425 for (j = 0, ex = exlist; ex; ex = ex->ex_next) {
426 make_mntpt(mntpt, sizeof(mntpt), ex, mf->mf_mount);
431 ep[j++] = ex;
481 ex = ep[j];
482 if (ex) {
489 xstrlcpy(rfs_dir, ex->ex_dir, sizeof(fs_name) - (rfs_dir - fs_name));
490 make_mntpt(mntpt, sizeof(mntpt), ex, mf->mf_mount);