git: sys/kern: Add fdatasync(2)

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Sun Sep 12 06:13:22 PDT 2021


commit 74fa2560ac77f9db4a34b2a7c72450126fec4ed6
Author: Tomohiro Kusumi <tkusumi at netbsd.org>
Date:   Sun Sep 12 01:57:53 2021 +0900

    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.

Summary of changes:
 include/unistd.h                       |  2 --
 lib/libc/sys/Symbol.map                |  3 +++
 lib/libthread_xu/pthread.map           |  2 ++
 lib/libthread_xu/thread/thr_syscalls.c | 18 +++++++++++++++++
 sys/kern/init_sysent.c                 |  1 +
 sys/kern/syscalls.c                    |  1 +
 sys/kern/syscalls.master               |  1 +
 sys/kern/vfs_default.c                 |  7 +++++++
 sys/kern/vfs_syscalls.c                | 35 ++++++++++++++++++++++++++--------
 sys/kern/vfs_vopops.c                  | 35 ++++++++++++++++++++++++++++++++++
 sys/sys/kern_syscall.h                 |  1 +
 sys/sys/param.h                        |  3 ++-
 sys/sys/syscall.h                      |  3 ++-
 sys/sys/syscall.mk                     |  3 ++-
 sys/sys/sysproto.h                     |  4 ++++
 sys/sys/sysunion.h                     |  1 +
 sys/sys/vfsops.h                       | 18 +++++++++++++++++
 sys/sys/vnode.h                        |  1 +
 18 files changed, 126 insertions(+), 13 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/74fa2560ac77f9db4a34b2a7c72450126fec4ed6


-- 
DragonFly BSD source repository


More information about the Commits mailing list