Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Aug 2015 18:28:16 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r286378 - head/usr.bin/truss
Message-ID:  <201508061828.t76ISGBF064207@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhb
Date: Thu Aug  6 18:28:15 2015
New Revision: 286378
URL: https://svnweb.freebsd.org/changeset/base/286378

Log:
  Don't mark the fcntl flag argument as an output parameter so that it is
  always decoded.  Previously the argument was not decoded if fcntl() failed.

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

Modified: head/usr.bin/truss/syscalls.c
==============================================================================
--- head/usr.bin/truss/syscalls.c	Thu Aug  6 18:19:30 2015	(r286377)
+++ head/usr.bin/truss/syscalls.c	Thu Aug  6 18:28:15 2015	(r286378)
@@ -93,7 +93,7 @@ static const char rcsid[] =
  */
 static struct syscall syscalls[] = {
 	{ .name = "fcntl", .ret_type = 1, .nargs = 3,
-	  .args = { { Int, 0 }, { Fcntl, 1 }, { Fcntlflag | OUT, 2 } } },
+	  .args = { { Int, 0 }, { Fcntl, 1 }, { Fcntlflag, 2 } } },
 	{ .name = "fork", .ret_type = 1, .nargs = 0 },
 	{ .name = "vfork", .ret_type = 1, .nargs = 0 },
 	{ .name = "rfork", .ret_type = 1, .nargs = 1,



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