sys/kern: Add fdatasync(2)
authorTomohiro Kusumi <tkusumi@netbsd.org>
Sat, 11 Sep 2021 16:57:53 +0000 (01:57 +0900)
committerTomohiro Kusumi <tkusumi@netbsd.org>
Sat, 11 Sep 2021 21:18:42 +0000 (06:18 +0900)
commit74fa2560ac77f9db4a34b2a7c72450126fec4ed6
treefc36fae5cdf4cbb103f746d39935fadf8a3157a5
parentfef0a4be3c2d757f727c223fc6032f0898b816ad
sys/kern: Add fdatasync(2)

Based on the following FreeBSD commits in 2016.
295af703a0d7987c6cf4987e7b7f5f07b3ca1221
1c1cc89580f0fbfabaf6f6c7f0f6440eef0c128e

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.
18 files changed:
include/unistd.h
lib/libc/sys/Symbol.map
lib/libthread_xu/pthread.map
lib/libthread_xu/thread/thr_syscalls.c
sys/kern/init_sysent.c
sys/kern/syscalls.c
sys/kern/syscalls.master
sys/kern/vfs_default.c
sys/kern/vfs_syscalls.c
sys/kern/vfs_vopops.c
sys/sys/kern_syscall.h
sys/sys/param.h
sys/sys/syscall.h
sys/sys/syscall.mk
sys/sys/sysproto.h
sys/sys/sysunion.h
sys/sys/vfsops.h
sys/sys/vnode.h