Home
last modified time | relevance | path

Searched refs:oldflags (Results 1 – 2 of 2) sorted by relevance

/picolibc-3.7.0-3.6.0/newlib/libc/stdio64/
Dfreopen64.c147 int oldflags; in freopen64() local
154 if ((oldflags = fcntl (f, F_GETFL, 0)) == -1 in freopen64()
155 || ! ((oldflags & O_ACCMODE) == O_RDWR in freopen64()
156 || ((oldflags ^ oflags) & O_ACCMODE) == 0) in freopen64()
/picolibc-3.7.0-3.6.0/newlib/libc/stdio/
Dfreopen.c145 int oldflags; in freopen() local
152 if ((oldflags = fcntl (f, F_GETFL, 0)) == -1 in freopen()
153 || ! ((oldflags & O_ACCMODE) == O_RDWR in freopen()
154 || ((oldflags ^ oflags) & O_ACCMODE) == 0) in freopen()