]> granicus.if.org Git - strace/blob - hostname.c
decode_poll_exiting: reserve more space in output buffer
[strace] / hostname.c
1 #include "defs.h"
2
3 SYS_FUNC(sethostname)
4 {
5         printstr(tcp, tcp->u_arg[0], tcp->u_arg[1]);
6         tprintf(", %lu", tcp->u_arg[1]);
7
8         return RVAL_DECODED;
9 }
10
11 #if defined(ALPHA)
12 SYS_FUNC(gethostname)
13 {
14         if (exiting(tcp)) {
15                 if (syserror(tcp))
16                         printaddr(tcp->u_arg[0]);
17                 else
18                         printstr(tcp, tcp->u_arg[0], -1);
19                 tprintf(", %lu", tcp->u_arg[1]);
20         }
21         return 0;
22 }
23 #endif /* ALPHA */