[PATCH] sys/kern: Add fdatasync(2)
Based on the following FreeBSD commits in 2016.
Add the syscall and also add it to pthread's cancellation point.
The default behavior is same as fsync(2), which is fine but inefficient.
I'll commit within a few days.