Lines Matching refs:mode
56 #include <sys/mode.h>
953 int mode;
965 mode = 0;
968 mode |= VREAD;
970 mode |= VWRITE;
972 mode |= VEXEC;
1003 vn_createat(pnamep, seg, &vattr, excl, mode, &vp, crwhy,
1033 * if FOFFMAX flag is set in file mode
1079 if (error = VOP_ACCESS(vp, mode, accessflags, CRED(), NULL))
1234 * open mode (add or subtract read or write), but also change the share/deny
1278 int mode,
1284 return (vn_createat(pnamep, seg, vap, excl, mode, vpp, why, flag,
1297 int mode,
1420 if ((*vpp != NULL && (mode & VWRITE) && ISROFILE(*vpp)) ||
1486 error = VOP_CREATE(vp, "", vap, excl, mode, vpp,
1533 excl, mode, vpp, CRED(), flag, NULL, NULL);
2650 vn_has_mandatory_locks(vnode_t *vp, int mode)
2652 return ((vp->v_filocks != NULL) && (MANDLOCK(vp, mode)));
2724 * the mode(s) specified.
2731 v_mode_t mode)
2736 switch (mode) {
2767 v_mode_t mode)
2772 switch (mode) {
2801 v_mode_t mode)
2807 switch (mode) {
2835 switch (mode) {
3165 int mode,
3186 if (mode & FREAD)
3188 if (mode & FWRITE)
3194 ret = (*(*(vpp))->v_op->vop_open)(vpp, mode, cr, ct);
3202 if ((vp->v_type == VREG) && (mode & FREAD))
3204 if ((vp->v_type == VREG) && (mode & FWRITE))
3218 if (((*vpp)->v_type == VREG) && (mode & FREAD))
3220 if ((vp->v_type == VREG) && (mode & FREAD))
3222 if (((*vpp)->v_type == VREG) && (mode & FWRITE))
3224 if ((vp->v_type == VREG) && (mode & FWRITE))
3407 int mode,
3421 err = (*(vp)->v_op->vop_access)(vp, mode, flags, cr, ct);
3476 int mode,
3501 (dvp, name, vap, excl, mode, vpp, cr, flags, ct, vsecp);