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
This commit is contained in:
Christian S.J. Peron 2020-05-21 02:10:45 +00:00
parent 245bfd34da
commit 7be2c6f3bf
1 changed files with 2 additions and 0 deletions

View File

@ -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,