Lines Matching defs:hostidp
2374 * 'hostidp' is NULL, Z_TOO_BIG if 'hostidp' refers to a string buffer
2379 zonecfg_valid_hostid(const char *hostidp)
2385 if (hostidp == NULL)
2389 if (*hostidp == '\0')
2391 for (currentp = (char *)hostidp; *currentp != '\0'; ++currentp) {
2395 len = (size_t)(currentp - hostidp);
2404 currentp = (char *)hostidp;
2405 if (strncmp(hostidp, "0x", 2) == 0 || strncmp(hostidp, "0X", 2) == 0)
2408 if ((size_t)(currentp - hostidp) >= HW_HOSTID_LEN)
2411 currentp != hostidp + len)
2437 * string value. If 'hostidp' is NULL, then the config document's hostid
2442 zonecfg_set_hostid(zone_dochandle_t handle, const char *hostidp)
2450 if (hostidp == NULL || (err = zonecfg_valid_hostid(hostidp)) == Z_OK)
2451 return (setrootattr(handle, DTD_ATTR_HOSTID, hostidp));