diff options
author | tuexen <tuexen@FreeBSD.org> | 2018-04-07 20:56:07 +0000 |
---|---|---|
committer | tuexen <tuexen@FreeBSD.org> | 2018-04-07 20:56:07 +0000 |
commit | ce711ffc75eb8e4c227bce329427e901f44c40e1 (patch) | |
tree | 232701dfd5acb093b40d0fc8a540fd475389bc34 /usr.bin | |
parent | 9a9c4889b463ddc4f6e617ea0b515df6b6d28038 (diff) | |
download | FreeBSD-src-ce711ffc75eb8e4c227bce329427e901f44c40e1.zip FreeBSD-src-ce711ffc75eb8e4c227bce329427e901f44c40e1.tar.gz |
MFC r327961:
Mark the iovec parameters of writev() and readv() as IN and OUT.
This makes truss work on readv() as expected.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/truss/syscalls.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/truss/syscalls.c b/usr.bin/truss/syscalls.c index 4fa06a1..364119a 100644 --- a/usr.bin/truss/syscalls.c +++ b/usr.bin/truss/syscalls.c @@ -371,7 +371,7 @@ static struct syscall decoded_syscalls[] = { { .name = "read", .ret_type = 1, .nargs = 3, .args = { { Int, 0 }, { BinString | OUT, 1 }, { Sizet, 2 } } }, { .name = "readv", .ret_type = 1, .nargs = 3, - .args = { { Int, 0 }, { Iovec, 1 }, { Int, 2 } } }, + .args = { { Int, 0 }, { Iovec | OUT, 1 }, { Int, 2 } } }, { .name = "readlink", .ret_type = 1, .nargs = 3, .args = { { Name, 0 }, { Readlinkres | OUT, 1 }, { Sizet, 2 } } }, { .name = "readlinkat", .ret_type = 1, .nargs = 4, @@ -507,7 +507,7 @@ static struct syscall decoded_syscalls[] = { { .name = "write", .ret_type = 1, .nargs = 3, .args = { { Int, 0 }, { BinString | IN, 1 }, { Sizet, 2 } } }, { .name = "writev", .ret_type = 1, .nargs = 3, - .args = { { Int, 0 }, { Iovec, 1 }, { Int, 2 } } }, + .args = { { Int, 0 }, { Iovec | IN, 1 }, { Int, 2 } } }, /* Linux ABI */ { .name = "linux_access", .ret_type = 1, .nargs = 2, |