_stdio_flags
extern int _stdio_flags(const char *type, int *oflags, int *fflags);
if (_stdio_flags(type, &oflag, &fflag) != 0) {
if (_stdio_flags(mode, &oflags, &fflags) != 0) {