Commit gethostname.h

Commit the gethostname.h file from the Guide.