]> granicus.if.org Git - strace/blob - hostname.c
ioctl: print unrecognized ioctl codes in _IOC(dir,type,nr,size) format
[strace] / hostname.c
1 #include "defs.h"
2
3 int
4 sys_sethostname(struct tcb *tcp)
5 {
6         if (entering(tcp)) {
7                 printstr(tcp, tcp->u_arg[0], tcp->u_arg[1]);
8                 tprintf(", %lu", tcp->u_arg[1]);
9         }
10         return 0;
11 }
12
13 #if defined(ALPHA)
14 int
15 sys_gethostname(struct tcb *tcp)
16 {
17         if (exiting(tcp)) {
18                 if (syserror(tcp))
19                         tprintf("%#lx", tcp->u_arg[0]);
20                 else
21                         printstr(tcp, tcp->u_arg[0], -1);
22                 tprintf(", %lu", tcp->u_arg[1]);
23         }
24         return 0;
25 }
26 #endif /* ALPHA */