Lines Matching refs:omode
681 safeopen(fn, omode, cmode, sff) in safeopen() argument
683 int omode;
697 fn, omode, cmode, sff);
699 if (bitset(O_CREAT, omode))
701 omode &= ~O_CREAT;
702 switch (omode & O_ACCMODE)
732 omode |= O_CREAT | (bitset(SFF_NOTEXCL, sff) ? 0 : O_EXCL);
733 else if (bitset(SFF_CREAT, sff) && bitset(O_EXCL, omode))
741 truncate = bitset(O_TRUNC, omode);
743 omode &= ~O_TRUNC;
746 fd = dfopen(fn, omode, cmode, sff);
788 safefopen(fn, omode, cmode, sff) in safefopen() argument
790 int omode;
799 switch (omode & O_ACCMODE)
806 if (bitset(O_APPEND, omode))
813 if (bitset(O_TRUNC, omode))
815 else if (bitset(O_APPEND, omode))
822 syserr("554 5.3.5 safefopen: unknown omode %o", omode);
825 fd = safeopen(fn, omode, cmode, sff);
844 fn, fmode, omode, sff, sm_errstring(errno));
927 dfopen(filename, omode, cmode, sff) in dfopen() argument
929 int omode;
941 fd = open(filename, omode, cmode);
963 if ((omode & O_ACCMODE) != O_RDONLY)