previous: >>108285124
#define __NR_fsync 74
#define __NR_fdatasync 75
https://man7.org/linux/man-pages/man2/fsync.2.html
tl;dr:
flush file data to disk
the tl;dr honestly covers pretty much all of it for this one, lol. i guess it's maybe interesting that it blocks? plus the option for metadata-less flushes
i guess the one other thing worth mentioning is the EIO error case, where you can get some write-like errors when trying to flush
i'm sure these are useful to someone trying to do optimizations, but they're not something i've ever taken advantage of
relevant resources:
man man
man syscalls
https://man7.org/linux/man-pages/
https://linux.die.net/man/
https://elixir.bootlin.com/linux/
https://elixir.bootlin.com/musl/
https://elixir.bootlin.com/glibc/