mirror of
https://github.com/espressif/esp-idf.git
synced 2026-09-22 13:01:16 +03:00
F_SETFL was replacing the whole flags word, so fcntl(fd, F_SETFL, O_APPEND) made F_GETFL report O_RDONLY|O_APPEND. Keep O_ACCMODE and apply only POSIX status flags.