Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Feb 2019 09:13:41 +0000 (UTC)
From:      Thomas Munro <tmunro@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r344656 - head/usr.bin/truss
Message-ID:  <201902280913.x1S9DfNX016522@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tmunro
Date: Thu Feb 28 09:13:41 2019
New Revision: 344656
URL: https://svnweb.freebsd.org/changeset/base/344656

Log:
  truss: Add support for fsync(2) and fdatasync(2).
  
  The default handling showed the argument as hex.  Add explicit handling so
  we can show it as decimal, since that's how we show file descriptors
  everywhere else.
  
  Approved by:	mjg (mentor)
  MFC after:	2 weeks
  Differential Revision:	https://reviews.freebsd.org/D19295

Modified:
  head/usr.bin/truss/syscalls.c

Modified: head/usr.bin/truss/syscalls.c
==============================================================================
--- head/usr.bin/truss/syscalls.c	Thu Feb 28 06:53:18 2019	(r344655)
+++ head/usr.bin/truss/syscalls.c	Thu Feb 28 09:13:41 2019	(r344656)
@@ -231,6 +231,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,
@@ -240,6 +242,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,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201902280913.x1S9DfNX016522>