Home
last modified time | relevance | path

Searched refs:zonestr (Results 1 – 4 of 4) sorted by relevance

/titanic_41/usr/src/lib/libsocket/inet/
H A Dgetnameinfo.c52 static size_t getzonestr(const struct sockaddr_in6 *sa, char *zonestr,
280 char zonestr[LIFNAMSIZ]; in addzoneid() local
285 if (((zonelen = getzonestr(sa, zonestr, sizeof (zonestr))) == 0) || in addzoneid()
292 (void) strlcpy((host + addrlen + 1), zonestr, (zonelen + 1)); in addzoneid()
313 getzonestr(const struct sockaddr_in6 *sa, char *zonestr, size_t zonelen) in getzonestr() argument
319 if (zonestr == NULL) { in getzonestr()
331 if ((retstr = if_indextoname(ifindex, zonestr)) != NULL) { in getzonestr()
341 if ((n = snprintf(zonestr, zonelen, "%u", in getzonestr()
H A Dgetaddrinfo.c575 char *zonestr = NULL; in get_addr() local
582 if ((zonestr = strchr(hostname, '%')) != NULL) { in get_addr()
584 if (((zonestr - hostname) + 1) > sizeof (_hostname)) { in get_addr()
589 (void) strlcpy(_hostname, hostname, (zonestr - hostname) + 1); in get_addr()
590 ++zonestr; /* make zonestr point at start of <zone-id> */ in get_addr()
592 if ((*zonestr == '\0') || (strlen(zonestr) > LIFNAMSIZ)) { in get_addr()
687 if (zonestr != NULL) { in get_addr()
693 getscopeidfromzone(ai2sin6(nai), zonestr, in get_addr()
/titanic_41/usr/src/lib/libc/port/locale/
H A Dstrptime.c455 char *zonestr; in __strptime() local
460 zonestr = alloca(cp - buf + 1); in __strptime()
461 (void) strncpy(zonestr, buf, cp - buf); in __strptime()
462 zonestr[cp - buf] = '\0'; in __strptime()
464 if (strcmp(zonestr, "GMT") == 0) { in __strptime()
466 } else if (0 == strcmp(zonestr, tzname[0])) { in __strptime()
468 } else if (0 == strcmp(zonestr, tzname[1])) { in __strptime()
/titanic_41/usr/src/lib/libzfs/common/
H A Dlibzfs_pool.c1092 char *zonestr; in zpool_create() local
1095 zfs_prop_to_name(ZFS_PROP_ZONED), &zonestr) == 0) && in zpool_create()
1096 strcmp(zonestr, "on") == 0); in zpool_create()