truss: fix shm_open2 oversight (BinString -> Name)

BinString assumes a length in the next argument; Name is more appropriate
for the final argument.
This commit is contained in:
kevans 2020-02-19 15:12:01 +00:00
parent 2a13eeffd8
commit c7f955c37c

View File

@ -473,7 +473,7 @@ static struct syscall decoded_syscalls[] = {
.args = { { ShmName | IN, 0 }, { Open, 1 }, { Octal, 2 } } },
{ .name = "shm_open2", .ret_type = 1, .nargs = 5,
.args = { { ShmName | IN, 0 }, { Open, 1 }, { Octal, 2 },
{ ShmFlags, 3 }, { BinString | IN, 4 } } },
{ ShmFlags, 3 }, { Name | IN, 4 } } },
{ .name = "shm_rename", .ret_type = 1, .nargs = 3,
.args = { { Name | IN, 0 }, { Name | IN, 1 }, { Hex, 2 } } },
{ .name = "shm_unlink", .ret_type = 1, .nargs = 1,