svn commit: r286378 - head/usr.bin/truss
John Baldwin
jhb at FreeBSD.org
Thu Aug 6 18:28:16 UTC 2015
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,
More information about the svn-src-head
mailing list