svn commit: r361316 - head/usr.bin/truss
Christian S.J. Peron
csjp at FreeBSD.org
Thu May 21 02:10:46 UTC 2020
Author: csjp
Date: Thu May 21 02:10:45 2020
New Revision: 361316
URL: https://svnweb.freebsd.org/changeset/base/361316
Log:
Decode the file descriptor argument to closefrom(2) as an Integer.
This is consistent with what we are doing for close(2) and it makes
it a bit easier to follow when debugging file descriptor operations.
i.e. many other syscalls are decoding fds as integers rather than
base 16 numbers.
MFC after: 1 week
Modified:
head/usr.bin/truss/syscalls.c
Modified: head/usr.bin/truss/syscalls.c
==============================================================================
--- head/usr.bin/truss/syscalls.c Thu May 21 02:08:34 2020 (r361315)
+++ head/usr.bin/truss/syscalls.c Thu May 21 02:10:45 2020 (r361316)
@@ -157,6 +157,8 @@ static struct syscall decoded_syscalls[] = {
.args = { { Int, 0 }, { Timespec | OUT, 1 } } },
{ .name = "close", .ret_type = 1, .nargs = 1,
.args = { { Int, 0 } } },
+ { .name = "closefrom", .ret_type = 1, .nargs = 1,
+ .args = { { Int, 0 } } },
{ .name = "compat11.fstat", .ret_type = 1, .nargs = 2,
.args = { { Int, 0 }, { Stat11 | OUT, 1 } } },
{ .name = "compat11.fstatat", .ret_type = 1, .nargs = 4,
More information about the svn-src-all
mailing list