Author: tmunro
Date: Sun Jul 12 09:49:53 2020
New Revision: 363124
URL: https://svnweb.freebsd.org/changeset/base/363124

Log:
  MFC r344656
    truss: Add support for fsync(2) and fdatasync(2).
  
  Approved by:    mjg (mentor)
  Differential Revision:  https://reviews.freebsd.org/D19295

Modified:
  stable/12/usr.bin/truss/syscalls.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/usr.bin/truss/syscalls.c
==============================================================================
--- stable/12/usr.bin/truss/syscalls.c  Sun Jul 12 07:59:15 2020        
(r363123)
+++ stable/12/usr.bin/truss/syscalls.c  Sun Jul 12 09:49:53 2020        
(r363124)
@@ -233,6 +233,8 @@ static struct syscall decoded_syscalls[] = {
                    { Atflags, 4 } } },
        { .name = "fcntl", .ret_type = 1, .nargs = 3,
          .args = { { Int, 0 }, { Fcntl, 1 }, { Fcntlflag, 2 } } },
+       { .name = "fdatasync", .ret_type = 1, .nargs = 1,
+         .args = { { Int, 0 } } },
        { .name = "flock", .ret_type = 1, .nargs = 2,
          .args = { { Int, 0 }, { Flockop, 1 } } },
        { .name = "fstat", .ret_type = 1, .nargs = 2,
@@ -242,6 +244,8 @@ static struct syscall decoded_syscalls[] = {
                    { Atflags, 3 } } },
        { .name = "fstatfs", .ret_type = 1, .nargs = 2,
          .args = { { Int, 0 }, { StatFs | OUT, 1 } } },
+       { .name = "fsync", .ret_type = 1, .nargs = 1,
+         .args = { { Int, 0 } } },
        { .name = "ftruncate", .ret_type = 1, .nargs = 2,
          .args = { { Int | IN, 0 }, { QuadHex | IN, 1 } } },
        { .name = "futimens", .ret_type = 1, .nargs = 2,
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to