blob: d2e0471b7eb479190605118b6382179359bfea28 [file] [log] [blame]
Dmitry V. Levin03c06ea2014-12-11 19:25:02 +00001#include "defs.h"
2
3int
4sys_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)
14int
15sys_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 */