blob: c64d954dad9beb2faefa579bd30d49d49991c726 [file] [log] [blame]
Dmitry V. Levin03c06ea2014-12-11 19:25:02 +00001#include "defs.h"
2
Dmitry V. Levina0bd3742015-04-07 01:36:50 +00003SYS_FUNC(sethostname)
Dmitry V. Levin03c06ea2014-12-11 19:25:02 +00004{
Dmitry V. Levin3aced792015-07-20 11:30:38 +00005 printstr(tcp, tcp->u_arg[0], tcp->u_arg[1]);
6 tprintf(", %lu", tcp->u_arg[1]);
7
8 return RVAL_DECODED;
Dmitry V. Levin03c06ea2014-12-11 19:25:02 +00009}
10
11#if defined(ALPHA)
Dmitry V. Levina0bd3742015-04-07 01:36:50 +000012SYS_FUNC(gethostname)
Dmitry V. Levin03c06ea2014-12-11 19:25:02 +000013{
14 if (exiting(tcp)) {
15 if (syserror(tcp))
Dmitry V. Levin3f08e2d2015-07-20 11:29:20 +000016 printaddr(tcp->u_arg[0]);
Dmitry V. Levin03c06ea2014-12-11 19:25:02 +000017 else
18 printstr(tcp, tcp->u_arg[0], -1);
19 tprintf(", %lu", tcp->u_arg[1]);
20 }
21 return 0;
22}
23#endif /* ALPHA */