Source Compatibility Guide

sethostname

Sets the name of the host machine. This routine calls the sysinfo(2) system call.