Lines Matching defs:hostid
98 int hostidf = 0; /* 0 == print hostid with other info, */
99 /* 1 == print just the hostid */
204 char hostid[256], *end;
239 * Prints hostid of machine.
241 if (sysinfo(SI_HW_SERIAL, hostid, sizeof (hostid)) == -1) {
242 fprintf(stderr, "hostid: sysinfo failed\n");
245 hostval = strtoul(hostid, &end, 10);
246 if (hostval == 0 && end == hostid) {
247 fprintf(stderr, "hostid: hostid string returned by "
248 "sysinfo not numeric: \"%s\"\n", hostid);