1 #include "defs.h"
2 
SYS_FUNC(sethostname)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)
SYS_FUNC(gethostname)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 */
24