/illumos-gate/usr/src/lib/libdemangle/common/ |
H A D | str.c | 55 return (s->str_len); in str_length() 70 s->str_len = (len == 0 && cstr != NULL) ? strlen(cstr) : len; in str_set() 79 if (src->str_len == 0) in str_copy() 82 size_t len = roundup(src->str_len, STR_CHUNK_SZ); in str_copy() 87 (void) memcpy(dest->str_s, src->str_s, src->str_len); in str_copy() 88 dest->str_len = src->str_len; in str_copy() 100 size_t newlen = s->str_len + amt; in str_reserve() 103 if (newlen < s->str_len || newlen < amt) in str_reserve() 106 if ((amt > 0) && (s->str_len + amt <= s->str_size)) in str_reserve() 117 (void) memcpy(temp, s->str_s, s->str_len); in str_reserve() [all …]
|
H A D | str.h | 32 size_t str_len; member
|
/illumos-gate/usr/src/lib/libnsl/rpc/ |
H A D | svc_auth_loopb.c | 62 uint_t str_len, gid_len; in __svcauth_loopback() local 78 str_len = IXDR_GET_U_INT32(buf); in __svcauth_loopback() 79 if (str_len > MAX_MACHINE_NAME) in __svcauth_loopback() 81 if (str_len > auth_len) in __svcauth_loopback() 83 (void) memcpy(aup->aup_machname, buf, str_len); in __svcauth_loopback() 84 aup->aup_machname[str_len] = 0; in __svcauth_loopback() 85 str_len = RNDUP(str_len); in __svcauth_loopback() 86 buf += str_len / sizeof (int); in __svcauth_loopback() 96 if ((5 + gid_len) * BYTES_PER_XDR_UNIT + str_len > auth_len) in __svcauth_loopback()
|
H A D | svc_auth_sys.c | 76 uint_t str_len, gid_len; in __svcauth_sys() local 92 str_len = IXDR_GET_U_INT32(buf); in __svcauth_sys() 93 if (str_len > MAX_MACHINE_NAME) in __svcauth_sys() 95 (void) memcpy(aup->aup_machname, buf, str_len); in __svcauth_sys() 96 aup->aup_machname[str_len] = 0; in __svcauth_sys() 97 str_len = RNDUP(str_len); in __svcauth_sys() 98 buf += str_len / (int)sizeof (int32_t); in __svcauth_sys() 112 if ((5 + gid_len) * BYTES_PER_XDR_UNIT + str_len > auth_len) in __svcauth_sys()
|
/illumos-gate/usr/src/uts/common/rpc/sec/ |
H A D | svc_authu.c | 82 uint_t str_len, gid_len; in _svcauth_unix() local 99 str_len = IXDR_GET_U_INT32(buf); in _svcauth_unix() 100 if (str_len > MAX_MACHINE_NAME) in _svcauth_unix() 102 bcopy((caddr_t)buf, aup->aup_machname, str_len); in _svcauth_unix() 103 aup->aup_machname[str_len] = 0; in _svcauth_unix() 104 str_len = RNDUP(str_len); in _svcauth_unix() 105 buf += str_len / sizeof (int32_t); in _svcauth_unix() 119 if ((5 + gid_len) * BYTES_PER_XDR_UNIT + str_len > auth_len) in _svcauth_unix()
|
/illumos-gate/usr/src/lib/nsswitch/ldap/common/ |
H A D | getpwnam.c | 73 unsigned long str_len = 0L; in _nss_ldap_passwd2str() local 116 str_len = strlen(uid_v[0]) + strlen(uidn_v[0]) + strlen(gidn_v[0]); in _nss_ldap_passwd2str() 117 if (str_len > buflen) { in _nss_ldap_passwd2str() 126 str_len += strlen(gecos_v[0]); in _nss_ldap_passwd2str() 132 str_len += strlen(homedir_v[0]); in _nss_ldap_passwd2str() 138 str_len += strlen(shell_v[0]); in _nss_ldap_passwd2str() 140 if (str_len > buflen) { in _nss_ldap_passwd2str() 146 be->buflen = str_len + 8; in _nss_ldap_passwd2str() 158 (void) snprintf(argp->buf.buffer, (str_len + 8), in _nss_ldap_passwd2str()
|
/illumos-gate/usr/src/cmd/msgfmt/ |
H A D | gnu_msgs.c | 63 size_t id_len, str_len, id_off, str_off, ids_top, strs_top; in output_all_gnu_mo_files() local 122 str_len = 0; in output_all_gnu_mo_files() 125 str_len += m[i].str_len; in output_all_gnu_mo_files() 128 strs = (char *)Xmalloc(str_len); in output_all_gnu_mo_files() 149 str_tbl[i].len = m[i].str_len - 1; in output_all_gnu_mo_files() 153 (void) memcpy(strs + str_off, m[i].str, m[i].str_len); in output_all_gnu_mo_files() 155 str_off += m[i].str_len; in output_all_gnu_mo_files() 181 (void) fwrite(strs, str_len, 1, out); in output_all_gnu_mo_files()
|
H A D | gnu_msgs_rev.c | 73 size_t id_len, str_len, id_off, str_off, ids_top, strs_top; in output_all_gnu_mo_files() local 127 str_len = 0; in output_all_gnu_mo_files() 130 str_len += m[i].str_len; in output_all_gnu_mo_files() 133 strs = (char *)Xmalloc(str_len); in output_all_gnu_mo_files() 154 str_tbl[i].len = doswap(m[i].str_len - 1); in output_all_gnu_mo_files() 158 (void) memcpy(strs + str_off, m[i].str, m[i].str_len); in output_all_gnu_mo_files() 160 str_off += m[i].str_len; in output_all_gnu_mo_files() 186 (void) fwrite(strs, str_len, 1, out); in output_all_gnu_mo_files()
|
H A D | gnu_check.c | 290 size_t str_len, str_num; in check_format() local 315 str_len = str->len; in check_format() 330 str_e_newline = (msgstr[str_len - 1 - 1] == '\n'); in check_format() 424 nsz = str_len * 2; in check_format()
|
H A D | gnu_msgfmt.h | 85 size_t str_len; /* length of str */ member
|
/illumos-gate/usr/src/lib/libtsol/common/ |
H A D | btos.c | 57 return_string(char **string, int str_len, char *val) in return_string() argument 65 } else if (val_len > str_len) { in return_string() 143 bsltos(const bslabel_t *label, char **string, size_t str_len, in bsltos() argument 172 rval = return_string(string, str_len, slret.slabel); in bsltos() 189 return (return_string(string, str_len, ADMIN_LOW)); in bsltos() 191 return (return_string(string, str_len, ADMIN_HIGH)); in bsltos() 238 bcleartos(const bclear_t *clearance, char **string, size_t str_len, in bcleartos() argument 266 rval = return_string(string, str_len, clrret.cslabel); in bcleartos() 283 return (return_string(string, str_len, ADMIN_LOW)); in bcleartos() 285 return (return_string(string, str_len, ADMIN_HIGH)); in bcleartos()
|
/illumos-gate/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_strio.c | 43 size_t str_len; /* Length of string */ member 50 size_t left = sd->str_base + sd->str_len - sd->str_ptr; in strio_read() 79 nptr = sd->str_base + sd->str_len + offset; in strio_seek() 85 if (nptr < sd->str_base || nptr > sd->str_ptr + sd->str_len) in strio_seek() 135 sd->str_len = strlen(s) + 1; in mdb_strio_create() 136 sd->str_base = strndup(s, sd->str_len); in mdb_strio_create()
|
/illumos-gate/usr/src/uts/common/io/nxge/npi/ |
H A D | npi_espc.c | 159 uint16_t str_len; in npi_espc_model_str_get() local 164 str_len = (uint8_t)val; in npi_espc_model_str_get() 166 if (str_len > MAX_MOD_STR_LEN) { in npi_espc_model_str_get() 170 str_len, MAX_MOD_STR_LEN)); in npi_espc_model_str_get() 178 for (i = 0, j = 0; i < str_len; j++) { in npi_espc_model_str_get() 186 data[str_len] = '\0'; in npi_espc_model_str_get() 195 uint16_t str_len; in npi_espc_bd_model_str_get() local 200 str_len = (uint8_t)val; in npi_espc_bd_model_str_get() 202 if (str_len > MAX_BD_MOD_STR_LEN) { in npi_espc_bd_model_str_get() 207 str_len, MAX_BD_MOD_STR_LEN)); in npi_espc_bd_model_str_get() [all …]
|
/illumos-gate/usr/src/cmd/latencytop/ |
H A D | klog.c | 188 int str_len; in lt_klog_log() local 213 str_len = strlen(stack) + 20; in lt_klog_log() 214 str = lt_malloc(str_len); in lt_klog_log() 215 (void) snprintf(str, str_len, "%ld, \"%s\"", pid, stack); in lt_klog_log()
|
/illumos-gate/usr/src/cmd/acpi/acpidump/ |
H A D | osunixdir.c | 248 int str_len; in AcpiOsGetNextFilename() local 262 str_len = strlen (dir_entry->d_name) + in AcpiOsGetNextFilename() 265 temp_str = calloc (str_len, 1); in AcpiOsGetNextFilename()
|
/illumos-gate/usr/src/cmd/fruadm/ |
H A D | fruadm.c | 356 int str_len; in convertBinaryToDecimal() local 360 str_len = strlen(ptr); in convertBinaryToDecimal() 363 while (str_len >= 1) { in convertBinaryToDecimal() 364 str_len -= 1; in convertBinaryToDecimal() 365 if (data[str_len] == '0') { in convertBinaryToDecimal() 368 if (data[str_len] == '1') { in convertBinaryToDecimal()
|
/illumos-gate/usr/src/uts/sun4v/io/ |
H A D | dr_mem.c | 630 size_t str_len; in dr_mem_res_array_fini() local 635 str_len = strlen(res[idx].string) + 1; in dr_mem_res_array_fini() 636 kmem_free(res[idx].string, str_len); in dr_mem_res_array_fini() 658 size_t str_len; in dr_mem_pack_response() local 706 str_len = strlen(res[idx].string) + 1; in dr_mem_pack_response() 707 bcopy(res[idx].string, curr_str, str_len); in dr_mem_pack_response() 710 curr_off += str_len; in dr_mem_pack_response() 711 curr_str += str_len; in dr_mem_pack_response()
|
H A D | dr_cpu.c | 604 size_t str_len; in dr_cpu_res_array_fini() local 609 str_len = strlen(res[idx].string) + 1; in dr_cpu_res_array_fini() 611 __func__, (void *)(res[idx].string), str_len); in dr_cpu_res_array_fini() 612 kmem_free(res[idx].string, str_len); in dr_cpu_res_array_fini() 636 size_t str_len; in dr_cpu_pack_response() local 688 str_len = strlen(res[idx].string) + 1; in dr_cpu_pack_response() 689 bcopy(res[idx].string, curr_str, str_len); in dr_cpu_pack_response() 692 curr_off += str_len; in dr_cpu_pack_response() 693 curr_str += str_len; in dr_cpu_pack_response()
|
/illumos-gate/usr/src/uts/common/io/scsi/adapters/pmcs/ |
H A D | pmcs_nvram.c | 458 int idx, str_len; in pmcs_validate_vpd() local 574 str_len = snprintf(tbuf, 80, "VPD: %c%c = <", in pmcs_validate_vpd() 579 tbuf[str_len + idx] = vkvp->value[idx]; in pmcs_validate_vpd() 583 str_len += kv_len; in pmcs_validate_vpd() 584 tbuf[str_len] = '>'; in pmcs_validate_vpd() 585 tbuf[str_len + 1] = 0; in pmcs_validate_vpd()
|
/illumos-gate/usr/src/lib/pkcs11/pkcs11_tpm/common/ |
H A D | asn1.c | 448 CK_ULONG * str_len, in ber_encode_OCTET_STRING() argument 473 *str_len = len; in ber_encode_OCTET_STRING() 487 *str_len = len; in ber_encode_OCTET_STRING() 499 *str_len = len; in ber_encode_OCTET_STRING() 512 *str_len = len; in ber_encode_OCTET_STRING() 526 *str_len = len; in ber_encode_OCTET_STRING()
|
/illumos-gate/usr/src/lib/libdtrace/common/ |
H A D | dt_strtab.h | 40 size_t str_len; /* length in bytes of this string */ member
|
/illumos-gate/usr/src/lib/cfgadm_plugins/usb/common/ |
H A D | cfga_usb.c | 1623 size_t str_len; in cfga_list_ext() local 1640 str_len = strlen((*ap_id_list)->ap_type); in cfga_list_ext() 1650 (void) strlcpy((*ap_id_list)->ap_type + str_len, str_p, in cfga_list_ext() 1651 sizeof ((*ap_id_list)->ap_type) - str_len); in cfga_list_ext() 1653 (void) strlcpy((*ap_id_list)->ap_type + str_len, "kbd", in cfga_list_ext() 1654 sizeof ((*ap_id_list)->ap_type) - str_len); in cfga_list_ext()
|
/illumos-gate/usr/src/lib/udapl/libdat/common/ |
H A D | udat_sr_parser.c | 1285 DAT_OS_SIZE str_len; in dat_sr_read_quoted_str() local 1292 str_len = token_len - 2; /* minus 2 " characters */ in dat_sr_read_quoted_str() 1298 token->value_len = sizeof (char) * (str_len - num_escape_seq + 1); in dat_sr_read_quoted_str() 1311 for (i = 0, j = 0; i < str_len; i++) { in dat_sr_read_quoted_str()
|
/illumos-gate/usr/src/tools/smatch/src/ |
H A D | symbol.c | 309 int str_len = 0; in count_array_initializer() local 326 str_len = entry->string->length; in count_array_initializer() 336 if (count == 1 && str_len) in count_array_initializer() 337 nr = str_len; in count_array_initializer()
|
/illumos-gate/usr/src/uts/common/io/ib/ibnex/ |
H A D | ibnex_ioctl.c | 1815 int str_len; in ibnex_get_dip_from_apid() local 1821 str_len = strlen(dyn) - strlen(pkey_str); in ibnex_get_dip_from_apid() 1822 dyn[str_len] = '\0'; in ibnex_get_dip_from_apid() 1830 str_len = strlen(pkey_str) - strlen(svc_str); in ibnex_get_dip_from_apid() 1831 pkey_str[str_len] = '\0'; in ibnex_get_dip_from_apid() 2069 int ret, str_len; in ibnex_handle_commsvcnode_configure() local 2098 str_len = strlen(guid_str) - strlen(pkey_str); in ibnex_handle_commsvcnode_configure() 2099 guid_str[str_len] = '\0'; in ibnex_handle_commsvcnode_configure() 2112 str_len = strlen(pkey_str) - strlen(svc_str); in ibnex_handle_commsvcnode_configure() 2113 pkey_str[str_len] = '\0'; in ibnex_handle_commsvcnode_configure()
|