]> granicus.if.org Git - strace/commit
Prepare parsers of sockname family syscalls for the upcoming fix
authorDmitry V. Levin <ldv@altlinux.org>
Sat, 9 Jul 2016 21:52:34 +0000 (21:52 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 11 Jul 2016 22:43:47 +0000 (22:43 +0000)
commitd1cedf0fdbf3afd6f8da79470a538253f1c0d559
tree071e572e6d9fb4ad6b035d946a8ec26b8f28279e
parentdeb0c18871ce5554cbaf4430f7d916bdb89e957a
Prepare parsers of sockname family syscalls for the upcoming fix

* net.c (do_sockname): Rename to decode_sockname, drop second argument,
do not print sock_type_flags, return RVAL_DECODED on exiting.
(SYS_FUNC(accept), SYS_FUNC(getsockname)): Use decode_sockname instead
of do_sockname, take its return code into account.
(SYS_FUNC(accept4)): Likewise.  Print sock_type_flags when
decode_sockname returns RVAL_DECODED.
net.c