int hostid; error_t err; if (err = __USEPORT (PROC, __proc_gethostid (port, &hostid))) return __hurd_fail (err); return hostid;
char buf[8]; ssize_t n = _hurd_get_host_config ("/etc/hostid", buf, sizeof buf); if (n < 0) return -1; return strtol (buf, NULL, 16);
DEFUN_VOID(gethostid){  int hostid;  error_t err;  if (err = __USEPORT (PROC, __proc_gethostid (port, &hostid)))    return __hurd_fail (err);  return hostid;}