Source Compatibility Guide

gethostname

Returns the standard hostname for the current processor. This routine calls the sysinfo(2) system call.