Home
last modified time | relevance | path

Searched refs:str_len (Results 1 – 25 of 31) sorted by relevance

12

/titanic_50/usr/src/lib/libtnfprobe/
H A Ddebug_funcs.c68 int num_args, i, str_len, name_len; in tnf_probe_debug() local
81 str_len = sprintf(buf_p, "probe %.*s; ", attr_len, attr_start); in tnf_probe_debug()
82 buf_p += str_len; in tnf_probe_debug()
89 str_len = sprintf(buf_p, "sunw%%debug \"%.*s\"; ", in tnf_probe_debug()
91 buf_p += str_len; in tnf_probe_debug()
117 str_len = sprintf(buf_p, "%.*s=", name_len, name_start); in tnf_probe_debug()
118 buf_p += str_len; in tnf_probe_debug()
126 str_len = sprintf(buf_p, "<unknown>; "); in tnf_probe_debug()
127 buf_p += str_len; in tnf_probe_debug()
130 str_len = sprintf(buf_p, "%ld; ", in tnf_probe_debug()
[all …]
/titanic_50/usr/src/lib/libnsl/rpc/
H A Dsvc_auth_loopb.c62 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 Dsvc_auth_sys.c76 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()
/titanic_50/usr/src/uts/common/rpc/sec/
H A Dsvc_authu.c82 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()
/titanic_50/usr/src/lib/nsswitch/ldap/common/
H A Dgetpwnam.c73 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()
/titanic_50/usr/src/cmd/msgfmt/
H A Dgnu_msgs.c65 size_t id_len, str_len, id_off, str_off, ids_top, strs_top; in output_all_gnu_mo_files() local
124 str_len = 0; in output_all_gnu_mo_files()
127 str_len += m[i].str_len; in output_all_gnu_mo_files()
130 strs = (char *)Xmalloc(str_len); in output_all_gnu_mo_files()
151 str_tbl[i].len = m[i].str_len - 1; in output_all_gnu_mo_files()
155 (void) memcpy(strs + str_off, m[i].str, m[i].str_len); in output_all_gnu_mo_files()
157 str_off += m[i].str_len; in output_all_gnu_mo_files()
183 (void) fwrite(strs, str_len, 1, out); in output_all_gnu_mo_files()
H A Dgnu_msgs_rev.c75 size_t id_len, str_len, id_off, str_off, ids_top, strs_top; in output_all_gnu_mo_files() local
129 str_len = 0; in output_all_gnu_mo_files()
132 str_len += m[i].str_len; in output_all_gnu_mo_files()
135 strs = (char *)Xmalloc(str_len); in output_all_gnu_mo_files()
156 str_tbl[i].len = doswap(m[i].str_len - 1); in output_all_gnu_mo_files()
160 (void) memcpy(strs + str_off, m[i].str, m[i].str_len); in output_all_gnu_mo_files()
162 str_off += m[i].str_len; in output_all_gnu_mo_files()
188 (void) fwrite(strs, str_len, 1, out); in output_all_gnu_mo_files()
H A Dgnu_check.c292 size_t str_len, str_num; in check_format() local
317 str_len = str->len; in check_format()
332 str_e_newline = (msgstr[str_len - 1 - 1] == '\n'); in check_format()
426 nsz = str_len * 2; in check_format()
H A Dgnu_msgfmt.h87 size_t str_len; /* length of str */ member
/titanic_50/usr/src/cmd/mdb/common/mdb/
H A Dmdb_strio.c45 size_t str_len; /* Length of string */ member
52 size_t left = sd->str_base + sd->str_len - sd->str_ptr; in strio_read()
81 nptr = sd->str_base + sd->str_len + offset; in strio_seek()
87 if (nptr < sd->str_base || nptr > sd->str_ptr + sd->str_len) in strio_seek()
137 sd->str_len = strlen(s) + 1; in mdb_strio_create()
138 sd->str_base = strndup(s, sd->str_len); in mdb_strio_create()
/titanic_50/usr/src/lib/libtsol/common/
H A Dbtos.c59 return_string(char **string, int str_len, char *val) in return_string() argument
67 } else if (val_len > str_len) { in return_string()
145 bsltos(const bslabel_t *label, char **string, size_t str_len, in bsltos() argument
174 rval = return_string(string, str_len, slret.slabel); in bsltos()
191 return (return_string(string, str_len, ADMIN_LOW)); in bsltos()
193 return (return_string(string, str_len, ADMIN_HIGH)); in bsltos()
240 bcleartos(const bclear_t *clearance, char **string, size_t str_len, in bcleartos() argument
268 rval = return_string(string, str_len, clrret.cslabel); in bcleartos()
285 return (return_string(string, str_len, ADMIN_LOW)); in bcleartos()
287 return (return_string(string, str_len, ADMIN_HIGH)); in bcleartos()
/titanic_50/usr/src/uts/common/io/nxge/npi/
H A Dnpi_espc.c161 uint16_t str_len; in npi_espc_model_str_get() local
166 str_len = (uint8_t)val; in npi_espc_model_str_get()
168 if (str_len > MAX_MOD_STR_LEN) { in npi_espc_model_str_get()
172 str_len, MAX_MOD_STR_LEN)); in npi_espc_model_str_get()
180 for (i = 0, j = 0; i < str_len; j++) { in npi_espc_model_str_get()
188 data[str_len] = '\0'; in npi_espc_model_str_get()
197 uint16_t str_len; in npi_espc_bd_model_str_get() local
202 str_len = (uint8_t)val; in npi_espc_bd_model_str_get()
204 if (str_len > MAX_BD_MOD_STR_LEN) { in npi_espc_bd_model_str_get()
209 str_len, MAX_BD_MOD_STR_LEN)); in npi_espc_bd_model_str_get()
[all …]
/titanic_50/usr/src/cmd/tnf/prex/
H A Dlist.c231 int str_len; in list_getattrs() local
244 str_len = sprintf(buf_p, "enable %s; trace %s; ", in list_getattrs()
247 buf_p += str_len; in list_getattrs()
249 str_len = strlen(p_state.obj_name); in list_getattrs()
250 if (buf_p + str_len < buf_end) { in list_getattrs()
251 str_len = sprintf(buf_p, "object %s; ", in list_getattrs()
253 buf_p += str_len; in list_getattrs()
256 str_len = sprintf(buf_p, "funcs"); in list_getattrs()
257 buf_p += str_len; in list_getattrs()
/titanic_50/usr/src/cmd/latencytop/common/
H A Dklog.c188 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()
/titanic_50/usr/src/cmd/acpi/acpidump/
H A Dosunixdir.c139 int str_len; in AcpiOsGetNextFilename() local
153 str_len = strlen (dir_entry->d_name) + in AcpiOsGetNextFilename()
156 temp_str = calloc (str_len, 1); in AcpiOsGetNextFilename()
/titanic_50/usr/src/cmd/fruadm/
H A Dfruadm.c354 int str_len; in convertBinaryToDecimal() local
358 str_len = strlen(ptr); in convertBinaryToDecimal()
361 while (str_len >= 1) { in convertBinaryToDecimal()
362 str_len -= 1; in convertBinaryToDecimal()
363 if (data[str_len] == '0') { in convertBinaryToDecimal()
366 if (data[str_len] == '1') { in convertBinaryToDecimal()
/titanic_50/usr/src/uts/sun4v/io/
H A Ddr_mem.c630 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 Ddr_cpu.c600 size_t str_len; in dr_cpu_res_array_fini() local
605 str_len = strlen(res[idx].string) + 1; in dr_cpu_res_array_fini()
607 __func__, (void *)(res[idx].string), str_len); in dr_cpu_res_array_fini()
608 kmem_free(res[idx].string, str_len); in dr_cpu_res_array_fini()
632 size_t str_len; in dr_cpu_pack_response() local
684 str_len = strlen(res[idx].string) + 1; in dr_cpu_pack_response()
685 bcopy(res[idx].string, curr_str, str_len); in dr_cpu_pack_response()
688 curr_off += str_len; in dr_cpu_pack_response()
689 curr_str += str_len; in dr_cpu_pack_response()
/titanic_50/usr/src/uts/common/io/scsi/adapters/pmcs/
H A Dpmcs_nvram.c458 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()
/titanic_50/usr/src/tools/ctf/cvt/
H A Dstrtab.h42 size_t str_len; /* length in bytes of this string */ member
H A Dstrtab.c184 hp->str_len = len; in strtab_insert()
244 for (len = hp->str_len; len != 0; len -= n) { in strtab_print()
/titanic_50/usr/src/lib/libdtrace/common/
H A Ddt_strtab.h42 size_t str_len; /* length in bytes of this string */ member
/titanic_50/usr/src/lib/pkcs11/pkcs11_tpm/common/
H A Dasn1.c448 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()
/titanic_50/usr/src/lib/cfgadm_plugins/usb/common/
H A Dcfga_usb.c1601 size_t str_len; in cfga_list_ext() local
1618 str_len = strlen((*ap_id_list)->ap_type); in cfga_list_ext()
1628 (void) strlcpy((*ap_id_list)->ap_type + str_len, str_p, in cfga_list_ext()
1629 sizeof ((*ap_id_list)->ap_type) - str_len); in cfga_list_ext()
1631 (void) strlcpy((*ap_id_list)->ap_type + str_len, "kbd", in cfga_list_ext()
1632 sizeof ((*ap_id_list)->ap_type) - str_len); in cfga_list_ext()
/titanic_50/usr/src/lib/udapl/libdat/common/
H A Dudat_sr_parser.c1288 DAT_OS_SIZE str_len; in dat_sr_read_quoted_str() local
1295 str_len = token_len - 2; /* minus 2 " characters */ in dat_sr_read_quoted_str()
1301 token->value_len = sizeof (char) * (str_len - num_escape_seq + 1); in dat_sr_read_quoted_str()
1314 for (i = 0, j = 0; i < str_len; i++) { in dat_sr_read_quoted_str()

12