]> granicus.if.org Git - strace/commit
Pass tcp argument to get_optmem_max/read_int_from_file
authorEugene Syromiatnikov <esyr@redhat.com>
Mon, 25 Dec 2017 22:55:22 +0000 (23:55 +0100)
committerDmitry V. Levin <ldv@altlinux.org>
Sun, 7 Jan 2018 16:46:32 +0000 (16:46 +0000)
commitbf2e6250bbf9f66d997862c1e5857cba0f8ae57d
tree6a7cc11045815dfc3599f76875f341d4a663ee4e
parentcc057e03ae39e73dd41c71dd77de978e5bd818ea
Pass tcp argument to get_optmem_max/read_int_from_file

In preparation to passing tcp to all tracee-related syscalls.

* defs.h (read_int_from_file): Add "struct tcb *" as the first argument.
* util.c (read_int_from_file): Likewise.
* msghdr.c (get_optmem_max): Add "struct tcb *tcp" as the first
argument, pass it to read_int_from_file call.
(decode_msg_control): Pass tcp to get_optmem_max.
defs.h
msghdr.c
util.c