g_gate_openflags
fd = open(path, g_gate_openflags(flags) | O_DIRECT | O_FSYNC);
fd = open(path, g_gate_openflags(flags));