/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | gethostid.c | 44 unsigned long hostid; local 52 hostid = strtoul(name, &end, 10); 55 return ((long)hostid);
|
/illumos-gate/usr/src/ucblib/libucb/port/sys/ |
H A D | gethostid.c | 56 unsigned long hostid; local 68 hostid = strtoul(name, &end, 10); 69 if (hostid == 0 && end == name) { 72 return ((long) hostid);
|
/illumos-gate/usr/src/lib/libzfs/common/ |
H A D | libzfs_status.c | 195 uint64_t hostid = 0; local 218 (void) nvlist_lookup_uint64(config, ZPOOL_CONFIG_HOSTID, &hostid); 219 if (hostid != 0 && (unsigned long)hostid != gethostid() &&
|
H A D | libzfs_import.c | 454 uint64_t hostid; local 537 * hostid (if available) 566 hostid = 0; 568 ZPOOL_CONFIG_HOSTID, &hostid) == 0) { 570 ZPOOL_CONFIG_HOSTID, hostid); 811 if (hostid != 0) { 813 hostid) == 0);
|
/illumos-gate/usr/src/cmd/ndmpd/ndmp/ |
H A D | ndmpd_config.c | 112 ulong_t hostid; local 130 * Convert the hostid to hex. The returned string must match 131 * the string returned by hostid(1). 133 hostid = strtoul(hostidstr, 0, 0); 134 (void) snprintf(hostidstr, sizeof (hostidstr), "%lx", hostid); 135 reply.hostid = hostidstr; 295 ulong_t hostid; local 315 * Convert the hostid to hex. The returned string must match 316 * the string returned by hostid(1). 318 hostid [all...] |
/illumos-gate/usr/src/cmd/avs/ncall/ |
H A D | ncalladm.c | 78 char hostid[32]; local 84 if (snprintf(hostid, sizeof (hostid), "%lx", gethostid()) >= 85 sizeof (hostid)) { 86 (void) fprintf(stderr, gettext("%s: hostid %lx too large\n"), 105 cfg_resource(cfg, hostid);
|
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | spa_config.c | 357 unsigned long hostid = 0; local 389 hostid = zone_get_hostid(NULL); 392 * We're emulating the system's hostid in userland, so we can't use 395 (void) ddi_strtoul(hw_serial, NULL, 10, &hostid); 397 if (hostid != 0) { 398 fnvlist_add_uint64(config, ZPOOL_CONFIG_HOSTID, hostid);
|
H A D | spa.c | 2543 uint64_t hostid; local 2550 ZPOOL_CONFIG_HOSTID, &hostid) == 0) { 2561 * We're emulating the system's hostid in userland, so 2566 if (hostid != 0 && myhostid != 0 && 2567 hostid != myhostid) { 2571 "another system (host: %s hostid: 0x%lx). " 2574 (unsigned long)hostid);
|
/illumos-gate/usr/src/cmd/sysdef/ |
H A D | sysdef.c | 98 int hostidf = 0; /* 0 == print hostid with other info, */ 99 /* 1 == print just the hostid */ 204 char hostid[256], *end; local 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 [all...] |
/illumos-gate/usr/src/cmd/make/bin/ |
H A D | globals.cc | 176 long int hostid; variable
|
/illumos-gate/usr/src/lib/libpkg/common/ |
H A D | pkgweb.c | 3071 long hostid; member in struct:__anon3774 3085 /* couldn't use RANDOM file, so fallback to time of day and hostid */ 3090 r.hostid = gethostid();
|
/illumos-gate/usr/src/cmd/fm/fmadm/common/ |
H A D | faulty.c | 201 hostid_t hostid; member in struct:host_id_list 283 if (hostp->hostid.platform && 284 strcmp(hostp->hostid.platform, platform) == 0 && 285 hostp->hostid.server && 286 strcmp(hostp->hostid.server, server) == 0 && 287 (chassis == NULL || hostp->hostid.chassis == NULL || 288 strcmp(chassis, hostp->hostid.chassis) == 0) && 289 (product_sn == NULL || hostp->hostid.product_sn == NULL || 290 strcmp(product_sn, hostp->hostid.product_sn) == 0) && 291 (domain == NULL || hostp->hostid 504 new_record_init(uurec_t *uurec_p, char *msgid, name_list_t *class, name_list_t *fru, name_list_t *asru, name_list_t *resource, name_list_t *serial, boolean_t not_suppressed, hostid_t *hostid, boolean_t injected) argument 685 catalog_new_record(uurec_t *uurec_p, char *msgid, name_list_t *class, name_list_t *fru, name_list_t *asru, name_list_t *resource, name_list_t *serial, boolean_t not_suppressed, hostid_t *hostid, boolean_t injected, boolean_t dummy_fru) argument [all...] |
/illumos-gate/usr/src/uts/i86pc/os/ |
H A D | startup.c | 161 static char hostid_file[] = "/etc/hostid"; 1733 * Originally clconf_init() apparently needed the hostid. But 1735 * By placing the hostid logic here, we are able to make use of 1739 cmn_err(CE_WARN, "Unable to set hostid"); 2382 * for reading the hostid from the legacy file (/kernel/misc/sysinit). 2874 * to set one based on the contents of /etc/hostid. If this file does 2875 * not exist, assume that we are to generate a new hostid and set 2880 * /etc/hostid does not exist, we will attempt to get a serial number 2888 * In an attempt to make the hostid less prone to abuse 2889 * (for license circumvention, etc), we store it in /etc/hostid 2966 int32_t hostid = (int32_t)HW_INVALID_HOSTID; local [all...] |
/illumos-gate/usr/src/cmd/zpool/ |
H A D | zpool_main.c | 1851 uint64_t hostid; local 1854 &hostid) == 0) { 1855 if ((unsigned long)hostid != gethostid()) { 1868 "(hostid: 0x%lx) on %s"), name, hostname, 1869 (unsigned long)hostid,
|
/illumos-gate/usr/src/cmd/zoneadmd/ |
H A D | vplat.c | 4559 * Sets the hostid of the new zone based on its configured value. The zone's 4572 unsigned int hostid; local 4579 report_prop_err(zlogp, "hostid", hostidp, res); 4583 hostid = (unsigned int)strtoul(hostidp, NULL, 16); 4584 if ((res = zone_setattr(zoneid, ZONE_ATTR_HOSTID, &hostid, 4585 sizeof (hostid))) != 0) { 4587 "zone hostid is not valid: %s: %d", hostidp, res);
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | sunddi.c | 7823 uint32_t hostid; local 7837 hostid = zone_get_hostid(NULL); 7838 *cp++ = hibyte(hiword(hostid)); 7839 *cp++ = lobyte(hiword(hostid)); 7840 *cp++ = hibyte(loword(hostid)); 7841 *cp++ = lobyte(loword(hostid));
|
/illumos-gate/usr/src/uts/common/inet/ip/ |
H A D | ip_if.c | 17401 ulong_t hostid; local 17407 (void) ddi_strtoul(hw_serial, NULL, 10, &hostid); 17408 ic.ic_hostid = htonl((uint32_t)hostid);
|