diff options
author | Dmitry V. Levin <ldv@altlinux.org> | 2017-07-09 13:54:01 +0000 |
---|---|---|
committer | Dmitry V. Levin <ldv@altlinux.org> | 2017-07-09 13:54:01 +0000 |
commit | fdb4415f060b151caf66f16f8edace67316c4098 (patch) | |
tree | a93a6dcd5becec0b5905cb43a3231f33521d92d0 /net.c | |
parent | a0470d7848666a2ad0cfde4fa6edbc616d3418e7 (diff) | |
download | strace-fdb4415f060b151caf66f16f8edace67316c4098.tar.gz |
net: move parsers of bind, listen, and shutdown to separate files
* bind.c: New file.
* listen.c: Likewise.
* shutdown.c: Likewise.
* Makefile.am (strace_SOURCES): Add them.
* net.c (SYS_FUNC(bind)): Move to bind.c.
(SYS_FUNC(listen)): Move to listen.c.
(SYS_FUNC(shutdown)): Move to shutdown.c.
Diffstat (limited to 'net.c')
-rw-r--r-- | net.c | 31 |
1 files changed, 0 insertions, 31 deletions
@@ -168,26 +168,6 @@ SYS_FUNC(socket) return RVAL_DECODED | RVAL_FD; } -SYS_FUNC(bind) -{ - printfd(tcp, tcp->u_arg[0]); - tprints(", "); - const int addrlen = tcp->u_arg[2]; - decode_sockaddr(tcp, tcp->u_arg[1], addrlen); - tprintf(", %d", addrlen); - - return RVAL_DECODED; -} - -SYS_FUNC(listen) -{ - printfd(tcp, tcp->u_arg[0]); - tprints(", "); - tprintf("%" PRI_klu, tcp->u_arg[1]); - - return RVAL_DECODED; -} - static bool fetch_socklen(struct tcb *const tcp, int *const plen, const kernel_ulong_t sockaddr, const kernel_ulong_t socklen) @@ -349,17 +329,6 @@ SYS_FUNC(recvfrom) return 0; } -#include "xlat/shutdown_modes.h" - -SYS_FUNC(shutdown) -{ - printfd(tcp, tcp->u_arg[0]); - tprints(", "); - printxval(shutdown_modes, tcp->u_arg[1], "SHUT_???"); - - return RVAL_DECODED; -} - SYS_FUNC(getsockname) { return decode_sockname(tcp); |