Lines Matching refs:fmode
527 smbfs_get_rights_shareMode(int fmode, uint32_t *rights, uint32_t *shareMode, uint16_t *accessMode)
534 if (fmode & FREAD) {
538 if (fmode & FWRITE) {
553 if (fmode & O_SHLOCK) {
559 if (fmode & O_EXLOCK) {
588 struct vnode_attr *vap, uint32_t open_disp, int fmode,
626 smbfs_get_rights_shareMode(fmode, &rights, &shareMode, &accessMode);
723 if ((fmode & O_EXLOCK) || (fmode & O_SHLOCK)) {
1302 int fmode = ap->a_fmode;
1353 if ((fmode & O_CREAT) && ((vap == NULL) || (vap->va_type != VREG))) {
1389 if (fmode & O_CREAT) {
1515 fmode &= ~(O_CREAT | O_TRUNC); /* Can't create or truncate a symlink */
1529 if (vp && (!(fmode & (O_CREAT | O_TRUNC)) || (vnode_isreg(vp) && VTOSMB(vp)->f_refcnt))) {
1531 if ((fmode & O_EXCL) && vnode_isreg(vp) && VTOSMB(vp)->f_refcnt) {
1544 error = ap->a_open_existing_authorizer(vp, cnp, fmode, context, NULL);
1546 error = smbfs_vnop_open_common(vp, fmode, context, smbfs_vnop_compound_open);
1549 if (!error && (fmode & O_TRUNC)){
1558 (void)smbfs_close(share, vp, fmode, context);
1571 if (fmode & O_TRUNC) {
1582 if (fmode & O_CREAT) {
1587 if (fmode & O_EXCL) {
1589 } else if (fmode & O_TRUNC) {
1606 error = smbfs_create_open(share, dvp, cnp, vap, open_disp, fmode, &fid, fap, &vp, context);
1614 if ((fap->fa_created_disp == FILE_CREATE) && (!(fmode & O_CREAT))) {
1628 error = ap->a_open_existing_authorizer(vp, cnp, fmode, context, NULL);
1649 if ((fmode & O_CREAT) && (error == ENOENT)) {
1659 } else if ((fmode & O_EXCL) && (error != EEXIST)) {