Searched refs:oldflags (Results 1 – 2 of 2) sorted by relevance
147 int oldflags; in freopen64() local154 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()
145 int oldflags; in freopen() local152 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()