Home | History | Annotate | Download | only in strace
      1 #include "defs.h"
      2 
      3 SYS_FUNC(sethostname)
      4 {
      5 	if (entering(tcp)) {
      6 		printstr(tcp, tcp->u_arg[0], tcp->u_arg[1]);
      7 		tprintf(", %lu", tcp->u_arg[1]);
      8 	}
      9 	return 0;
     10 }
     11 
     12 #if defined(ALPHA)
     13 SYS_FUNC(gethostname)
     14 {
     15 	if (exiting(tcp)) {
     16 		if (syserror(tcp))
     17 			tprintf("%#lx", tcp->u_arg[0]);
     18 		else
     19 			printstr(tcp, tcp->u_arg[0], -1);
     20 		tprintf(", %lu", tcp->u_arg[1]);
     21 	}
     22 	return 0;
     23 }
     24 #endif /* ALPHA */
     25