Searched refs:csvar (Results 1 - 12 of 12) sorted by relevance

/ast/src/lib/libcs/
H A Dcsvar.c52 csvar(Cs_t* state, int index, int trust) function
70 return csvar(&cs, index, trust);
H A Dcsinfo.c46 sfsprintf(tmp, sizeof(tmp), "%s/%s", n ? csvar(state, CS_VAR_SHARE, 0) : CS_SVC_DIR, file);
H A Dcs.h127 #define CS_VAR_LOCAL 0 /* csvar for local mount dir */
128 #define CS_VAR_PROXY 1 /* csvar for proxy service */
129 #define CS_VAR_SHARE 2 /* csvar for share mount dir */
130 #define CS_VAR_TRUST 3 /* csvar for trusted root dirs */
270 #define csvar _cs_var macro
309 extern char* csvar(Cs_t*, int, int);
H A DMakefile26 cssend.c css.c csserve.c csstat.c csto.c csvar.c cswrite.c \
H A Dcslocal.c148 sfsprintf(tmp, sizeof(tmp), "%s/fdp/%s/%s/%d-%d-/%c%s", csvar(state, CS_VAR_LOCAL, 0), csname(state, 0), cmd, st.st_uid, geteuid(), CS_MNT_STREAM, CS_MNT_TAIL);
H A Dcsopen.c812 if ((fd = state->proxy.addr ? csbind(state, type, state->proxy.addr, state->proxy.port, 0L) : reopen(state, csvar(state, CS_VAR_PROXY, 0))) >= 0)
826 messagef((state->id, NiL, -4, "%s error message `%s'", csvar(state, CS_VAR_PROXY, 0), s));
992 b += sfsprintf(b, sizeof(state->mount) - (b - path), "%s", csvar(state, CS_VAR_LOCAL, 0));
1000 if (!pathaccess(csvar(state, CS_VAR_TRUST, 1), csvar(state, CS_VAR_SHARE, 1), NiL, PATH_EXECUTE, b, sizeof(state->mount) - (b - state->mount)))
1003 else if (!pathpath(csvar(state, CS_VAR_SHARE, 0), "", PATH_EXECUTE, b, sizeof(state->mount) - (b - state->mount)))
H A Dcsauth.c127 if (state->addr == csaddr(state, NiL)) b = tmp + sfsprintf(tmp, sizeof(tmp), "%s/AUTH.%05d.", csvar(state, CS_VAR_LOCAL, 0), m);
H A Dcssend.c99 s = csvar(state, CS_VAR_LOCAL, 0);
H A Dcss.c266 s = csvar(css->state, CS_VAR_LOCAL, 0);
/ast/src/cmd/3d/
H A Dcs_3d.h46 #define csvar _3d_csvar macro
/ast/src/cmd/cs/
H A Dcs.c642 *ap++ = csvar(CS_VAR_LOCAL, 0);
643 if (pathpath(csvar(CS_VAR_SHARE, 0), "", PATH_EXECUTE, tmp, sizeof(tmp)))
/ast/src/cmd/coshell/
H A Dschedule.c547 if (!(file = sfstrrsrv(state.string, PATH_MAX)) || !pathaccess(csvar(CS_VAR_TRUST, 1), csvar(CS_VAR_SHARE, 0), CS_SVC_ACCESS, PATH_REGULAR, file, PATH_MAX) || !(file = strdup(file)))

Completed in 24 milliseconds