Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Aug 2015 18:32:32 +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: r286380 - head/usr.bin/truss
Message-ID:  <201508061832.t76IWWTB068059@repo.freebsd.org>

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

Log:
  Decode the arguments to mkfifo() and fix an off-by-one error in the arguments
  to mknod().

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

Modified: head/usr.bin/truss/syscalls.c
==============================================================================
--- head/usr.bin/truss/syscalls.c	Thu Aug  6 18:29:26 2015	(r286379)
+++ head/usr.bin/truss/syscalls.c	Thu Aug  6 18:32:32 2015	(r286380)
@@ -141,8 +141,10 @@ static struct syscall syscalls[] = {
 	  .args = { { Name, 0 } } },
 	{ .name = "chroot", .ret_type = 0, .nargs = 1,
 	  .args = { { Name, 0 } } },
+	{ .name = "mkfifo", .ret_type = 0, .nargs = 2,
+	  .args = { { Name, 0 }, { Octal, 1 } } },
 	{ .name = "mknod", .ret_type = 0, .nargs = 3,
-	  .args = { { Name, 0 }, { Octal, 1 }, { Int, 3 } } },
+	  .args = { { Name, 0 }, { Octal, 1 }, { Int, 2 } } },
 	{ .name = "chmod", .ret_type = 0, .nargs = 2,
 	  .args = { { Name, 0 }, { Octal, 1 } } },
 	{ .name = "chown", .ret_type = 0, .nargs = 3,



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