Home
last modified time | relevance | path

Searched refs:strlen (Results 1 – 25 of 3553) sorted by relevance

12345678910>>...143

/illumos-gate/usr/src/lib/krb5/plugins/kdb/ldap/libkdb_ldap/
H A Dldap_service_rights.c349 seccontacls[0] = (char *)malloc(strlen(security_container[i][0]) +
350 strlen(serviceobjdn) +
351 strlen(security_container[i][1]) + 1);
382 krbcontacls[0] = (char *)malloc(strlen(kerberos_container[i][0]) + strlen(serviceobjdn)
383 + strlen(kerberos_container[i][1]) + 1);
411 realmdn = (char *)malloc(strlen("cn=") + strlen(realmname) +
412 strlen(ldap_context->krbcontainer->DN) + 2);
424 realmacls[0] = (char *)malloc(strlen(kdcrights_realmcontainer[i][0])
425 + strlen(serviceobjdn) +
426 strlen(kdcrights_realmcontainer[i][1]) + 1);
[all …]
/illumos-gate/usr/src/common/crypto/ecc/
H A Decl_curve.c69 ret->text = kmem_alloc(strlen(params->text) + 1, kmflag); in ECCurveParams_dup()
70 bcopy(params->text, ret->text, strlen(params->text) + 1); in ECCurveParams_dup()
79 ret->irr = kmem_alloc(strlen(params->irr) + 1, kmflag); in ECCurveParams_dup()
80 bcopy(params->irr, ret->irr, strlen(params->irr) + 1); in ECCurveParams_dup()
87 ret->curvea = kmem_alloc(strlen(params->curvea) + 1, kmflag); in ECCurveParams_dup()
88 bcopy(params->curvea, ret->curvea, strlen(params->curvea) + 1); in ECCurveParams_dup()
95 ret->curveb = kmem_alloc(strlen(params->curveb) + 1, kmflag); in ECCurveParams_dup()
96 bcopy(params->curveb, ret->curveb, strlen(params->curveb) + 1); in ECCurveParams_dup()
103 ret->genx = kmem_alloc(strlen(params->genx) + 1, kmflag); in ECCurveParams_dup()
104 bcopy(params->genx, ret->genx, strlen(params->genx) + 1); in ECCurveParams_dup()
[all …]
/illumos-gate/usr/src/lib/libc/port/threads/
H A Dassfail.c98 len1 = strlen(msg); in common_panic()
99 len2 = strlen(why); in common_panic()
103 len1 = strlen(msg); in common_panic()
198 ultos((uint64_t)(uintptr_t)cv, 16, buf + strlen(buf)); in lock_error()
201 ultos((uint64_t)(uintptr_t)mp, 16, buf + strlen(buf)); in lock_error()
210 ultos((uint64_t)mcopy.mutex_rcount, 10, buf + strlen(buf)); in lock_error()
215 ultos((uint64_t)(uintptr_t)self, 16, buf + strlen(buf)); in lock_error()
217 ultos((uint64_t)lwpid, 10, buf + strlen(buf)); in lock_error()
224 ultos((uint64_t)mcopy.mutex_owner, 16, buf + strlen(buf)); in lock_error()
227 ultos((uint64_t)pid, 10, buf + strlen(buf)); in lock_error()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_solarnet.c103 line += strlen(line); in interpret_solarnet_fw()
109 line += strlen(line); in interpret_solarnet_fw()
112 line += strlen(line); in interpret_solarnet_fw()
114 if (strlen(buff) != 0) { in interpret_solarnet_fw()
116 line += strlen(line); in interpret_solarnet_fw()
124 line += strlen(line); in interpret_solarnet_fw()
130 op[strlen(op)-1] = '\0'; in interpret_solarnet_fw()
132 line += strlen(line); in interpret_solarnet_fw()
138 line += strlen(line); in interpret_solarnet_fw()
143 op[strlen(op)-1] = '\0'; in interpret_solarnet_fw()
[all …]
/illumos-gate/usr/src/cmd/ldap/ns_ldap/
H A Dmapping.c175 totlen += strlen(k) + 2; in set_keys()
178 totlen += strlen(attrtype) + strlen(k) + 3; in set_keys()
181 len = keyfilter ? strlen(keyfilter) : 0; in set_keys()
238 totlen += strlen(k) + 2; in set_keys_publickey()
245 totlen += strlen(k) + strlen(attrtype) + 3; in set_keys_publickey()
252 len = pre_filter ? strlen(pre_filter) : 0; in set_keys_publickey()
273 len = strlen(pre_filter) + 4; in set_keys_publickey()
311 filterlen = strlen(maplist[PUBLICKEY].objectclass) + 13; in set_filter_publickey()
325 filterlen = strlen(maplist[PUBLICKEY].objectclass) + in set_filter_publickey()
326 strlen(keyfilter) + 18; in set_filter_publickey()
[all …]
/illumos-gate/usr/src/uts/common/io/bnxe/
H A Dbnxe_hw.c218 snprintf(buf + strlen(buf), (sizeof(buf) - strlen(buf)), in BnxeHwReqPhyMediumSettings()
229 snprintf(buf + strlen(buf), (sizeof(buf) - strlen(buf)), in BnxeHwReqPhyMediumSettings()
240 snprintf(buf + strlen(buf), (sizeof(buf) - strlen(buf)), in BnxeHwReqPhyMediumSettings()
251 snprintf(buf + strlen(buf), (sizeof(buf) - strlen(buf)), in BnxeHwReqPhyMediumSettings()
262 snprintf(buf + strlen(buf), (sizeof(buf) - strlen(buf)), in BnxeHwReqPhyMediumSettings()
273 snprintf(buf + strlen(buf), (sizeof(buf) - strlen(buf)), in BnxeHwReqPhyMediumSettings()
284 snprintf(buf + strlen(buf), (sizeof(buf) - strlen(buf)), in BnxeHwReqPhyMediumSettings()
296 snprintf(buf + strlen(buf), (sizeof(buf) - strlen(buf)), in BnxeHwReqPhyMediumSettings()
309 snprintf(buf + strlen(buf), (sizeof(buf) - strlen(buf)), in BnxeHwReqPhyMediumSettings()
313 snprintf(buf + strlen(buf), (sizeof(buf) - strlen(buf)), in BnxeHwReqPhyMediumSettings()
[all …]
/illumos-gate/usr/src/cmd/listen/
H A Dlsdbf.c237 i = strlen(svc_code_p);
256 if (!NLPS_proc && (strlen(private_p) == 0) && !(sflags & DFLAG))
264 i = strlen(private_p);
282 cmd_p += strlen(svc_code_p) + 1; /* +1 for null */
285 cmd_p += strlen(cmd_line_p) + 1;
288 cmd_p += strlen(id_p) + 1;
291 cmd_p += strlen(res1_p) + 1;
294 cmd_p += strlen(res2_p) + 1;
297 cmd_p += strlen(res3_p) + 1;
298 if (strlen(private_p) != 0) {
[all …]
/illumos-gate/usr/src/cmd/sendmail/libsm/
H A Dstrl.c66 return strlen(src);
73 return i + strlen(src + i);
111 o = strlen(dst);
113 return o + strlen(src);
121 return j + strlen(src + i);
157 o = strlen(dst);
161 return o + strlen(src1) + strlen(src2);
174 return j + strlen(src1 + i) + strlen(src2);
186 return j + strlen(src2 + i);
231 i += strlen(SM_VA_ARG(ap, char *));
[all …]
/illumos-gate/usr/src/lib/libsip/common/
H A Dsip_add_hdrs.c104 size = strlen(str) + 2 * sizeof (char); in sip_add_aquot_to_str()
110 (void) strncat(new_str, str, strlen(str)); in sip_add_aquot_to_str()
140 header_size = strlen(hdr_name) + SIP_SPACE_LEN + csize; in sip_add_empty_hdr()
184 header_size = strlen(hdr_name) + SIP_SPACE_LEN + csize + in sip_add_2strs_to_msg()
185 SIP_SPACE_LEN + strlen(str1) + csize + strlen(str2) + in sip_add_2strs_to_msg()
186 strlen(SIP_CRLF); in sip_add_2strs_to_msg()
188 header_size = strlen(hdr_name) + SIP_SPACE_LEN + csize + in sip_add_2strs_to_msg()
189 SIP_SPACE_LEN + strlen(str1) + csize + strlen(str2) + in sip_add_2strs_to_msg()
190 csize + strlen(plist) + strlen(SIP_CRLF); in sip_add_2strs_to_msg()
254 header_size = strlen(hdr_name) + SIP_SPACE_LEN + csize + in sip_add_str_to_msg()
[all …]
H A Dsip_uri_ui.c430 strlen("Error : No URI")); in sip_uri_errflags_to_str()
431 err_info[strlen("Error : No URI")] = '\0'; in sip_uri_errflags_to_str()
435 (void) strncpy(err_info, "Error(s) in", strlen("Error(s) in")); in sip_uri_errflags_to_str()
436 err_info[strlen("Error(s) in")] = '\0'; in sip_uri_errflags_to_str()
438 (void) strncat(err_info, " SCHEME,", strlen(" SCHEME,")); in sip_uri_errflags_to_str()
440 (void) strncat(err_info, " USER,", strlen(" USER,")); in sip_uri_errflags_to_str()
442 (void) strncat(err_info, " PASSWORD,", strlen(" PASSWORD,")); in sip_uri_errflags_to_str()
444 (void) strncat(err_info, " HOST,", strlen(" HOST,")); in sip_uri_errflags_to_str()
446 (void) strncat(err_info, " PORT,", strlen(" PORT,")); in sip_uri_errflags_to_str()
449 strlen(" PARAMETERS,")); in sip_uri_errflags_to_str()
[all …]
/illumos-gate/usr/src/cmd/acpi/iasl/
H A Dcvcompiler.c196 CommentString = UtLocalCacheCalloc (strlen (MsgBuffer) + 1); in CvProcessComment()
211 FinalLineToken = UtLocalCacheCalloc (strlen (LineToken) + 1); in CvProcessComment()
216 if (FinalLineToken[strlen (FinalLineToken) - 1] == 0x0D) in CvProcessComment()
218 FinalLineToken[strlen(FinalLineToken)-1] = 0; in CvProcessComment()
231 for (i = 0; (i < (strlen (LineToken) + 1)) && !CharStart; i++) in CvProcessComment()
241 FinalLineToken = UtLocalCacheCalloc (strlen (LineToken) + 1); in CvProcessComment()
246 if (FinalLineToken[strlen (FinalLineToken) - 1] == 0x0D) in CvProcessComment()
248 FinalLineToken[strlen(FinalLineToken) - 1] = 0; in CvProcessComment()
271 UtLocalCacheCalloc (strlen (CommentString) + in CvProcessComment()
316 CommentString = UtLocalCacheCalloc (strlen (MsgBuffer) + 1); in CvProcessCommentType2()
[all …]
/illumos-gate/usr/src/cmd/backup/restore/
H A Dinteractive.c83 if (strncmp(cmd, "add", strlen(cmd)) != 0) in runcmdshell()
98 if (strncmp(cmd, "cd", strlen(cmd)) != 0) in runcmdshell()
119 if (strncmp(cmd, "delete", strlen(cmd)) != 0) in runcmdshell()
135 if (strncmp(cmd, "extract", strlen(cmd)) != 0) in runcmdshell()
149 if (strncmp(cmd, "help", strlen(cmd)) != 0) in runcmdshell()
177 if ((strncmp(cmd, "ls", strlen(cmd)) != 0) && in runcmdshell()
178 (strncmp(cmd, "marked", strlen(cmd)) != 0)) in runcmdshell()
191 if (strlen(cmd) < 2) in runcmdshell()
193 if (strncmp(cmd, "pwd", strlen(cmd)) == 0) { in runcmdshell()
199 } else if (strncmp(cmd, "paginate", strlen(cmd)) == 0) { in runcmdshell()
[all …]
/illumos-gate/usr/src/lib/cfgadm_plugins/sbd/common/
H A Dap_msg.c222 len = strlen(fmt); in ap_err()
238 len += strlen(cmd) + strlen(target); in ap_err()
247 len += strlen(cmd) + strlen(target); in ap_err()
252 len += strlen(target); in ap_err()
262 len += strlen(option); in ap_err()
267 len += strlen(value); in ap_err()
275 len += strlen(cmd) + strlen(target); in ap_err()
279 len += strlen(rstate) + strlen(ostate); in ap_err()
287 len += strlen(cmd) + strlen(target); in ap_err()
291 len += strlen(rinfostr); in ap_err()
[all …]
/illumos-gate/usr/src/lib/nsswitch/ldap/common/
H A Dgetauthattr.c82 (strlen(name[0]) < 1)) { in _nss_ldap_auth2str()
87 if (res1 == NULL || res1[0] == NULL || (strlen(res1[0]) < 1)) in _nss_ldap_auth2str()
93 if (res2 == NULL || res2[0] == NULL || (strlen(res2[0]) < 1)) in _nss_ldap_auth2str()
99 if (sdes == NULL || sdes[0] == NULL || (strlen(sdes[0]) < 1)) in _nss_ldap_auth2str()
105 if (ldes == NULL || ldes[0] == NULL || (strlen(ldes[0]) < 1)) in _nss_ldap_auth2str()
111 if (attr == NULL || attr[0] == NULL || (strlen(attr[0]) < 1)) in _nss_ldap_auth2str()
116 len = strlen(name[0]) + strlen(res1_str) + strlen(res2_str) + in _nss_ldap_auth2str()
117 strlen(sdes_str) + strlen(ldes_str) + strlen(attr_str) + 6; in _nss_ldap_auth2str()
136 be->buflen = strlen(be->buffer); in _nss_ldap_auth2str()
H A Dgetprofattr.c80 (strlen(name[0]) < 1)) { in _nss_ldap_prof2str()
85 if (res1 == NULL || res1[0] == NULL || (strlen(res1[0]) < 1)) in _nss_ldap_prof2str()
91 if (res2 == NULL || res2[0] == NULL || (strlen(res2[0]) < 1)) in _nss_ldap_prof2str()
97 if (des == NULL || des[0] == NULL || (strlen(des[0]) < 1)) in _nss_ldap_prof2str()
103 if (attr == NULL || attr[0] == NULL || (strlen(attr[0]) < 1)) in _nss_ldap_prof2str()
108 len = strlen(name[0]) + strlen(res1_str) + strlen(res2_str) + in _nss_ldap_prof2str()
109 strlen(des_str) + strlen(attr_str) + 6; in _nss_ldap_prof2str()
127 be->buflen = strlen(be->buffer); in _nss_ldap_prof2str()
H A Dgetuserattr.c80 (strlen(name[0]) < 1)) { in _nss_ldap_user2str()
86 if (qu == NULL || qu[0] == NULL || (strlen(qu[0]) < 1)) in _nss_ldap_user2str()
92 if (res1 == NULL || res1[0] == NULL || (strlen(res1[0]) < 1)) in _nss_ldap_user2str()
98 if (res2 == NULL || res2[0] == NULL || (strlen(res2[0]) < 1)) in _nss_ldap_user2str()
104 if (attr == NULL || attr[0] == NULL || (strlen(attr[0]) < 1)) in _nss_ldap_user2str()
109 len = strlen(name[0]) + strlen(res1_str) + strlen(res2_str) + in _nss_ldap_user2str()
110 strlen(qu_str) + strlen(attr_str) + 5; in _nss_ldap_user2str()
128 be->buflen = strlen(be->buffer); in _nss_ldap_user2str()
/illumos-gate/usr/src/lib/crypt_modules/bsdmd5/
H A Dbsdmd5.c81 const int crypt_alg_magic_len = strlen(crypt_alg_magic); in crypt_genhash_impl()
100 MD5Update(&ctx, (uchar_t *)plaintext, strlen(plaintext)); in crypt_genhash_impl()
103 MD5Update(&ctx, (uchar_t *)crypt_alg_magic, strlen(crypt_alg_magic)); in crypt_genhash_impl()
110 MD5Update(&ctx1, (uchar_t *)plaintext, strlen(plaintext)); in crypt_genhash_impl()
112 MD5Update(&ctx1, (uchar_t *)plaintext, strlen(plaintext)); in crypt_genhash_impl()
114 for (pl = strlen(plaintext); pl > 0; pl -= 16) in crypt_genhash_impl()
121 for (i = strlen(plaintext); i; i >>= 1) { in crypt_genhash_impl()
145 strlen(plaintext)); in crypt_genhash_impl()
154 strlen(plaintext)); in crypt_genhash_impl()
160 strlen(plaintext)); in crypt_genhash_impl()
[all …]
/illumos-gate/usr/src/cmd/allocate/
H A Dadd_allocatable.c189 if (strlen(devinfo->devexec) == 0) { in process_args()
204 if (strlen(devinfo->devlist) == 0) { in process_args()
219 if (strlen(devinfo->devname) == 0) { in process_args()
254 if (strlen(devinfo->devtype) == 0) { in process_args()
438 nlen = strlen(DAOPT_MINLABEL) + strlen(KV_ASSIGN) + in check_args()
439 strlen(defmin) + strlen(KV_TOKEN_DELIMIT) + in check_args()
440 strlen(DAOPT_MAXLABEL) + strlen(KV_ASSIGN) + in check_args()
441 strlen(defmax) + 1; /* +1 for terminator */ in check_args()
454 nlen = strlen(devinfo->devopts) + in check_args()
455 strlen(KV_TOKEN_DELIMIT) + in check_args()
[all …]
/illumos-gate/usr/src/cmd/svc/startd/
H A Denv.c67 glob_envp[0] = startd_alloc((unsigned)(strlen(DEF_PATH)+2)); in init_env()
80 size_t length = strlen(tokp); in init_env()
167 strncmp(*p, DEF_PATH, strlen(DEF_PATH)) != 0) { in find_dup()
222 sz = strlen(path) + 1; in set_smf_env()
229 sz = sizeof ("SMF_FMRI=") + strlen(inst->ri_i.i_fmri); in set_smf_env()
237 sz = sizeof ("SMF_METHOD=") + strlen(method); in set_smf_env()
244 sz = sizeof ("SMF_RESTARTER=") + strlen(SCF_SERVICE_STARTD); in set_smf_env()
250 sz = sizeof ("SMF_ZONENAME=") + strlen(zonename); in set_smf_env()
258 sz = strlen(*p) + 1; in set_smf_env()
273 startd_free(*dup_pos, strlen(*dup_pos) + 1); in set_smf_env()
[all …]
/illumos-gate/usr/src/lib/libnsl/rpc/
H A Dclnt_perror.c153 str += strlen(str); in clnt_sperror()
158 str += strlen(str); in clnt_sperror()
162 str += strlen(str); in clnt_sperror()
172 str += strlen(str); in clnt_sperror()
177 str += strlen(str); in clnt_sperror()
185 str += strlen(str); in clnt_sperror()
191 str += strlen(str); in clnt_sperror()
199 str += strlen(str); in clnt_sperror()
206 str += strlen(str); in clnt_sperror()
212 str += strlen(str); in clnt_sperror()
[all …]
/illumos-gate/usr/src/lib/krb5/ss/
H A Dutils.c64 size += strlen(var_name)+8; /* "quux, " */
65 size += strlen(func_name)+8; /* "foo, " */
66 size += strlen(info_string)+8; /* "\"Info!\", " */
68 size += strlen(numbuf)+5; /* " }," + NL + NUL */
88 symbol = malloc((strlen(name)+6) * sizeof(char));
99 int size_a = strlen(a);
100 int size_b = strlen(b);
101 int size_c = strlen(c);
116 len = strlen(string)+1;
130 register int len = strlen(s) + 1;
/illumos-gate/usr/src/lib/libnisdb/yptol/
H A Ddit_access.c430 target_len = strlen(target); in get_passwd_list()
431 domain_len = strlen(domain); in get_passwd_list()
440 if ((target_len + domain_len + 1) > strlen(it->name)) in get_passwd_list()
446 if (strlen(domain) >= strlen(it->name)) in get_passwd_list()
448 end_ptr = it->name + strlen(it->name) - in get_passwd_list()
449 strlen(domain) - 1; in get_passwd_list()
452 if (0 != strncmp(end_ptr, domain, strlen(domain))) in get_passwd_list()
710 strlen(xlate_to_lcase_maps[m])) == 0) { in update_map_from_dit()
1002 if (strlen(domain) >= strlen(it->name)) in get_mapping_map_list()
1004 end_ptr = it->name + strlen(it->name) - in get_mapping_map_list()
[all …]
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/funcs/
H A Dtst.substr.d66 command[i].index = strlen(str) - 1;
70 command[i].index = strlen(str);
74 command[i].index = strlen(str) + 1;
87 command[i].length = strlen(str) - command[i].index + 1;
91 command[i].length = strlen(str) - command[i].index + 2;
142 command[i].index = -2 * strlen(str);
143 command[i].length = 2 * strlen(str);
146 command[i].index = -2 * strlen(str);
147 command[i].length = strlen(str);
150 command[i].index = -2 * strlen(str);
[all …]
/illumos-gate/usr/src/lib/krb5/kadm5/
H A Dchpass_util.c224 strncat(msg_ret, " ", msg_len - 1 - strlen(msg_ret)); in _kadm5_chpass_principal_util()
225 strncat(msg_ret, string_text(CHPASS_UTIL_GET_PRINC_INFO), msg_len - 1 - strlen(msg_ret)); in _kadm5_chpass_principal_util()
226 strncat(msg_ret, "\n", msg_len - 1 - strlen(msg_ret)); in _kadm5_chpass_principal_util()
227 strncat(msg_ret, error_message(code), msg_len - 1 - strlen(msg_ret)); in _kadm5_chpass_principal_util()
228 strncat(msg_ret, " ", msg_len - 1 - strlen(msg_ret)); in _kadm5_chpass_principal_util()
230 msg_len - 1 - strlen(msg_ret)); in _kadm5_chpass_principal_util()
231 strncat(msg_ret, "\n\n", msg_len - 1 - strlen(msg_ret)); in _kadm5_chpass_principal_util()
233 msg_len - 1 - strlen(msg_ret)); in _kadm5_chpass_principal_util()
234 strncat(msg_ret, "\n", msg_len - 1 - strlen(msg_ret)); in _kadm5_chpass_principal_util()
240 strncpy(msg_ret, error_message(code), msg_len - 1 - strlen(msg_ret)); in _kadm5_chpass_principal_util()
[all …]
/illumos-gate/usr/src/lib/libcryptoutil/common/
H A Dpkcs11_uri.c68 len = strlen(str); in read_id()
136 if (strncmp(str, PK11_URI_PREFIX, strlen(PK11_URI_PREFIX)) != 0) in pkcs11_parse_uri()
139 if ((str2 = strdup(str + strlen(PK11_URI_PREFIX))) == NULL) in pkcs11_parse_uri()
148 (strlen(str2) > 0 && str2[strlen(str2) - 1] == ';')) in pkcs11_parse_uri()
168 if (strlen(l2) > 32) in pkcs11_parse_uri()
176 if (strlen(l2) > 32) in pkcs11_parse_uri()
184 if (strlen(l2) > 16) in pkcs11_parse_uri()
192 if (strlen(l2) > 16) in pkcs11_parse_uri()
205 if (strlen(l2) > PK11_MAX_ID_LEN * 2 + in pkcs11_parse_uri()
219 if (strlen(l2) > PK11_MAX_OBJECT_LEN) in pkcs11_parse_uri()
[all …]

12345678910>>...143