Home | History | Annotate | Download | only in gethostid

Lines Matching refs:hostid

109  * 	  	output from hostid command and gethostid()
112 * distros that add "0x" to beginning of `hostid`
144 char name[HOSTIDLEN], name2[HOSTIDLEN], hostid[HOSTIDLEN],
163 sprintf(hostid, "%08lx", TEST_RETURN);
165 if (system("hostid > hostid.x") == -1)
168 if ((fp = fopen("hostid.x", "r")) == NULL)
176 if (strstr(hostid, "000000"))
179 if (strcmp(name, hostid) == 0) {
181 "Hostid command and gethostid both report "
182 "hostid is %s", hostid);
187 * `hostid` output. We compare the first 2
188 * characters of the `hostid` output with "0x",
204 if (0 == strncmp(hostid, hex_64, 8))
212 hostid2[j] = hostid[j + 8];
214 strncpy(hostid2, hostid,
215 strlen(hostid) + 1);
225 "Hostid command reports "
226 "hostid is %s, and gethostid "
230 "Hostid command reports "
231 "hostid is %s, but gethostid "