diff options
author | Christian S.J. Peron <csjp@FreeBSD.org> | 2020-05-21 02:10:45 +0000 |
---|---|---|
committer | Christian S.J. Peron <csjp@FreeBSD.org> | 2020-05-21 02:10:45 +0000 |
commit | 7be2c6f3bf73135445cb0f75f9d676a9065f30b7 (patch) | |
tree | b876bd37024e6c32357b346194e7137bbce92e95 /usr.bin/truss | |
parent | 245bfd34da590e12884bd1a5677f3227a36d4bcf (diff) | |
download | src-7be2c6f3bf73135445cb0f75f9d676a9065f30b7.tar.gz src-7be2c6f3bf73135445cb0f75f9d676a9065f30b7.zip |
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
Notes
Notes:
svn path=/head/; revision=361316
Diffstat (limited to 'usr.bin/truss')
-rw-r--r-- | usr.bin/truss/syscalls.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.bin/truss/syscalls.c b/usr.bin/truss/syscalls.c index e9c02379e12c..1de256c4f094 100644 --- a/usr.bin/truss/syscalls.c +++ b/usr.bin/truss/syscalls.c @@ -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, |