Lines Matching refs:oflags
198 int oflags; in fopen() local
199 int flags = __sflags(mode, &oflags); in fopen()
202 int fd = open(file, oflags, DEFFILEMODE); in fopen()
221 if (oflags & O_APPEND) __sseek64(fp, 0, SEEK_END); in fopen()
228 int oflags; in fdopen() local
229 int flags = __sflags(mode, &oflags); in fdopen()
236 if (tmp != O_RDWR && (tmp != (oflags & O_ACCMODE))) { in fdopen()
245 if ((oflags & O_APPEND) && !(fdflags & O_APPEND)) flags |= __SAPP; in fdopen()
248 if ((oflags & O_CLOEXEC) && !((tmp = fcntl(fd, F_GETFD)) & FD_CLOEXEC)) { in fdopen()
260 int oflags; in freopen() local
261 int flags = __sflags(mode, &oflags); in freopen()
293 int fd = open(file, oflags, DEFFILEMODE); in freopen()
299 fd = open(file, oflags, DEFFILEMODE); in freopen()
332 if (dup3(fd, wantfd, oflags & O_CLOEXEC) >= 0) { in freopen()
359 if (oflags & O_APPEND) __sseek64(fp, 0, SEEK_END); in freopen()