Lines Matching refs:sff
674 ** sff -- safefile flags.
681 safeopen(fn, omode, cmode, sff)
685 long sff;
696 sm_dprintf("safeopen: fn=%s, omode=%x, cmode=%x, sff=%lx\n",
697 fn, omode, cmode, sff);
700 sff |= SFF_CREAT;
720 if (bitset(SFF_OPENASROOT, sff))
722 sff, smode, &stb);
725 sff, smode, &stb);
731 if (stb.st_mode == ST_MODE_NOFILE && bitset(SFF_CREAT, sff))
732 omode |= O_CREAT | (bitset(SFF_NOTEXCL, sff) ? 0 : O_EXCL);
733 else if (bitset(SFF_CREAT, sff) && bitset(O_EXCL, omode))
746 fd = dfopen(fn, omode, cmode, sff);
781 ** sff -- safefile flags.
788 safefopen(fn, omode, cmode, sff)
792 long sff;
825 fd = safeopen(fn, omode, cmode, sff);
843 sm_dprintf("safefopen: fdopen(%s, %d) failed: omode=%x, sff=%lx, err=%s\n",
844 fn, fmode, omode, sff, sm_errstring(errno));
927 dfopen(filename, omode, cmode, sff)
931 long sff;
955 if (!bitset(SFF_NOLOCK, sff) &&
967 if (bitset(SFF_NBLOCK, sff))