Lines Matching refs:mode_flags
248 int mode_flags; in fopen() local
249 int flags = __sflags(mode, &mode_flags); in fopen()
252 int fd = open(file, mode_flags, DEFFILEMODE); in fopen()
266 if ((mode_flags & O_APPEND) != 0) __sseek64(fp, 0, SEEK_END); in fopen()
272 int mode_flags; in fdopen() local
273 int flags = __sflags(mode, &mode_flags); in fdopen()
280 if (tmp != O_RDWR && (tmp != (mode_flags & O_ACCMODE))) { in fdopen()
287 if ((mode_flags & O_APPEND) && !(fd_flags & O_APPEND)) { in fdopen()
292 if ((mode_flags & O_CLOEXEC) && !((tmp = fcntl(fd, F_GETFD)) & FD_CLOEXEC)) { in fdopen()
316 int mode_flags; in freopen() local
317 int flags = __sflags(mode, &mode_flags); in freopen()
351 int fd = open(file, mode_flags, DEFFILEMODE); in freopen()
357 fd = open(file, mode_flags, DEFFILEMODE); in freopen()
390 if (dup3(fd, wantfd, mode_flags & O_CLOEXEC) >= 0) { in freopen()
400 if ((mode_flags & O_APPEND) != 0) __sseek64(fp, 0, SEEK_END); in freopen()