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,
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to