diff options
author | Dmitry V. Levin <ldv@altlinux.org> | 2018-06-01 01:46:06 +0000 |
---|---|---|
committer | Dmitry V. Levin <ldv@altlinux.org> | 2018-06-01 01:46:06 +0000 |
commit | 419da8e231070555cadaef03c85f09c3f10b1a15 (patch) | |
tree | 67311789f82dd3955b6036f7bc6c7c8e1ade8c5f /tests/fcntl.c | |
parent | 9c7052f4031fefc1a4f2c8f38c75da60f525eec2 (diff) | |
download | strace-419da8e231070555cadaef03c85f09c3f10b1a15.tar.gz |
tests/fcntl-common.c: add fd argument to invoke_test_syscall
Extend invoke_test_syscall for later use with different file
descriptors.
* tests/fcntl-common.c (invoke_test_syscall): Add fd argument, pass it
to TEST_SYSCALL_NR syscall. All users updated.
Diffstat (limited to 'tests/fcntl.c')
-rw-r--r-- | tests/fcntl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/fcntl.c b/tests/fcntl.c index ac4ca19e7..fc494d5ef 100644 --- a/tests/fcntl.c +++ b/tests/fcntl.c @@ -43,7 +43,7 @@ test_flock64_undecoded(const int cmd, const char *name) .l_start = 0xdefaced1facefeedULL, .l_len = 0xdefaced2cafef00dULL }; - long rc = invoke_test_syscall(cmd, &fl); + long rc = invoke_test_syscall(0, cmd, &fl); printf("%s(0, %s, %p) = %s\n", TEST_SYSCALL_STR, name, &fl, sprintrc(rc)); } |